vxe-table 4.13.43 → 4.13.45

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 (71) hide show
  1. package/README.md +4 -4
  2. package/es/{iconfont.1750301151390.ttf → iconfont.1750641793236.ttf} +0 -0
  3. package/es/iconfont.1750641793236.woff +0 -0
  4. package/es/iconfont.1750641793236.woff2 +0 -0
  5. package/es/index.css +1 -1
  6. package/es/index.min.css +1 -1
  7. package/es/style.css +1 -1
  8. package/es/style.min.css +1 -1
  9. package/es/table/module/custom/hook.js +9 -1
  10. package/es/table/module/custom/panel.js +320 -224
  11. package/es/table/module/edit/hook.js +24 -10
  12. package/es/table/module/export/hook.js +19 -6
  13. package/es/table/src/cell.js +4 -4
  14. package/es/table/src/emits.js +3 -0
  15. package/es/table/src/table.js +16 -4
  16. package/es/table/style.css +37 -9
  17. package/es/table/style.min.css +1 -1
  18. package/es/ui/index.js +7 -3
  19. package/es/ui/src/log.js +1 -1
  20. package/es/vxe-table/style.css +37 -9
  21. package/es/vxe-table/style.min.css +1 -1
  22. package/lib/{iconfont.1750301151390.ttf → iconfont.1750641793236.ttf} +0 -0
  23. package/lib/iconfont.1750641793236.woff +0 -0
  24. package/lib/iconfont.1750641793236.woff2 +0 -0
  25. package/lib/index.css +1 -1
  26. package/lib/index.min.css +1 -1
  27. package/lib/index.umd.js +275 -89
  28. package/lib/index.umd.min.js +1 -1
  29. package/lib/style.css +1 -1
  30. package/lib/style.min.css +1 -1
  31. package/lib/table/module/custom/hook.js +11 -1
  32. package/lib/table/module/custom/hook.min.js +1 -1
  33. package/lib/table/module/custom/panel.js +181 -60
  34. package/lib/table/module/custom/panel.min.js +1 -1
  35. package/lib/table/module/edit/hook.js +46 -10
  36. package/lib/table/module/edit/hook.min.js +1 -1
  37. package/lib/table/module/export/hook.js +19 -4
  38. package/lib/table/module/export/hook.min.js +1 -1
  39. package/lib/table/src/cell.js +4 -4
  40. package/lib/table/src/cell.min.js +1 -1
  41. package/lib/table/src/emits.js +1 -1
  42. package/lib/table/src/emits.min.js +1 -1
  43. package/lib/table/src/table.js +5 -5
  44. package/lib/table/src/table.min.js +1 -1
  45. package/lib/table/style/style.css +37 -9
  46. package/lib/table/style/style.min.css +1 -1
  47. package/lib/ui/index.js +7 -3
  48. package/lib/ui/index.min.js +1 -1
  49. package/lib/ui/src/log.js +1 -1
  50. package/lib/ui/src/log.min.js +1 -1
  51. package/lib/vxe-table/style/style.css +37 -9
  52. package/lib/vxe-table/style/style.min.css +1 -1
  53. package/package.json +1 -1
  54. package/packages/table/module/custom/hook.ts +10 -1
  55. package/packages/table/module/custom/panel.ts +338 -236
  56. package/packages/table/module/edit/hook.ts +24 -10
  57. package/packages/table/module/export/hook.ts +18 -7
  58. package/packages/table/src/cell.ts +4 -4
  59. package/packages/table/src/emits.ts +3 -0
  60. package/packages/table/src/table.ts +17 -4
  61. package/packages/ui/index.ts +6 -2
  62. package/styles/components/icon.scss +9 -1
  63. package/styles/components/table-module/custom.scss +26 -3
  64. package/styles/helpers/baseMixin.scss +16 -2
  65. package/styles/icon/iconfont.ttf +0 -0
  66. package/styles/icon/iconfont.woff +0 -0
  67. package/styles/icon/iconfont.woff2 +0 -0
  68. package/es/iconfont.1750301151390.woff +0 -0
  69. package/es/iconfont.1750301151390.woff2 +0 -0
  70. package/lib/iconfont.1750301151390.woff +0 -0
  71. package/lib/iconfont.1750301151390.woff2 +0 -0
@@ -1,7 +1,7 @@
1
1
  import { nextTick } from 'vue';
2
2
  import { VxeUI } from '../../../ui';
3
3
  import XEUtils from 'xe-utils';
4
- const tableCustomMethodKeys = ['openCustom', 'closeCustom', 'saveCustom', 'cancelCustom', 'resetCustom', 'toggleCustomAllCheckbox', 'setCustomAllCheckbox'];
4
+ const tableCustomMethodKeys = ['openCustom', 'closeCustom', 'toggleCustom', 'saveCustom', 'cancelCustom', 'resetCustom', 'toggleCustomAllCheckbox', 'setCustomAllCheckbox'];
5
5
  VxeUI.hooks.add('tableCustomModule', {
6
6
  setupTable($xeTable) {
7
7
  const { reactData, internalData } = $xeTable;
@@ -60,6 +60,13 @@ VxeUI.hooks.add('tableCustomModule', {
60
60
  }
61
61
  return nextTick();
62
62
  };
63
+ const toggleCustom = () => {
64
+ const { customStore } = reactData;
65
+ if (customStore.visible) {
66
+ return closeCustom();
67
+ }
68
+ return openCustom();
69
+ };
63
70
  const saveCustom = () => {
64
71
  const { customColumnList, aggHandleFields, rowGroupList } = reactData;
65
72
  const customOpts = computeCustomOpts.value;
@@ -177,6 +184,7 @@ VxeUI.hooks.add('tableCustomModule', {
177
184
  const customMethods = {
178
185
  openCustom,
179
186
  closeCustom,
187
+ toggleCustom,
180
188
  saveCustom,
181
189
  cancelCustom,
182
190
  resetCustom(options) {