vxe-table 4.13.46 → 4.13.47

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.
Files changed (148) hide show
  1. package/es/grid/src/grid.js +1 -1
  2. package/es/locale/lang/ar-EG.js +9 -0
  3. package/es/locale/lang/de-DE.js +9 -0
  4. package/es/locale/lang/en-US.js +9 -0
  5. package/es/locale/lang/es-ES.js +9 -0
  6. package/es/locale/lang/fr-FR.js +9 -0
  7. package/es/locale/lang/hu-HU.js +9 -0
  8. package/es/locale/lang/hy-AM.js +9 -0
  9. package/es/locale/lang/id-ID.js +9 -0
  10. package/es/locale/lang/it-IT.js +9 -0
  11. package/es/locale/lang/ja-JP.js +9 -0
  12. package/es/locale/lang/ko-KR.js +9 -0
  13. package/es/locale/lang/ms-MY.js +9 -0
  14. package/es/locale/lang/nb-NO.js +9 -0
  15. package/es/locale/lang/pt-BR.js +9 -0
  16. package/es/locale/lang/ru-RU.js +9 -0
  17. package/es/locale/lang/th-TH.js +9 -0
  18. package/es/locale/lang/ug-CN.js +9 -0
  19. package/es/locale/lang/uk-UA.js +9 -0
  20. package/es/locale/lang/uz-UZ.js +9 -0
  21. package/es/locale/lang/vi-VN.js +9 -0
  22. package/es/locale/lang/zh-CHT.js +9 -0
  23. package/es/locale/lang/zh-CN.js +9 -0
  24. package/es/style.css +1 -1
  25. package/es/table/module/custom/hook.js +20 -5
  26. package/es/table/module/custom/panel.js +26 -12
  27. package/es/table/src/columnInfo.js +1 -0
  28. package/es/table/src/table.js +44 -5
  29. package/es/ui/index.js +6 -5
  30. package/es/ui/src/log.js +1 -1
  31. package/lib/grid/src/grid.js +1 -1
  32. package/lib/grid/src/grid.min.js +1 -1
  33. package/lib/index.umd.js +73 -35
  34. package/lib/index.umd.min.js +1 -1
  35. package/lib/locale/lang/ar-EG.js +9 -0
  36. package/lib/locale/lang/ar-EG.min.js +1 -1
  37. package/lib/locale/lang/ar-EG.umd.js +9 -0
  38. package/lib/locale/lang/de-DE.js +9 -0
  39. package/lib/locale/lang/de-DE.min.js +1 -1
  40. package/lib/locale/lang/de-DE.umd.js +9 -0
  41. package/lib/locale/lang/en-US.js +9 -0
  42. package/lib/locale/lang/en-US.min.js +1 -1
  43. package/lib/locale/lang/en-US.umd.js +9 -0
  44. package/lib/locale/lang/es-ES.js +9 -0
  45. package/lib/locale/lang/es-ES.min.js +1 -1
  46. package/lib/locale/lang/es-ES.umd.js +9 -0
  47. package/lib/locale/lang/fr-FR.js +9 -0
  48. package/lib/locale/lang/fr-FR.min.js +1 -1
  49. package/lib/locale/lang/fr-FR.umd.js +9 -0
  50. package/lib/locale/lang/hu-HU.js +9 -0
  51. package/lib/locale/lang/hu-HU.min.js +1 -1
  52. package/lib/locale/lang/hu-HU.umd.js +9 -0
  53. package/lib/locale/lang/hy-AM.js +9 -0
  54. package/lib/locale/lang/hy-AM.min.js +1 -1
  55. package/lib/locale/lang/hy-AM.umd.js +9 -0
  56. package/lib/locale/lang/id-ID.js +9 -0
  57. package/lib/locale/lang/id-ID.min.js +1 -1
  58. package/lib/locale/lang/id-ID.umd.js +9 -0
  59. package/lib/locale/lang/it-IT.js +9 -0
  60. package/lib/locale/lang/it-IT.min.js +1 -1
  61. package/lib/locale/lang/it-IT.umd.js +9 -0
  62. package/lib/locale/lang/ja-JP.js +9 -0
  63. package/lib/locale/lang/ja-JP.min.js +1 -1
  64. package/lib/locale/lang/ja-JP.umd.js +9 -0
  65. package/lib/locale/lang/ko-KR.js +9 -0
  66. package/lib/locale/lang/ko-KR.min.js +1 -1
  67. package/lib/locale/lang/ko-KR.umd.js +9 -0
  68. package/lib/locale/lang/ms-MY.js +9 -0
  69. package/lib/locale/lang/ms-MY.min.js +1 -1
  70. package/lib/locale/lang/ms-MY.umd.js +9 -0
  71. package/lib/locale/lang/nb-NO.js +9 -0
  72. package/lib/locale/lang/nb-NO.min.js +1 -1
  73. package/lib/locale/lang/nb-NO.umd.js +9 -0
  74. package/lib/locale/lang/pt-BR.js +9 -0
  75. package/lib/locale/lang/pt-BR.min.js +1 -1
  76. package/lib/locale/lang/pt-BR.umd.js +9 -0
  77. package/lib/locale/lang/ru-RU.js +9 -0
  78. package/lib/locale/lang/ru-RU.min.js +1 -1
  79. package/lib/locale/lang/ru-RU.umd.js +9 -0
  80. package/lib/locale/lang/th-TH.js +9 -0
  81. package/lib/locale/lang/th-TH.min.js +1 -1
  82. package/lib/locale/lang/th-TH.umd.js +9 -0
  83. package/lib/locale/lang/ug-CN.js +9 -0
  84. package/lib/locale/lang/ug-CN.min.js +1 -1
  85. package/lib/locale/lang/ug-CN.umd.js +9 -0
  86. package/lib/locale/lang/uk-UA.js +9 -0
  87. package/lib/locale/lang/uk-UA.min.js +1 -1
  88. package/lib/locale/lang/uk-UA.umd.js +9 -0
  89. package/lib/locale/lang/uz-UZ.js +9 -0
  90. package/lib/locale/lang/uz-UZ.min.js +1 -1
  91. package/lib/locale/lang/uz-UZ.umd.js +9 -0
  92. package/lib/locale/lang/vi-VN.js +9 -0
  93. package/lib/locale/lang/vi-VN.min.js +1 -1
  94. package/lib/locale/lang/vi-VN.umd.js +9 -0
  95. package/lib/locale/lang/zh-CHT.js +9 -0
  96. package/lib/locale/lang/zh-CHT.min.js +1 -1
  97. package/lib/locale/lang/zh-CHT.umd.js +9 -0
  98. package/lib/locale/lang/zh-CN.js +9 -0
  99. package/lib/locale/lang/zh-CN.min.js +1 -1
  100. package/lib/locale/lang/zh-CN.umd.js +9 -0
  101. package/lib/style.css +1 -1
  102. package/lib/table/module/custom/hook.js +20 -5
  103. package/lib/table/module/custom/hook.min.js +1 -1
  104. package/lib/table/module/custom/panel.js +25 -13
  105. package/lib/table/module/custom/panel.min.js +1 -1
  106. package/lib/table/src/columnInfo.js +1 -0
  107. package/lib/table/src/columnInfo.min.js +1 -1
  108. package/lib/table/src/table.js +10 -10
  109. package/lib/table/src/table.min.js +1 -1
  110. package/lib/ui/index.js +6 -5
  111. package/lib/ui/index.min.js +1 -1
  112. package/lib/ui/src/log.js +1 -1
  113. package/lib/ui/src/log.min.js +1 -1
  114. package/package.json +1 -1
  115. package/packages/grid/src/grid.ts +1 -1
  116. package/packages/locale/lang/ar-EG.ts +9 -0
  117. package/packages/locale/lang/de-DE.ts +9 -0
  118. package/packages/locale/lang/en-US.ts +9 -0
  119. package/packages/locale/lang/es-ES.ts +9 -0
  120. package/packages/locale/lang/fr-FR.ts +9 -0
  121. package/packages/locale/lang/hu-HU.ts +9 -0
  122. package/packages/locale/lang/hy-AM.ts +9 -0
  123. package/packages/locale/lang/id-ID.ts +9 -0
  124. package/packages/locale/lang/it-IT.ts +9 -0
  125. package/packages/locale/lang/ja-JP.ts +9 -0
  126. package/packages/locale/lang/ko-KR.ts +9 -0
  127. package/packages/locale/lang/ms-MY.ts +9 -0
  128. package/packages/locale/lang/nb-NO.ts +9 -0
  129. package/packages/locale/lang/pt-BR.ts +9 -0
  130. package/packages/locale/lang/ru-RU.ts +9 -0
  131. package/packages/locale/lang/th-TH.ts +9 -0
  132. package/packages/locale/lang/ug-CN.ts +9 -0
  133. package/packages/locale/lang/uk-UA.ts +9 -0
  134. package/packages/locale/lang/uz-UZ.ts +9 -0
  135. package/packages/locale/lang/vi-VN.ts +9 -0
  136. package/packages/locale/lang/zh-CHT.ts +9 -0
  137. package/packages/locale/lang/zh-CN.ts +9 -0
  138. package/packages/table/module/custom/hook.ts +18 -5
  139. package/packages/table/module/custom/panel.ts +25 -12
  140. package/packages/table/src/columnInfo.ts +1 -0
  141. package/packages/table/src/table.ts +45 -5
  142. package/packages/ui/index.ts +5 -4
  143. /package/es/{iconfont.1750660623154.ttf → iconfont.1750732182259.ttf} +0 -0
  144. /package/es/{iconfont.1750660623154.woff → iconfont.1750732182259.woff} +0 -0
  145. /package/es/{iconfont.1750660623154.woff2 → iconfont.1750732182259.woff2} +0 -0
  146. /package/lib/{iconfont.1750660623154.ttf → iconfont.1750732182259.ttf} +0 -0
  147. /package/lib/{iconfont.1750660623154.woff → iconfont.1750732182259.woff} +0 -0
  148. /package/lib/{iconfont.1750660623154.woff2 → iconfont.1750732182259.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.46";
16
+ const version = exports.version = "4.13.47";
17
17
  _core.VxeUI.version = version;
18
18
  _core.VxeUI.tableVersion = version;
19
19
  _core.VxeUI.setConfig({
@@ -115,6 +115,7 @@ _core.VxeUI.setConfig({
115
115
  // rowGroup: false,
116
116
  // aggFunc: false
117
117
  },
118
+ // autoAggGroupValues: false,
118
119
  // checkMethod () {},
119
120
  modalOptions: {
120
121
  showMaximize: true,
@@ -325,10 +326,10 @@ _core.VxeUI.setIcon({
325
326
  TABLE_DRAG_DISABLED: iconPrefix + 'no-drop',
326
327
  TABLE_ROW_GROUP_OPEN: iconPrefix + 'arrow-right rotate90',
327
328
  TABLE_ROW_GROUP_CLOSE: iconPrefix + 'arrow-right',
328
- TABLE_AGGREGATION_GROUPING: iconPrefix + 'grouping',
329
- TABLE_AGGREGATION_VALUES: iconPrefix + 'values',
330
- TABLE_AGGREGATION_SORT: iconPrefix + 'drag-handle',
331
- TABLE_AGGREGATION_DELETE: iconPrefix + 'close',
329
+ TABLE_AGGREGATE_GROUPING: iconPrefix + 'grouping',
330
+ TABLE_AGGREGATE_VALUES: iconPrefix + 'values',
331
+ TABLE_AGGREGATE_SORT: iconPrefix + 'drag-handle',
332
+ TABLE_AGGREGATE_DELETE: iconPrefix + 'close',
332
333
  // toolbar
333
334
  TOOLBAR_TOOLS_REFRESH: iconPrefix + 'repeat',
334
335
  TOOLBAR_TOOLS_REFRESH_LOADING: iconPrefix + 'repeat roll',
@@ -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.46",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:{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},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_AGGREGATION_GROUPING:iconPrefix+"grouping",TABLE_AGGREGATION_VALUES:iconPrefix+"values",TABLE_AGGREGATION_SORT:iconPrefix+"drag-handle",TABLE_AGGREGATION_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;
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.47",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:{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},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.46"}`;
11
+ const version = `table v${"4.13.47"}`;
12
12
  const warnLog = exports.warnLog = log.create('warn', version);
13
13
  const errLog = exports.errLog = log.create('error', version);
@@ -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.46",warnLog=exports.warnLog=log.create("warn",version),errLog=exports.errLog=log.create("error",version);
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.47",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.46",
3
+ "version": "4.13.47",
4
4
  "description": "一个基于 vue 的 PC 端表格组件,支持增删改查、虚拟树、拖拽排序,懒加载、快捷菜单、数据校验、树形结构、打印、导入导出、自定义模板、渲染器、JSON 配置式...",
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', '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', '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']
22
22
 
23
23
  const gridComponentEmits: VxeGridEmits = [
24
24
  ...tableComponentEmits,
@@ -566,6 +566,15 @@ export default {
566
566
  groupPlaceholder: '拖至此处进行分组',
567
567
  valuesPlaceholder: '拖至此处进行聚合',
568
568
  dragExistCol: '该列已存在'
569
+ },
570
+ aggFuncs: {
571
+ sum: '求和',
572
+ count: '计数',
573
+ avg: '平均值',
574
+ min: '最小值',
575
+ max: '最大值',
576
+ first: '首个值',
577
+ last: '末尾值'
569
578
  }
570
579
  },
571
580
  filterComplexInput: {
@@ -566,6 +566,15 @@ export default {
566
566
  groupPlaceholder: '拖至此处进行分组',
567
567
  valuesPlaceholder: '拖至此处进行聚合',
568
568
  dragExistCol: '该列已存在'
569
+ },
570
+ aggFuncs: {
571
+ sum: '求和',
572
+ count: '计数',
573
+ avg: '平均值',
574
+ min: '最小值',
575
+ max: '最大值',
576
+ first: '首个值',
577
+ last: '末尾值'
569
578
  }
570
579
  },
571
580
  filterComplexInput: {
@@ -566,6 +566,15 @@ export default {
566
566
  groupPlaceholder: 'Drag here to set row groups',
567
567
  valuesPlaceholder: 'Drag here to aggregate',
568
568
  dragExistCol: 'The column already exists'
569
+ },
570
+ aggFuncs: {
571
+ sum: 'Sum',
572
+ count: 'Count',
573
+ avg: 'Avg',
574
+ min: 'Min',
575
+ max: 'Max',
576
+ first: 'First',
577
+ last: 'Last'
569
578
  }
570
579
  },
571
580
  filterComplexInput: {
@@ -566,6 +566,15 @@ export default {
566
566
  groupPlaceholder: '拖至此处进行分组',
567
567
  valuesPlaceholder: '拖至此处进行聚合',
568
568
  dragExistCol: '该列已存在'
569
+ },
570
+ aggFuncs: {
571
+ sum: '求和',
572
+ count: '计数',
573
+ avg: '平均值',
574
+ min: '最小值',
575
+ max: '最大值',
576
+ first: '首个值',
577
+ last: '末尾值'
569
578
  }
570
579
  },
571
580
  filterComplexInput: {
@@ -566,6 +566,15 @@ export default {
566
566
  groupPlaceholder: '拖至此处进行分组',
567
567
  valuesPlaceholder: '拖至此处进行聚合',
568
568
  dragExistCol: '该列已存在'
569
+ },
570
+ aggFuncs: {
571
+ sum: '求和',
572
+ count: '计数',
573
+ avg: '平均值',
574
+ min: '最小值',
575
+ max: '最大值',
576
+ first: '首个值',
577
+ last: '末尾值'
569
578
  }
570
579
  },
571
580
  filterComplexInput: {
@@ -566,6 +566,15 @@ export default {
566
566
  groupPlaceholder: '拖至此处进行分组',
567
567
  valuesPlaceholder: '拖至此处进行聚合',
568
568
  dragExistCol: '该列已存在'
569
+ },
570
+ aggFuncs: {
571
+ sum: '求和',
572
+ count: '计数',
573
+ avg: '平均值',
574
+ min: '最小值',
575
+ max: '最大值',
576
+ first: '首个值',
577
+ last: '末尾值'
569
578
  }
570
579
  },
571
580
  filterComplexInput: {
@@ -566,6 +566,15 @@ export default {
566
566
  groupPlaceholder: '拖至此处进行分组',
567
567
  valuesPlaceholder: '拖至此处进行聚合',
568
568
  dragExistCol: '该列已存在'
569
+ },
570
+ aggFuncs: {
571
+ sum: '求和',
572
+ count: '计数',
573
+ avg: '平均值',
574
+ min: '最小值',
575
+ max: '最大值',
576
+ first: '首个值',
577
+ last: '末尾值'
569
578
  }
570
579
  },
571
580
  filterComplexInput: {
@@ -566,6 +566,15 @@ export default {
566
566
  groupPlaceholder: '拖至此处进行分组',
567
567
  valuesPlaceholder: '拖至此处进行聚合',
568
568
  dragExistCol: '该列已存在'
569
+ },
570
+ aggFuncs: {
571
+ sum: '求和',
572
+ count: '计数',
573
+ avg: '平均值',
574
+ min: '最小值',
575
+ max: '最大值',
576
+ first: '首个值',
577
+ last: '末尾值'
569
578
  }
570
579
  },
571
580
  filterComplexInput: {
@@ -566,6 +566,15 @@ export default {
566
566
  groupPlaceholder: '拖至此处进行分组',
567
567
  valuesPlaceholder: '拖至此处进行聚合',
568
568
  dragExistCol: '该列已存在'
569
+ },
570
+ aggFuncs: {
571
+ sum: '求和',
572
+ count: '计数',
573
+ avg: '平均值',
574
+ min: '最小值',
575
+ max: '最大值',
576
+ first: '首个值',
577
+ last: '末尾值'
569
578
  }
570
579
  },
571
580
  filterComplexInput: {
@@ -566,6 +566,15 @@ export default {
566
566
  groupPlaceholder: '拖至此处进行分组',
567
567
  valuesPlaceholder: '拖至此处进行聚合',
568
568
  dragExistCol: '该列已存在'
569
+ },
570
+ aggFuncs: {
571
+ sum: '求和',
572
+ count: '计数',
573
+ avg: '平均值',
574
+ min: '最小值',
575
+ max: '最大值',
576
+ first: '首个值',
577
+ last: '末尾值'
569
578
  }
570
579
  },
571
580
  filterComplexInput: {
@@ -566,6 +566,15 @@ export default {
566
566
  groupPlaceholder: '拖至此处进行分组',
567
567
  valuesPlaceholder: '拖至此处进行聚合',
568
568
  dragExistCol: '该列已存在'
569
+ },
570
+ aggFuncs: {
571
+ sum: '求和',
572
+ count: '计数',
573
+ avg: '平均值',
574
+ min: '最小值',
575
+ max: '最大值',
576
+ first: '首个值',
577
+ last: '末尾值'
569
578
  }
570
579
  },
571
580
  filterComplexInput: {
@@ -566,6 +566,15 @@ export default {
566
566
  groupPlaceholder: '拖至此处进行分组',
567
567
  valuesPlaceholder: '拖至此处进行聚合',
568
568
  dragExistCol: '该列已存在'
569
+ },
570
+ aggFuncs: {
571
+ sum: '求和',
572
+ count: '计数',
573
+ avg: '平均值',
574
+ min: '最小值',
575
+ max: '最大值',
576
+ first: '首个值',
577
+ last: '末尾值'
569
578
  }
570
579
  },
571
580
  filterComplexInput: {
@@ -566,6 +566,15 @@ export default {
566
566
  groupPlaceholder: '拖至此处进行分组',
567
567
  valuesPlaceholder: '拖至此处进行聚合',
568
568
  dragExistCol: '该列已存在'
569
+ },
570
+ aggFuncs: {
571
+ sum: '求和',
572
+ count: '计数',
573
+ avg: '平均值',
574
+ min: '最小值',
575
+ max: '最大值',
576
+ first: '首个值',
577
+ last: '末尾值'
569
578
  }
570
579
  },
571
580
  filterComplexInput: {
@@ -566,6 +566,15 @@ export default {
566
566
  groupPlaceholder: '拖至此处进行分组',
567
567
  valuesPlaceholder: '拖至此处进行聚合',
568
568
  dragExistCol: '该列已存在'
569
+ },
570
+ aggFuncs: {
571
+ sum: '求和',
572
+ count: '计数',
573
+ avg: '平均值',
574
+ min: '最小值',
575
+ max: '最大值',
576
+ first: '首个值',
577
+ last: '末尾值'
569
578
  }
570
579
  },
571
580
  filterComplexInput: {
@@ -566,6 +566,15 @@ export default {
566
566
  groupPlaceholder: '拖至此处进行分组',
567
567
  valuesPlaceholder: '拖至此处进行聚合',
568
568
  dragExistCol: '该列已存在'
569
+ },
570
+ aggFuncs: {
571
+ sum: '求和',
572
+ count: '计数',
573
+ avg: '平均值',
574
+ min: '最小值',
575
+ max: '最大值',
576
+ first: '首个值',
577
+ last: '末尾值'
569
578
  }
570
579
  },
571
580
  filterComplexInput: {
@@ -566,6 +566,15 @@ export default {
566
566
  groupPlaceholder: '拖至此处进行分组',
567
567
  valuesPlaceholder: '拖至此处进行聚合',
568
568
  dragExistCol: '该列已存在'
569
+ },
570
+ aggFuncs: {
571
+ sum: '求和',
572
+ count: '计数',
573
+ avg: '平均值',
574
+ min: '最小值',
575
+ max: '最大值',
576
+ first: '首个值',
577
+ last: '末尾值'
569
578
  }
570
579
  },
571
580
  filterComplexInput: {
@@ -566,6 +566,15 @@ export default {
566
566
  groupPlaceholder: '拖至此处进行分组',
567
567
  valuesPlaceholder: '拖至此处进行聚合',
568
568
  dragExistCol: '该列已存在'
569
+ },
570
+ aggFuncs: {
571
+ sum: '求和',
572
+ count: '计数',
573
+ avg: '平均值',
574
+ min: '最小值',
575
+ max: '最大值',
576
+ first: '首个值',
577
+ last: '末尾值'
569
578
  }
570
579
  },
571
580
  filterComplexInput: {
@@ -566,6 +566,15 @@ export default {
566
566
  groupPlaceholder: '拖至此处进行分组',
567
567
  valuesPlaceholder: '拖至此处进行聚合',
568
568
  dragExistCol: '该列已存在'
569
+ },
570
+ aggFuncs: {
571
+ sum: '求和',
572
+ count: '计数',
573
+ avg: '平均值',
574
+ min: '最小值',
575
+ max: '最大值',
576
+ first: '首个值',
577
+ last: '末尾值'
569
578
  }
570
579
  },
571
580
  filterComplexInput: {
@@ -566,6 +566,15 @@ export default {
566
566
  groupPlaceholder: '拖至此处进行分组',
567
567
  valuesPlaceholder: '拖至此处进行聚合',
568
568
  dragExistCol: '该列已存在'
569
+ },
570
+ aggFuncs: {
571
+ sum: '求和',
572
+ count: '计数',
573
+ avg: '平均值',
574
+ min: '最小值',
575
+ max: '最大值',
576
+ first: '首个值',
577
+ last: '末尾值'
569
578
  }
570
579
  },
571
580
  filterComplexInput: {
@@ -566,6 +566,15 @@ export default {
566
566
  groupPlaceholder: '拖至此处进行分组',
567
567
  valuesPlaceholder: '拖至此处进行聚合',
568
568
  dragExistCol: '该列已存在'
569
+ },
570
+ aggFuncs: {
571
+ sum: '求和',
572
+ count: '计数',
573
+ avg: '平均值',
574
+ min: '最小值',
575
+ max: '最大值',
576
+ first: '首个值',
577
+ last: '末尾值'
569
578
  }
570
579
  },
571
580
  filterComplexInput: {
@@ -566,6 +566,15 @@ export default {
566
566
  groupPlaceholder: '拖曳至此處進行分組',
567
567
  valuesPlaceholder: '拖曳至此處進行聚合',
568
568
  dragExistCol: '該列已存在'
569
+ },
570
+ aggFuncs: {
571
+ sum: '求和',
572
+ count: '计数',
573
+ avg: '平均值',
574
+ min: '最小值',
575
+ max: '最大值',
576
+ first: '首个值',
577
+ last: '末尾值'
569
578
  }
570
579
  },
571
580
  filterComplexInput: {
@@ -566,6 +566,15 @@ export default {
566
566
  groupPlaceholder: '拖至此处进行分组',
567
567
  valuesPlaceholder: '拖至此处进行聚合',
568
568
  dragExistCol: '该列已存在'
569
+ },
570
+ aggFuncs: {
571
+ sum: '求和',
572
+ count: '计数',
573
+ avg: '平均值',
574
+ min: '最小值',
575
+ max: '最大值',
576
+ first: '首个值',
577
+ last: '末尾值'
569
578
  }
570
579
  },
571
580
  filterComplexInput: {
@@ -81,7 +81,7 @@ VxeUI.hooks.add('tableCustomModule', {
81
81
  const saveCustom = () => {
82
82
  const { customColumnList, aggHandleFields, rowGroupList } = reactData
83
83
  const customOpts = computeCustomOpts.value
84
- const { allowVisible, allowSort, allowFixed, allowResizable } = customOpts
84
+ const { allowVisible, allowSort, allowFixed, allowResizable, allowGroup, allowValues } = customOpts
85
85
  XEUtils.eachTree(customColumnList, (column, index, items, path, parentColumn) => {
86
86
  if (parentColumn) {
87
87
  // 更新子列信息
@@ -106,6 +106,9 @@ VxeUI.hooks.add('tableCustomModule', {
106
106
  if (allowVisible) {
107
107
  column.visible = column.renderVisible
108
108
  }
109
+ if (allowGroup && allowValues) {
110
+ column.aggFunc = column.renderAggFn
111
+ }
109
112
  })
110
113
  reactData.isCustomStatus = true
111
114
  reactData.isDragColMove = true
@@ -113,14 +116,17 @@ VxeUI.hooks.add('tableCustomModule', {
113
116
  reactData.isDragColMove = false
114
117
  }, 1000)
115
118
  return $xeTable.saveCustomStore('confirm').then(() => {
116
- if (($xeTable as any).handlePivotTableAggregateData) {
119
+ if (allowGroup && allowValues && ($xeTable as any).handlePivotTableAggregateData) {
117
120
  if (rowGroupList.length !== aggHandleFields.length || rowGroupList.some((conf, i) => conf.field !== aggHandleFields[i])) {
118
- // 改动聚合分组
121
+ // 更新数据分组
119
122
  if (aggHandleFields.length) {
120
123
  $xeTable.setRowGroups(aggHandleFields)
121
124
  } else {
122
125
  $xeTable.clearRowGroups()
123
126
  }
127
+ } else {
128
+ // 更新聚合函数
129
+ $xeTable.handleUpdateAggData()
124
130
  }
125
131
  }
126
132
  })
@@ -207,7 +213,8 @@ VxeUI.hooks.add('tableCustomModule', {
207
213
  visible: true,
208
214
  resizable: options === true,
209
215
  fixed: options === true,
210
- sort: options === true
216
+ sort: options === true,
217
+ aggFunc: options === true
211
218
  }, options)
212
219
  XEUtils.eachTree(collectColumn, (column) => {
213
220
  if (opts.resizable) {
@@ -222,12 +229,16 @@ VxeUI.hooks.add('tableCustomModule', {
222
229
  if (!checkMethod || checkMethod({ $table: $xeTable, column })) {
223
230
  column.visible = column.defaultVisible
224
231
  }
232
+ if (opts.aggFunc) {
233
+ column.aggFunc = column.defaultAggFunc
234
+ column.renderAggFn = column.defaultAggFunc
235
+ }
225
236
  column.renderResizeWidth = column.renderWidth
226
237
  })
227
238
  reactData.isCustomStatus = false
228
239
  $xeTable.saveCustomStore('reset')
229
240
  return $xeTable.handleCustom().then(() => {
230
- if (($xeTable as any).handlePivotTableAggregateData) {
241
+ if (opts.aggFunc && ($xeTable as any).handlePivotTableAggregateData) {
231
242
  const rowGroupFields = computeRowGroupFields.value
232
243
  if (rowGroupFields ? rowGroupFields.length : rowGroupList.length) {
233
244
  if (rowGroupFields && rowGroupFields.length) {
@@ -235,6 +246,8 @@ VxeUI.hooks.add('tableCustomModule', {
235
246
  } else {
236
247
  $xeTable.clearRowGroups()
237
248
  }
249
+ } else {
250
+ $xeTable.handleUpdateAggData()
238
251
  }
239
252
  }
240
253
  })