vxe-table 4.18.0-beta.1 → 4.18.0-beta.2

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 (273) hide show
  1. package/es/index.css +1 -1
  2. package/es/index.min.css +1 -1
  3. package/es/locale/lang/ar-EG.js +3 -0
  4. package/es/locale/lang/de-DE.js +3 -0
  5. package/es/locale/lang/en-US.js +3 -0
  6. package/es/locale/lang/es-ES.js +3 -0
  7. package/es/locale/lang/fr-FR.js +3 -0
  8. package/es/locale/lang/hu-HU.js +3 -0
  9. package/es/locale/lang/hy-AM.js +4 -1
  10. package/es/locale/lang/id-ID.js +3 -0
  11. package/es/locale/lang/it-IT.js +3 -0
  12. package/es/locale/lang/ja-JP.js +3 -0
  13. package/es/locale/lang/ko-KR.js +3 -0
  14. package/es/locale/lang/ms-MY.js +3 -0
  15. package/es/locale/lang/nb-NO.js +3 -0
  16. package/es/locale/lang/pt-BR.js +3 -0
  17. package/es/locale/lang/ru-RU.js +3 -0
  18. package/es/locale/lang/th-TH.js +3 -0
  19. package/es/locale/lang/ug-CN.js +3 -0
  20. package/es/locale/lang/uk-UA.js +3 -0
  21. package/es/locale/lang/uz-UZ.js +3 -0
  22. package/es/locale/lang/vi-VN.js +3 -0
  23. package/es/locale/lang/zh-CHT.js +3 -0
  24. package/es/locale/lang/zh-CN.js +4 -1
  25. package/es/style.css +1 -1
  26. package/es/style.min.css +1 -1
  27. package/es/table/module/filter/hook.js +58 -17
  28. package/es/table/src/footer.js +2 -2
  29. package/es/table/src/table.js +22 -0
  30. package/es/ui/index.js +1 -1
  31. package/es/ui/src/log.js +1 -1
  32. package/lib/index.css +1 -1
  33. package/lib/index.min.css +1 -1
  34. package/lib/index.umd.js +73 -29
  35. package/lib/index.umd.min.js +1 -1
  36. package/lib/locale/lang/ar-EG.js +3 -0
  37. package/lib/locale/lang/ar-EG.min.js +1 -1
  38. package/lib/locale/lang/de-DE.js +3 -0
  39. package/lib/locale/lang/de-DE.min.js +1 -1
  40. package/lib/locale/lang/en-US.js +3 -0
  41. package/lib/locale/lang/en-US.min.js +1 -1
  42. package/lib/locale/lang/es-ES.js +3 -0
  43. package/lib/locale/lang/es-ES.min.js +1 -1
  44. package/lib/locale/lang/fr-FR.js +3 -0
  45. package/lib/locale/lang/fr-FR.min.js +1 -1
  46. package/lib/locale/lang/hu-HU.js +3 -0
  47. package/lib/locale/lang/hu-HU.min.js +1 -1
  48. package/lib/locale/lang/hy-AM.js +4 -1
  49. package/lib/locale/lang/hy-AM.min.js +1 -1
  50. package/lib/locale/lang/id-ID.js +3 -0
  51. package/lib/locale/lang/id-ID.min.js +1 -1
  52. package/lib/locale/lang/it-IT.js +3 -0
  53. package/lib/locale/lang/it-IT.min.js +1 -1
  54. package/lib/locale/lang/ja-JP.js +3 -0
  55. package/lib/locale/lang/ja-JP.min.js +1 -1
  56. package/lib/locale/lang/ko-KR.js +3 -0
  57. package/lib/locale/lang/ko-KR.min.js +1 -1
  58. package/lib/locale/lang/ms-MY.js +3 -0
  59. package/lib/locale/lang/ms-MY.min.js +1 -1
  60. package/lib/locale/lang/nb-NO.js +3 -0
  61. package/lib/locale/lang/nb-NO.min.js +1 -1
  62. package/lib/locale/lang/pt-BR.js +3 -0
  63. package/lib/locale/lang/pt-BR.min.js +1 -1
  64. package/lib/locale/lang/ru-RU.js +3 -0
  65. package/lib/locale/lang/ru-RU.min.js +1 -1
  66. package/lib/locale/lang/th-TH.js +3 -0
  67. package/lib/locale/lang/th-TH.min.js +1 -1
  68. package/lib/locale/lang/ug-CN.js +3 -0
  69. package/lib/locale/lang/ug-CN.min.js +1 -1
  70. package/lib/locale/lang/uk-UA.js +3 -0
  71. package/lib/locale/lang/uk-UA.min.js +1 -1
  72. package/lib/locale/lang/uz-UZ.js +3 -0
  73. package/lib/locale/lang/uz-UZ.min.js +1 -1
  74. package/lib/locale/lang/vi-VN.js +3 -0
  75. package/lib/locale/lang/vi-VN.min.js +1 -1
  76. package/lib/locale/lang/zh-CHT.js +3 -0
  77. package/lib/locale/lang/zh-CHT.min.js +1 -1
  78. package/lib/locale/lang/zh-CN.js +4 -1
  79. package/lib/locale/lang/zh-CN.min.js +1 -1
  80. package/lib/locale/lang/zh-HK.min.js +1 -1
  81. package/lib/locale/lang/zh-MO.min.js +1 -1
  82. package/lib/locale/lang/zh-TW.min.js +1 -1
  83. package/lib/style.css +1 -1
  84. package/lib/style.min.css +1 -1
  85. package/lib/table/module/filter/hook.js +62 -17
  86. package/lib/table/module/filter/hook.min.js +1 -1
  87. package/lib/table/src/footer.js +2 -6
  88. package/lib/table/src/footer.min.js +1 -1
  89. package/lib/table/src/table.js +3 -3
  90. package/lib/table/src/table.min.js +1 -1
  91. package/lib/ui/index.js +1 -1
  92. package/lib/ui/index.min.js +1 -1
  93. package/lib/ui/src/log.js +1 -1
  94. package/lib/ui/src/log.min.js +1 -1
  95. package/package.json +1 -1
  96. package/packages/locale/lang/ar-EG.ts +3 -0
  97. package/packages/locale/lang/de-DE.ts +3 -0
  98. package/packages/locale/lang/en-US.ts +3 -0
  99. package/packages/locale/lang/es-ES.ts +3 -0
  100. package/packages/locale/lang/fr-FR.ts +3 -0
  101. package/packages/locale/lang/hu-HU.ts +3 -0
  102. package/packages/locale/lang/hy-AM.ts +4 -1
  103. package/packages/locale/lang/id-ID.ts +3 -0
  104. package/packages/locale/lang/it-IT.ts +3 -0
  105. package/packages/locale/lang/ja-JP.ts +3 -0
  106. package/packages/locale/lang/ko-KR.ts +3 -0
  107. package/packages/locale/lang/ms-MY.ts +3 -0
  108. package/packages/locale/lang/nb-NO.ts +3 -0
  109. package/packages/locale/lang/pt-BR.ts +3 -0
  110. package/packages/locale/lang/ru-RU.ts +3 -0
  111. package/packages/locale/lang/th-TH.ts +3 -0
  112. package/packages/locale/lang/ug-CN.ts +3 -0
  113. package/packages/locale/lang/uk-UA.ts +3 -0
  114. package/packages/locale/lang/uz-UZ.ts +3 -0
  115. package/packages/locale/lang/vi-VN.ts +3 -0
  116. package/packages/locale/lang/zh-CHT.ts +3 -0
  117. package/packages/locale/lang/zh-CN.ts +4 -1
  118. package/packages/table/module/filter/hook.ts +59 -18
  119. package/packages/table/src/footer.ts +2 -2
  120. package/packages/table/src/table.ts +22 -0
  121. package/styles/components/table.scss +2 -1
  122. package/es/colgroup/style.css +0 -0
  123. package/es/colgroup/style.min.css +0 -0
  124. package/es/column/style.css +0 -0
  125. package/es/column/style.min.css +0 -0
  126. package/es/grid/style.css +0 -86
  127. package/es/grid/style.min.css +0 -1
  128. package/es/iconfont.1767492258883.ttf +0 -0
  129. package/es/iconfont.1767492258883.woff +0 -0
  130. package/es/iconfont.1767492258883.woff2 +0 -0
  131. package/es/locale/lang/ar-EG.d.ts +0 -2
  132. package/es/locale/lang/de-DE.d.ts +0 -2
  133. package/es/locale/lang/en-US.d.ts +0 -2
  134. package/es/locale/lang/es-ES.d.ts +0 -2
  135. package/es/locale/lang/fr-FR.d.ts +0 -2
  136. package/es/locale/lang/hu-HU.d.ts +0 -2
  137. package/es/locale/lang/hy-AM.d.ts +0 -2
  138. package/es/locale/lang/id-ID.d.ts +0 -2
  139. package/es/locale/lang/it-IT.d.ts +0 -2
  140. package/es/locale/lang/ja-JP.d.ts +0 -2
  141. package/es/locale/lang/ko-KR.d.ts +0 -2
  142. package/es/locale/lang/ms-MY.d.ts +0 -2
  143. package/es/locale/lang/nb-NO.d.ts +0 -2
  144. package/es/locale/lang/pt-BR.d.ts +0 -2
  145. package/es/locale/lang/ru-RU.d.ts +0 -2
  146. package/es/locale/lang/th-TH.d.ts +0 -2
  147. package/es/locale/lang/ug-CN.d.ts +0 -2
  148. package/es/locale/lang/uk-UA.d.ts +0 -2
  149. package/es/locale/lang/uz-UZ.d.ts +0 -2
  150. package/es/locale/lang/vi-VN.d.ts +0 -2
  151. package/es/locale/lang/zh-CHT.d.ts +0 -2
  152. package/es/locale/lang/zh-CN.d.ts +0 -2
  153. package/es/locale/lang/zh-HK.d.ts +0 -2
  154. package/es/locale/lang/zh-MO.d.ts +0 -2
  155. package/es/locale/lang/zh-TW.d.ts +0 -2
  156. package/es/table/style.css +0 -3877
  157. package/es/table/style.min.css +0 -1
  158. package/es/toolbar/style.css +0 -106
  159. package/es/toolbar/style.min.css +0 -1
  160. package/es/ui/style.css +0 -0
  161. package/es/ui/style.min.css +0 -0
  162. package/es/v-x-e-table/style.css +0 -0
  163. package/es/v-x-e-table/style.min.css +0 -0
  164. package/es/vxe-colgroup/style.css +0 -0
  165. package/es/vxe-colgroup/style.min.css +0 -0
  166. package/es/vxe-column/style.css +0 -0
  167. package/es/vxe-column/style.min.css +0 -0
  168. package/es/vxe-grid/style.css +0 -86
  169. package/es/vxe-grid/style.min.css +0 -1
  170. package/es/vxe-table/style.css +0 -3877
  171. package/es/vxe-table/style.min.css +0 -1
  172. package/es/vxe-toolbar/style.css +0 -106
  173. package/es/vxe-toolbar/style.min.css +0 -1
  174. package/es/vxe-ui/style.css +0 -0
  175. package/es/vxe-ui/style.min.css +0 -0
  176. package/es/vxe-v-x-e-table/style.css +0 -0
  177. package/es/vxe-v-x-e-table/style.min.css +0 -0
  178. package/lib/colgroup/style/index.js +0 -1
  179. package/lib/colgroup/style/style.css +0 -0
  180. package/lib/colgroup/style/style.min.css +0 -0
  181. package/lib/column/style/index.js +0 -1
  182. package/lib/column/style/style.css +0 -0
  183. package/lib/column/style/style.min.css +0 -0
  184. package/lib/grid/style/index.js +0 -1
  185. package/lib/grid/style/style.css +0 -86
  186. package/lib/grid/style/style.min.css +0 -1
  187. package/lib/iconfont.1767492258883.ttf +0 -0
  188. package/lib/iconfont.1767492258883.woff +0 -0
  189. package/lib/iconfont.1767492258883.woff2 +0 -0
  190. package/lib/index.common.js +0 -22
  191. package/lib/locale/lang/ar-EG.d.ts +0 -2
  192. package/lib/locale/lang/ar-EG.umd.js +0 -839
  193. package/lib/locale/lang/de-DE.d.ts +0 -2
  194. package/lib/locale/lang/de-DE.umd.js +0 -839
  195. package/lib/locale/lang/en-US.d.ts +0 -2
  196. package/lib/locale/lang/en-US.umd.js +0 -839
  197. package/lib/locale/lang/es-ES.d.ts +0 -2
  198. package/lib/locale/lang/es-ES.umd.js +0 -839
  199. package/lib/locale/lang/fr-FR.d.ts +0 -2
  200. package/lib/locale/lang/fr-FR.umd.js +0 -839
  201. package/lib/locale/lang/hu-HU.d.ts +0 -2
  202. package/lib/locale/lang/hu-HU.umd.js +0 -839
  203. package/lib/locale/lang/hy-AM.d.ts +0 -2
  204. package/lib/locale/lang/hy-AM.umd.js +0 -839
  205. package/lib/locale/lang/id-ID.d.ts +0 -2
  206. package/lib/locale/lang/id-ID.umd.js +0 -839
  207. package/lib/locale/lang/it-IT.d.ts +0 -2
  208. package/lib/locale/lang/it-IT.umd.js +0 -839
  209. package/lib/locale/lang/ja-JP.d.ts +0 -2
  210. package/lib/locale/lang/ja-JP.umd.js +0 -839
  211. package/lib/locale/lang/ko-KR.d.ts +0 -2
  212. package/lib/locale/lang/ko-KR.umd.js +0 -839
  213. package/lib/locale/lang/ms-MY.d.ts +0 -2
  214. package/lib/locale/lang/ms-MY.umd.js +0 -839
  215. package/lib/locale/lang/nb-NO.d.ts +0 -2
  216. package/lib/locale/lang/nb-NO.umd.js +0 -839
  217. package/lib/locale/lang/pt-BR.d.ts +0 -2
  218. package/lib/locale/lang/pt-BR.umd.js +0 -839
  219. package/lib/locale/lang/ru-RU.d.ts +0 -2
  220. package/lib/locale/lang/ru-RU.umd.js +0 -839
  221. package/lib/locale/lang/th-TH.d.ts +0 -2
  222. package/lib/locale/lang/th-TH.umd.js +0 -839
  223. package/lib/locale/lang/ug-CN.d.ts +0 -2
  224. package/lib/locale/lang/ug-CN.umd.js +0 -839
  225. package/lib/locale/lang/uk-UA.d.ts +0 -2
  226. package/lib/locale/lang/uk-UA.umd.js +0 -839
  227. package/lib/locale/lang/uz-UZ.d.ts +0 -2
  228. package/lib/locale/lang/uz-UZ.umd.js +0 -839
  229. package/lib/locale/lang/vi-VN.d.ts +0 -2
  230. package/lib/locale/lang/vi-VN.umd.js +0 -839
  231. package/lib/locale/lang/zh-CHT.d.ts +0 -2
  232. package/lib/locale/lang/zh-CHT.umd.js +0 -839
  233. package/lib/locale/lang/zh-CN.d.ts +0 -2
  234. package/lib/locale/lang/zh-CN.umd.js +0 -839
  235. package/lib/locale/lang/zh-HK.d.ts +0 -2
  236. package/lib/locale/lang/zh-HK.umd.js +0 -23
  237. package/lib/locale/lang/zh-MO.d.ts +0 -2
  238. package/lib/locale/lang/zh-MO.umd.js +0 -23
  239. package/lib/locale/lang/zh-TW.d.ts +0 -2
  240. package/lib/locale/lang/zh-TW.umd.js +0 -23
  241. package/lib/table/style/index.js +0 -1
  242. package/lib/table/style/style.css +0 -3877
  243. package/lib/table/style/style.min.css +0 -1
  244. package/lib/toolbar/style/index.js +0 -1
  245. package/lib/toolbar/style/style.css +0 -106
  246. package/lib/toolbar/style/style.min.css +0 -1
  247. package/lib/ui/style/index.js +0 -1
  248. package/lib/ui/style/style.css +0 -0
  249. package/lib/ui/style/style.min.css +0 -0
  250. package/lib/v-x-e-table/style/index.js +0 -1
  251. package/lib/v-x-e-table/style/style.css +0 -0
  252. package/lib/v-x-e-table/style/style.min.css +0 -0
  253. package/lib/vxe-colgroup/style/index.js +0 -1
  254. package/lib/vxe-colgroup/style/style.css +0 -0
  255. package/lib/vxe-colgroup/style/style.min.css +0 -0
  256. package/lib/vxe-column/style/index.js +0 -1
  257. package/lib/vxe-column/style/style.css +0 -0
  258. package/lib/vxe-column/style/style.min.css +0 -0
  259. package/lib/vxe-grid/style/index.js +0 -1
  260. package/lib/vxe-grid/style/style.css +0 -86
  261. package/lib/vxe-grid/style/style.min.css +0 -1
  262. package/lib/vxe-table/style/index.js +0 -1
  263. package/lib/vxe-table/style/style.css +0 -3877
  264. package/lib/vxe-table/style/style.min.css +0 -1
  265. package/lib/vxe-toolbar/style/index.js +0 -1
  266. package/lib/vxe-toolbar/style/style.css +0 -106
  267. package/lib/vxe-toolbar/style/style.min.css +0 -1
  268. package/lib/vxe-ui/style/index.js +0 -1
  269. package/lib/vxe-ui/style/style.css +0 -0
  270. package/lib/vxe-ui/style/style.min.css +0 -0
  271. package/lib/vxe-v-x-e-table/style/index.js +0 -1
  272. package/lib/vxe-v-x-e-table/style/style.css +0 -0
  273. package/lib/vxe-v-x-e-table/style/style.min.css +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.18.0-beta.1";
