vxe-table 4.13.54 → 4.13.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/grid/src/grid.js +25 -9
- package/es/locale/lang/ar-EG.js +2 -1
- package/es/locale/lang/de-DE.js +2 -1
- package/es/locale/lang/en-US.js +2 -1
- package/es/locale/lang/es-ES.js +2 -1
- package/es/locale/lang/fr-FR.js +2 -1
- package/es/locale/lang/hu-HU.js +2 -1
- package/es/locale/lang/hy-AM.js +2 -1
- package/es/locale/lang/id-ID.js +2 -1
- package/es/locale/lang/it-IT.js +2 -1
- package/es/locale/lang/ja-JP.js +2 -1
- package/es/locale/lang/ko-KR.js +2 -1
- package/es/locale/lang/ms-MY.js +2 -1
- package/es/locale/lang/nb-NO.js +2 -1
- package/es/locale/lang/pt-BR.js +2 -1
- package/es/locale/lang/ru-RU.js +2 -1
- package/es/locale/lang/th-TH.js +2 -1
- package/es/locale/lang/ug-CN.js +2 -1
- package/es/locale/lang/uk-UA.js +2 -1
- package/es/locale/lang/uz-UZ.js +2 -1
- package/es/locale/lang/vi-VN.js +2 -1
- package/es/locale/lang/zh-CHT.js +2 -1
- package/es/locale/lang/zh-CN.js +2 -1
- package/es/style.css +1 -1
- package/es/table/src/table.js +57 -15
- package/es/ui/index.js +2 -1
- package/es/ui/src/log.js +1 -1
- package/lib/grid/src/grid.js +25 -9
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/index.umd.js +34 -16
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/ar-EG.js +2 -1
- package/lib/locale/lang/ar-EG.min.js +1 -1
- package/lib/locale/lang/ar-EG.umd.js +2 -1
- package/lib/locale/lang/de-DE.js +2 -1
- package/lib/locale/lang/de-DE.min.js +1 -1
- package/lib/locale/lang/de-DE.umd.js +2 -1
- package/lib/locale/lang/en-US.js +2 -1
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +2 -1
- package/lib/locale/lang/es-ES.js +2 -1
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +2 -1
- package/lib/locale/lang/fr-FR.js +2 -1
- package/lib/locale/lang/fr-FR.min.js +1 -1
- package/lib/locale/lang/fr-FR.umd.js +2 -1
- package/lib/locale/lang/hu-HU.js +2 -1
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +2 -1
- package/lib/locale/lang/hy-AM.js +2 -1
- package/lib/locale/lang/hy-AM.min.js +1 -1
- package/lib/locale/lang/hy-AM.umd.js +2 -1
- package/lib/locale/lang/id-ID.js +2 -1
- package/lib/locale/lang/id-ID.min.js +1 -1
- package/lib/locale/lang/id-ID.umd.js +2 -1
- package/lib/locale/lang/it-IT.js +2 -1
- package/lib/locale/lang/it-IT.min.js +1 -1
- package/lib/locale/lang/it-IT.umd.js +2 -1
- package/lib/locale/lang/ja-JP.js +2 -1
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +2 -1
- package/lib/locale/lang/ko-KR.js +2 -1
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +2 -1
- package/lib/locale/lang/ms-MY.js +2 -1
- package/lib/locale/lang/ms-MY.min.js +1 -1
- package/lib/locale/lang/ms-MY.umd.js +2 -1
- package/lib/locale/lang/nb-NO.js +2 -1
- package/lib/locale/lang/nb-NO.min.js +1 -1
- package/lib/locale/lang/nb-NO.umd.js +2 -1
- package/lib/locale/lang/pt-BR.js +2 -1
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +2 -1
- package/lib/locale/lang/ru-RU.js +2 -1
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +2 -1
- package/lib/locale/lang/th-TH.js +2 -1
- package/lib/locale/lang/th-TH.min.js +1 -1
- package/lib/locale/lang/th-TH.umd.js +2 -1
- package/lib/locale/lang/ug-CN.js +2 -1
- package/lib/locale/lang/ug-CN.min.js +1 -1
- package/lib/locale/lang/ug-CN.umd.js +2 -1
- package/lib/locale/lang/uk-UA.js +2 -1
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +2 -1
- package/lib/locale/lang/uz-UZ.js +2 -1
- package/lib/locale/lang/uz-UZ.min.js +1 -1
- package/lib/locale/lang/uz-UZ.umd.js +2 -1
- package/lib/locale/lang/vi-VN.js +2 -1
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/vi-VN.umd.js +2 -1
- package/lib/locale/lang/zh-CHT.js +2 -1
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CHT.umd.js +2 -1
- package/lib/locale/lang/zh-CN.js +2 -1
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +2 -1
- package/lib/style.css +1 -1
- package/lib/table/src/table.js +4 -4
- package/lib/table/src/table.min.js +1 -1
- package/lib/ui/index.js +2 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/package.json +1 -1
- package/packages/grid/src/grid.ts +30 -10
- package/packages/locale/lang/ar-EG.ts +2 -1
- package/packages/locale/lang/de-DE.ts +2 -1
- package/packages/locale/lang/en-US.ts +2 -1
- package/packages/locale/lang/es-ES.ts +2 -1
- package/packages/locale/lang/fr-FR.ts +2 -1
- package/packages/locale/lang/hu-HU.ts +2 -1
- package/packages/locale/lang/hy-AM.ts +2 -1
- package/packages/locale/lang/id-ID.ts +2 -1
- package/packages/locale/lang/it-IT.ts +2 -1
- package/packages/locale/lang/ja-JP.ts +2 -1
- package/packages/locale/lang/ko-KR.ts +2 -1
- package/packages/locale/lang/ms-MY.ts +2 -1
- package/packages/locale/lang/nb-NO.ts +2 -1
- package/packages/locale/lang/pt-BR.ts +2 -1
- package/packages/locale/lang/ru-RU.ts +2 -1
- package/packages/locale/lang/th-TH.ts +2 -1
- package/packages/locale/lang/ug-CN.ts +2 -1
- package/packages/locale/lang/uk-UA.ts +2 -1
- package/packages/locale/lang/uz-UZ.ts +2 -1
- package/packages/locale/lang/vi-VN.ts +2 -1
- package/packages/locale/lang/zh-CHT.ts +2 -1
- package/packages/locale/lang/zh-CN.ts +2 -1
- package/packages/table/src/table.ts +66 -14
- package/packages/ui/index.ts +1 -0
- /package/es/{iconfont.1753261011546.ttf → iconfont.1753525580419.ttf} +0 -0
- /package/es/{iconfont.1753261011546.woff → iconfont.1753525580419.woff} +0 -0
- /package/es/{iconfont.1753261011546.woff2 → iconfont.1753525580419.woff2} +0 -0
- /package/lib/{iconfont.1753261011546.ttf → iconfont.1753525580419.ttf} +0 -0
- /package/lib/{iconfont.1753261011546.woff → iconfont.1753525580419.woff} +0 -0
- /package/lib/{iconfont.1753261011546.woff2 → iconfont.1753525580419.woff2} +0 -0
package/lib/ui/index.js
CHANGED
|
@@ -13,7 +13,7 @@ Object.defineProperty(exports, "VxeUI", {
|
|
|
13
13
|
exports.version = exports.validators = exports.use = exports.t = exports.setup = exports.setTheme = exports.setLanguage = exports.setIcon = exports.setI18n = exports.setConfig = exports.saveFile = exports.renderer = exports.readFile = exports.print = exports.modal = exports.menus = exports.log = exports.interceptor = exports.hooks = exports.globalResize = exports.globalEvents = exports.getTheme = exports.getIcon = exports.getI18n = exports.getConfig = exports.formats = exports.default = exports.config = exports.commands = exports.clipboard = exports._t = void 0;
|
|
14
14
|
var _core = require("@vxe-ui/core");
|
|
15
15
|
var _utils = require("./src/utils");
|
|
16
|
-
const version = exports.version = "4.13.
|
|
16
|
+
const version = exports.version = "4.13.56";
|
|
17
17
|
_core.VxeUI.version = version;
|
|
18
18
|
_core.VxeUI.tableVersion = version;
|
|
19
19
|
_core.VxeUI.setConfig({
|
|
@@ -146,6 +146,7 @@ _core.VxeUI.setConfig({
|
|
|
146
146
|
// filterMethod: null,
|
|
147
147
|
// destroyOnClose: false,
|
|
148
148
|
// isEvery: false,
|
|
149
|
+
multiple: true,
|
|
149
150
|
showIcon: true
|
|
150
151
|
},
|
|
151
152
|
aggregateConfig: {
|
package/lib/ui/index.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:!0}),exports.VXETable=void 0,Object.defineProperty(exports,"VxeUI",{enumerable:!0,get:function(){return _core.VxeUI}}),exports.version=exports.validators=exports.use=exports.t=exports.setup=exports.setTheme=exports.setLanguage=exports.setIcon=exports.setI18n=exports.setConfig=exports.saveFile=exports.renderer=exports.readFile=exports.print=exports.modal=exports.menus=exports.log=exports.interceptor=exports.hooks=exports.globalResize=exports.globalEvents=exports.getTheme=exports.getIcon=exports.getI18n=exports.getConfig=exports.formats=exports.default=exports.config=exports.commands=exports.clipboard=exports._t=void 0;var _core=require("@vxe-ui/core"),_utils=require("./src/utils");let version=exports.version="4.13.
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0}),exports.VXETable=void 0,Object.defineProperty(exports,"VxeUI",{enumerable:!0,get:function(){return _core.VxeUI}}),exports.version=exports.validators=exports.use=exports.t=exports.setup=exports.setTheme=exports.setLanguage=exports.setIcon=exports.setI18n=exports.setConfig=exports.saveFile=exports.renderer=exports.readFile=exports.print=exports.modal=exports.menus=exports.log=exports.interceptor=exports.hooks=exports.globalResize=exports.globalEvents=exports.getTheme=exports.getIcon=exports.getI18n=exports.getConfig=exports.formats=exports.default=exports.config=exports.commands=exports.clipboard=exports._t=void 0;var _core=require("@vxe-ui/core"),_utils=require("./src/utils");let version=exports.version="4.13.56",iconPrefix=(_core.VxeUI.version=version,_core.VxeUI.tableVersion=version,_core.VxeUI.setConfig({emptyCell:" ",table:{fit:!0,showHeader:!0,animat:!0,delayHover:250,autoResize:!0,minHeight:144,resizeConfig:{},resizableConfig:{dragMode:"auto",showDragTip:!0,isSyncAutoHeight:!0,isSyncAutoWidth:!0,minHeight:18},radioConfig:{strict:!0},rowDragConfig:{showIcon:!0,animation:!0,showGuidesStatus:!0,showDragTip:!0},columnDragConfig:{showIcon:!0,animation:!0,showGuidesStatus:!0,showDragTip:!0},checkboxConfig:{strict:!0},tooltipConfig:{enterable:!0},validConfig:{showMessage:!0,autoClear:!0,autoPos:!0,message:"inline",msgMode:"single",theme:"beautify"},columnConfig:{maxFixedSize:4},cellConfig:{padding:!0},headerCellConfig:{height:"unset"},footerCellConfig:{height:"unset"},customConfig:{allowVisible:!0,allowResizable:!0,allowFixed:!0,allowSort:!0,showFooter:!0,placement:"top-right",storeOptions:{visible:!0,resizable:!0,sort:!0,fixed:!0},modalOptions:{showMaximize:!0,mask:!0,lockView:!0,resize:!0,escClosable:!0},drawerOptions:{mask:!0,lockView:!0,escClosable:!0,resize:!0}},sortConfig:{showIcon:!0,allowClear:!0,allowBtn:!0,iconLayout:"vertical"},filterConfig:{multiple:!0,showIcon:!0},aggregateConfig:{padding:!0,rowField:"id",parentField:"_X_ROW_PARENT_KEY",childrenField:"_X_ROW_CHILDREN",mapChildrenField:"_X_ROW_CHILD_LIST",indent:20,showIcon:!0,maxGroupSize:4,showAggFuncTitle:!0},treeConfig:{padding:!0,rowField:"id",parentField:"parentId",childrenField:"children",hasChildField:"hasChild",mapChildrenField:"_X_ROW_CHILD",indent:20,showIcon:!0},expandConfig:{showIcon:!0,mode:"fixed"},editConfig:{showIcon:!0,showAsterisk:!0,autoFocus:!0},importConfig:{_typeMaps:{csv:1,html:1,xml:1,txt:1}},exportConfig:{_typeMaps:{csv:1,html:1,xml:1,txt:1}},printConfig:{},mouseConfig:{extension:!0},keyboardConfig:{isAll:!0,isEsc:!0},areaConfig:{autoClear:!0,selectCellByHeader:!0,selectCellByBody:!0,extendDirection:{top:!0,left:!0,bottom:!0,right:!0}},clipConfig:{isCopy:!0,isCut:!0,isPaste:!0},fnrConfig:{isFind:!0,isReplace:!0},virtualXConfig:{gt:24,preSize:1,oSize:0},virtualYConfig:{gt:100,preSize:1,oSize:0},scrollbarConfig:{}},grid:{formConfig:{enabled:!0},pagerConfig:{enabled:!0},toolbarConfig:{enabled:!0},proxyConfig:{enabled:!0,autoLoad:!0,showResponseMsg:!0,showActiveMsg:!0,props:{list:null,result:"result",total:"page.total",message:"message"}}},toolbar:{}}),"vxe-table-icon-"),setTheme=(_core.VxeUI.setIcon({TABLE_SORT_ASC:iconPrefix+"caret-up",TABLE_SORT_DESC:iconPrefix+"caret-down",TABLE_FILTER_NONE:iconPrefix+"funnel",TABLE_FILTER_MATCH:iconPrefix+"funnel",TABLE_EDIT:iconPrefix+"edit",TABLE_TITLE_PREFIX:iconPrefix+"question-circle-fill",TABLE_TITLE_SUFFIX:iconPrefix+"question-circle-fill",TABLE_TREE_LOADED:iconPrefix+"spinner roll",TABLE_TREE_OPEN:iconPrefix+"caret-right rotate90",TABLE_TREE_CLOSE:iconPrefix+"caret-right",TABLE_EXPAND_LOADED:iconPrefix+"spinner roll",TABLE_EXPAND_OPEN:iconPrefix+"arrow-right rotate90",TABLE_EXPAND_CLOSE:iconPrefix+"arrow-right",TABLE_CHECKBOX_CHECKED:iconPrefix+"checkbox-checked-fill",TABLE_CHECKBOX_UNCHECKED:iconPrefix+"checkbox-unchecked",TABLE_CHECKBOX_INDETERMINATE:iconPrefix+"checkbox-indeterminate-fill",TABLE_CHECKBOX_DISABLED_UNCHECKED:iconPrefix+"checkbox-unchecked-fill",TABLE_RADIO_CHECKED:iconPrefix+"radio-checked-fill",TABLE_RADIO_UNCHECKED:iconPrefix+"radio-unchecked",TABLE_RADIO_DISABLED_UNCHECKED:iconPrefix+"radio-unchecked-fill",TABLE_CUSTOM_SORT:iconPrefix+"drag-handle",TABLE_MENU_OPTIONS:iconPrefix+"arrow-right",TABLE_DRAG_ROW:iconPrefix+"drag-handle",TABLE_DRAG_COLUMN:iconPrefix+"drag-handle",TABLE_DRAG_STATUS_ROW:iconPrefix+"sort",TABLE_DRAG_STATUS_SUB_ROW:iconPrefix+"add-sub",TABLE_DRAG_STATUS_AGG_GROUP:iconPrefix+"grouping",TABLE_DRAG_STATUS_AGG_VALUES:iconPrefix+"values",TABLE_DRAG_STATUS_COLUMN:iconPrefix+"swap",TABLE_DRAG_DISABLED:iconPrefix+"no-drop",TABLE_ROW_GROUP_OPEN:iconPrefix+"arrow-right rotate90",TABLE_ROW_GROUP_CLOSE:iconPrefix+"arrow-right",TABLE_AGGREGATE_GROUPING:iconPrefix+"grouping",TABLE_AGGREGATE_VALUES:iconPrefix+"values",TABLE_AGGREGATE_SORT:iconPrefix+"drag-handle",TABLE_AGGREGATE_DELETE:iconPrefix+"close",TOOLBAR_TOOLS_REFRESH:iconPrefix+"repeat",TOOLBAR_TOOLS_REFRESH_LOADING:iconPrefix+"repeat roll",TOOLBAR_TOOLS_IMPORT:iconPrefix+"upload",TOOLBAR_TOOLS_EXPORT:iconPrefix+"download",TOOLBAR_TOOLS_PRINT:iconPrefix+"print",TOOLBAR_TOOLS_FULLSCREEN:iconPrefix+"fullscreen",TOOLBAR_TOOLS_MINIMIZE:iconPrefix+"minimize",TOOLBAR_TOOLS_CUSTOM:iconPrefix+"custom-column",TOOLBAR_TOOLS_FIXED_LEFT:iconPrefix+"fixed-left",TOOLBAR_TOOLS_FIXED_LEFT_ACTIVE:iconPrefix+"fixed-left-fill",TOOLBAR_TOOLS_FIXED_RIGHT:iconPrefix+"fixed-right",TOOLBAR_TOOLS_FIXED_RIGHT_ACTIVE:iconPrefix+"fixed-right-fill"}),exports.setTheme=_core.VxeUI.setTheme),getTheme=exports.getTheme=_core.VxeUI.getTheme,setConfig=exports.setConfig=_core.VxeUI.setConfig,getConfig=exports.getConfig=_core.VxeUI.getConfig,setIcon=exports.setIcon=_core.VxeUI.setIcon,getIcon=exports.getIcon=_core.VxeUI.getIcon,setLanguage=exports.setLanguage=_core.VxeUI.setLanguage,setI18n=exports.setI18n=_core.VxeUI.setI18n,getI18n=exports.getI18n=_core.VxeUI.getI18n,globalEvents=exports.globalEvents=_core.VxeUI.globalEvents,globalResize=exports.globalResize=_core.VxeUI.globalResize,renderer=exports.renderer=_core.VxeUI.renderer,validators=exports.validators=_core.VxeUI.validators,menus=exports.menus=_core.VxeUI.menus,formats=exports.formats=_core.VxeUI.formats,commands=exports.commands=_core.VxeUI.commands,interceptor=exports.interceptor=_core.VxeUI.interceptor,clipboard=exports.clipboard=_core.VxeUI.clipboard,log=exports.log=_core.VxeUI.log,hooks=exports.hooks=_core.VxeUI.hooks,use=exports.use=_core.VxeUI.use,setup=e=>_core.VxeUI.setConfig(e),config=(exports.setup=setup,_core.VxeUI.setup=setup,e=>_core.VxeUI.setConfig(e)),t=(exports.config=config,_core.VxeUI.config=config,(e,o)=>_core.VxeUI.getI18n(e,o)),_t=(exports.t=t,_core.VxeUI.t=t,(e,o)=>(0,_utils.getFuncText)(e,o)),VXETable=(exports._t=_t,_core.VxeUI._t=_t,exports.VXETable=_core.VxeUI),saveFile=e=>_core.VxeUI.saveFile(e),readFile=(exports.saveFile=saveFile,e=>_core.VxeUI.readFile(e)),print=(exports.readFile=readFile,e=>_core.VxeUI.print(e)),modal=(exports.print=print,exports.modal={get(e){return _core.VxeUI.modal.get(e)},close(e){return _core.VxeUI.modal.close(e)},open(e){return _core.VxeUI.modal.open(e)},alert(e,o,r){return _core.VxeUI.modal.alert(e,o,r)},confirm(e,o,r){return _core.VxeUI.modal.confirm(e,o,r)},message(e,o){return _core.VxeUI.modal.message(e,o)},notification(e,o,r){return _core.VxeUI.modal.notification(e,o,r)}});var _default=exports.default=_core.VxeUI;
|
package/lib/ui/src/log.js
CHANGED
|
@@ -8,6 +8,6 @@ var _core = require("@vxe-ui/core");
|
|
|
8
8
|
const {
|
|
9
9
|
log
|
|
10
10
|
} = _core.VxeUI;
|
|
11
|
-
const version = `table v${"4.13.
|
|
11
|
+
const version = `table v${"4.13.56"}`;
|
|
12
12
|
const warnLog = exports.warnLog = log.create('warn', version);
|
|
13
13
|
const errLog = exports.errLog = log.create('error', version);
|
package/lib/ui/src/log.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:!0}),exports.warnLog=exports.errLog=void 0;var _core=require("@vxe-ui/core");let log=_core.VxeUI.log,version="table v4.13.
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0}),exports.warnLog=exports.errLog=void 0;var _core=require("@vxe-ui/core");let log=_core.VxeUI.log,version="table v4.13.56",warnLog=exports.warnLog=log.create("warn",version),errLog=exports.errLog=log.create("error",version);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vxe-table",
|
|
3
|
-
"version": "4.13.
|
|
3
|
+
"version": "4.13.56",
|
|
4
4
|
"description": "A PC-end table component based on Vxe UI, supporting copy-paste, data pivot table, and high-performance virtual list table solution.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"update": "npm install --legacy-peer-deps",
|
|
@@ -18,7 +18,7 @@ const { getConfig, getI18n, commands, hooks, useFns, createEvent, globalEvents,
|
|
|
18
18
|
|
|
19
19
|
const tableComponentPropKeys = Object.keys(tableComponentProps as any)
|
|
20
20
|
|
|
21
|
-
const tableComponentMethodKeys: (keyof VxeTableMethods)[] = ['clearAll', 'syncData', 'updateData', 'loadData', 'reloadData', 'reloadRow', 'loadColumn', 'reloadColumn', 'getRowNode', 'getColumnNode', 'getRowIndex', 'getVTRowIndex', 'getVMRowIndex', 'getColumnIndex', 'getVTColumnIndex', 'getVMColumnIndex', 'setRow', 'createData', 'createRow', 'revertData', 'clearData', 'isRemoveByRow', 'isInsertByRow', 'isUpdateByRow', 'getColumns', 'getColumnById', 'getColumnByField', 'getTableColumn', 'getFullColumns', 'getData', 'getCheckboxRecords', 'getParentRow', 'getTreeRowChildren', 'getTreeParentRow', 'getRowSeq', 'getRowById', 'getRowid', 'getTableData', 'getFullData', 'setColumnFixed', 'clearColumnFixed', 'setColumnWidth', 'getColumnWidth', 'setRowHeightConf', 'getRowHeightConf', 'setRowHeight', 'getRowHeight', 'hideColumn', 'showColumn', 'resetColumn', 'refreshColumn', 'refreshScroll', 'recalculate', 'closeTooltip', 'isAllCheckboxChecked', 'isAllCheckboxIndeterminate', 'getCheckboxIndeterminateRecords', 'setCheckboxRow', 'setCheckboxRowKey', 'isCheckedByCheckboxRow', 'isCheckedByCheckboxRowKey', 'isIndeterminateByCheckboxRow', 'isIndeterminateByCheckboxRowKey', 'toggleCheckboxRow', 'setAllCheckboxRow', 'getRadioReserveRecord', 'clearRadioReserve', 'getCheckboxReserveRecords', 'clearCheckboxReserve', 'toggleAllCheckboxRow', 'clearCheckboxRow', 'setCurrentRow', 'isCheckedByRadioRow', 'isCheckedByRadioRowKey', 'setRadioRow', 'setRadioRowKey', 'clearCurrentRow', 'clearRadioRow', 'getCurrentRecord', 'getRadioRecord', 'getCurrentColumn', 'setCurrentColumn', 'clearCurrentColumn', 'setPendingRow', 'togglePendingRow', 'hasPendingByRow', 'isPendingByRow', 'getPendingRecords', 'clearPendingRow', 'sort', 'setSort', 'clearSort', 'clearSortByEvent', 'isSort', 'getSortColumns', 'closeFilter', 'isFilter', 'clearFilterByEvent', 'isActiveFilterByColumn', 'isRowExpandLoaded', 'clearRowExpandLoaded', 'reloadRowExpand', 'reloadRowExpand', 'toggleRowExpand', 'setAllRowExpand', 'setRowExpand', 'isExpandByRow', 'isRowExpandByRow', 'clearRowExpand', 'clearRowExpandReserve', 'getRowExpandRecords', 'getTreeExpandRecords', 'isTreeExpandLoaded', 'clearTreeExpandLoaded', 'reloadTreeExpand', 'reloadTreeChilds', 'toggleTreeExpand', 'setAllTreeExpand', 'setTreeExpand', 'isTreeExpandByRow', 'clearTreeExpand', 'clearTreeExpandReserve', 'getScroll', 'scrollTo', 'scrollToRow', 'scrollToColumn', 'clearScroll', 'updateFooter', 'updateStatus', 'setMergeCells', 'removeInsertRow', 'removeMergeCells', 'getMergeCells', 'clearMergeCells', 'setMergeFooterItems', 'removeMergeFooterItems', 'getMergeFooterItems', 'clearMergeFooterItems', 'getCustomStoreData', 'setRowGroupExpand', 'setAllRowGroupExpand', 'clearRowGroupExpand', 'isRowGroupExpandByRow', 'isRowGroupRecord', 'isAggregateRecord', 'isAggregateExpandByRow', 'getAggregateContentByRow', 'getAggregateRowChildren', 'setRowGroups', 'clearRowGroups', 'openTooltip', 'moveColumnTo', 'moveRowTo', 'getCellLabel', 'getCellElement', 'focus', 'blur', 'connect']
|
|
21
|
+
const tableComponentMethodKeys: (keyof VxeTableMethods)[] = ['clearAll', 'syncData', 'updateData', 'loadData', 'reloadData', 'reloadRow', 'loadColumn', 'reloadColumn', 'getRowNode', 'getColumnNode', 'getRowIndex', 'getVTRowIndex', 'getVMRowIndex', 'getColumnIndex', 'getVTColumnIndex', 'getVMColumnIndex', 'setRow', 'createData', 'createRow', 'revertData', 'clearData', 'isRemoveByRow', 'isInsertByRow', 'isUpdateByRow', 'getColumns', 'getColumnById', 'getColumnByField', 'getTableColumn', 'getFullColumns', 'getData', 'getCheckboxRecords', 'getParentRow', 'getTreeRowChildren', 'getTreeParentRow', 'getRowSeq', 'getRowById', 'getRowid', 'getTableData', 'getFullData', 'setColumnFixed', 'clearColumnFixed', 'setColumnWidth', 'getColumnWidth', 'setRowHeightConf', 'getRowHeightConf', 'setRowHeight', 'getRowHeight', 'hideColumn', 'showColumn', 'resetColumn', 'refreshColumn', 'refreshScroll', 'recalculate', 'closeTooltip', 'isAllCheckboxChecked', 'isAllCheckboxIndeterminate', 'getCheckboxIndeterminateRecords', 'setCheckboxRow', 'setCheckboxRowKey', 'isCheckedByCheckboxRow', 'isCheckedByCheckboxRowKey', 'isIndeterminateByCheckboxRow', 'isIndeterminateByCheckboxRowKey', 'toggleCheckboxRow', 'setAllCheckboxRow', 'getRadioReserveRecord', 'clearRadioReserve', 'getCheckboxReserveRecords', 'clearCheckboxReserve', 'toggleAllCheckboxRow', 'clearCheckboxRow', 'setCurrentRow', 'isCheckedByRadioRow', 'isCheckedByRadioRowKey', 'setRadioRow', 'setRadioRowKey', 'clearCurrentRow', 'clearRadioRow', 'getCurrentRecord', 'getRadioRecord', 'getCurrentColumn', 'setCurrentColumn', 'clearCurrentColumn', 'setPendingRow', 'togglePendingRow', 'hasPendingByRow', 'isPendingByRow', 'getPendingRecords', 'clearPendingRow', 'setFilterByEvent', 'sort', 'setSort', 'setSortByEvent', 'clearSort', 'clearSortByEvent', 'isSort', 'getSortColumns', 'closeFilter', 'isFilter', 'clearFilterByEvent', 'isActiveFilterByColumn', 'isRowExpandLoaded', 'clearRowExpandLoaded', 'reloadRowExpand', 'reloadRowExpand', 'toggleRowExpand', 'setAllRowExpand', 'setRowExpand', 'isExpandByRow', 'isRowExpandByRow', 'clearRowExpand', 'clearRowExpandReserve', 'getRowExpandRecords', 'getTreeExpandRecords', 'isTreeExpandLoaded', 'clearTreeExpandLoaded', 'reloadTreeExpand', 'reloadTreeChilds', 'toggleTreeExpand', 'setAllTreeExpand', 'setTreeExpand', 'isTreeExpandByRow', 'clearTreeExpand', 'clearTreeExpandReserve', 'getScroll', 'scrollTo', 'scrollToRow', 'scrollToColumn', 'clearScroll', 'updateFooter', 'updateStatus', 'setMergeCells', 'removeInsertRow', 'removeMergeCells', 'getMergeCells', 'clearMergeCells', 'setMergeFooterItems', 'removeMergeFooterItems', 'getMergeFooterItems', 'clearMergeFooterItems', 'getCustomStoreData', 'setRowGroupExpand', 'setAllRowGroupExpand', 'clearRowGroupExpand', 'isRowGroupExpandByRow', 'isRowGroupRecord', 'isAggregateRecord', 'isAggregateExpandByRow', 'getAggregateContentByRow', 'getAggregateRowChildren', 'setRowGroups', 'clearRowGroups', 'openTooltip', 'moveColumnTo', 'moveRowTo', 'getCellLabel', 'getCellElement', 'focus', 'blur', 'connect']
|
|
22
22
|
|
|
23
23
|
const gridComponentEmits: VxeGridEmits = [
|
|
24
24
|
...tableComponentEmits,
|
|
@@ -379,7 +379,7 @@ export default defineVxeComponent({
|
|
|
379
379
|
}
|
|
380
380
|
}
|
|
381
381
|
|
|
382
|
-
const
|
|
382
|
+
const handleSortEvent = (params: any) => {
|
|
383
383
|
const $xeTable = refTable.value
|
|
384
384
|
const { proxyConfig } = props
|
|
385
385
|
const { computeSortOpts } = $xeTable.getComputeMaps()
|
|
@@ -390,15 +390,24 @@ export default defineVxeComponent({
|
|
|
390
390
|
reactData.sortData = params.sortList
|
|
391
391
|
if (proxyConfig && isEnableConf(proxyOpts)) {
|
|
392
392
|
reactData.tablePage.currentPage = 1
|
|
393
|
-
|
|
394
|
-
|
|
393
|
+
$xeGrid.commitProxy('query').then((rest) => {
|
|
394
|
+
$xeGrid.dispatchEvent('proxy-query', rest, params.$event)
|
|
395
395
|
})
|
|
396
396
|
}
|
|
397
397
|
}
|
|
398
|
-
gridMethods.dispatchEvent('sort-change', params, params.$event)
|
|
399
398
|
}
|
|
400
399
|
|
|
401
|
-
const
|
|
400
|
+
const sortChangeEvent: VxeTableEvents.SortChange = (params) => {
|
|
401
|
+
handleSortEvent(params)
|
|
402
|
+
$xeGrid.dispatchEvent('sort-change', params, params.$event)
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
const clearAllSortEvent = (params: any) => {
|
|
406
|
+
handleSortEvent(params)
|
|
407
|
+
$xeGrid.dispatchEvent('clear-all-sort', params, params.$event)
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
const handleFilterEvent = (params: any) => {
|
|
402
411
|
const $xeTable = refTable.value
|
|
403
412
|
const { proxyConfig } = props
|
|
404
413
|
const { computeFilterOpts } = $xeTable.getComputeMaps()
|
|
@@ -409,12 +418,21 @@ export default defineVxeComponent({
|
|
|
409
418
|
reactData.filterData = params.filterList
|
|
410
419
|
if (proxyConfig && isEnableConf(proxyOpts)) {
|
|
411
420
|
reactData.tablePage.currentPage = 1
|
|
412
|
-
|
|
413
|
-
|
|
421
|
+
$xeGrid.commitProxy('query').then((rest) => {
|
|
422
|
+
$xeGrid.dispatchEvent('proxy-query', rest, params.$event)
|
|
414
423
|
})
|
|
415
424
|
}
|
|
416
425
|
}
|
|
417
|
-
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
const filterChangeEvent: VxeTableEvents.FilterChange = (params) => {
|
|
429
|
+
handleFilterEvent(params)
|
|
430
|
+
$xeGrid.dispatchEvent('filter-change', params, params.$event)
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
const clearAllFilterEvent: any = (params: any) => {
|
|
434
|
+
handleFilterEvent(params)
|
|
435
|
+
$xeGrid.dispatchEvent('clear-all-filter', params, params.$event)
|
|
418
436
|
}
|
|
419
437
|
|
|
420
438
|
const submitFormEvent: VxeFormEvents.Submit = (params) => {
|
|
@@ -668,7 +686,7 @@ export default defineVxeComponent({
|
|
|
668
686
|
const { proxyConfig } = props
|
|
669
687
|
const tableProps = computeTableProps.value
|
|
670
688
|
const proxyOpts = computeProxyOpts.value
|
|
671
|
-
const tableOns = Object.assign({}, tableCompEvents)
|
|
689
|
+
const tableOns: any = Object.assign({}, tableCompEvents)
|
|
672
690
|
const emptySlot = slots.empty
|
|
673
691
|
const loadingSlot = slots.loading
|
|
674
692
|
const rowDragIconSlot = slots.rowDragIcon || slots['row-drag-icon']
|
|
@@ -676,9 +694,11 @@ export default defineVxeComponent({
|
|
|
676
694
|
if (proxyConfig && isEnableConf(proxyOpts)) {
|
|
677
695
|
if (proxyOpts.sort) {
|
|
678
696
|
tableOns.onSortChange = sortChangeEvent
|
|
697
|
+
tableOns.onClearAllSort = clearAllSortEvent
|
|
679
698
|
}
|
|
680
699
|
if (proxyOpts.filter) {
|
|
681
700
|
tableOns.onFilterChange = filterChangeEvent
|
|
701
|
+
tableOns.onClearAllFilter = clearAllFilterEvent
|
|
682
702
|
}
|
|
683
703
|
}
|
|
684
704
|
const slotObj: {
|
|
@@ -55,7 +55,8 @@ export default {
|
|
|
55
55
|
treeCrossDrag: 'فقط اسحب المستوى الأول',
|
|
56
56
|
treeDragChild: 'لا يمكن للآباء السحب إلى أطفالهم',
|
|
57
57
|
reqPlugin: '"{1}" لم يتم تثبيته على https://vxeui.com/other',
|
|
58
|
-
errMaxRow: 'تجاوز الحد الأقصى لصفوف البيانات المدعومة {0} ، قد يتسبب ذلك في حدوث خطأ'
|
|
58
|
+
errMaxRow: 'تجاوز الحد الأقصى لصفوف البيانات المدعومة {0} ، قد يتسبب ذلك في حدوث خطأ',
|
|
59
|
+
useNew: '不建议使用 {0},请使用 {1}'
|
|
59
60
|
},
|
|
60
61
|
table: {
|
|
61
62
|
emptyText: 'لا توجد بيانات حتى الآن',
|
|
@@ -55,7 +55,8 @@ export default {
|
|
|
55
55
|
treeCrossDrag: 'Ziehen Sie nur die erste Ebene',
|
|
56
56
|
treeDragChild: 'Eltern können nicht zu ihren eigenen Kindern ziehen',
|
|
57
57
|
reqPlugin: '"{1}" ist nicht unter https://vxeui.com/Otheriationation installiert',
|
|
58
|
-
errMaxRow: 'Wenn das maximal unterstützte Datenvolumen {0} Zeilen überschreitet, kann dies einen Fehler verursachen'
|
|
58
|
+
errMaxRow: 'Wenn das maximal unterstützte Datenvolumen {0} Zeilen überschreitet, kann dies einen Fehler verursachen',
|
|
59
|
+
useNew: '不建议使用 {0},请使用 {1}'
|
|
59
60
|
},
|
|
60
61
|
table: {
|
|
61
62
|
emptyText: 'Noch keine Daten',
|
|
@@ -55,7 +55,8 @@ export default {
|
|
|
55
55
|
treeCrossDrag: 'Only drag the first level',
|
|
56
56
|
treeDragChild: 'Parents cannot drag to their own children',
|
|
57
57
|
reqPlugin: '"{1}" is not installed at https://vxeui.com/other{0}/#/{1}/install',
|
|
58
|
-
errMaxRow: 'Exceeding the maximum supported data volume {0} rows, this may cause an error'
|
|
58
|
+
errMaxRow: 'Exceeding the maximum supported data volume {0} rows, this may cause an error',
|
|
59
|
+
useNew: 'It is not recommended to use {0}. Please use {1} instead.'
|
|
59
60
|
},
|
|
60
61
|
table: {
|
|
61
62
|
emptyText: 'No data yet',
|
|
@@ -55,7 +55,8 @@ export default {
|
|
|
55
55
|
treeCrossDrag: 'Solo arrastre el primer nivel',
|
|
56
56
|
treeDragChild: 'Los padres no pueden arrastrar a sus propios hijos',
|
|
57
57
|
reqPlugin: '"{1}" no está instalado en https://vxeui.com/other{0 /#/{1}/install',
|
|
58
|
-
errMaxRow: 'Al exceder las filas de volumen de datos máximos admitidos, esto puede causar un error'
|
|
58
|
+
errMaxRow: 'Al exceder las filas de volumen de datos máximos admitidos, esto puede causar un error',
|
|
59
|
+
useNew: '不建议使用 {0},请使用 {1}'
|
|
59
60
|
},
|
|
60
61
|
table: {
|
|
61
62
|
emptyText: 'Aún no hay datos',
|
|
@@ -55,7 +55,8 @@ export default {
|
|
|
55
55
|
treeCrossDrag: 'Faites seulement glisser le premier niveau',
|
|
56
56
|
treeDragChild: 'Les parents ne peuvent pas traîner à leurs propres enfants',
|
|
57
57
|
reqPlugin: "\"{1}\" n'est pas installé sur https://vxeui.com/other {0,/#/{1 }/install",
|
|
58
|
-
errMaxRow: 'Dépassant les lignes maximales du volume de données prises en charge {0}, cela peut entraîner une erreur'
|
|
58
|
+
errMaxRow: 'Dépassant les lignes maximales du volume de données prises en charge {0}, cela peut entraîner une erreur',
|
|
59
|
+
useNew: '不建议使用 {0},请使用 {1}'
|
|
59
60
|
},
|
|
60
61
|
table: {
|
|
61
62
|
emptyText: 'Pas encore de données',
|
|
@@ -55,7 +55,8 @@ export default {
|
|
|
55
55
|
treeCrossDrag: 'Csak húzza az első szintet',
|
|
56
56
|
treeDragChild: 'A szülők nem tudnak elhúzni a saját gyermekeiket',
|
|
57
57
|
reqPlugin: 'A "{1}" nincs telepítve a https://vxeui.com/other oldalon {0 }/#/ (1 }/install',
|
|
58
|
-
errMaxRow: 'A maximális támogatott adatmennyiség {0} sorok túllépése, ez hibát okozhat'
|
|
58
|
+
errMaxRow: 'A maximális támogatott adatmennyiség {0} sorok túllépése, ez hibát okozhat',
|
|
59
|
+
useNew: '不建议使用 {0},请使用 {1}'
|
|
59
60
|
},
|
|
60
61
|
table: {
|
|
61
62
|
emptyText: 'Még nincs adat',
|
|
@@ -55,7 +55,8 @@ export default {
|
|
|
55
55
|
treeCrossDrag: '只能拖拽第一层级',
|
|
56
56
|
treeDragChild: '父级不能拖拽到自己的子级中',
|
|
57
57
|
reqPlugin: '扩展插件未安装 "{1}" https://vxeui.com/other{0}/#/{1}/install',
|
|
58
|
-
errMaxRow: '超过支持的最大数据量 {0} 行,这可能会导致出现错误'
|
|
58
|
+
errMaxRow: '超过支持的最大数据量 {0} 行,这可能会导致出现错误',
|
|
59
|
+
useNew: '不建议使用 {0},请使用 {1}'
|
|
59
60
|
},
|
|
60
61
|
table: {
|
|
61
62
|
emptyText: '暂无数据',
|
|
@@ -55,7 +55,8 @@ export default {
|
|
|
55
55
|
treeCrossDrag: 'Hanya menyeret level pertama',
|
|
56
56
|
treeDragChild: 'Orang tua tidak bisa menyeret ke anak -anak mereka sendiri',
|
|
57
57
|
reqPlugin: '"{1}" tidak diinstal di https://vxeUi.com/other{ 0',
|
|
58
|
-
errMaxRow: 'Melebihi volume data yang didukung maksimum {0}, ini dapat menyebabkan kesalahan'
|
|
58
|
+
errMaxRow: 'Melebihi volume data yang didukung maksimum {0}, ini dapat menyebabkan kesalahan',
|
|
59
|
+
useNew: '不建议使用 {0},请使用 {1}'
|
|
59
60
|
},
|
|
60
61
|
table: {
|
|
61
62
|
emptyText: 'Belum ada data',
|
|
@@ -55,7 +55,8 @@ export default {
|
|
|
55
55
|
treeCrossDrag: 'Trascina solo il primo livello',
|
|
56
56
|
treeDragChild: 'I genitori non possono trascinare con i propri figli',
|
|
57
57
|
reqPlugin: '"{1}" non è installato su https://vxeui.com/other{0}/#/{1}/install',
|
|
58
|
-
errMaxRow: 'Superando il volume dei dati supportato massimo {0} righe, questo può causare un errore'
|
|
58
|
+
errMaxRow: 'Superando il volume dei dati supportato massimo {0} righe, questo può causare un errore',
|
|
59
|
+
useNew: '不建议使用 {0},请使用 {1}'
|
|
59
60
|
},
|
|
60
61
|
table: {
|
|
61
62
|
emptyText: 'Nessun dati ancora',
|
|
@@ -55,7 +55,8 @@ export default {
|
|
|
55
55
|
treeCrossDrag: '最初のレベルのみをドラッグします',
|
|
56
56
|
treeDragChild: '親は自分の子供にドラッグすることはできません',
|
|
57
57
|
reqPlugin: '「{1}」はhttps://vxeui.com/other {0 }/#/ {1 }/installにインストールされていません',
|
|
58
|
-
errMaxRow: 'サポートされている最大データボリューム{0}行を超えると、これによりエラーが発生する可能性があります'
|
|
58
|
+
errMaxRow: 'サポートされている最大データボリューム{0}行を超えると、これによりエラーが発生する可能性があります',
|
|
59
|
+
useNew: '不建议使用 {0},请使用 {1}'
|
|
59
60
|
},
|
|
60
61
|
table: {
|
|
61
62
|
emptyText: 'まだデータはありません',
|
|
@@ -55,7 +55,8 @@ export default {
|
|
|
55
55
|
treeCrossDrag: '첫 번째 레벨 만 드래그하십시오',
|
|
56
56
|
treeDragChild: '부모는 자신의 자녀에게 끌 수 없습니다',
|
|
57
57
|
reqPlugin: '"{1}"은 https://vxeui.com/other {0 }/#/1 }/install에 설치되지 않았습니다',
|
|
58
|
-
errMaxRow: '최대 지원되는 데이터 볼륨 {0} 행을 초과하면 오류가 발생할 수 있습니다.'
|
|
58
|
+
errMaxRow: '최대 지원되는 데이터 볼륨 {0} 행을 초과하면 오류가 발생할 수 있습니다.',
|
|
59
|
+
useNew: '不建议使用 {0},请使用 {1}'
|
|
59
60
|
},
|
|
60
61
|
table: {
|
|
61
62
|
emptyText: '아직 데이터가 없습니다',
|
|
@@ -55,7 +55,8 @@ export default {
|
|
|
55
55
|
treeCrossDrag: 'Hanya seret tahap pertama',
|
|
56
56
|
treeDragChild: 'Ibu bapa tidak boleh menyeret anak mereka sendiri',
|
|
57
57
|
reqPlugin: '"{1}" tidak dipasang di https://vxeui.com/other (0 )/#/ = (1 )/Install',
|
|
58
|
-
errMaxRow: 'Melebihi baris data yang disokong maksimum {0} baris, ini boleh menyebabkan ralat'
|
|
58
|
+
errMaxRow: 'Melebihi baris data yang disokong maksimum {0} baris, ini boleh menyebabkan ralat',
|
|
59
|
+
useNew: '不建议使用 {0},请使用 {1}'
|
|
59
60
|
},
|
|
60
61
|
table: {
|
|
61
62
|
emptyText: 'Belum ada data',
|
|
@@ -55,7 +55,8 @@ export default {
|
|
|
55
55
|
treeCrossDrag: 'Bare dra det første nivået',
|
|
56
56
|
treeDragChild: 'Foreldre kan ikke dra til sine egne barn',
|
|
57
57
|
reqPlugin: '"{1}" er ikke installert på http',
|
|
58
|
-
errMaxRow: 'Overskridende det maksimale støttede datavolumet {0} Rader, dette kan føre til en feil'
|
|
58
|
+
errMaxRow: 'Overskridende det maksimale støttede datavolumet {0} Rader, dette kan føre til en feil',
|
|
59
|
+
useNew: '不建议使用 {0},请使用 {1}'
|
|
59
60
|
},
|
|
60
61
|
table: {
|
|
61
62
|
emptyText: 'Ingen data ennå',
|
|
@@ -55,7 +55,8 @@ export default {
|
|
|
55
55
|
treeCrossDrag: 'Apenas arraste o primeiro nível',
|
|
56
56
|
treeDragChild: 'Os pais não podem arrastar para seus próprios filhos',
|
|
57
57
|
reqPlugin: '"{1}" não está instalado em https://vxeui.com/other {0a }/# {1age/install',
|
|
58
|
-
errMaxRow: 'Excedendo o volume máximo de dados suportado {0} linhas, isso pode causar um erro'
|
|
58
|
+
errMaxRow: 'Excedendo o volume máximo de dados suportado {0} linhas, isso pode causar um erro',
|
|
59
|
+
useNew: '不建议使用 {0},请使用 {1}'
|
|
59
60
|
},
|
|
60
61
|
table: {
|
|
61
62
|
emptyText: 'Ainda não há dados',
|
|
@@ -55,7 +55,8 @@ export default {
|
|
|
55
55
|
treeCrossDrag: 'Только перетащите первый уровень',
|
|
56
56
|
treeDragChild: 'Родители не могут тащить своих детей',
|
|
57
57
|
reqPlugin: '"{1}" не установлен по адресу https://vxeui.com/otherbe',
|
|
58
|
-
errMaxRow: 'Превышение максимального поддерживаемого объема данных {0} строк, это может вызвать ошибку'
|
|
58
|
+
errMaxRow: 'Превышение максимального поддерживаемого объема данных {0} строк, это может вызвать ошибку',
|
|
59
|
+
useNew: '不建议使用 {0},请使用 {1}'
|
|
59
60
|
},
|
|
60
61
|
table: {
|
|
61
62
|
emptyText: 'Нет данных пока',
|
|
@@ -55,7 +55,8 @@ export default {
|
|
|
55
55
|
treeCrossDrag: 'ลากระดับแรกเท่านั้น',
|
|
56
56
|
treeDragChild: 'พ่อแม่ไม่สามารถลากลูกของตัวเองได้',
|
|
57
57
|
reqPlugin: '"{1}" ไม่ได้ติดตั้งที่ https://vxeui.com/other {0}/#/{1}/install',
|
|
58
|
-
errMaxRow: 'เกินปริมาณข้อมูลที่รองรับสูงสุด {0} แถวซึ่งอาจทำให้เกิดข้อผิดพลาด'
|
|
58
|
+
errMaxRow: 'เกินปริมาณข้อมูลที่รองรับสูงสุด {0} แถวซึ่งอาจทำให้เกิดข้อผิดพลาด',
|
|
59
|
+
useNew: '不建议使用 {0},请使用 {1}'
|
|
59
60
|
},
|
|
60
61
|
table: {
|
|
61
62
|
emptyText: 'ยังไม่มีข้อมูล',
|
|
@@ -55,7 +55,8 @@ export default {
|
|
|
55
55
|
treeCrossDrag: '只能拖拽第一层级',
|
|
56
56
|
treeDragChild: '父级不能拖拽到自己的子级中',
|
|
57
57
|
reqPlugin: '扩展插件未安装 "{1}" https://vxeui.com/other{0}/#/{1}/install',
|
|
58
|
-
errMaxRow: '超过支持的最大数据量 {0} 行,这可能会导致出现错误'
|
|
58
|
+
errMaxRow: '超过支持的最大数据量 {0} 行,这可能会导致出现错误',
|
|
59
|
+
useNew: '不建议使用 {0},请使用 {1}'
|
|
59
60
|
},
|
|
60
61
|
table: {
|
|
61
62
|
emptyText: 'ھازىرچە ئۇچۇر يوق',
|
|
@@ -55,7 +55,8 @@ export default {
|
|
|
55
55
|
treeCrossDrag: 'Тільки перетягніть перший рівень',
|
|
56
56
|
treeDragChild: 'Батьки не можуть тягнути до своїх дітей',
|
|
57
57
|
reqPlugin: '"{1}" не встановлюється на https://vxeui.com/other інд.',
|
|
58
|
-
errMaxRow: 'Перевищення максимально підтримуваного обсягу даних {0} рядків це може спричинити помилку'
|
|
58
|
+
errMaxRow: 'Перевищення максимально підтримуваного обсягу даних {0} рядків це може спричинити помилку',
|
|
59
|
+
useNew: '不建议使用 {0},请使用 {1}'
|
|
59
60
|
},
|
|
60
61
|
table: {
|
|
61
62
|
emptyText: 'Ще немає даних',
|
|
@@ -55,7 +55,8 @@ export default {
|
|
|
55
55
|
treeCrossDrag: 'Faqat birinchi darajani torting',
|
|
56
56
|
treeDragChild: "Ota-onalar o'z farzandlariga sudrab ketolmaydilar",
|
|
57
57
|
reqPlugin: "\"{1}\" https://vxeui.com/oter{/#/#/#/install-da o'rnatilmagan",
|
|
58
|
-
errMaxRow: "Maksimal qo'llab-quvvatlanadigan ma'lumotlar hajmi {0} qatorlar hajmidan oshib ketishi mumkin, bu xatoga olib kelishi mumkin"
|
|
58
|
+
errMaxRow: "Maksimal qo'llab-quvvatlanadigan ma'lumotlar hajmi {0} qatorlar hajmidan oshib ketishi mumkin, bu xatoga olib kelishi mumkin",
|
|
59
|
+
useNew: '不建议使用 {0},请使用 {1}'
|
|
59
60
|
},
|
|
60
61
|
table: {
|
|
61
62
|
emptyText: "Hali ma'lumot yo'q",
|
|
@@ -55,7 +55,8 @@ export default {
|
|
|
55
55
|
treeCrossDrag: 'Chỉ kéo cấp độ đầu tiên',
|
|
56
56
|
treeDragChild: 'Cha mẹ không thể kéo đến con cái của họ',
|
|
57
57
|
reqPlugin: '"{1}" không được cài đặt tại https://vxeui.com/other/khác',
|
|
58
|
-
errMaxRow: 'Vượt quá khối lượng dữ liệu được hỗ trợ tối đa {0}, điều này có thể gây ra lỗi'
|
|
58
|
+
errMaxRow: 'Vượt quá khối lượng dữ liệu được hỗ trợ tối đa {0}, điều này có thể gây ra lỗi',
|
|
59
|
+
useNew: '不建议使用 {0},请使用 {1}'
|
|
59
60
|
},
|
|
60
61
|
table: {
|
|
61
62
|
emptyText: 'Chưa có dữ liệu',
|
|
@@ -55,7 +55,8 @@ export default {
|
|
|
55
55
|
treeCrossDrag: '只能拖拽第一層級',
|
|
56
56
|
treeDragChild: '父級不能拖拽到自己的子級中',
|
|
57
57
|
reqPlugin: '擴展插件未安裝 "{1}" https://vxeui.com/other{0}/#/{1}/install',
|
|
58
|
-
errMaxRow: '超過支持的最大數據量 {0} 行,這可能會導致出現錯誤'
|
|
58
|
+
errMaxRow: '超過支持的最大數據量 {0} 行,這可能會導致出現錯誤',
|
|
59
|
+
useNew: '不建议使用 {0},请使用 {1}'
|
|
59
60
|
},
|
|
60
61
|
table: {
|
|
61
62
|
emptyText: '暫無數據',
|
|
@@ -55,7 +55,8 @@ export default {
|
|
|
55
55
|
treeCrossDrag: '只能拖拽第一层级',
|
|
56
56
|
treeDragChild: '父级不能拖拽到自己的子级中',
|
|
57
57
|
reqPlugin: '扩展插件未安装 "{1}" https://vxeui.com/other{0}/#/{1}/install',
|
|
58
|
-
errMaxRow: '超过支持的最大数据量 {0} 行,这可能会导致出现错误'
|
|
58
|
+
errMaxRow: '超过支持的最大数据量 {0} 行,这可能会导致出现错误',
|
|
59
|
+
useNew: '不建议使用 {0},请使用 {1}'
|
|
59
60
|
},
|
|
60
61
|
table: {
|
|
61
62
|
emptyText: '暂无数据',
|
|
@@ -1420,16 +1420,23 @@ export default defineVxeComponent({
|
|
|
1420
1420
|
}
|
|
1421
1421
|
|
|
1422
1422
|
const handleSortEvent = (evnt: Event | null, sortConfs: VxeTableDefines.SortConfs | VxeTableDefines.SortConfs[], isUpdate?: boolean) => {
|
|
1423
|
+
const { tableFullColumn } = internalData
|
|
1423
1424
|
const sortOpts = computeSortOpts.value
|
|
1424
1425
|
const { multiple, remote, orders } = sortOpts
|
|
1425
1426
|
if (!XEUtils.isArray(sortConfs)) {
|
|
1426
1427
|
sortConfs = [sortConfs]
|
|
1427
1428
|
}
|
|
1428
1429
|
if (sortConfs && sortConfs.length) {
|
|
1430
|
+
const orderActiveMaps: Record<string, VxeTableDefines.ColumnInfo> = {}
|
|
1429
1431
|
if (!multiple) {
|
|
1430
1432
|
sortConfs = [sortConfs[0]]
|
|
1431
|
-
|
|
1433
|
+
tableFullColumn.forEach((column) => {
|
|
1434
|
+
if (column.order) {
|
|
1435
|
+
orderActiveMaps[column.id] = column
|
|
1436
|
+
}
|
|
1437
|
+
})
|
|
1432
1438
|
}
|
|
1439
|
+
const sortColMpps: Record<string, VxeTableDefines.ColumnInfo> = {}
|
|
1433
1440
|
let firstColumn: any = null
|
|
1434
1441
|
sortConfs.forEach((confs: any, index: number) => {
|
|
1435
1442
|
let { field, order } = confs
|
|
@@ -1448,8 +1455,16 @@ export default defineVxeComponent({
|
|
|
1448
1455
|
column.order = order
|
|
1449
1456
|
}
|
|
1450
1457
|
column.sortTime = Date.now() + index
|
|
1458
|
+
sortColMpps[column.id] = column
|
|
1451
1459
|
}
|
|
1452
1460
|
})
|
|
1461
|
+
if (!multiple) {
|
|
1462
|
+
XEUtils.each(orderActiveMaps, (oaCol: VxeTableDefines.ColumnInfo, oaId) => {
|
|
1463
|
+
if (!sortColMpps[oaId]) {
|
|
1464
|
+
oaCol.order = null
|
|
1465
|
+
}
|
|
1466
|
+
})
|
|
1467
|
+
}
|
|
1453
1468
|
if (isUpdate) {
|
|
1454
1469
|
if (!remote) {
|
|
1455
1470
|
$xeTable.handleTableData(true)
|
|
@@ -5887,8 +5902,8 @@ export default defineVxeComponent({
|
|
|
5887
5902
|
setSort (sortConfs, isUpdate) {
|
|
5888
5903
|
return handleSortEvent(null, sortConfs, isUpdate)
|
|
5889
5904
|
},
|
|
5890
|
-
setSortByEvent (evnt, sortConfs
|
|
5891
|
-
return handleSortEvent(evnt, sortConfs,
|
|
5905
|
+
setSortByEvent (evnt, sortConfs) {
|
|
5906
|
+
return handleSortEvent(evnt, sortConfs, true)
|
|
5892
5907
|
},
|
|
5893
5908
|
/**
|
|
5894
5909
|
* 清空指定列的排序条件
|
|
@@ -5916,6 +5931,7 @@ export default defineVxeComponent({
|
|
|
5916
5931
|
clearSortByEvent (evnt, fieldOrColumn) {
|
|
5917
5932
|
const { tableFullColumn } = internalData
|
|
5918
5933
|
const sortOpts = computeSortOpts.value
|
|
5934
|
+
const { multiple } = sortOpts
|
|
5919
5935
|
const sortCols: VxeTableDefines.ColumnInfo[] = []
|
|
5920
5936
|
let column: VxeTableDefines.ColumnInfo<any> | null = null
|
|
5921
5937
|
if (evnt) {
|
|
@@ -5935,11 +5951,18 @@ export default defineVxeComponent({
|
|
|
5935
5951
|
if (!sortOpts.remote) {
|
|
5936
5952
|
$xeTable.handleTableData(true)
|
|
5937
5953
|
}
|
|
5938
|
-
|
|
5954
|
+
|
|
5955
|
+
if (!multiple) {
|
|
5956
|
+
column = sortCols[0]
|
|
5957
|
+
}
|
|
5958
|
+
|
|
5959
|
+
if (column) {
|
|
5960
|
+
$xeTable.handleColumnSortEvent(evnt, column)
|
|
5961
|
+
}
|
|
5962
|
+
|
|
5963
|
+
if (multiple && sortCols.length) {
|
|
5939
5964
|
const params = { $table: $xeTable, $event: evnt, cols: sortCols, sortList: [] }
|
|
5940
5965
|
dispatchEvent('clear-all-sort', params, evnt)
|
|
5941
|
-
} else if (column) {
|
|
5942
|
-
$xeTable.handleColumnSortEvent(evnt, column)
|
|
5943
5966
|
}
|
|
5944
5967
|
}
|
|
5945
5968
|
return nextTick().then(() => {
|
|
@@ -5970,13 +5993,11 @@ export default defineVxeComponent({
|
|
|
5970
5993
|
}
|
|
5971
5994
|
return sortList
|
|
5972
5995
|
},
|
|
5973
|
-
setFilterByEvent (evnt, fieldOrColumn, options
|
|
5996
|
+
setFilterByEvent (evnt, fieldOrColumn, options) {
|
|
5974
5997
|
const column = handleFieldOrColumn($xeTable, fieldOrColumn)
|
|
5975
5998
|
if (column && column.filters) {
|
|
5976
5999
|
column.filters = toFilters(options || [])
|
|
5977
|
-
|
|
5978
|
-
return $xeTable.handleColumnConfirmFilter(column, evnt)
|
|
5979
|
-
}
|
|
6000
|
+
return $xeTable.handleColumnConfirmFilter(column, evnt)
|
|
5980
6001
|
}
|
|
5981
6002
|
return nextTick()
|
|
5982
6003
|
},
|
|
@@ -6020,6 +6041,7 @@ export default defineVxeComponent({
|
|
|
6020
6041
|
const { filterStore } = reactData
|
|
6021
6042
|
const { tableFullColumn } = internalData
|
|
6022
6043
|
const filterOpts = computeFilterOpts.value
|
|
6044
|
+
const { multiple } = filterOpts
|
|
6023
6045
|
const filterCols: VxeTableDefines.ColumnInfo[] = []
|
|
6024
6046
|
let column: VxeTableDefines.ColumnInfo<any> | null = null
|
|
6025
6047
|
if (fieldOrColumn) {
|
|
@@ -6042,19 +6064,49 @@ export default defineVxeComponent({
|
|
|
6042
6064
|
style: null,
|
|
6043
6065
|
options: [],
|
|
6044
6066
|
column: null,
|
|
6045
|
-
multiple: false,
|
|
6067
|
+
multiple: false, // 选项是覅多选
|
|
6046
6068
|
visible: false
|
|
6047
6069
|
})
|
|
6048
6070
|
}
|
|
6071
|
+
|
|
6049
6072
|
if (!filterOpts.remote) {
|
|
6050
6073
|
$xeTable.updateData()
|
|
6051
6074
|
}
|
|
6052
|
-
|
|
6075
|
+
|
|
6076
|
+
if (!multiple) {
|
|
6077
|
+
column = filterCols[0]
|
|
6078
|
+
}
|
|
6079
|
+
|
|
6080
|
+
if (column) {
|
|
6081
|
+
const filterList = () => $xeTable.getCheckedFilters()
|
|
6082
|
+
const values: any[] = []
|
|
6083
|
+
const datas: any[] = []
|
|
6084
|
+
column.filters.forEach((item: any) => {
|
|
6085
|
+
if (item.checked) {
|
|
6086
|
+
values.push(item.value)
|
|
6087
|
+
datas.push(item.data)
|
|
6088
|
+
}
|
|
6089
|
+
})
|
|
6090
|
+
const params = {
|
|
6091
|
+
$table: $xeTable,
|
|
6092
|
+
$event: evnt as Event,
|
|
6093
|
+
column,
|
|
6094
|
+
field: column.field,
|
|
6095
|
+
property: column.field,
|
|
6096
|
+
values,
|
|
6097
|
+
datas,
|
|
6098
|
+
filters: filterList,
|
|
6099
|
+
filterList
|
|
6100
|
+
}
|
|
6101
|
+
$xeTable.dispatchEvent('filter-change', params, evnt)
|
|
6102
|
+
$xeTable.dispatchEvent('clear-filter', params, evnt)
|
|
6103
|
+
}
|
|
6104
|
+
|
|
6105
|
+
if (multiple && filterCols.length) {
|
|
6053
6106
|
const params = { $table: $xeTable, $event: evnt, cols: filterCols, filterList: [] }
|
|
6054
6107
|
dispatchEvent('clear-all-filter', params, evnt)
|
|
6055
|
-
} else if (column) {
|
|
6056
|
-
$xeTable.dispatchEvent('clear-filter', { filterList: () => $xeTable.getCheckedFilters() }, evnt)
|
|
6057
6108
|
}
|
|
6109
|
+
|
|
6058
6110
|
return nextTick()
|
|
6059
6111
|
},
|
|
6060
6112
|
/**
|
package/packages/ui/index.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|