|
@@ -2,6 +2,7 @@ import _ from 'lodash'
|
|
|
import initComponent from './controls/component'
|
|
|
import initMainTab from './controls/MainTab'
|
|
|
import initPanel from './controls/panel'
|
|
|
+import initGridColumn from './controls/gridcolumn'
|
|
|
import initGrid from './controls/grid'
|
|
|
import initTextfield from './controls/input/textfield'
|
|
|
import initToolbar from './controls/toolbar/toolbar'
|
|
@@ -64,11 +65,54 @@ export function init() {
|
|
|
|
|
|
Ext.define("Ext.locale.zh_CN.grid.header.Container", {
|
|
|
override: "Ext.grid.header.Container",
|
|
|
+ sortClearText: '不排序',
|
|
|
sortAscText: "正序",
|
|
|
sortDescText: "倒序",
|
|
|
lockText: "锁定列",
|
|
|
unlockText: "解除锁定",
|
|
|
- columnsText: "列"
|
|
|
+ columnsText: "字段隐藏"
|
|
|
+ });
|
|
|
+
|
|
|
+ Ext.define("Ext.locale.zh_CN.grid.filters.filter.Date", {
|
|
|
+ override: "Ext.grid.filters.filter.Date",
|
|
|
+ fields: {
|
|
|
+ lt: {text: '之前'},
|
|
|
+ gt: {text: '之后'},
|
|
|
+ eq: {text: '相等'},
|
|
|
+ },
|
|
|
+ // Defaults to Ext.Date.defaultFormat
|
|
|
+ dateFormat: null
|
|
|
+ });
|
|
|
+
|
|
|
+ // Ext.grid.locking.Lockable.prototype.unlockText = '解锁'
|
|
|
+ // Ext.grid.locking.Lockable.prototype.lockText = '锁定'
|
|
|
+ // Ext.grid.filters.Filters.prototype.menuFilterText = "过滤"
|
|
|
+
|
|
|
+ Ext.define("Ext.locale.zh_CN.grid.locking.Lockable", {
|
|
|
+ override: "Ext.grid.locking.Lockable",
|
|
|
+ lockText: "锁定",
|
|
|
+ unlockText: '解锁',
|
|
|
+ });
|
|
|
+
|
|
|
+ Ext.define("Ext.locale.zh_CN.grid.filters.Filters", {
|
|
|
+ override: "Ext.grid.filters.Filters",
|
|
|
+ menuFilterText: "过滤"
|
|
|
+ });
|
|
|
+
|
|
|
+ Ext.define("Ext.locale.zh_CN.grid.filters.filter.Boolean", {
|
|
|
+ override: "Ext.grid.filters.filter.Boolean",
|
|
|
+ yesText: "已钩",
|
|
|
+ noText: "未勾"
|
|
|
+ });
|
|
|
+
|
|
|
+ Ext.define("Ext.locale.zh_CN.grid.filters.filter.String", {
|
|
|
+ override: "Ext.grid.filters.filter.String",
|
|
|
+ emptyText: "输入过滤文本..."
|
|
|
+ });
|
|
|
+
|
|
|
+ Ext.define("Ext.locale.zh_CN.grid.filters.filter.Number", {
|
|
|
+ override: "Ext.grid.filters.filter.Number",
|
|
|
+ emptyText: "输入数字..."
|
|
|
});
|
|
|
|
|
|
/**
|
|
@@ -110,6 +154,7 @@ export function init() {
|
|
|
|
|
|
initComponent()
|
|
|
initPanel()
|
|
|
+ // initGridColumn()
|
|
|
initGrid()
|
|
|
initMainTab()
|
|
|
initTextfield()
|