vxe-table 4.13.28 → 4.13.30

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 (37) hide show
  1. package/es/grid/src/grid.js +25 -26
  2. package/es/style.css +1 -1
  3. package/es/table/module/edit/hook.js +11 -27
  4. package/es/table/module/export/hook.js +15 -20
  5. package/es/table/module/validator/hook.js +104 -44
  6. package/es/table/src/table.js +33 -26
  7. package/es/ui/index.js +1 -1
  8. package/es/ui/src/log.js +1 -1
  9. package/lib/grid/src/grid.js +25 -26
  10. package/lib/grid/src/grid.min.js +1 -1
  11. package/lib/index.umd.js +171 -136
  12. package/lib/index.umd.min.js +1 -1
  13. package/lib/style.css +1 -1
  14. package/lib/table/module/edit/hook.js +11 -27
  15. package/lib/table/module/edit/hook.min.js +1 -1
  16. package/lib/table/module/export/hook.js +15 -20
  17. package/lib/table/module/export/hook.min.js +1 -1
  18. package/lib/table/module/validator/hook.js +106 -47
  19. package/lib/table/module/validator/hook.min.js +1 -1
  20. package/lib/table/src/table.js +12 -14
  21. package/lib/table/src/table.min.js +1 -1
  22. package/lib/ui/index.js +1 -1
  23. package/lib/ui/index.min.js +1 -1
  24. package/lib/ui/src/log.js +1 -1
  25. package/lib/ui/src/log.min.js +1 -1
  26. package/package.json +1 -1
  27. package/packages/grid/src/grid.ts +25 -27
  28. package/packages/table/module/edit/hook.ts +11 -27
  29. package/packages/table/module/export/hook.ts +17 -22
  30. package/packages/table/module/validator/hook.ts +106 -43
  31. package/packages/table/src/table.ts +33 -26
  32. /package/es/{iconfont.1747194464593.ttf → iconfont.1747357348072.ttf} +0 -0
  33. /package/es/{iconfont.1747194464593.woff → iconfont.1747357348072.woff} +0 -0
  34. /package/es/{iconfont.1747194464593.woff2 → iconfont.1747357348072.woff2} +0 -0
  35. /package/lib/{iconfont.1747194464593.ttf → iconfont.1747357348072.ttf} +0 -0
  36. /package/lib/{iconfont.1747194464593.woff → iconfont.1747357348072.woff} +0 -0
  37. /package/lib/{iconfont.1747194464593.woff2 → iconfont.1747357348072.woff2} +0 -0
@@ -1148,31 +1148,6 @@ export default defineComponent({
1148
1148
  // return nextTick()
1149
1149
  // }
1150
1150
  };
1151
- // 检查插槽
1152
- if (process.env.NODE_ENV === 'development') {
1153
- gridMethods.loadColumn = (columns) => {
1154
- const $xeTable = refTable.value;
1155
- XEUtils.eachTree(columns, (column) => {
1156
- if (column.slots) {
1157
- XEUtils.each(column.slots, (func) => {
1158
- if (!XEUtils.isFunction(func)) {
1159
- if (!slots[func]) {
1160
- errLog('vxe.error.notSlot', [func]);
1161
- }
1162
- }
1163
- });
1164
- }
1165
- });
1166
- if ($xeTable) {
1167
- return $xeTable.loadColumn(columns);
1168
- }
1169
- return nextTick();
1170
- };
1171
- gridMethods.reloadColumn = (columns) => {
1172
- gridExtendTableMethods.clearAll();
1173
- return gridMethods.loadColumn(columns);
1174
- };
1175
- }
1176
1151
  const gridPrivateMethods = {
1177
1152
  extendTableMethods,
1178
1153
  callSlot(slotFunc, params) {
@@ -1233,7 +1208,31 @@ export default defineComponent({
1233
1208
  gridMethods.dispatchEvent('zoom', { type: reactData.isZMax ? 'max' : 'revert' }, evnt);
1234
1209
  }
1235
1210
  };
1236
- Object.assign($xeGrid, gridExtendTableMethods, gridMethods, gridPrivateMethods);
1211
+ Object.assign($xeGrid, gridExtendTableMethods, gridMethods, gridPrivateMethods, {
1212
+ // 检查插槽
1213
+ loadColumn(columns) {
1214
+ const $xeTable = refTable.value;
1215
+ XEUtils.eachTree(columns, (column) => {
1216
+ if (column.slots) {
1217
+ XEUtils.each(column.slots, (func) => {
1218
+ if (!XEUtils.isFunction(func)) {
1219
+ if (!slots[func]) {
1220
+ errLog('vxe.error.notSlot', [func]);
1221
+ }
1222
+ }
1223
+ });
1224
+ }
1225
+ });
1226
+ if ($xeTable) {
1227
+ return $xeTable.loadColumn(columns);
1228
+ }
1229
+ return nextTick();
1230
+ },
1231
+ reloadColumn(columns) {
1232
+ $xeGrid.clearAll();
1233
+ return $xeGrid.loadColumn(columns);
1234
+ }
1235
+ });
1237
1236
  const columnFlag = ref(0);
1238
1237
  watch(() => props.columns ? props.columns.length : -1, () => {
1239
1238
  columnFlag.value++;