16
+ const version = exports.version = "4.18.0-beta.2";
17
17
  _core.VxeUI.version = version;
18
18
  _core.VxeUI.tableVersion = version;
19
19
  _core.VxeUI.setConfig({
@@ -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.18.0-beta.1",iconPrefix=(_core.VxeUI.version=version,_core.VxeUI.tableVersion=version,_core.VxeUI.setConfig({emptyCell:" ",table:{fit:!0,showHeader:!0,animat:!0,delayHover:250,autoResize:!0,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},headerTooltipConfig:{enterable:!0},footerTooltipConfig:{enterable:!0},validConfig:{showErrorMessage:!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"},menuConfig:{destroyOnClose:!0},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:{destroyOnClose:!0,multiple:!0,showIcon:!0},floatingFilterConfig:{},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,showRootLine:!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:{x:{visible:!0},y:{visible:!0}},undoHistoryConfig:{isEditRow:!0}},grid:{formConfig:{enabled:!0},pagerConfig:{enabled:!0},toolbarConfig:{enabled:!0},proxyConfig:{enabled:!0,autoLoad:!0,showLoading:!0,showResponseMsg:!0,showActionMsg:!0,response:{list:"list",result:"result",total:"page.total",footerData:"footerData",message:"message"}}},toolbar:{},gantt:{}}),"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_MENU_OPTION_LOADING:iconPrefix+"repeat roll",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;
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.18.0-beta.2",iconPrefix=(_core.VxeUI.version=version,_core.VxeUI.tableVersion=version,_core.VxeUI.setConfig({emptyCell:" ",table:{fit:!0,showHeader:!0,animat:!0,delayHover:250,autoResize:!0,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},headerTooltipConfig:{enterable:!0},footerTooltipConfig:{enterable:!0},validConfig:{showErrorMessage:!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"},menuConfig:{destroyOnClose:!0},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:{destroyOnClose:!0,multiple:!0,showIcon:!0},floatingFilterConfig:{},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,showRootLine:!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:{x:{visible:!0},y:{visible:!0}},undoHistoryConfig:{isEditRow:!0}},grid:{formConfig:{enabled:!0},pagerConfig:{enabled:!0},toolbarConfig:{enabled:!0},proxyConfig:{enabled:!0,autoLoad:!0,showLoading:!0,showResponseMsg:!0,showActionMsg:!0,response:{list:"list",result:"result",total:"page.total",footerData:"footerData",message:"message"}}},toolbar:{},gantt:{}}),"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_MENU_OPTION_LOADING:iconPrefix+"repeat roll",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.18.0-beta.1"}`;
11
+ const version = `table v${"4.18.0-beta.2"}`;
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.18.0-beta.1",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.18.0-beta.2",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.18.0-beta.1",
3
+ "version": "4.18.0-beta.2",
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",
@@ -539,6 +539,9 @@ export default {
539
539
  ss: 'ثانية'
540
540
  }
541
541
  },
542
+ contextMenu: {
543
+ loadingText: '加载中...'
544
+ },
542
545
  gantt: {
543
546
  tFullFormat: {
544
547
  year: '{yyyy}年',
@@ -539,6 +539,9 @@ export default {
539
539
  ss: 'Zweite'
540
540
  }
541
541
  },
542
+ contextMenu: {
543
+ loadingText: '加载中...'
544
+ },
542
545
  gantt: {
543
546
  tFullFormat: {
544
547
  year: '{yyyy}年',
@@ -539,6 +539,9 @@ export default {
539
539
  ss: 'Second'
540
540
  }
541
541
  },
542
+ contextMenu: {
543
+ loadingText: 'Loading'
544
+ },
542
545
  gantt: {
543
546
  tFullFormat: {
544
547
  year: '{yyyy}年',
@@ -539,6 +539,9 @@ export default {
539
539
  ss: 'Segundo'
540
540
  }
541
541
  },
542
+ contextMenu: {
543
+ loadingText: '加载中...'
544
+ },
542
545
  gantt: {
543
546
  tFullFormat: {
544
547
  year: '{yyyy}年',
@@ -539,6 +539,9 @@ export default {
539
539
  ss: 'Deuxième'
540
540
  }
541
541
  },
542
+ contextMenu: {
543
+ loadingText: '加载中...'
544
+ },
542
545
  gantt: {
543
546
  tFullFormat: {
544
547
  year: '{yyyy}年',
@@ -539,6 +539,9 @@ export default {
539
539
  ss: 'Második'
540
540
  }
541
541
  },
542
+ contextMenu: {
543
+ loadingText: '加载中...'
544
+ },
542
545
  gantt: {
543
546
  tFullFormat: {
544
547
  year: '{yyyy}年',
@@ -106,7 +106,7 @@ export default {
106
106
  allChecked: '全选',
107
107
  total: '{0} / {1}',
108
108
  search: '搜索',
109
- loadingText: '加载中',
109
+ loadingText: '加载中...',
110
110
  emptyText: '暂无数据',
111
111
  maxOpt: '最大可选择的数量不能超过 {0} 个',
112
112
  overSizeErr: '已超出最大可选数量 {0} 个,超出部分将被忽略!',
@@ -539,6 +539,9 @@ export default {
539
539
  ss: '秒'
540
540
  }
541
541
  },
542
+ contextMenu: {
543
+ loadingText: '加载中...'
544
+ },
542
545
  gantt: {
543
546
  tFullFormat: {
544
547
  year: '{yyyy}年',
@@ -539,6 +539,9 @@ export default {
539
539
  ss: 'Kedua'
540
540
  }
541
541
  },
542
+ contextMenu: {
543
+ loadingText: '加载中...'
544
+ },
542
545
  gantt: {
543
546
  tFullFormat: {
544
547
  year: '{yyyy}年',
@@ -539,6 +539,9 @@ export default {
539
539
  ss: 'Secondo'
540
540
  }
541
541
  },
542
+ contextMenu: {
543
+ loadingText: '加载中...'
544
+ },
542
545
  gantt: {
543
546
  tFullFormat: {
544
547
  year: '{yyyy}年',
@@ -539,6 +539,9 @@ export default {
539
539
  ss: '2番'
540
540
  }
541
541
  },
542
+ contextMenu: {
543
+ loadingText: '加载中...'
544
+ },
542
545
  gantt: {
543
546
  tFullFormat: {
544
547
  year: '{yyyy}年',
@@ -539,6 +539,9 @@ export default {
539
539
  ss: '두번째'
540
540
  }
541
541
  },
542
+ contextMenu: {
543
+ loadingText: '加载中...'
544
+ },
542
545
  gantt: {
543
546
  tFullFormat: {
544
547
  year: '{yyyy}年',
@@ -539,6 +539,9 @@ export default {
539
539
  ss: 'Kedua'
540
540
  }
541
541
  },
542
+ contextMenu: {
543
+ loadingText: '加载中...'
544
+ },
542
545
  gantt: {
543
546
  tFullFormat: {
544
547
  year: '{yyyy}年',
@@ -539,6 +539,9 @@ export default {
539
539
  ss: 'Sekund'
540
540
  }
541
541
  },
542
+ contextMenu: {
543
+ loadingText: '加载中...'
544
+ },
542
545
  gantt: {
543
546
  tFullFormat: {
544
547
  year: '{yyyy}年',
@@ -539,6 +539,9 @@ export default {
539
539
  ss: 'Segundo'
540
540
  }
541
541
  },
542
+ contextMenu: {
543
+ loadingText: '加载中...'
544
+ },
542
545
  gantt: {
543
546
  tFullFormat: {
544
547
  year: '{yyyy}年',
@@ -539,6 +539,9 @@ export default {
539
539
  ss: 'Второй'
540
540
  }
541
541
  },
542
+ contextMenu: {
543
+ loadingText: '加载中...'
544
+ },
542
545
  gantt: {
543
546
  tFullFormat: {
544
547
  year: '{yyyy}年',
@@ -539,6 +539,9 @@ export default {
539
539
  ss: 'ที่สอง'
540
540
  }
541
541
  },
542
+ contextMenu: {
543
+ loadingText: '加载中...'
544
+ },
542
545
  gantt: {
543
546
  tFullFormat: {
544
547
  year: '{yyyy}年',
@@ -539,6 +539,9 @@ export default {
539
539
  ss: 'سېكۇنت'
540
540
  }
541
541
  },
542
+ contextMenu: {
543
+ loadingText: '加载中...'
544
+ },
542
545
  gantt: {
543
546
  tFullFormat: {
544
547
  year: '{yyyy}年',
@@ -539,6 +539,9 @@ export default {
539
539
  ss: 'Другий'
540
540
  }
541
541
  },
542
+ contextMenu: {
543
+ loadingText: '加载中...'
544
+ },
542
545
  gantt: {
543
546
  tFullFormat: {
544
547
  year: '{yyyy}年',
@@ -539,6 +539,9 @@ export default {
539
539
  ss: 'Ikkinchi'
540
540
  }
541
541
  },
542
+ contextMenu: {
543
+ loadingText: '加载中...'
544
+ },
542
545
  gantt: {
543
546
  tFullFormat: {
544
547
  year: '{yyyy}年',
@@ -539,6 +539,9 @@ export default {
539
539
  ss: 'Thứ hai'
540
540
  }
541
541
  },
542
+ contextMenu: {
543
+ loadingText: '加载中...'
544
+ },
542
545
  gantt: {
543
546
  tFullFormat: {
544
547
  year: '{yyyy}年',
@@ -539,6 +539,9 @@ export default {
539
539
  ss: '秒'
540
540
  }
541
541
  },
542
+ contextMenu: {
543
+ loadingText: '加载中...'
544
+ },
542
545
  gantt: {
543
546
  tFullFormat: {
544
547
  year: '{yyyy}年',
@@ -106,7 +106,7 @@ export default {
106
106
  allChecked: '全选',
107
107
  total: '{0} / {1}',
108
108
  search: '搜索',
109
- loadingText: '加载中',
109
+ loadingText: '加载中...',
110
110
  emptyText: '暂无数据',
111
111
  maxSize: '最大可选择的数量不能超过 {0} 个',
112
112
  overSizeErr: '已超出最大可选数量 {0} 个,超出部分将被忽略!',
@@ -539,6 +539,9 @@ export default {
539
539
  ss: '秒'
540
540
  }
541
541
  },
542
+ contextMenu: {
543
+ loadingText: '加载中...'
544
+ },
542
545
  gantt: {
543
546
  tFullFormat: {
544
547
  year: '{yyyy}年',
@@ -11,6 +11,8 @@ const { renderer, hooks } = VxeUI
11
11
 
12
12
  const tableFilterMethodKeys: (keyof TableFilterMethods)[] = ['openFilter', 'setFilter', 'clearFilter', 'saveFilter', 'saveFilterByEvent', 'saveFilterPanel', 'saveFilterPanelByEvent', 'resetFilter', 'resetFilterByEvent', 'resetFilterPanel', 'resetFilterPanelByEvent', 'getCheckedFilters', 'updateFilterOptionStatus']
13
13
 
14
+ const sourceType = 'table'
15
+
14
16
  hooks.add('tableFilterModule', {
15
17
  setupTable ($xeTable) {
16
18
  const $xeGrid = $xeTable.xeGrid
@@ -31,16 +33,7 @@ hooks.add('tableFilterModule', {
31
33
  filterStore.isIndeterminate = !filterStore.isAllSelected && filterOptions.some((item) => item._checked)
32
34
  }
33
35
  },
34
- /**
35
- * 点击筛选事件
36
- * 当筛选图标被点击时触发
37
- * 更新选项是否全部状态
38
- * 打开筛选面板
39
- * @param {Event} evnt 事件
40
- * @param {ColumnInfo} column 列配置
41
- * @param {Object} params 参数
42
- */
43
- triggerFilterEvent (evnt: MouseEvent, column: VxeTableDefines.ColumnInfo, params) {
36
+ handleOpenFilterColumn (evnt: MouseEvent, btnEl: HTMLDivElement | null, colEl: HTMLDivElement, column: VxeTableDefines.ColumnInfo, params: any) {
44
37
  const { initStore, filterStore } = reactData
45
38
  const { elemStore } = internalData
46
39
  if (filterStore.column === column && filterStore.visible) {
@@ -50,8 +43,8 @@ hooks.add('tableFilterModule', {
50
43
  const { scrollTop, scrollLeft, visibleHeight, visibleWidth } = getDomNode()
51
44
  const filterOpts = computeFilterOpts.value
52
45
  const { transfer } = filterOpts
46
+ const currEl = btnEl || colEl
53
47
  const tableRect = tableEl.getBoundingClientRect()
54
- const btnElem = evnt.currentTarget as HTMLDivElement
55
48
  const filterRender = column ? column.filterRender : null
56
49
  const compConf = filterRender && isEnableConf(filterRender) ? renderer.get(filterRender.name) : null
57
50
  $xeTable.handleFilterOptions(column)
@@ -69,17 +62,21 @@ hooks.add('tableFilterModule', {
69
62
  if (!filterWrapperElem) {
70
63
  return
71
64
  }
72
- const btnRect = btnElem.getBoundingClientRect()
65
+ const btnRect = currEl.getBoundingClientRect()
73
66
  const filterHeadElem = filterWrapperElem.querySelector<HTMLDivElement>('.vxe-table--filter-header')
74
67
  const filterFootElem = filterWrapperElem.querySelector<HTMLDivElement>('.vxe-table--filter-footer')
75
68
  const filterWidth = filterWrapperElem.offsetWidth
76
- const centerWidth = filterWidth / 2
69
+ const centerWidth = btnEl ? filterWidth / 2 : ((filterWidth - column.renderWidth) / 2)
77
70
  let left = 0
78
71
  let top = 0
79
72
  let maxHeight: number = 0
73
+ /**
74
+ * 是否显示筛选按钮图标
75
+ * 如果不存在图标,则相对单元格居中显示
76
+ */
80
77
  if (transfer) {
81
78
  left = btnRect.left - centerWidth + scrollLeft
82
- top = btnRect.top + btnElem.clientHeight + scrollTop
79
+ top = btnRect.top + currEl.clientHeight + scrollTop
83
80
  maxHeight = Math.min(Math.max(tableRect.height, Math.floor(visibleHeight / 2)), Math.max(80, visibleHeight - top - (filterHeadElem ? filterHeadElem.clientHeight : 0) - (filterFootElem ? filterFootElem.clientHeight : 0) - 28))
84
81
  if (left < 16) {
85
82
  left = 16
@@ -88,7 +85,7 @@ hooks.add('tableFilterModule', {
88
85
  }
89
86
  } else {
90
87
  left = btnRect.left - tableRect.left - centerWidth
91
- top = btnRect.top - tableRect.top + btnElem.clientHeight
88
+ top = btnRect.top - tableRect.top + currEl.clientHeight
92
89
  maxHeight = Math.max(40, tableEl.clientHeight - top - (filterHeadElem ? filterHeadElem.clientHeight : 0) - (filterFootElem ? filterFootElem.clientHeight : 0) - 14)
93
90
  if (left < 1) {
94
91
  left = 1
@@ -117,6 +114,23 @@ hooks.add('tableFilterModule', {
117
114
  }
118
115
  $xeTable.dispatchEvent('filter-visible', { column, field: column.field, property: column.field, filterList: $xeTable.getCheckedFilters(), visible: filterStore.visible }, evnt)
119
116
  },
117
+ /**
118
+ * 点击筛选事件
119
+ * 当筛选图标被点击时触发
120
+ * 更新选项是否全部状态
121
+ * 打开筛选面板
122
+ * @param {Event} evnt 事件
123
+ * @param {ColumnInfo} column 列配置
124
+ * @param {Object} params 参数
125
+ */
126
+ triggerFilterEvent (evnt: MouseEvent, column: VxeTableDefines.ColumnInfo, params) {
127
+ const { elemStore } = internalData
128
+ const { fixed } = column
129
+ const headerWrapperElem = getRefElem(elemStore[`${fixed || 'main'}-header-wrapper`] || elemStore['main-header-wrapper'])
130
+ const btnElem = evnt.currentTarget as HTMLDivElement
131
+ const colEl = headerWrapperElem ? headerWrapperElem.querySelector<HTMLElement>(`.vxe-header--column.${column.id}`) : null
132
+ $xeTable.handleOpenFilterColumn(evnt, btnElem, colEl || btnElem, column, params)
133
+ },
120
134
  handleClearFilter (column) {
121
135
  if (column) {
122
136
  const { filters, filterRender } = column
@@ -266,12 +280,39 @@ hooks.add('tableFilterModule', {
266
280
  const column = handleFieldOrColumn($xeTable, fieldOrColumn)
267
281
  if (column && column.filters) {
268
282
  const { elemStore } = internalData
269
- const { fixed } = column
283
+ const { fixed, filters } = column
270
284
  return $xeTable.scrollToColumn(column).then(() => {
271
285
  const headerWrapperElem = getRefElem(elemStore[`${fixed || 'main'}-header-wrapper`] || elemStore['main-header-wrapper'])
272
286
  if (headerWrapperElem) {
273
- const filterBtnElem = headerWrapperElem.querySelector(`.vxe-header--column.${column.id} .vxe-cell--filter`) as HTMLElement
274
- triggerEvent(filterBtnElem, 'click')
287
+ const filterBtnElem = headerWrapperElem.querySelector<HTMLElement>(`.vxe-header--column.${column.id} .vxe-cell--filter`)
288
+ if (filterBtnElem) {
289
+ triggerEvent(filterBtnElem, 'click')
290
+ } else {
291
+ const colEl = headerWrapperElem.querySelector<HTMLElement>(`.vxe-header--column.${column.id}`)
292
+ if (colEl) {
293
+ let firstFilterOption: VxeTableDefines.FilterOption | null = null
294
+ if (filters) {
295
+ firstFilterOption = filters[0] as VxeTableDefines.FilterOption
296
+ }
297
+ const params = {
298
+ $table: $xeTable,
299
+ $grid: $xeGrid,
300
+ $gantt: $xeGantt,
301
+ $rowIndex: -1,
302
+ column,
303
+ columnIndex: $xeTable.getColumnIndex(column),
304
+ $columnIndex: $xeTable.getVMColumnIndex(column),
305
+ _columnIndex: $xeTable.getVTColumnIndex(column),
306
+ firstFilterOption: firstFilterOption as VxeTableDefines.FilterOption,
307
+ fixed,
308
+ source: sourceType,
309
+ type: 'header'
310
+ // isHidden
311
+ // hasFilter
312
+ }
313
+ $xeTable.handleOpenFilterColumn(new Event('click'), null, colEl, column, params)
314
+ }
315
+ }
275
316
  }
276
317
  })
277
318
  }
@@ -122,10 +122,10 @@ export default defineVxeComponent({
122
122
  }
123
123
  }
124
124
  tfOns.onClick = (evnt: MouseEvent) => {
125
- $xeTable.dispatchEvent('footer-cell-click', Object.assign({ cell: evnt.currentTarget }, cellParams), evnt)
125
+ $xeTable.triggerFooterCellClickEvent(evnt, cellParams)
126
126
  }
127
127
  tfOns.onDblclick = (evnt: MouseEvent) => {
128
- $xeTable.dispatchEvent('footer-cell-dblclick', Object.assign({ cell: evnt.currentTarget }, cellParams), evnt)
128
+ $xeTable.triggerFooterCellDblclickEvent(evnt, cellParams)
129
129
  }
130
130
  let isMergeCell = false
131
131
  // 合并行或列
@@ -9780,6 +9780,10 @@ export default defineVxeComponent({
9780
9780
  if (sortOpts.trigger === 'cell' && !(triggerResizable || triggerSort || triggerFilter)) {
9781
9781
  $xeTable.triggerSortEvent(evnt, column, getNextSortOrder(column))
9782
9782
  }
9783
+ if ($xeGantt) {
9784
+ const ganttReactData = $xeGantt.reactData
9785
+ ganttReactData.activeBarRowid = null
9786
+ }
9783
9787
  dispatchEvent('header-cell-click', Object.assign({ triggerResizable, triggerSort, triggerFilter, cell }, params), evnt)
9784
9788
  if ((columnOpts.isCurrent || props.highlightCurrentColumn) && (!currentColumnOpts.trigger || ['header', 'default'].includes(currentColumnOpts.trigger))) {
9785
9789
  $xeTable.triggerCurrentColumnEvent(evnt, params)
@@ -9896,6 +9900,10 @@ export default defineVxeComponent({
9896
9900
  }
9897
9901
  }
9898
9902
  }
9903
+ if ($xeGantt) {
9904
+ const ganttReactData = $xeGantt.reactData
9905
+ ganttReactData.activeBarRowid = null
9906
+ }
9899
9907
  dispatchEvent('cell-click', params, evnt)
9900
9908
  },
9901
9909
  /**
@@ -9931,6 +9939,20 @@ export default defineVxeComponent({
9931
9939
  }
9932
9940
  dispatchEvent('cell-dblclick', params, evnt)
9933
9941
  },
9942
+ triggerFooterCellClickEvent (evnt, params) {
9943
+ const cell = evnt.currentTarget as HTMLDivElement
9944
+ params = Object.assign({ cell }, params)
9945
+ if ($xeGantt) {
9946
+ const ganttReactData = $xeGantt.reactData
9947
+ ganttReactData.activeBarRowid = null
9948
+ }
9949
+ $xeTable.dispatchEvent('footer-cell-click', params, evnt)
9950
+ },
9951
+ triggerFooterCellDblclickEvent (evnt, params) {
9952
+ const cell = evnt.currentTarget as HTMLDivElement
9953
+ params = Object.assign({ cell }, params)
9954
+ $xeTable.dispatchEvent('footer-cell-dblclick', params, evnt)
9955
+ },
9934
9956
  handleToggleCheckRowEvent (evnt, params) {
9935
9957
  const { selectCheckboxMaps } = internalData
9936
9958
  const checkboxOpts = computeCheckboxOpts.value
@@ -2565,7 +2565,8 @@ $btnThemeList: (
2565
2565
  /*单元格标记删除状态*/
2566
2566
  .vxe-body--row {
2567
2567
  &.row--pending {
2568
- color: var(--vxe-ui-table-validate-error-color);
2568
+ color: var(--vxe-ui-font-disabled-color);
2569
+ opacity: 0.5;
2569
2570
  text-decoration: line-through;
2570
2571
  cursor: no-drop;
2571
2572
  .vxe-body--column {
File without changes
File without changes
File without changes
File without changes
package/es/grid/style.css DELETED
@@ -1,86 +0,0 @@
1
- .vxe-grid {
2
- position: relative;
3
- display: flex;
4
- flex-direction: column;
5
- }
6
- .vxe-grid.is--loading:before {
7
- content: "";
8
- position: absolute;
9
- top: 0;
10
- left: 0;
11
- width: 100%;
12
- height: 100%;
13
- z-index: 99;
14
- -webkit-user-select: none;
15
- -moz-user-select: none;
16
- user-select: none;
17
- background-color: var(--vxe-ui-loading-background-color);
18
- }
19
- .vxe-grid.is--loading > .vxe-table .vxe-loading {
20
- background-color: transparent;
21
- }
22
- .vxe-grid.is--maximize {
23
- position: fixed;
24
- top: 0;
25
- left: 0;
26
- width: 100%;
27
- height: 100%;
28
- padding: 0.5em 1em;
29
- background-color: var(--vxe-ui-layout-background-color);
30
- }
31
- .vxe-grid .vxe-grid--form-wrapper,
32
- .vxe-grid .vxe-grid--top-wrapper,
33
- .vxe-grid .vxe-grid--bottom-wrapper {
34
- position: relative;
35
- }
36
- .vxe-grid .vxe-grid--table-container {
37
- display: flex;
38
- flex-direction: row;
39
- }
40
- .vxe-grid .vxe-grid--left-wrapper,
41
- .vxe-grid .vxe-grid--right-wrapper {
42
- flex-shrink: 0;
43
- overflow: auto;
44
- outline: 0;
45
- }
46
- .vxe-grid .vxe-grid--table-wrapper {
47
- flex-grow: 1;
48
- overflow: hidden;
49
- }
50
-
51
- .vxe-grid--layout-body-wrapper {
52
- display: flex;
53
- flex-direction: row;
54
- overflow: auto;
55
- flex-grow: 1;
56
- }
57
-
58
- .vxe-grid--layout-body-content-wrapper {
59
- flex-grow: 1;
60
- overflow: auto;
61
- }
62
-
63
- .vxe-grid--layout-header-wrapper,
64
- .vxe-grid--layout-footer-wrapper,
65
- .vxe-grid--layout-aside-left-wrapper,
66
- .vxe-grid--layout-aside-left-wrapper {
67
- flex-shrink: 0;
68
- }
69
-
70
- .vxe-grid--layout-aside-left-wrapper,
71
- .vxe-grid--layout-aside-left-wrapper {
72
- overflow: auto;
73
- }
74
-
75
- .vxe-grid {
76
- font-size: var(--vxe-ui-font-size-default);
77
- }
78
- .vxe-grid.size--medium {
79
- font-size: var(--vxe-ui-font-size-medium);
80
- }
81
- .vxe-grid.size--small {
82
- font-size: var(--vxe-ui-font-size-small);
83
- }
84
- .vxe-grid.size--mini {
85
- font-size: var(--vxe-ui-font-size-mini);
86
- }
@@ -1 +0,0 @@
1
- .vxe-grid{position:relative;display:flex;flex-direction:column}.vxe-grid.is--loading:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;z-index:99;-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:var(--vxe-ui-loading-background-color)}.vxe-grid.is--loading>.vxe-table .vxe-loading{background-color:transparent}.vxe-grid.is--maximize{position:fixed;top:0;left:0;width:100%;height:100%;padding:.5em 1em;background-color:var(--vxe-ui-layout-background-color)}.vxe-grid .vxe-grid--bottom-wrapper,.vxe-grid .vxe-grid--form-wrapper,.vxe-grid .vxe-grid--top-wrapper{position:relative}.vxe-grid .vxe-grid--table-container{display:flex;flex-direction:row}.vxe-grid .vxe-grid--left-wrapper,.vxe-grid .vxe-grid--right-wrapper{flex-shrink:0;overflow:auto;outline:0}.vxe-grid .vxe-grid--table-wrapper{flex-grow:1;overflow:hidden}.vxe-grid--layout-body-wrapper{display:flex;flex-direction:row;overflow:auto;flex-grow:1}.vxe-grid--layout-body-content-wrapper{flex-grow:1;overflow:auto}.vxe-grid--layout-aside-left-wrapper,.vxe-grid--layout-footer-wrapper,.vxe-grid--layout-header-wrapper{flex-shrink:0}.vxe-grid--layout-aside-left-wrapper{overflow:auto}.vxe-grid{font-size:var(--vxe-ui-font-size-default)}.vxe-grid.size--medium{font-size:var(--vxe-ui-font-size-medium)}.vxe-grid.size--small{font-size:var(--vxe-ui-font-size-small)}.vxe-grid.size--mini{font-size:var(--vxe-ui-font-size-mini)}
Binary file
Binary file
Binary file
@@ -1,2 +0,0 @@
1
- declare const langMsgs: { [key: string]: any }
2
- export default langMsgs