vxe-table 4.23.7 → 4.23.9

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/dist/all.esm.js +5859 -4018
  2. package/es/colgroup/index.js +1 -1
  3. package/es/column/index.js +1 -1
  4. package/es/components.d.ts +3 -0
  5. package/es/components.js +4 -8
  6. package/es/grid/index.js +1 -1
  7. package/es/grid/src/emits.js +1 -15
  8. package/es/grid/src/grid.js +398 -121
  9. package/es/grid/src/props.js +1 -1
  10. package/es/index.esm.js +6 -0
  11. package/es/index.js +6 -0
  12. package/es/table/index.js +1 -1
  13. package/es/table/module/custom/hook.js +50 -43
  14. package/es/table/module/custom/panel.js +778 -528
  15. package/es/table/module/edit/hook.js +141 -63
  16. package/es/table/module/export/export-panel.js +400 -317
  17. package/es/table/module/export/hook.js +396 -338
  18. package/es/table/module/export/import-panel.js +153 -124
  19. package/es/table/module/filter/hook.js +17 -3
  20. package/es/table/module/filter/panel.js +147 -85
  21. package/es/table/module/keyboard/hook.js +9 -5
  22. package/es/table/module/menu/hook.js +1 -1
  23. package/es/table/module/menu/panel.js +198 -127
  24. package/es/table/module/validator/hook.js +1 -1
  25. package/es/table/render/index.js +152 -99
  26. package/es/table/src/body.js +356 -234
  27. package/es/table/src/cell.js +427 -270
  28. package/es/table/src/columnInfo.js +2 -1
  29. package/es/table/src/footer.js +145 -100
  30. package/es/table/src/group.js +7 -3
  31. package/es/table/src/header.js +230 -173
  32. package/es/table/src/props.js +1 -1
  33. package/es/table/src/table.js +1504 -1031
  34. package/es/table/src/util.js +15 -19
  35. package/es/toolbar/index.js +1 -1
  36. package/es/toolbar/src/toolbar.js +133 -76
  37. package/es/ui/index.d.ts +0 -1
  38. package/es/ui/index.js +1 -2
  39. package/es/ui/src/dom.js +9 -6
  40. package/es/ui/src/log.js +1 -1
  41. package/es/ui/src/utils.d.ts +1 -1
  42. package/es/v-x-e-table/index.d.ts +0 -1
  43. package/es/v-x-e-table/index.js +0 -1
  44. package/lib/colgroup/index.js +5 -5
  45. package/lib/column/index.js +5 -5
  46. package/lib/components.js +8 -12
  47. package/lib/grid/index.js +4 -4
  48. package/lib/grid/src/emits.js +1 -15
  49. package/lib/grid/src/grid.js +419 -142
  50. package/lib/grid/src/props.js +2 -2
  51. package/lib/index.common.js +6 -0
  52. package/lib/index.js +6 -0
  53. package/lib/index.umd.js +5825 -3945
  54. package/lib/index.umd.min.js +3 -3
  55. package/lib/table/index.js +5 -5
  56. package/lib/table/module/custom/hook.js +51 -44
  57. package/lib/table/module/custom/panel.js +790 -540
  58. package/lib/table/module/edit/hook.js +142 -64
  59. package/lib/table/module/export/export-panel.js +406 -323
  60. package/lib/table/module/export/hook.js +419 -361
  61. package/lib/table/module/export/import-panel.js +157 -128
  62. package/lib/table/module/filter/hook.js +18 -4
  63. package/lib/table/module/filter/panel.js +149 -87
  64. package/lib/table/module/keyboard/hook.js +10 -6
  65. package/lib/table/module/menu/hook.js +2 -2
  66. package/lib/table/module/menu/panel.js +199 -128
  67. package/lib/table/module/validator/hook.js +2 -2
  68. package/lib/table/render/index.js +153 -100
  69. package/lib/table/src/body.js +357 -235
  70. package/lib/table/src/cell.js +428 -271
  71. package/lib/table/src/columnInfo.js +3 -2
  72. package/lib/table/src/footer.js +146 -101
  73. package/lib/table/src/group.js +7 -3
  74. package/lib/table/src/header.js +231 -174
  75. package/lib/table/src/props.js +2 -2
  76. package/lib/table/src/table.js +1487 -1045
  77. package/lib/table/src/util.js +15 -19
  78. package/lib/toolbar/index.js +4 -4
  79. package/lib/toolbar/src/toolbar.js +135 -78
  80. package/lib/ui/index.js +1 -3
  81. package/lib/ui/src/dom.js +9 -6
  82. package/lib/ui/src/log.js +1 -1
  83. package/lib/v-x-e-table/index.js +0 -2
  84. package/package.json +8 -3
  85. package/packages/colgroup/index.ts +22 -22
  86. package/packages/column/index.ts +22 -22
  87. package/packages/components.ts +41 -43
  88. package/packages/grid/index.ts +18 -18
  89. package/packages/grid/src/emits.ts +5 -19
  90. package/packages/grid/src/grid.ts +2229 -1925
  91. package/packages/grid/src/props.ts +22 -23
  92. package/packages/index.ts +11 -4
  93. package/packages/locale/lang/fr-FR.ts +15 -15
  94. package/packages/locale/lang/it-IT.ts +4 -4
  95. package/packages/locale/lang/uk-UA.ts +1 -1
  96. package/packages/locale/lang/uz-UZ.ts +13 -13
  97. package/packages/locale/lang/zh-CN.ts +907 -907
  98. package/packages/table/index.ts +26 -26
  99. package/packages/table/module/custom/hook.ts +510 -503
  100. package/packages/table/module/custom/panel.ts +2002 -1743
  101. package/packages/table/module/edit/hook.ts +1224 -1131
  102. package/packages/table/module/export/export-panel.ts +697 -611
  103. package/packages/table/module/export/hook.ts +2160 -2059
  104. package/packages/table/module/export/import-panel.ts +319 -279
  105. package/packages/table/module/export/util.ts +25 -24
  106. package/packages/table/module/filter/hook.ts +519 -501
  107. package/packages/table/module/filter/panel.ts +368 -304
  108. package/packages/table/module/keyboard/hook.ts +498 -494
  109. package/packages/table/module/menu/hook.ts +330 -330
  110. package/packages/table/module/menu/panel.ts +272 -201
  111. package/packages/table/module/validator/hook.ts +653 -635
  112. package/packages/table/render/index.ts +1819 -1744
  113. package/packages/table/src/body.ts +1078 -955
  114. package/packages/table/src/cell.ts +1524 -1359
  115. package/packages/table/src/column.ts +192 -192
  116. package/packages/table/src/columnInfo.ts +232 -232
  117. package/packages/table/src/emits.ts +134 -134
  118. package/packages/table/src/footer.ts +425 -380
  119. package/packages/table/src/group.ts +67 -63
  120. package/packages/table/src/header.ts +642 -581
  121. package/packages/table/src/props.ts +336 -336
  122. package/packages/table/src/store.ts +14 -14
  123. package/packages/table/src/table.ts +16011 -15454
  124. package/packages/table/src/use/cell-view.ts +41 -44
  125. package/packages/table/src/use/index.ts +1 -1
  126. package/packages/table/src/util.ts +1206 -1216
  127. package/packages/toolbar/index.ts +18 -18
  128. package/packages/toolbar/src/toolbar.ts +768 -706
  129. package/packages/ui/index.ts +519 -521
  130. package/packages/ui/src/anime.ts +51 -52
  131. package/packages/ui/src/comp.ts +3 -3
  132. package/packages/ui/src/dom.ts +466 -463
  133. package/packages/ui/src/log.ts +19 -19
  134. package/packages/ui/src/utils.ts +66 -66
  135. package/packages/ui/src/vn.ts +55 -55
  136. package/packages/v-x-e-table/index.d.ts +3 -4
  137. package/packages/v-x-e-table/index.ts +3 -4
  138. package/types/all.d.ts +76 -76
  139. package/types/index.d.ts +4 -4
  140. /package/dist/{iconfont.1792979665397.ttf → iconfont.1793009263429.ttf} +0 -0
  141. /package/dist/{iconfont.1792979665397.woff → iconfont.1793009263429.woff} +0 -0
  142. /package/dist/{iconfont.1792979665397.woff2 → iconfont.1793009263429.woff2} +0 -0
  143. /package/es/{iconfont.1792979665397.ttf → iconfont.1793009263429.ttf} +0 -0
  144. /package/es/{iconfont.1792979665397.woff → iconfont.1793009263429.woff} +0 -0
  145. /package/es/{iconfont.1792979665397.woff2 → iconfont.1793009263429.woff2} +0 -0
  146. /package/lib/{iconfont.1792979665397.ttf → iconfont.1793009263429.ttf} +0 -0
  147. /package/lib/{iconfont.1792979665397.woff → iconfont.1793009263429.woff} +0 -0
  148. /package/lib/{iconfont.1792979665397.woff2 → iconfont.1793009263429.woff2} +0 -0
