vxe-table 4.23.12 → 4.23.14

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 (215) hide show
  1. package/dist/all.esm.js +4789 -4773
  2. package/dist/all.esm.min.js +3 -3
  3. package/es/colgroup/index.d.ts +18 -18
  4. package/es/column/index.d.ts +18 -18
  5. package/es/grid/index.d.ts +126 -126
  6. package/es/grid/src/emits.d.ts +1 -1
  7. package/es/grid/src/emits.js +3 -3
  8. package/es/grid/src/grid.d.ts +20 -20
  9. package/es/grid/src/grid.js +10 -10
  10. package/es/grid/src/props.d.ts +2 -2
  11. package/es/grid/src/props.js +4 -4
  12. package/es/index.esm.js +1 -0
  13. package/es/index.js +1 -0
  14. package/es/table/index.d.ts +118 -118
  15. package/es/table/module/custom/panel.js +1588 -1585
  16. package/es/table/module/export/export-panel.js +587 -584
  17. package/es/table/module/export/import-panel.js +258 -255
  18. package/es/table/module/filter/hook.js +1 -15
  19. package/es/table/module/filter/panel.js +281 -278
  20. package/es/table/module/menu/panel.js +225 -222
  21. package/es/table/src/body.js +895 -892
  22. package/es/table/src/column.d.ts +3 -3
  23. package/es/table/src/emits.d.ts +1 -1
  24. package/es/table/src/emits.js +2 -2
  25. package/es/table/src/footer.js +341 -338
  26. package/es/table/src/group.d.ts +3 -3
  27. package/es/table/src/header.js +539 -536
  28. package/es/table/src/props.d.ts +2 -2
  29. package/es/table/src/props.js +2 -2
  30. package/es/table/src/table.d.ts +19 -19
  31. package/es/table/src/table.js +15 -10
  32. package/es/table/src/util.d.ts +1 -1
  33. package/es/toolbar/index.d.ts +18 -18
  34. package/es/toolbar/src/toolbar.d.ts +3 -3
  35. package/es/ui/index.js +1 -1
  36. package/es/ui/src/log.js +1 -1
  37. package/es/ui/src/vn.d.ts +1 -1
  38. package/lib/colgroup/index.d.ts +760 -0
  39. package/lib/column/index.d.ts +760 -0
  40. package/lib/components.d.ts +13 -0
  41. package/lib/grid/index.d.ts +2824 -0
  42. package/lib/grid/src/emits.d.ts +2 -0
  43. package/lib/grid/src/emits.js +2 -2
  44. package/lib/grid/src/grid.d.ts +556 -0
  45. package/lib/grid/src/grid.js +6 -6
  46. package/lib/grid/src/props.d.ts +200 -0
  47. package/lib/grid/src/props.js +3 -3
  48. package/lib/index.common.js +1 -0
  49. package/lib/index.d.ts +3 -0
  50. package/lib/index.js +1 -0
  51. package/lib/index.umd.js +4789 -4773
  52. package/lib/index.umd.min.js +3 -3
  53. package/lib/locale/ar-EG.umd.d.ts +908 -0
  54. package/lib/locale/de-DE.umd.d.ts +908 -0
  55. package/lib/locale/en-US.umd.d.ts +908 -0
  56. package/lib/locale/es-ES.umd.d.ts +908 -0
  57. package/lib/locale/fr-FR.umd.d.ts +908 -0
  58. package/lib/locale/hu-HU.umd.d.ts +908 -0
  59. package/lib/locale/hy-AM.umd.d.ts +908 -0
  60. package/lib/locale/id-ID.umd.d.ts +908 -0
  61. package/lib/locale/it-IT.umd.d.ts +908 -0
  62. package/lib/locale/ja-JP.umd.d.ts +908 -0
  63. package/lib/locale/ko-KR.umd.d.ts +908 -0
  64. package/lib/locale/lang/ar-EG.d.ts +908 -0
  65. package/lib/locale/lang/ar-EG.umd.d.ts +908 -0
  66. package/lib/locale/lang/de-DE.d.ts +908 -0
  67. package/lib/locale/lang/de-DE.umd.d.ts +908 -0
  68. package/lib/locale/lang/en-US.d.ts +908 -0
  69. package/lib/locale/lang/en-US.umd.d.ts +908 -0
  70. package/lib/locale/lang/es-ES.d.ts +908 -0
  71. package/lib/locale/lang/es-ES.umd.d.ts +908 -0
  72. package/lib/locale/lang/fr-FR.d.ts +908 -0
  73. package/lib/locale/lang/fr-FR.umd.d.ts +908 -0
  74. package/lib/locale/lang/hu-HU.d.ts +908 -0
  75. package/lib/locale/lang/hu-HU.umd.d.ts +908 -0
  76. package/lib/locale/lang/hy-AM.d.ts +908 -0
  77. package/lib/locale/lang/hy-AM.umd.d.ts +908 -0
  78. package/lib/locale/lang/id-ID.d.ts +908 -0
  79. package/lib/locale/lang/id-ID.umd.d.ts +908 -0
  80. package/lib/locale/lang/it-IT.d.ts +908 -0
  81. package/lib/locale/lang/it-IT.umd.d.ts +908 -0
  82. package/lib/locale/lang/ja-JP.d.ts +908 -0
  83. package/lib/locale/lang/ja-JP.umd.d.ts +908 -0
  84. package/lib/locale/lang/ko-KR.d.ts +908 -0
  85. package/lib/locale/lang/ko-KR.umd.d.ts +908 -0
  86. package/lib/locale/lang/ms-MY.d.ts +908 -0
  87. package/lib/locale/lang/ms-MY.umd.d.ts +908 -0
  88. package/lib/locale/lang/nb-NO.d.ts +908 -0
  89. package/lib/locale/lang/nb-NO.umd.d.ts +908 -0
  90. package/lib/locale/lang/pt-BR.d.ts +908 -0
  91. package/lib/locale/lang/pt-BR.umd.d.ts +908 -0
  92. package/lib/locale/lang/ru-RU.d.ts +908 -0
  93. package/lib/locale/lang/ru-RU.umd.d.ts +908 -0
  94. package/lib/locale/lang/th-TH.d.ts +908 -0
  95. package/lib/locale/lang/th-TH.umd.d.ts +908 -0
  96. package/lib/locale/lang/ug-CN.d.ts +908 -0
  97. package/lib/locale/lang/ug-CN.umd.d.ts +908 -0
  98. package/lib/locale/lang/uk-UA.d.ts +908 -0
  99. package/lib/locale/lang/uk-UA.umd.d.ts +908 -0
  100. package/lib/locale/lang/uz-UZ.d.ts +908 -0
  101. package/lib/locale/lang/uz-UZ.umd.d.ts +908 -0
  102. package/lib/locale/lang/vi-VN.d.ts +908 -0
  103. package/lib/locale/lang/vi-VN.umd.d.ts +908 -0
  104. package/lib/locale/lang/zh-CHT.d.ts +908 -0
  105. package/lib/locale/lang/zh-CHT.umd.d.ts +908 -0
  106. package/lib/locale/lang/zh-CN.d.ts +908 -0
  107. package/lib/locale/lang/zh-CN.umd.d.ts +908 -0
  108. package/lib/locale/lang/zh-HK.d.ts +908 -0
  109. package/lib/locale/lang/zh-HK.umd.d.ts +908 -0
  110. package/lib/locale/lang/zh-MO.d.ts +908 -0
  111. package/lib/locale/lang/zh-MO.umd.d.ts +908 -0
  112. package/lib/locale/lang/zh-TC.d.ts +908 -0
  113. package/lib/locale/lang/zh-TC.umd.d.ts +908 -0
  114. package/lib/locale/lang/zh-TW.d.ts +908 -0
  115. package/lib/locale/lang/zh-TW.umd.d.ts +908 -0
  116. package/lib/locale/ms-MY.umd.d.ts +908 -0
  117. package/lib/locale/nb-NO.umd.d.ts +908 -0
  118. package/lib/locale/pt-BR.umd.d.ts +908 -0
  119. package/lib/locale/ru-RU.umd.d.ts +908 -0
  120. package/lib/locale/th-TH.umd.d.ts +908 -0
  121. package/lib/locale/ug-CN.umd.d.ts +908 -0
  122. package/lib/locale/uk-UA.umd.d.ts +908 -0
  123. package/lib/locale/uz-UZ.umd.d.ts +908 -0
  124. package/lib/locale/vi-VN.umd.d.ts +908 -0
  125. package/lib/locale/zh-CHT.umd.d.ts +908 -0
  126. package/lib/locale/zh-CN.umd.d.ts +908 -0
  127. package/lib/locale/zh-HK.umd.d.ts +908 -0
  128. package/lib/locale/zh-MO.umd.d.ts +908 -0
  129. package/lib/locale/zh-TC.umd.d.ts +908 -0
  130. package/lib/locale/zh-TW.umd.d.ts +908 -0
  131. package/lib/table/index.d.ts +2672 -0
  132. package/lib/table/module/custom/hook.d.ts +1 -0
  133. package/lib/table/module/custom/panel.d.ts +17 -0
  134. package/lib/table/module/custom/panel.js +1588 -1585
  135. package/lib/table/module/edit/hook.d.ts +1 -0
  136. package/lib/table/module/export/export-panel.d.ts +27 -0
  137. package/lib/table/module/export/export-panel.js +587 -584
  138. package/lib/table/module/export/hook.d.ts +1 -0
  139. package/lib/table/module/export/import-panel.d.ts +27 -0
  140. package/lib/table/module/export/import-panel.js +258 -255
  141. package/lib/table/module/export/util.d.ts +5 -0
  142. package/lib/table/module/filter/hook.d.ts +1 -0
  143. package/lib/table/module/filter/hook.js +1 -15
  144. package/lib/table/module/filter/panel.d.ts +16 -0
  145. package/lib/table/module/filter/panel.js +281 -278
  146. package/lib/table/module/keyboard/hook.d.ts +1 -0
  147. package/lib/table/module/menu/hook.d.ts +1 -0
  148. package/lib/table/module/menu/panel.d.ts +2 -0
  149. package/lib/table/module/menu/panel.js +225 -222
  150. package/lib/table/module/validator/hook.d.ts +1 -0
  151. package/lib/table/render/index.d.ts +1 -0
  152. package/lib/table/src/body.d.ts +24 -0
  153. package/lib/table/src/body.js +895 -892
  154. package/lib/table/src/cell.d.ts +192 -0
  155. package/lib/table/src/column.d.ts +263 -0
  156. package/lib/table/src/columnInfo.d.ts +13 -0
  157. package/lib/table/src/emits.d.ts +2 -0
  158. package/lib/table/src/emits.js +2 -2
  159. package/lib/table/src/footer.d.ts +45 -0
  160. package/lib/table/src/footer.js +341 -338
  161. package/lib/table/src/group.d.ts +178 -0
  162. package/lib/table/src/header.d.ts +26 -0
  163. package/lib/table/src/header.js +539 -536
  164. package/lib/table/src/props.d.ts +238 -0
  165. package/lib/table/src/props.js +2 -2
  166. package/lib/table/src/store.d.ts +6 -0
  167. package/lib/table/src/table.d.ts +539 -0
  168. package/lib/table/src/table.js +13 -8
  169. package/lib/table/src/use/cell-view.d.ts +10 -0
  170. package/lib/table/src/use/index.d.ts +1 -0
  171. package/lib/table/src/util.d.ts +74 -0
  172. package/lib/toolbar/index.d.ts +340 -0
  173. package/lib/toolbar/src/toolbar.d.ts +75 -0
  174. package/lib/ui/index.d.ts +85 -0
  175. package/lib/ui/index.js +1 -1
  176. package/lib/ui/src/anime.d.ts +10 -0
  177. package/lib/ui/src/comp.d.ts +2 -0
  178. package/lib/ui/src/dom.d.ts +80 -0
  179. package/lib/ui/src/log.d.ts +6 -0
  180. package/lib/ui/src/log.js +1 -1
  181. package/lib/ui/src/utils.d.ts +23 -0
  182. package/lib/ui/src/vn.d.ts +7 -0
  183. package/lib/v-x-e-table/index.d.ts +2 -0
  184. package/lib/vxe-colgroup/index.d.ts +3 -0
  185. package/lib/vxe-column/index.d.ts +3 -0
  186. package/lib/vxe-grid/index.d.ts +3 -0
  187. package/lib/vxe-table/index.d.ts +3 -0
  188. package/lib/vxe-toolbar/index.d.ts +3 -0
  189. package/lib/vxe-ui/index.d.ts +3 -0
  190. package/package.json +7 -7
  191. package/packages/grid/src/emits.ts +2 -2
  192. package/packages/grid/src/grid.ts +8 -8
  193. package/packages/grid/src/props.ts +3 -3
  194. package/packages/index.ts +2 -2
  195. package/packages/table/module/custom/panel.ts +2 -2
  196. package/packages/table/module/export/export-panel.ts +2 -2
  197. package/packages/table/module/export/import-panel.ts +2 -2
  198. package/packages/table/module/filter/hook.ts +1 -15
  199. package/packages/table/module/filter/panel.ts +2 -2
  200. package/packages/table/module/menu/panel.ts +2 -2
  201. package/packages/table/src/body.ts +2 -2
  202. package/packages/table/src/emits.ts +1 -1
  203. package/packages/table/src/footer.ts +2 -2
  204. package/packages/table/src/header.ts +2 -2
  205. package/packages/table/src/props.ts +1 -1
  206. package/packages/table/src/table.ts +21 -33
  207. /package/dist/{iconfont.1793090564415.ttf → iconfont.1793683456086.ttf} +0 -0
  208. /package/dist/{iconfont.1793090564415.woff → iconfont.1793683456086.woff} +0 -0
  209. /package/dist/{iconfont.1793090564415.woff2 → iconfont.1793683456086.woff2} +0 -0
  210. /package/es/{iconfont.1793090564415.ttf → iconfont.1793683456086.ttf} +0 -0
  211. /package/es/{iconfont.1793090564415.woff → iconfont.1793683456086.woff} +0 -0
  212. /package/es/{iconfont.1793090564415.woff2 → iconfont.1793683456086.woff2} +0 -0
  213. /package/lib/{iconfont.1793090564415.ttf → iconfont.1793683456086.ttf} +0 -0
  214. /package/lib/{iconfont.1793090564415.woff → iconfont.1793683456086.woff} +0 -0
  215. /package/lib/{iconfont.1793090564415.woff2 → iconfont.1793683456086.woff2} +0 -0
