vxe-table 4.15.0-beta.1 → 4.15.0-beta.10
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 +88 -1
- 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/module/filter/hook.js +9 -22
- package/es/table/module/keyboard/hook.js +2 -2
- package/es/table/src/body.js +2 -2
- package/es/table/src/cell.js +5 -5
- package/es/table/src/footer.js +2 -3
- package/es/table/src/header.js +2 -2
- package/es/table/src/table.js +158 -37
- package/es/ui/index.js +2 -1
- package/es/ui/src/log.js +1 -1
- package/lib/grid/src/grid.js +96 -1
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/index.umd.js +142 -67
- 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/module/filter/hook.js +10 -33
- package/lib/table/module/filter/hook.min.js +1 -1
- package/lib/table/module/keyboard/hook.js +2 -2
- package/lib/table/module/keyboard/hook.min.js +1 -1
- package/lib/table/src/body.js +2 -2
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/cell.js +5 -4
- package/lib/table/src/cell.min.js +1 -1
- package/lib/table/src/footer.js +2 -3
- package/lib/table/src/footer.min.js +1 -1
- package/lib/table/src/header.js +2 -2
- package/lib/table/src/header.min.js +1 -1
- package/lib/table/src/table.js +18 -17
- 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 +90 -1
- 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/module/filter/hook.ts +10 -24
- package/packages/table/module/keyboard/hook.ts +2 -2
- package/packages/table/src/body.ts +2 -2
- package/packages/table/src/cell.ts +5 -5
- package/packages/table/src/footer.ts +2 -3
- package/packages/table/src/header.ts +2 -2
- package/packages/table/src/table.ts +168 -37
- package/packages/ui/index.ts +1 -0
- /package/es/{iconfont.1753080055966.ttf → iconfont.1753519951433.ttf} +0 -0
- /package/es/{iconfont.1753080055966.woff → iconfont.1753519951433.woff} +0 -0
- /package/es/{iconfont.1753080055966.woff2 → iconfont.1753519951433.woff2} +0 -0
- /package/lib/{iconfont.1753080055966.ttf → iconfont.1753519951433.ttf} +0 -0
- /package/lib/{iconfont.1753080055966.woff → iconfont.1753519951433.woff} +0 -0
- /package/lib/{iconfont.1753080055966.woff2 → iconfont.1753519951433.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.15.0-beta.
|
|
16
|
+
const version = exports.version = "4.15.0-beta.10";
|
|
17
17
|
_core.VxeUI.version = version;
|
|
18
18
|
_core.VxeUI.tableVersion = version;
|
|
19
19
|
_core.VxeUI.setConfig({
|
|
@@ -151,6 +151,7 @@ _core.VxeUI.setConfig({
|
|
|
151
151
|
// filterMethod: null,
|
|
152
152
|
// destroyOnClose: false,
|
|
153
153
|
// isEvery: false,
|
|
154
|
+
multiple: true,
|
|
154
155
|
showIcon: true
|
|
155
156
|
},
|
|
156
157
|
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.15.0-beta.
|
|
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.15.0-beta.10",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:{autoOptions:{isCalcHeader:!0,isCalcBody:!0,isCalcFooter:!0},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,showLoading:!0,showResponseMsg:!0,showActionMsg:!0,response:{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.15.0-beta.
|
|
11
|
+
const version = `table v${"4.15.0-beta.10"}`;
|
|
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.15.0-beta.
|
|
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.15.0-beta.10",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.15.0-beta.
|
|
3
|
+
"version": "4.15.0-beta.10",
|
|
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,
|
|
@@ -407,6 +407,25 @@ export default defineVxeComponent({
|
|
|
407
407
|
$xeGrid.dispatchEvent('sort-change', params, params.$event)
|
|
408
408
|
}
|
|
409
409
|
|
|
410
|
+
const clearAllSortEvent: VxeTableEvents.ClearAllSort = (params) => {
|
|
411
|
+
const $xeTable = refTable.value
|
|
412
|
+
const { proxyConfig } = props
|
|
413
|
+
const { computeSortOpts } = $xeTable.getComputeMaps()
|
|
414
|
+
const proxyOpts = computeProxyOpts.value
|
|
415
|
+
const sortOpts = computeSortOpts.value
|
|
416
|
+
// 如果是服务端排序
|
|
417
|
+
if (sortOpts.remote) {
|
|
418
|
+
reactData.sortData = params.sortList
|
|
419
|
+
if (proxyConfig && isEnableConf(proxyOpts)) {
|
|
420
|
+
reactData.tablePage.currentPage = 1
|
|
421
|
+
$xeGrid.commitProxy('query').then((rest) => {
|
|
422
|
+
$xeGrid.dispatchEvent('proxy-query', rest, params.$event)
|
|
423
|
+
})
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
$xeGrid.dispatchEvent('clear-all-sort', params, params.$event)
|
|
427
|
+
}
|
|
428
|
+
|
|
410
429
|
const filterChangeEvent: VxeTableEvents.FilterChange = (params) => {
|
|
411
430
|
const $xeTable = refTable.value
|
|
412
431
|
const { proxyConfig } = props
|
|
@@ -426,6 +445,25 @@ export default defineVxeComponent({
|
|
|
426
445
|
$xeGrid.dispatchEvent('filter-change', params, params.$event)
|
|
427
446
|
}
|
|
428
447
|
|
|
448
|
+
const clearAllFilterEvent: VxeTableEvents.ClearAllFilter = (params) => {
|
|
449
|
+
const $xeTable = refTable.value
|
|
450
|
+
const { proxyConfig } = props
|
|
451
|
+
const { computeFilterOpts } = $xeTable.getComputeMaps()
|
|
452
|
+
const proxyOpts = computeProxyOpts.value
|
|
453
|
+
const filterOpts = computeFilterOpts.value
|
|
454
|
+
// 如果是服务端过滤
|
|
455
|
+
if (filterOpts.remote) {
|
|
456
|
+
reactData.filterData = params.filterList
|
|
457
|
+
if (proxyConfig && isEnableConf(proxyOpts)) {
|
|
458
|
+
reactData.tablePage.currentPage = 1
|
|
459
|
+
$xeGrid.commitProxy('query').then((rest) => {
|
|
460
|
+
$xeGrid.dispatchEvent('proxy-query', rest, params.$event)
|
|
461
|
+
})
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
$xeGrid.dispatchEvent('clear-all-filter', params, params.$event)
|
|
465
|
+
}
|
|
466
|
+
|
|
429
467
|
const submitFormEvent: VxeFormEvents.Submit = (params) => {
|
|
430
468
|
const { proxyConfig } = props
|
|
431
469
|
const proxyOpts = computeProxyOpts.value
|
|
@@ -686,9 +724,11 @@ export default defineVxeComponent({
|
|
|
686
724
|
if (proxyConfig && isEnableConf(proxyOpts)) {
|
|
687
725
|
if (proxyOpts.sort) {
|
|
688
726
|
tableOns.onSortChange = sortChangeEvent
|
|
727
|
+
tableOns.onClearAllSort = clearAllSortEvent
|
|
689
728
|
}
|
|
690
729
|
if (proxyOpts.filter) {
|
|
691
730
|
tableOns.onFilterChange = filterChangeEvent
|
|
731
|
+
tableOns.onClearAllFilter = clearAllFilterEvent
|
|
692
732
|
}
|
|
693
733
|
}
|
|
694
734
|
const slotObj: {
|
|
@@ -1267,6 +1307,55 @@ export default defineVxeComponent({
|
|
|
1267
1307
|
}, { children: 'children' })
|
|
1268
1308
|
return XEUtils.isUndefined(itemIndex) ? itemList : itemList[itemIndex]
|
|
1269
1309
|
},
|
|
1310
|
+
resetForm () {
|
|
1311
|
+
const $form = refForm.value
|
|
1312
|
+
if ($form) {
|
|
1313
|
+
return $form.reset()
|
|
1314
|
+
}
|
|
1315
|
+
return nextTick()
|
|
1316
|
+
},
|
|
1317
|
+
validateForm () {
|
|
1318
|
+
const $form = refForm.value
|
|
1319
|
+
if ($form) {
|
|
1320
|
+
return $form.validate()
|
|
1321
|
+
}
|
|
1322
|
+
return nextTick()
|
|
1323
|
+
},
|
|
1324
|
+
validateFormField (field) {
|
|
1325
|
+
const $form = refForm.value
|
|
1326
|
+
if ($form) {
|
|
1327
|
+
return $form.validateField(field)
|
|
1328
|
+
}
|
|
1329
|
+
return nextTick()
|
|
1330
|
+
},
|
|
1331
|
+
clearFormValidate (field) {
|
|
1332
|
+
const $form = refForm.value
|
|
1333
|
+
if ($form) {
|
|
1334
|
+
return $form.clearValidate(field)
|
|
1335
|
+
}
|
|
1336
|
+
return nextTick()
|
|
1337
|
+
},
|
|
1338
|
+
homePage () {
|
|
1339
|
+
const $pager = refPager.value
|
|
1340
|
+
if ($pager) {
|
|
1341
|
+
return $pager.homePage()
|
|
1342
|
+
}
|
|
1343
|
+
return nextTick()
|
|
1344
|
+
},
|
|
1345
|
+
endPage () {
|
|
1346
|
+
const $pager = refPager.value
|
|
1347
|
+
if ($pager) {
|
|
1348
|
+
return $pager.endPage()
|
|
1349
|
+
}
|
|
1350
|
+
return nextTick()
|
|
1351
|
+
},
|
|
1352
|
+
jumpPage (currentPage) {
|
|
1353
|
+
const $pager = refPager.value
|
|
1354
|
+
if ($pager) {
|
|
1355
|
+
return $pager.jumpPage(currentPage)
|
|
1356
|
+
}
|
|
1357
|
+
return nextTick()
|
|
1358
|
+
},
|
|
1270
1359
|
getProxyInfo () {
|
|
1271
1360
|
const $xeTable = refTable.value
|
|
1272
1361
|
if (props.proxyConfig) {
|
|
@@ -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: '暂无数据',
|
|
@@ -5,7 +5,7 @@ import { toFilters, handleFieldOrColumn, getRefElem } from '../../src/util'
|
|
|
5
5
|
import { toCssUnit, triggerEvent, getDomNode } from '../../../ui/src/dom'
|
|
6
6
|
import { isEnableConf } from '../../../ui/src/utils'
|
|
7
7
|
|
|
8
|
-
import type { TableFilterMethods, TableFilterPrivateMethods } from '../../../../types'
|
|
8
|
+
import type { TableFilterMethods, TableFilterPrivateMethods, VxeTableDefines } from '../../../../types'
|
|
9
9
|
|
|
10
10
|
const { renderer, hooks } = VxeUI
|
|
11
11
|
|
|
@@ -72,7 +72,7 @@ hooks.add('tableFilterModule', {
|
|
|
72
72
|
* @param {ColumnInfo} column 列配置
|
|
73
73
|
* @param {Object} params 参数
|
|
74
74
|
*/
|
|
75
|
-
triggerFilterEvent (evnt: MouseEvent, column, params) {
|
|
75
|
+
triggerFilterEvent (evnt: MouseEvent, column: VxeTableDefines.ColumnInfo, params) {
|
|
76
76
|
const { initStore, filterStore } = reactData
|
|
77
77
|
const { elemStore } = internalData
|
|
78
78
|
if (filterStore.column === column && filterStore.visible) {
|
|
@@ -84,27 +84,9 @@ hooks.add('tableFilterModule', {
|
|
|
84
84
|
const { transfer } = filterOpts
|
|
85
85
|
const tableRect = el.getBoundingClientRect()
|
|
86
86
|
const btnElem = evnt.currentTarget as HTMLDivElement
|
|
87
|
-
|
|
88
|
-
const compConf = isEnableConf(filterRender) ? renderer.get(filterRender.name) : null
|
|
89
|
-
const frMethod = column.filterRecoverMethod || (compConf ? (compConf.tableFilterRecoverMethod || compConf.filterRecoverMethod) : null)
|
|
87
|
+
$xeTable.handleFilterOptions(column)
|
|
90
88
|
internalData._currFilterParams = params
|
|
91
|
-
|
|
92
|
-
multiple: filterMultiple,
|
|
93
|
-
options: filters,
|
|
94
|
-
column,
|
|
95
|
-
style: null
|
|
96
|
-
})
|
|
97
|
-
// 复原状态
|
|
98
|
-
filterStore.options.forEach((option: any) => {
|
|
99
|
-
const { _checked, checked } = option
|
|
100
|
-
option._checked = checked
|
|
101
|
-
if (!checked && _checked !== checked) {
|
|
102
|
-
if (frMethod) {
|
|
103
|
-
frMethod({ option, column, $table: $xeTable })
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
})
|
|
107
|
-
this.checkFilterOptions()
|
|
89
|
+
filterStore.style = null
|
|
108
90
|
filterStore.visible = true
|
|
109
91
|
initStore.filter = true
|
|
110
92
|
nextTick(() => {
|
|
@@ -271,12 +253,16 @@ hooks.add('tableFilterModule', {
|
|
|
271
253
|
* @param {Array} options 选项
|
|
272
254
|
*/
|
|
273
255
|
setFilter (fieldOrColumn, options, isUpdate) {
|
|
256
|
+
const { filterStore } = reactData
|
|
274
257
|
const column = handleFieldOrColumn($xeTable, fieldOrColumn)
|
|
275
258
|
if (column && column.filters) {
|
|
276
259
|
column.filters = toFilters(options || [])
|
|
277
260
|
if (isUpdate) {
|
|
278
|
-
|
|
279
|
-
|
|
261
|
+
return $xeTable.handleColumnConfirmFilter(column, null)
|
|
262
|
+
} else {
|
|
263
|
+
if (filterStore.visible) {
|
|
264
|
+
$xeTable.handleFilterOptions(column)
|
|
265
|
+
}
|
|
280
266
|
}
|
|
281
267
|
}
|
|
282
268
|
return nextTick()
|
|
@@ -268,8 +268,8 @@ hooks.add('tableKeyboardModule', {
|
|
|
268
268
|
const checkboxOpts = computeCheckboxOpts.value
|
|
269
269
|
const mouseOpts = computeMouseOpts.value
|
|
270
270
|
const editOpts = computeEditOpts.value
|
|
271
|
-
if (mouseConfig && mouseOpts.area && $xeTable.
|
|
272
|
-
return $xeTable.
|
|
271
|
+
if (mouseConfig && mouseOpts.area && $xeTable.triggerCellAreaModownEvent) {
|
|
272
|
+
return $xeTable.triggerCellAreaModownEvent(evnt, params)
|
|
273
273
|
} else {
|
|
274
274
|
if (checkboxConfig && checkboxOpts.range) {
|
|
275
275
|
handleCheckboxRangeEvent(evnt, params)
|
|
@@ -140,7 +140,7 @@ export default defineVxeComponent({
|
|
|
140
140
|
const _columnIndex = colRest._index
|
|
141
141
|
const isEdit = isEnableConf(editRender)
|
|
142
142
|
const resizeHeight = resizeHeightFlag ? rowRest.resizeHeight : 0
|
|
143
|
-
let fixedHiddenColumn = fixedType ? column.fixed !== fixedType : column.fixed
|
|
143
|
+
let fixedHiddenColumn = overflowX && (fixedType ? column.fixed !== fixedType : !!column.fixed)
|
|
144
144
|
const isCellPadding = XEUtils.eqNull(padding) ? (allPadding === null ? cellOpts.padding : allPadding) : padding
|
|
145
145
|
const cellOverflow = XEUtils.eqNull(showOverflow) ? allShowOverflow : showOverflow
|
|
146
146
|
const showEllipsis = cellOverflow === 'ellipsis'
|
|
@@ -291,7 +291,7 @@ export default defineVxeComponent({
|
|
|
291
291
|
const isAutoCellWidth = !column.resizeWidth && (column.minWidth === 'auto' || column.width === 'auto')
|
|
292
292
|
|
|
293
293
|
let isVNPreEmptyStatus = false
|
|
294
|
-
if (!isMergeCell) {
|
|
294
|
+
if (overflowX && !isMergeCell) {
|
|
295
295
|
if (!dragRow || getRowid($xeTable, dragRow) !== rowid) {
|
|
296
296
|
if (scrollYLoad && !treeConfig && !virtualYOpts.immediate && (_rowIndex < scrollYStore.visibleStartIndex - scrollYStore.preloadSize || _rowIndex > scrollYStore.visibleEndIndex + scrollYStore.preloadSize)) {
|
|
297
297
|
isVNPreEmptyStatus = true
|
|
@@ -419,7 +419,7 @@ export const Cell = {
|
|
|
419
419
|
const { computeAggregateOpts } = $table.getComputeMaps()
|
|
420
420
|
const aggregateOpts = computeAggregateOpts.value
|
|
421
421
|
const { mode, showTotal, totalMethod, countFields, contentMethod, mapChildrenField } = aggregateOpts
|
|
422
|
-
const
|
|
422
|
+
const aggCalcMethod = aggregateOpts.calcValuesMethod || aggregateOpts.countMethod || aggregateOpts.aggregateMethod
|
|
423
423
|
const groupField = aggRow.groupField
|
|
424
424
|
const groupContent = aggRow.groupContent
|
|
425
425
|
const childList = mapChildrenField ? (aggRow[mapChildrenField] || []) : []
|
|
@@ -452,9 +452,9 @@ export const Cell = {
|
|
|
452
452
|
} else if ($table.getPivotTableAggregateCellAggValue) {
|
|
453
453
|
cellValue = $table.getPivotTableAggregateCellAggValue(params)
|
|
454
454
|
} else if (aggFunc === true || (countFields && countFields.includes(field))) {
|
|
455
|
-
if (
|
|
455
|
+
if (aggCalcMethod) {
|
|
456
456
|
ctParams.aggValue = childCount
|
|
457
|
-
cellValue = `${
|
|
457
|
+
cellValue = `${aggCalcMethod(ctParams)}`
|
|
458
458
|
}
|
|
459
459
|
}
|
|
460
460
|
} else {
|
|
@@ -508,14 +508,14 @@ export const Cell = {
|
|
|
508
508
|
const { rowGroupExpandedFlag } = tableReactData
|
|
509
509
|
const { rowGroupExpandedMaps } = tableInternalData
|
|
510
510
|
const aggregateOpts = computeAggregateOpts.value
|
|
511
|
-
const { padding, indent } = aggregateOpts
|
|
511
|
+
const { mode, padding, indent } = aggregateOpts
|
|
512
512
|
const rowid = getRowid($table, row)
|
|
513
513
|
const isExpand = !!rowGroupExpandedFlag && !!rowGroupExpandedMaps[rowid]
|
|
514
514
|
return h('div', {
|
|
515
515
|
class: ['vxe-row-group--tree-node', {
|
|
516
516
|
'is--expanded': isExpand
|
|
517
517
|
}],
|
|
518
|
-
style: padding && indent
|
|
518
|
+
style: mode !== 'column' && padding && indent
|
|
519
519
|
? {
|
|
520
520
|
paddingLeft: `${level * indent}px`
|
|
521
521
|
}
|