@@ -32,11 +32,11 @@ __export(grid_exports, {
32
32
  });
33
33
  module.exports = __toCommonJS(grid_exports);
34
34
  var import_vue = require("vue");
35
+ var import_core = require("@vxe-ui/core");
35
36
  var import_comp = require("../../ui/src/comp");
36
37
  var import_xe_utils = __toESM(require("xe-utils"));
37
38
  var import_utils = require("../../ui/src/utils");
38
39
  var import_dom = require("../../ui/src/dom");
39
- var import_ui = require("../../ui");
40
40
  var import_props = require("./props");
41
41
  var import_emits = require("./emits");
42
42
  var import_vn = require("../../ui/src/vn");
@@ -46,9 +46,193 @@ var import_props2 = require("../../table/src/props");
46
46
  var import_table = __toESM(require("../../table"));
47
47
  var import_toolbar = __toESM(require("../../toolbar"));
48
48
  const { warnLog, errLog } = (0, import_log.createComponentLog)("grid");
49
- const { getConfig, getI18n, commands, hooks, useFns, createEvent, globalEvents, GLOBAL_EVENT_KEYS, renderEmptyElement } = import_ui.VxeUI;
49
+ const { getConfig, getI18n, commands, hooks, useFns, createEvent, globalEvents, GLOBAL_EVENT_KEYS, renderEmptyElement } = import_core.VxeUI;
50
50
  const tableComponentPropKeys = Object.keys(import_props2.tableProps);