@@ -6,272 +6,275 @@ import { getDefaultConfig, parseFile } from "../../../ui/src/utils";
6
6
  import { createComponentLog } from "../../../ui/src/log";
7
7
  const { errLog } = createComponentLog("table");
8
8
  const { getI18n, getIcon, renderEmptyElement } = VxeUI;
9
- var import_panel_default = defineVxeComponent({
10
- name: "VxeTableImportPanel",
11
- props: {
12
- defaultOptions: {
13
- type: Object,
14
- default: () => ({})
15
- },
16
- storeData: {
17
- type: Object,
18
- default: () => ({})
19
- }
20
- },
21
- setup(props) {
22
- const VxeUIModalComponent = VxeUI.getComponent("VxeModal");
23
- const VxeUIButtonComponent = VxeUI.getComponent("VxeButton");
24
- const VxeUISelectComponent = VxeUI.getComponent("VxeSelect");
25
- const $xeTable = inject("$xeTable", {});
26
- const { computeImportOpts } = $xeTable.getComputeMaps();
27
- const reactData = reactive({
28
- loading: false
29
- });
30
- const refFileBtn = ref();
31
- const computeSelectName = computed(() => {
32
- const { storeData } = props;
33
- return `${storeData.filename}.${storeData.type}`;
34
- });
35
- const computeHasFile = computed(() => {
36
- const { storeData } = props;
37
- return storeData.file && storeData.type;
38
- });
39
- const computeParseTypeLabel = computed(() => {
40
- const { storeData } = props;
41
- const { type, typeList } = storeData;
42
- if (type) {
43
- const selectItem = XEUtils.find(typeList, (item) => type === item.value);
44
- return `${selectItem ? selectItem.label : "*.*"}`;
9
+ var import_panel_default = (
10
+ /* define-vxe-component start */
11
+ defineVxeComponent({
12
+ name: "VxeTableImportPanel",
13
+ props: {
14
+ defaultOptions: {
15
+ type: Object,
16
+ default: () => ({})
17
+ },
18
+ storeData: {
19
+ type: Object,
20
+ default: () => ({})
45
21
  }
46
- return `*.${typeList.map((item) => item.value).join(", *.")}`;
47
- });
48
- const clearFileEvent = () => {
49
- const { storeData } = props;
50
- Object.assign(storeData, {
51
- filename: "",
52
- sheetName: "",
53
- type: ""
22
+ },
23
+ setup(props) {
24
+ const VxeUIModalComponent = VxeUI.getComponent("VxeModal");
25
+ const VxeUIButtonComponent = VxeUI.getComponent("VxeButton");
26
+ const VxeUISelectComponent = VxeUI.getComponent("VxeSelect");
27
+ const $xeTable = inject("$xeTable", {});
28
+ const { computeImportOpts } = $xeTable.getComputeMaps();
29
+ const reactData = reactive({
30
+ loading: false
54
31
  });
55
- };
56
- const selectFileEvent = () => {
57
- const { storeData, defaultOptions } = props;
58
- $xeTable.readFile(defaultOptions).then((params) => {
59
- const { file } = params;
60
- Object.assign(storeData, parseFile(file), { file });
61
- }).catch(() => {
32
+ const refFileBtn = ref();
33
+ const computeSelectName = computed(() => {
34
+ const { storeData } = props;
35
+ return `${storeData.filename}.${storeData.type}`;
62
36
  });
63
- };
64
- const showEvent = () => {
65
- nextTick(() => {
66
- const targetElem = refFileBtn.value;
67
- if (targetElem) {
68
- targetElem.focus();
37
+ const computeHasFile = computed(() => {
38
+ const { storeData } = props;
39
+ return storeData.file && storeData.type;
40
+ });
41
+ const computeParseTypeLabel = computed(() => {
42
+ const { storeData } = props;
43
+ const { type, typeList } = storeData;
44
+ if (type) {
45
+ const selectItem = XEUtils.find(typeList, (item) => type === item.value);
46
+ return `${selectItem ? selectItem.label : "*.*"}`;
69
47
  }
48
+ return `*.${typeList.map((item) => item.value).join(", *.")}`;
70
49
  });
71
- };
72
- const cancelEvent = () => {
73
- const { storeData } = props;
74
- storeData.visible = false;
75
- };
76
- const importEvent = () => {
77
- const { storeData, defaultOptions } = props;
78
- const importOpts = computeImportOpts.value;
79
- reactData.loading = true;
80
- $xeTable.importByFile(storeData.file, Object.assign({}, importOpts, defaultOptions)).then(() => {
81
- reactData.loading = false;
50
+ const clearFileEvent = () => {
51
+ const { storeData } = props;
52
+ Object.assign(storeData, {
53
+ filename: "",
54
+ sheetName: "",
55
+ type: ""
56
+ });
57
+ };
58
+ const selectFileEvent = () => {
59
+ const { storeData, defaultOptions } = props;
60
+ $xeTable.readFile(defaultOptions).then((params) => {
61
+ const { file } = params;
62
+ Object.assign(storeData, parseFile(file), { file });
63
+ }).catch(() => {
64
+ });
65
+ };
66
+ const showEvent = () => {
67
+ nextTick(() => {
68
+ const targetElem = refFileBtn.value;
69
+ if (targetElem) {
70
+ targetElem.focus();
71
+ }
72
+ });
73
+ };
74
+ const cancelEvent = () => {
75
+ const { storeData } = props;
82
76
  storeData.visible = false;
83
- }).catch(() => {
84
- reactData.loading = false;
85
- });
86
- };
87
- const renderVN = () => {
88
- const $xeGrid = $xeTable.xeGrid;
89
- const $xeGantt = $xeTable.xeGantt;
90
- const { defaultOptions, storeData } = props;
91
- const selectName = computeSelectName.value;
92
- const hasFile = computeHasFile.value;
93
- const importOpts = computeImportOpts.value;
94
- const parseTypeLabel = computeParseTypeLabel.value;
95
- const modelOptions = importOpts.modelOptions || {};
96
- const settingOptions = importOpts.settingOptions || {};
97
- const slots = defaultOptions.slots || {};
98
- const topSlot = slots.top;
99
- const bottomSlot = slots.bottom;
100
- const defaultSlot = slots.default;
101
- const footerSlot = slots.footer;
102
- return VxeUIModalComponent ? h(
103
- VxeUIModalComponent,
104
- {
105
- id: "VXE_IMPORT_MODAL",
106
- modelValue: storeData.visible,
107
- title: modelOptions.title || getI18n("vxe.import.impTitle"),
108
- className: "vxe-table-export-popup-wrapper",
109
- width: modelOptions.width || 540,
110
- height: modelOptions.height,
111
- minWidth: modelOptions.minWidth || 360,
112
- minHeight: modelOptions.minHeight || 240,
113
- mask: getDefaultConfig(modelOptions.mask, true),
114
- lockView: getDefaultConfig(modelOptions.lockView, true),
115
- showFooter: true,
116
- escClosable: true,
117
- maskClosable: true,
118
- position: modelOptions.position,
119
- fullscreen: modelOptions.fullscreen,
120
- remember: modelOptions.remember,
121
- showMinimize: modelOptions.showMinimize,
122
- showMaximize: getDefaultConfig(modelOptions.showMaximize, true),
123
- resize: getDefaultConfig(modelOptions.resize, true),
124
- loading: reactData.loading,
125
- "onUpdate:modelValue"(value) {
126
- storeData.visible = value;
77
+ };
78
+ const importEvent = () => {
79
+ const { storeData, defaultOptions } = props;
80
+ const importOpts = computeImportOpts.value;
81
+ reactData.loading = true;
82
+ $xeTable.importByFile(storeData.file, Object.assign({}, importOpts, defaultOptions)).then(() => {
83
+ reactData.loading = false;
84
+ storeData.visible = false;
85
+ }).catch(() => {
86
+ reactData.loading = false;
87
+ });
88
+ };
89
+ const renderVN = () => {
90
+ const $xeGrid = $xeTable.xeGrid;
91
+ const $xeGantt = $xeTable.xeGantt;
92
+ const { defaultOptions, storeData } = props;
93
+ const selectName = computeSelectName.value;
94
+ const hasFile = computeHasFile.value;
95
+ const importOpts = computeImportOpts.value;
96
+ const parseTypeLabel = computeParseTypeLabel.value;
97
+ const modelOptions = importOpts.modelOptions || {};
98
+ const settingOptions = importOpts.settingOptions || {};
99
+ const slots = defaultOptions.slots || {};
100
+ const topSlot = slots.top;
101
+ const bottomSlot = slots.bottom;
102
+ const defaultSlot = slots.default;
103
+ const footerSlot = slots.footer;
104
+ return VxeUIModalComponent ? h(
105
+ VxeUIModalComponent,
106
+ {
107
+ id: "VXE_IMPORT_MODAL",
108
+ modelValue: storeData.visible,
109
+ title: modelOptions.title || getI18n("vxe.import.impTitle"),
110
+ className: "vxe-table-export-popup-wrapper",
111
+ width: modelOptions.width || 540,
112
+ height: modelOptions.height,
113
+ minWidth: modelOptions.minWidth || 360,
114
+ minHeight: modelOptions.minHeight || 240,
115
+ mask: getDefaultConfig(modelOptions.mask, true),
116
+ lockView: getDefaultConfig(modelOptions.lockView, true),
117
+ showFooter: true,
118
+ escClosable: true,
119
+ maskClosable: true,
120
+ position: modelOptions.position,
121
+ fullscreen: modelOptions.fullscreen,
122
+ remember: modelOptions.remember,
123
+ showMinimize: modelOptions.showMinimize,
124
+ showMaximize: getDefaultConfig(modelOptions.showMaximize, true),
125
+ resize: getDefaultConfig(modelOptions.resize, true),
126
+ loading: reactData.loading,
127
+ "onUpdate:modelValue"(value) {
128
+ storeData.visible = value;
129
+ },
130
+ onShow: showEvent
127
131
  },
128
- onShow: showEvent
129
- },
130
- {
131
- default: () => {
132
- const params = {
133
- $table: $xeTable,
134
- $grid: $xeGrid,
135
- $gantt: $xeGantt,
136
- options: defaultOptions,
137
- params: defaultOptions.params
138
- };
139
- return h(
140
- "div",
141
- {
142
- class: "vxe-table-export--panel"
143
- },
144
- [
145
- topSlot ? h(
146
- "div",
147
- {
148
- class: "vxe-table-export--panel-top"
149
- },
150
- $xeTable.callSlot(topSlot, params)
151
- ) : renderEmptyElement($xeTable),
152
- h(
153
- "div",
154
- {
155
- class: "vxe-table-export--panel-body"
156
- },
157
- defaultSlot ? $xeTable.callSlot(defaultSlot, params) : [
158
- h(
159
- "table",
160
- {
161
- class: "vxe-table-export--panel-table",
162
- cellspacing: 0,
163
- cellpadding: 0,
164
- border: 0
165
- },
166
- [
167
- h("tbody", [
168
- h("tr", [
169
- h("td", getI18n("vxe.import.impFile")),
170
- h("td", [
171
- hasFile ? h(
172
- "div",
173
- {
174
- class: "vxe-table-export--selected--file",
175
- title: selectName
176
- },
177
- [
178
- h("span", selectName),
179
- h("i", {
180
- class: getIcon().INPUT_CLEAR,
181
- onClick: clearFileEvent
182
- })
183
- ]
184
- ) : h(
185
- "button",
186
- {
187
- ref: refFileBtn,
188
- class: "vxe-table-export--select--file",
189
- onClick: selectFileEvent
190
- },
191
- getI18n("vxe.import.impSelect")
192
- )
193
- ])
194
- ]),
195
- h("tr", [h("td", getI18n("vxe.import.impType")), h("td", parseTypeLabel)]),
196
- settingOptions.showMode === false ? renderEmptyElement($xeTable) : h("tr", [
197
- h("td", getI18n("vxe.import.impMode")),
198
- h("td", [
199
- VxeUISelectComponent ? h(VxeUISelectComponent, {
200
- modelValue: defaultOptions.mode,
201
- options: storeData.modeList,
202
- "onUpdate:modelValue"(value) {
203
- defaultOptions.mode = value;
204
- }
205
- }) : renderEmptyElement($xeTable)
132
+ {
133
+ default: () => {
134
+ const params = {
135
+ $table: $xeTable,
136
+ $grid: $xeGrid,
137
+ $gantt: $xeGantt,
138
+ options: defaultOptions,
139
+ params: defaultOptions.params
140
+ };
141
+ return h(
142
+ "div",
143
+ {
144
+ class: "vxe-table-export--panel"
145
+ },
146
+ [
147
+ topSlot ? h(
148
+ "div",
149
+ {
150
+ class: "vxe-table-export--panel-top"
151
+ },
152
+ $xeTable.callSlot(topSlot, params)
153
+ ) : renderEmptyElement($xeTable),
154
+ h(
155
+ "div",
156
+ {
157
+ class: "vxe-table-export--panel-body"
158
+ },
159
+ defaultSlot ? $xeTable.callSlot(defaultSlot, params) : [
160
+ h(
161
+ "table",
162
+ {
163
+ class: "vxe-table-export--panel-table",
164
+ cellspacing: 0,
165
+ cellpadding: 0,
166
+ border: 0
167
+ },
168
+ [
169
+ h("tbody", [
170
+ h("tr", [
171
+ h("td", getI18n("vxe.import.impFile")),
172
+ h("td", [
173
+ hasFile ? h(
174
+ "div",
175
+ {
176
+ class: "vxe-table-export--selected--file",
177
+ title: selectName
178
+ },
179
+ [
180
+ h("span", selectName),
181
+ h("i", {
182
+ class: getIcon().INPUT_CLEAR,
183
+ onClick: clearFileEvent
184
+ })
185
+ ]
186
+ ) : h(
187
+ "button",
188
+ {
189
+ ref: refFileBtn,
190
+ class: "vxe-table-export--select--file",
191
+ onClick: selectFileEvent
192
+ },
193
+ getI18n("vxe.import.impSelect")
194
+ )
195
+ ])
196
+ ]),
197
+ h("tr", [h("td", getI18n("vxe.import.impType")), h("td", parseTypeLabel)]),
198
+ settingOptions.showMode === false ? renderEmptyElement($xeTable) : h("tr", [
199
+ h("td", getI18n("vxe.import.impMode")),
200
+ h("td", [
201
+ VxeUISelectComponent ? h(VxeUISelectComponent, {
202
+ modelValue: defaultOptions.mode,
203
+ options: storeData.modeList,
204
+ "onUpdate:modelValue"(value) {
205
+ defaultOptions.mode = value;
206
+ }
207
+ }) : renderEmptyElement($xeTable)
208
+ ])
206
209
  ])
207
210
  ])
208
- ])
209
- ]
210
- )
211
- ]
212
- ),
213
- bottomSlot ? h(
214
- "div",
215
- {
216
- class: "vxe-table-export--panel-bottom"
217
- },
218
- $xeTable.callSlot(bottomSlot, params)
219
- ) : renderEmptyElement($xeTable)
220
- ]
221
- );
222
- },
223
- footer() {
224
- const params = {
225
- $table: $xeTable,
226
- $grid: $xeGrid,
227
- $gantt: $xeGantt,
228
- options: defaultOptions,
229
- params: defaultOptions.params
230
- };
231
- return h(
232
- "div",
233
- {
234
- class: "vxe-table-export--panel-footer"
235
- },
236
- footerSlot ? $xeTable.callSlot(footerSlot, params) : [
237
- h(
238
- "div",
239
- {
240
- class: "vxe-table-export--panel-btns"
241
- },
242
- [
243
- VxeUIButtonComponent ? h(VxeUIButtonComponent, {
244
- content: getI18n("vxe.import.impCancel"),
245
- onClick: cancelEvent
246
- }) : renderEmptyElement($xeTable),
247
- VxeUIButtonComponent ? h(VxeUIButtonComponent, {
248
- status: "primary",
249
- disabled: !hasFile || reactData.loading,
250
- content: getI18n("vxe.import.impConfirm"),
251
- onClick: importEvent
252
- }) : renderEmptyElement($xeTable)
253
- ]
254
- )
255
- ]
256
- );
211
+ ]
212
+ )
213
+ ]
214
+ ),
215
+ bottomSlot ? h(
216
+ "div",
217
+ {
218
+ class: "vxe-table-export--panel-bottom"
219
+ },
220
+ $xeTable.callSlot(bottomSlot, params)
221
+ ) : renderEmptyElement($xeTable)
222
+ ]
223
+ );
224
+ },
225
+ footer() {
226
+ const params = {
227
+ $table: $xeTable,
228
+ $grid: $xeGrid,
229
+ $gantt: $xeGantt,
230
+ options: defaultOptions,
231
+ params: defaultOptions.params
232
+ };
233
+ return h(
234
+ "div",
235
+ {
236
+ class: "vxe-table-export--panel-footer"
237
+ },
238
+ footerSlot ? $xeTable.callSlot(footerSlot, params) : [
239
+ h(
240
+ "div",
241
+ {
242
+ class: "vxe-table-export--panel-btns"
243
+ },
244
+ [
245
+ VxeUIButtonComponent ? h(VxeUIButtonComponent, {
246
+ content: getI18n("vxe.import.impCancel"),
247
+ onClick: cancelEvent
248
+ }) : renderEmptyElement($xeTable),
249
+ VxeUIButtonComponent ? h(VxeUIButtonComponent, {
250
+ status: "primary",
251
+ disabled: !hasFile || reactData.loading,
252
+ content: getI18n("vxe.import.impConfirm"),
253
+ onClick: importEvent
254
+ }) : renderEmptyElement($xeTable)
255
+ ]
256
+ )
257
+ ]
258
+ );
259
+ }
257
260
  }
261
+ ) : renderEmptyElement($xeTable);
262
+ };
263
+ nextTick(() => {
264
+ if (!VxeUIModalComponent) {
265
+ errLog("vxe.error.reqComp", ["vxe-modal"]);
258
266
  }
259
- ) : renderEmptyElement($xeTable);
260
- };
261
- nextTick(() => {
262
- if (!VxeUIModalComponent) {
263
- errLog("vxe.error.reqComp", ["vxe-modal"]);
264
- }
265
- if (!VxeUIButtonComponent) {
266
- errLog("vxe.error.reqComp", ["vxe-button"]);
267
- }
268
- if (!VxeUISelectComponent) {
269
- errLog("vxe.error.reqComp", ["vxe-select"]);
270
- }
271
- });
272
- return renderVN;
273
- }
274
- });
267
+ if (!VxeUIButtonComponent) {
268
+ errLog("vxe.error.reqComp", ["vxe-button"]);
269
+ }
270
+ if (!VxeUISelectComponent) {
271
+ errLog("vxe.error.reqComp", ["vxe-select"]);
272
+ }
273
+ });
274
+ return renderVN;
275
+ }
276
+ })
277
+ );
275
278
  export {
276
279
  import_panel_default as default
277
280
  };
@@ -5,21 +5,7 @@ import { toFilters, handleFieldOrColumn, getRefElem } from "../../src/util";
5
5
  import { toCssUnit, triggerEvent, updatePanelPlacement } from "../../../ui/src/dom";
6
6
  import { hasEnableConf, isEnableConf } from "../../../ui/src/utils";
7
7
  const { renderer, hooks } = VxeUI;
8
- const tableFilterMethodKeys = [
9
- "openFilter",
10
- "setFilter",
11
- "clearFilter",
12
- "saveFilter",
13
- "saveFilterByEvent",
14
- "saveFilterPanel",
15
- "saveFilterPanelByEvent",
16
- "resetFilter",
17
- "resetFilterByEvent",
18
- "resetFilterPanel",
19
- "resetFilterPanelByEvent",
20
- "getCheckedFilters",
21
- "updateFilterOptionStatus"
22
- ];
8
+ const tableFilterMethodKeys = ["openFilter", "setFilter", "clearFilter", "saveFilter", "saveFilterByEvent", "saveFilterPanel", "saveFilterPanelByEvent", "resetFilter", "resetFilterByEvent", "resetFilterPanel", "resetFilterPanelByEvent", "getCheckedFilters", "updateFilterOptionStatus"];
23
9
  const sourceType = "table";
24
10
  hooks.add("tableFilterModule", {
25
11
  setupTable($xeTable) {