51
- const tableComponentMethodKeys = ["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", "getTreeRowLevel", "getTreeParentRow", "getRowSeq", "getRowById", "getRowid", "getTableData", "getFullData", "setColumnFixed", "clearColumnFixed", "setColumnWidth", "getColumnWidth", "recalcRowHeight", "setRowHeightConf", "getRowHeightConf", "setRowHeight", "getRowHeight", "hideColumn", "showColumn", "resetColumn", "refreshColumn", "refreshScroll", "recalculate", "closeTooltip", "isAllCheckboxChecked", "isAllCheckboxIndeterminate", "getCheckboxIndeterminateRecords", "setCheckboxRow", "setCheckboxRowKey", "isCheckedByCheckboxRow", "isCheckedByCheckboxRowKey", "isIndeterminateByCheckboxRow", "isIndeterminateByCheckboxRowKey", "toggleCheckboxRow", "setAllCheckboxRow", "getRadioReserveRecord", "clearRadioReserve", "getCheckboxReserveRecords", "clearCheckboxReserve", "toggleAllCheckboxRow", "clearCheckboxRow", "setCurrentRow", "isCheckedByRadioRow", "isCheckedByRadioRowKey", "setRadioRow", "setRadioRowKey", "clearCurrentRow", "clearRadioRow", "getCurrentRecord", "getRadioRecord", "getCurrentColumn", "setCurrentColumn", "clearCurrentColumn", "setPendingRow", "togglePendingRow", "hasPendingByRow", "isPendingByRow", "getPendingRecords", "clearPendingRow", "setFilterByEvent", "sort", "setSort", "setSortByEvent", "clearSort", "clearSortByEvent", "isSort", "getSortColumns", "closeFilter", "isFilter", "clearFilterByEvent", "isActiveFilterByColumn", "isRowExpandLoaded", "clearRowExpandLoaded", "reloadRowExpand", "reloadRowExpand", "toggleRowExpand", "setAllRowExpand", "setRowExpand", "isExpandByRow", "isRowExpandByRow", "clearRowExpand", "clearRowExpandReserve", "getRowExpandRecords", "getTreeExpandRecords", "isTreeExpandLoaded", "clearTreeExpandLoaded", "reloadTreeExpand", "reloadTreeChilds", "toggleTreeExpand", "setAllTreeExpand", "setTreeExpand", "isTreeExpandByRow", "clearTreeExpand", "clearTreeExpandReserve", "getScroll", "getScrollData", "scrollTo", "scrollToStartRow", "scrollToEndRow", "scrollToRow", "scrollToStartColumn", "scrollToEndColumn", "scrollToColumn", "clearScroll", "updateFooter", "updateStatus", "setMergeCells", "removeInsertRow", "removeMergeCells", "getMergeCells", "setMergeHeaderCells", "removeMergeHeaderCells", "getMergeHeaderCells", "clearMergeHeaderCells", "clearMergeCells", "setMergeFooterItems", "removeMergeFooterItems", "getMergeFooterItems", "clearMergeFooterItems", "setCustomStoreData", "getCustomStoreData", "setRowGroupExpand", "setRowGroupExpandByField", "setAllRowGroupExpand", "clearRowGroupExpand", "isRowGroupExpandByRow", "isRowGroupRecord", "isAggregateRecord", "isAggregateExpandByRow", "getAggregateContentByRow", "getAggregateRowChildren", "setRowGroups", "clearRowGroups", "openTooltip", "moveColumnTo", "moveRowTo", "getCellLabel", "updateCellLabel", "clearFormatterCache", "getFooterCellLabel", "updateFooterCellLabel", "clearFooterFormatterCache", "getUpdateCells", "undo", "redo", "effectCellData", "getCellElement", "focus", "blur", "connect", "connectToolbar"];
51
+ const tableComponentMethodKeys = [
52
+ "clearAll",
53
+ "syncData",
54
+ "updateData",
55
+ "loadData",
56
+ "reloadData",
57
+ "reloadRow",
58
+ "loadColumn",
59
+ "reloadColumn",
60
+ "getRowNode",
61
+ "getColumnNode",
62
+ "getRowIndex",
63
+ "getVTRowIndex",
64
+ "getVMRowIndex",
65
+ "getColumnIndex",
66
+ "getVTColumnIndex",
67
+ "getVMColumnIndex",
68
+ "setRow",
69
+ "createData",
70
+ "createRow",
71
+ "revertData",
72
+ "clearData",
73
+ "isRemoveByRow",
74
+ "isInsertByRow",
75
+ "isUpdateByRow",
76
+ "getColumns",
77
+ "getColumnById",
78
+ "getColumnByField",
79
+ "getTableColumn",
80
+ "getFullColumns",
81
+ "getData",
82
+ "getCheckboxRecords",
83
+ "getParentRow",
84
+ "getTreeRowChildren",
85
+ "getTreeRowLevel",
86
+ "getTreeParentRow",
87
+ "getRowSeq",
88
+ "getRowById",
89
+ "getRowid",
90
+ "getTableData",
91
+ "getFullData",
92
+ "setColumnFixed",
93
+ "clearColumnFixed",
94
+ "setColumnWidth",
95
+ "getColumnWidth",
96
+ "recalcRowHeight",
97
+ "setRowHeightConf",
98
+ "getRowHeightConf",
99
+ "setRowHeight",
100
+ "getRowHeight",
101
+ "hideColumn",
102
+ "showColumn",
103
+ "resetColumn",
104
+ "refreshColumn",
105
+ "refreshScroll",
106
+ "recalculate",
107
+ "closeTooltip",
108
+ "isAllCheckboxChecked",
109
+ "isAllCheckboxIndeterminate",
110
+ "getCheckboxIndeterminateRecords",
111
+ "setCheckboxRow",
112
+ "setCheckboxRowKey",
113
+ "isCheckedByCheckboxRow",
114
+ "isCheckedByCheckboxRowKey",
115
+ "isIndeterminateByCheckboxRow",
116
+ "isIndeterminateByCheckboxRowKey",
117
+ "toggleCheckboxRow",
118
+ "setAllCheckboxRow",
119
+ "getRadioReserveRecord",
120
+ "clearRadioReserve",
121
+ "getCheckboxReserveRecords",
122
+ "clearCheckboxReserve",
123
+ "toggleAllCheckboxRow",
124
+ "clearCheckboxRow",
125
+ "setCurrentRow",
126
+ "isCheckedByRadioRow",
127
+ "isCheckedByRadioRowKey",
128
+ "setRadioRow",
129
+ "setRadioRowKey",
130
+ "clearCurrentRow",
131
+ "clearRadioRow",
132
+ "getCurrentRecord",
133
+ "getRadioRecord",
134
+ "getCurrentColumn",
135
+ "setCurrentColumn",
136
+ "clearCurrentColumn",
137
+ "setPendingRow",
138
+ "togglePendingRow",
139
+ "hasPendingByRow",
140
+ "isPendingByRow",
141
+ "getPendingRecords",
142
+ "clearPendingRow",
143
+ "setFilterByEvent",
144
+ "sort",
145
+ "setSort",
146
+ "setSortByEvent",
147
+ "clearSort",
148
+ "clearSortByEvent",
149
+ "isSort",
150
+ "getSortColumns",
151
+ "closeFilter",
152
+ "isFilter",
153
+ "clearFilterByEvent",
154
+ "isActiveFilterByColumn",
155
+ "isRowExpandLoaded",
156
+ "clearRowExpandLoaded",
157
+ "reloadRowExpand",
158
+ "reloadRowExpand",
159
+ "toggleRowExpand",
160
+ "setAllRowExpand",
161
+ "setRowExpand",
162
+ "isExpandByRow",
163
+ "isRowExpandByRow",
164
+ "clearRowExpand",
165
+ "clearRowExpandReserve",
166
+ "getRowExpandRecords",
167
+ "getTreeExpandRecords",
168
+ "isTreeExpandLoaded",
169
+ "clearTreeExpandLoaded",
170
+ "reloadTreeExpand",
171
+ "reloadTreeChilds",
172
+ "toggleTreeExpand",
173
+ "setAllTreeExpand",
174
+ "setTreeExpand",
175
+ "isTreeExpandByRow",
176
+ "clearTreeExpand",
177
+ "clearTreeExpandReserve",
178
+ "getScroll",
179
+ "getScrollData",
180
+ "scrollTo",
181
+ "scrollToStartRow",
182
+ "scrollToEndRow",
183
+ "scrollToRow",
184
+ "scrollToStartColumn",
185
+ "scrollToEndColumn",
186
+ "scrollToColumn",
187
+ "clearScroll",
188
+ "updateFooter",
189
+ "updateStatus",
190
+ "setMergeCells",
191
+ "removeInsertRow",
192
+ "removeMergeCells",
193
+ "getMergeCells",
194
+ "setMergeHeaderCells",
195
+ "removeMergeHeaderCells",
196
+ "getMergeHeaderCells",
197
+ "clearMergeHeaderCells",
198
+ "clearMergeCells",
199
+ "setMergeFooterItems",
200
+ "removeMergeFooterItems",
201
+ "getMergeFooterItems",
202
+ "clearMergeFooterItems",
203
+ "setCustomStoreData",
204
+ "getCustomStoreData",
205
+ "setRowGroupExpand",
206
+ "setRowGroupExpandByField",
207
+ "setAllRowGroupExpand",
208
+ "clearRowGroupExpand",
209
+ "isRowGroupExpandByRow",
210
+ "isRowGroupRecord",
211
+ "isAggregateRecord",
212
+ "isAggregateExpandByRow",
213
+ "getAggregateContentByRow",
214
+ "getAggregateRowChildren",
215
+ "setRowGroups",
216
+ "clearRowGroups",
217
+ "openTooltip",
218
+ "moveColumnTo",
219
+ "moveRowTo",
220
+ "getCellLabel",
221
+ "updateCellLabel",
222
+ "clearFormatterCache",
223
+ "getFooterCellLabel",
224
+ "updateFooterCellLabel",
225
+ "clearFooterFormatterCache",
226
+ "getUpdateCells",
227
+ "undo",
228
+ "redo",
229
+ "effectCellData",
230
+ "getCellElement",
231
+ "focus",
232
+ "blur",
233
+ "connect",
234
+ "connectToolbar"
235
+ ];
52
236
  function createReactData() {
53
237
  var _a;
54
238
  return {
@@ -80,8 +264,8 @@ var grid_default = (0, import_comp.defineVxeComponent)({
80
264
  setup(props, context) {
81
265
  const { slots, emit } = context;
82
266
  const xID = import_xe_utils.default.uniqueId();
83
- const VxeUIFormComponent = import_ui.VxeUI.getComponent("VxeForm");
84
- const VxeUIPagerComponent = import_ui.VxeUI.getComponent("VxePager");
267
+ const VxeUIFormComponent = import_core.VxeUI.getComponent("VxeForm");
268
+ const VxeUIPagerComponent = import_core.VxeUI.getComponent("VxePager");
85
269
  const defaultLayouts = [["Form"], ["Toolbar", "Top", "Table", "Bottom", "Pager"]];
86
270
  const { computeSize } = useFns.useSize(props);
87
271
  const { computeIsVScrollbar } = useFns.useVScrollbar(props);
@@ -330,8 +514,8 @@ var grid_default = (0, import_comp.defineVxeComponent)({
330
514
  $xeGrid.clearCheckboxRow();
331
515
  } else {
332
516
  if (isActiveMsg) {
333
- if (import_ui.VxeUI.modal) {
334
- import_ui.VxeUI.modal.message({ id: code, content: getI18n("vxe.grid.selectOneRecord"), status: "warning" });
517
+ if (import_core.VxeUI.modal) {
518
+ import_core.VxeUI.modal.message({ id: code, content: getI18n("vxe.grid.selectOneRecord"), status: "warning" });
335
519
  }
336
520
  }
337
521
  }
@@ -352,16 +536,16 @@ var grid_default = (0, import_comp.defineVxeComponent)({
352
536
  const selectRecords = $xeGrid.getCheckboxRecords();
353
537
  if (isActiveMsg) {
354
538
  if (selectRecords.length) {
355
- if (import_ui.VxeUI.modal) {
356
- return import_ui.VxeUI.modal.confirm({ id: `cfm_${code}`, content: getI18n(alertKey), escClosable: true }).then((type) => {
539
+ if (import_core.VxeUI.modal) {
540
+ return import_core.VxeUI.modal.confirm({ id: `cfm_${code}`, content: getI18n(alertKey), escClosable: true }).then((type) => {
357
541
  if (type === "confirm") {
358
542
  return callback();
359
543
  }
360
544
  });
361
545
  }
362
546
  } else {
363
- if (import_ui.VxeUI.modal) {
364
- import_ui.VxeUI.modal.message({ id: `msg_${code}`, content: getI18n("vxe.grid.selectOneRecord"), status: "warning" });
547
+ if (import_core.VxeUI.modal) {
548
+ import_core.VxeUI.modal.message({ id: `msg_${code}`, content: getI18n("vxe.grid.selectOneRecord"), status: "warning" });
365
549
  }
366
550
  }
367
551
  } else {
@@ -548,6 +732,7 @@ var grid_default = (0, import_comp.defineVxeComponent)({
548
732
  if (formOpts.items) {
549
733
  const formSlots = {};
550
734
  if (!formOpts.inited) {
735
+ ;
551
736
  formOpts.inited = true;
552
737
  const beforeItem = proxyOpts.beforeItem;
553
738
  if (proxyOpts && beforeItem) {
@@ -567,25 +752,33 @@ var grid_default = (0, import_comp.defineVxeComponent)({
567
752
  });
568
753
  if (VxeUIFormComponent) {
569
754
  slotVNs.push(
570
- (0, import_vue.h)(VxeUIFormComponent, {
571
- ref: refForm,
572
- ...Object.assign({}, formOpts, {
573
- data: proxyConfig && (0, import_utils.isEnableConf)(proxyOpts) && proxyOpts.form ? formData : formOpts.data
574
- }),
575
- onSubmit: submitFormEvent,
576
- onReset: resetFormEvent,
577
- onSubmitInvalid: submitInvalidEvent,
578
- onCollapse: collapseEvent
579
- }, formSlots)
755
+ (0, import_vue.h)(
756
+ VxeUIFormComponent,
757
+ {
758
+ ref: refForm,
759
+ ...Object.assign({}, formOpts, {
760
+ data: proxyConfig && (0, import_utils.isEnableConf)(proxyOpts) && proxyOpts.form ? formData : formOpts.data
761
+ }),
762
+ onSubmit: submitFormEvent,
763
+ onReset: resetFormEvent,
764
+ onSubmitInvalid: submitInvalidEvent,
765
+ onCollapse: collapseEvent
766
+ },
767
+ formSlots
768
+ )
580
769
  );
581
770
  }
582
771
  }
583
772
  }
584
- return (0, import_vue.h)("div", {
585
- ref: refFormWrapper,
586
- key: "form",
587
- class: "vxe-grid--form-wrapper"
588
- }, slotVNs);
773
+ return (0, import_vue.h)(
774
+ "div",
775
+ {
776
+ ref: refFormWrapper,
777
+ key: "form",
778
+ class: "vxe-grid--form-wrapper"
779
+ },
780
+ slotVNs
781
+ );
589
782
  }
590
783
  return renderEmptyElement($xeGrid);
591
784
  };
@@ -627,47 +820,67 @@ var grid_default = (0, import_comp.defineVxeComponent)({
627
820
  }
628
821
  }
629
822
  slotVNs.push(
630
- (0, import_vue.h)(import_toolbar.default, {
631
- ref: refToolbar,
632
- ...toolbarOpts,
633
- slots: void 0
634
- }, toolbarSlots)
823
+ (0, import_vue.h)(
824
+ import_toolbar.default,
825
+ {
826
+ ref: refToolbar,
827
+ ...toolbarOpts,
828
+ slots: void 0
829
+ },
830
+ toolbarSlots
831
+ )
635
832
  );
636
833
  }
637
- return (0, import_vue.h)("div", {
638
- ref: refToolbarWrapper,
639
- key: "toolbar",
640
- class: "vxe-grid--toolbar-wrapper"
641
- }, slotVNs);
834
+ return (0, import_vue.h)(
835
+ "div",
836
+ {
837
+ ref: refToolbarWrapper,
838
+ key: "toolbar",
839
+ class: "vxe-grid--toolbar-wrapper"
840
+ },
841
+ slotVNs
842
+ );
642
843
  }
643
844
  return renderEmptyElement($xeGrid);
644
845
  };
645
846
  const renderTop = () => {
646
847
  const topSlot = slots.top;
647
848
  if (topSlot) {
648
- return (0, import_vue.h)("div", {
649
- ref: refTopWrapper,
650
- key: "top",
651
- class: "vxe-grid--top-wrapper"
652
- }, topSlot({ $grid: $xeGrid, $gantt: null }));
849
+ return (0, import_vue.h)(
850
+ "div",
851
+ {
852
+ ref: refTopWrapper,
853
+ key: "top",
854
+ class: "vxe-grid--top-wrapper"
855
+ },
856
+ topSlot({ $grid: $xeGrid, $gantt: null })
857
+ );
653
858
  }
654
859
  return renderEmptyElement($xeGrid);
655
860
  };
656
861
  const renderTableLeft = () => {
657
862
  const leftSlot = slots.left;
658
863
  if (leftSlot) {
659
- return (0, import_vue.h)("div", {
660
- class: "vxe-grid--left-wrapper"
661
- }, leftSlot({ $grid: $xeGrid, $gantt: null }));
864
+ return (0, import_vue.h)(
865
+ "div",
866
+ {
867
+ class: "vxe-grid--left-wrapper"
868
+ },
869
+ leftSlot({ $grid: $xeGrid, $gantt: null })
870
+ );
662
871
  }
663
872
  return renderEmptyElement($xeGrid);
664
873
  };
665
874
  const renderTableRight = () => {
666
875
  const rightSlot = slots.right;
667
876
  if (rightSlot) {
668
- return (0, import_vue.h)("div", {
669
- class: "vxe-grid--right-wrapper"
670
- }, rightSlot({ $grid: $xeGrid, $gantt: null }));
877
+ return (0, import_vue.h)(
878
+ "div",
879
+ {
880
+ class: "vxe-grid--right-wrapper"
881
+ },
882
+ rightSlot({ $grid: $xeGrid, $gantt: null })
883
+ );
671
884
  }
672
885
  return renderEmptyElement($xeGrid);
673
886
  };
@@ -715,23 +928,35 @@ var grid_default = (0, import_comp.defineVxeComponent)({
715
928
  if (footerTooltipSlot) {
716
929
  slotObj.footerTooltip = footerTooltipSlot;
717
930
  }
718
- return (0, import_vue.h)("div", {
719
- class: "vxe-grid--table-wrapper"
720
- }, [
721
- (0, import_vue.h)(import_table.default, {
722
- ref: refTable,
723
- ...tableProps2,
724
- ...tableOns
725
- }, slotObj)
726
- ]);
931
+ return (0, import_vue.h)(
932
+ "div",
933
+ {
934
+ class: "vxe-grid--table-wrapper"
935
+ },
936
+ [
937
+ (0, import_vue.h)(
938
+ import_table.default,
939
+ {
940
+ ref: refTable,
941
+ ...tableProps2,
942
+ ...tableOns
943
+ },
944
+ slotObj
945
+ )
946
+ ]
947
+ );
727
948
  };
728
949
  const renderBottom = () => {
729
950
  if (slots.bottom) {
730
- return (0, import_vue.h)("div", {
731
- ref: refBottomWrapper,
732
- key: "bottom",
733
- class: "vxe-grid--bottom-wrapper"
734
- }, slots.bottom({ $grid: $xeGrid, $gantt: null }));
951
+ return (0, import_vue.h)(
952
+ "div",
953
+ {
954
+ ref: refBottomWrapper,
955
+ key: "bottom",
956
+ class: "vxe-grid--bottom-wrapper"
957
+ },
958
+ slots.bottom({ $grid: $xeGrid, $gantt: null })
959
+ );
735
960
  }
736
961
  return renderEmptyElement($xeGrid);
737
962
  };
@@ -742,18 +967,26 @@ var grid_default = (0, import_comp.defineVxeComponent)({
742
967
  const pagerProps = computePagerProps.value;
743
968
  const pagerSlot = slots.pager;
744
969
  if (pagerConfig && (0, import_utils.isEnableConf)(pagerOpts) || slots.pager) {
745
- return (0, import_vue.h)("div", {
746
- ref: refPagerWrapper,
747
- key: "pager",
748
- class: "vxe-grid--pager-wrapper"
749
- }, pagerSlot ? pagerSlot({ $grid: $xeGrid, $gantt: null }) : [
750
- VxeUIPagerComponent ? (0, import_vue.h)(VxeUIPagerComponent, {
751
- ref: refPager,
752
- ...pagerProps,
753
- ...proxyConfig && (0, import_utils.isEnableConf)(proxyOpts) ? reactData.tablePage : {},
754
- onPageChange: pageChangeEvent
755
- }, getConfigSlot(pagerOpts.slots)) : renderEmptyElement($xeGrid)
756
- ]);
970
+ return (0, import_vue.h)(
971
+ "div",
972
+ {
973
+ ref: refPagerWrapper,
974
+ key: "pager",
975
+ class: "vxe-grid--pager-wrapper"
976
+ },
977
+ pagerSlot ? pagerSlot({ $grid: $xeGrid, $gantt: null }) : [
978
+ VxeUIPagerComponent ? (0, import_vue.h)(
979
+ VxeUIPagerComponent,
980
+ {
981
+ ref: refPager,
982
+ ...pagerProps,
983
+ ...proxyConfig && (0, import_utils.isEnableConf)(proxyOpts) ? reactData.tablePage : {},
984
+ onPageChange: pageChangeEvent
985
+ },
986
+ getConfigSlot(pagerOpts.slots)
987
+ ) : renderEmptyElement($xeGrid)
988
+ ]
989
+ );
757
990
  }
758
991
  return renderEmptyElement($xeGrid);
759
992
  };
@@ -772,14 +1005,14 @@ var grid_default = (0, import_comp.defineVxeComponent)({
772
1005
  break;
773
1006
  case "Table":
774
1007
  childVNs.push(
775
- (0, import_vue.h)("div", {
776
- key: "table",
777
- class: "vxe-grid--table-container"
778
- }, [
779
- renderTableLeft(),
780
- renderTable(),
781
- renderTableRight()
782
- ])
1008
+ (0, import_vue.h)(
1009
+ "div",
1010
+ {
1011
+ key: "table",
1012
+ class: "vxe-grid--table-container"
1013
+ },
1014
+ [renderTableLeft(), renderTable(), renderTableRight()]
1015
+ )
783
1016
  );
784
1017
  break;
785
1018
  case "Bottom":
@@ -801,25 +1034,49 @@ var grid_default = (0, import_comp.defineVxeComponent)({
801
1034
  const asideLeftSlot = slots.asideLeft || slots["aside-left"];
802
1035
  const asideRightSlot = slots.asideRight || slots["aside-right"];
803
1036
  return [
804
- (0, import_vue.h)("div", {
805
- class: "vxe-grid--layout-header-wrapper"
806
- }, renderChildLayout(headKeys)),
807
- (0, import_vue.h)("div", {
808
- class: "vxe-grid--layout-body-wrapper"
809
- }, [
810
- asideLeftSlot ? (0, import_vue.h)("div", {
811
- class: "vxe-grid--layout-aside-left-wrapper"
812
- }, asideLeftSlot({})) : renderEmptyElement($xeGrid),
813
- (0, import_vue.h)("div", {
814
- class: "vxe-grid--layout-body-content-wrapper"
815
- }, renderChildLayout(bodyKeys)),
816
- asideRightSlot ? (0, import_vue.h)("div", {
817
- class: "vxe-grid--layout-aside-right-wrapper"
818
- }, asideRightSlot({})) : renderEmptyElement($xeGrid)
819
- ]),
820
- (0, import_vue.h)("div", {
821
- class: "vxe-grid--layout-footer-wrapper"
822
- }, renderChildLayout(footKeys)),
1037
+ (0, import_vue.h)(
1038
+ "div",
1039
+ {
1040
+ class: "vxe-grid--layout-header-wrapper"
1041
+ },
1042
+ renderChildLayout(headKeys)
1043
+ ),
1044
+ (0, import_vue.h)(
1045
+ "div",
1046
+ {
1047
+ class: "vxe-grid--layout-body-wrapper"
1048
+ },
1049
+ [
1050
+ asideLeftSlot ? (0, import_vue.h)(
1051
+ "div",
1052
+ {
1053
+ class: "vxe-grid--layout-aside-left-wrapper"
1054
+ },
1055
+ asideLeftSlot({})
1056
+ ) : renderEmptyElement($xeGrid),
1057
+ (0, import_vue.h)(
1058
+ "div",
1059
+ {
1060
+ class: "vxe-grid--layout-body-content-wrapper"
1061
+ },
1062
+ renderChildLayout(bodyKeys)
1063
+ ),
1064
+ asideRightSlot ? (0, import_vue.h)(
1065
+ "div",
1066
+ {
1067
+ class: "vxe-grid--layout-aside-right-wrapper"
1068
+ },
1069
+ asideRightSlot({})
1070
+ ) : renderEmptyElement($xeGrid)
1071
+ ]
1072
+ ),
1073
+ (0, import_vue.h)(
1074
+ "div",
1075
+ {
1076
+ class: "vxe-grid--layout-footer-wrapper"
1077
+ },
1078
+ renderChildLayout(footKeys)
1079
+ ),
823
1080
  (0, import_vue.h)("div", {
824
1081
  ref: refPopupContainerElem
825
1082
  })
@@ -1054,10 +1311,7 @@ var grid_default = (0, import_comp.defineVxeComponent)({
1054
1311
  reactData.sortData = sortList;
1055
1312
  reactData.filterData = filterList;
1056
1313
  reactData.tableLoading = true;
1057
- return Promise.all([
1058
- Promise.resolve((oldBeforeQuery || qMethod)(commitParams, ...args)),
1059
- operPromise
1060
- ]).then(([rest]) => {
1314
+ return Promise.all([Promise.resolve((oldBeforeQuery || qMethod)(commitParams, ...args)), operPromise]).then(([rest]) => {
1061
1315
  reactData.tableLoading = false;
1062
1316
  if (aqMethod) {
1063
1317
  aqMethod({ ...commitParams, response: rest, status: "success" }, ...args);
@@ -1233,8 +1487,8 @@ var grid_default = (0, import_comp.defineVxeComponent)({
1233
1487
  } else {
1234
1488
  $xeTable.setPendingRow(removeRecords, false);
1235
1489
  if (isRespMsg) {
1236
- if (import_ui.VxeUI.modal) {
1237
- import_ui.VxeUI.modal.message({ content: getRespMsg(rest, "vxe.grid.delSuccess"), status: "success" });
1490
+ if (import_core.VxeUI.modal) {
1491
+ import_core.VxeUI.modal.message({ content: getRespMsg(rest, "vxe.grid.delSuccess"), status: "success" });
1238
1492
  }
1239
1493
  }
1240
1494
  if (oldAfterDelete) {
@@ -1256,8 +1510,8 @@ var grid_default = (0, import_comp.defineVxeComponent)({
1256
1510
  adMethod({ ...commitParams, response: rest, status: "error" }, ...args);
1257
1511
  } else {
1258
1512
  if (isRespMsg) {
1259
- if (import_ui.VxeUI.modal) {
1260
- import_ui.VxeUI.modal.message({ id: code, content: getRespMsg(rest, "vxe.grid.operError"), status: "error" });
1513
+ if (import_core.VxeUI.modal) {
1514
+ import_core.VxeUI.modal.message({ id: code, content: getRespMsg(rest, "vxe.grid.operError"), status: "error" });
1261
1515
  }
1262
1516
  }
1263
1517
  }
@@ -1278,8 +1532,8 @@ var grid_default = (0, import_comp.defineVxeComponent)({
1278
1532
  });
1279
1533
  } else {
1280
1534
  if (isActiveMsg) {
1281
- if (import_ui.VxeUI.modal) {
1282
- import_ui.VxeUI.modal.message({ id: code, content: getI18n("vxe.grid.selectOneRecord"), status: "warning" });
1535
+ if (import_core.VxeUI.modal) {
1536
+ import_core.VxeUI.modal.message({ id: code, content: getI18n("vxe.grid.selectOneRecord"), status: "warning" });
1283
1537
  }
1284
1538
  }
1285
1539
  }
@@ -1331,8 +1585,8 @@ var grid_default = (0, import_comp.defineVxeComponent)({
1331
1585
  } else {
1332
1586
  $xeTable.clearPendingRow();
1333
1587
  if (isRespMsg) {
1334
- if (import_ui.VxeUI.modal) {
1335
- import_ui.VxeUI.modal.message({ content: getRespMsg(rest, "vxe.grid.saveSuccess"), status: "success" });
1588
+ if (import_core.VxeUI.modal) {
1589
+ import_core.VxeUI.modal.message({ content: getRespMsg(rest, "vxe.grid.saveSuccess"), status: "success" });
1336
1590
  }
1337
1591
  }
1338
1592
  if (oldAfterSave) {
@@ -1354,8 +1608,8 @@ var grid_default = (0, import_comp.defineVxeComponent)({
1354
1608
  aSaveMethod({ ...commitParams, response: rest, status: "error" }, ...args);
1355
1609
  } else {
1356
1610
  if (isRespMsg) {
1357
- if (import_ui.VxeUI.modal) {
1358
- import_ui.VxeUI.modal.message({ id: code, content: getRespMsg(rest, "vxe.grid.operError"), status: "error" });
1611
+ if (import_core.VxeUI.modal) {
1612
+ import_core.VxeUI.modal.message({ id: code, content: getRespMsg(rest, "vxe.grid.operError"), status: "error" });
1359
1613
  }
1360
1614
  }
1361
1615
  }
@@ -1375,8 +1629,8 @@ var grid_default = (0, import_comp.defineVxeComponent)({
1375
1629
  return handleSave();
1376
1630
  } else {
1377
1631
  if (isActiveMsg) {
1378
- if (import_ui.VxeUI.modal) {
1379
- import_ui.VxeUI.modal.message({ id: code, content: getI18n("vxe.grid.dataUnchanged"), status: "info" });
1632
+ if (import_core.VxeUI.modal) {
1633
+ import_core.VxeUI.modal.message({ id: code, content: getI18n("vxe.grid.dataUnchanged"), status: "info" });
1380
1634
  }
1381
1635
  }
1382
1636
  }
@@ -1428,9 +1682,13 @@ var grid_default = (0, import_comp.defineVxeComponent)({
1428
1682
  const { formConfig } = props;
1429
1683
  const { items } = formOpts;
1430
1684
  const itemList = [];
1431
- import_xe_utils.default.eachTree(formConfig && (0, import_utils.isEnableConf)(formOpts) && items ? items : [], (item) => {
1432
- itemList.push(item);
1433
- }, { children: "children" });
1685
+ import_xe_utils.default.eachTree(
1686
+ formConfig && (0, import_utils.isEnableConf)(formOpts) && items ? items : [],
1687
+ (item) => {
1688
+ itemList.push(item);
1689
+ },
1690
+ { children: "children" }
1691
+ );
1434
1692
  return import_xe_utils.default.isUndefined(itemIndex) ? itemList : itemList[itemIndex];
1435
1693
  },
1436
1694
  getFormFlatItems() {
@@ -1698,31 +1956,47 @@ var grid_default = (0, import_comp.defineVxeComponent)({
1698
1956
  const vSize = computeSize.value;
1699
1957
  const styles = computeStyles.value;
1700
1958
  const isLoading = computeIsLoading.value;
1701
- return (0, import_vue.h)("div", {
1702
- ref: refElem,
1703
- class: ["vxe-grid", {
1704
- [`size--${vSize}`]: vSize,
1705
- "is--animat": !!props.animat,
1706
- "is--round": props.round,
1707
- "is--maximize": reactData.isZMax,
1708
- "is--loading": isLoading
1709
- }],
1710
- style: styles
1711
- }, renderLayout());
1959
+ return (0, import_vue.h)(
1960
+ "div",
1961
+ {
1962
+ ref: refElem,
1963
+ class: [
1964
+ "vxe-grid",
1965
+ {
1966
+ [`size--${vSize}`]: vSize,
1967
+ "is--animat": !!props.animat,
1968
+ "is--round": props.round,
1969
+ "is--maximize": reactData.isZMax,
1970
+ "is--loading": isLoading
1971
+ }
1972
+ ],
1973
+ style: styles
1974
+ },
1975
+ renderLayout()
1976
+ );
1712
1977
  };
1713
1978
  const columnFlag = (0, import_vue.ref)(0);
1714
- (0, import_vue.watch)(() => props.columns ? props.columns.length : -1, () => {
1715
- columnFlag.value++;
1716
- });
1717
- (0, import_vue.watch)(() => props.columns, () => {
1718
- columnFlag.value++;
1719
- });
1979
+ (0, import_vue.watch)(
1980
+ () => props.columns ? props.columns.length : -1,
1981
+ () => {
1982
+ columnFlag.value++;
1983
+ }
1984
+ );
1985
+ (0, import_vue.watch)(
1986
+ () => props.columns,
1987
+ () => {
1988
+ columnFlag.value++;
1989
+ }
1990
+ );
1720
1991
  (0, import_vue.watch)(columnFlag, () => {
1721
1992
  (0, import_vue.nextTick)(() => $xeGrid.loadColumn(props.columns || []));
1722
1993
  });
1723
- (0, import_vue.watch)(() => props.toolbarConfig, () => {
1724
- initToolbar();
1725
- });
1994
+ (0, import_vue.watch)(
1995
+ () => props.toolbarConfig,
1996
+ () => {
1997
+ initToolbar();
1998
+ }
1999
+ );
1726
2000
  (0, import_vue.watch)(computeCustomCurrentPageFlag, () => {
1727
2001
  initPages("currentPage");
1728
2002
  });
@@ -1732,9 +2006,12 @@ var grid_default = (0, import_comp.defineVxeComponent)({
1732
2006
  (0, import_vue.watch)(computeCustomTotalFlag, () => {
1733
2007
  initPages("total");
1734
2008
  });
1735
- (0, import_vue.watch)(() => props.proxyConfig, () => {
1736
- initProxy();
1737
- });
2009
+ (0, import_vue.watch)(
2010
+ () => props.proxyConfig,
2011
+ () => {
2012
+ initProxy();
2013
+ }
2014
+ );
1738
2015
  hooks.forEach((options) => {
1739
2016
  const { setupGrid } = options;
1740
2017
  if (setupGrid) {