vxe-table 4.11.16 → 4.11.18

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 (61) hide show
  1. package/es/grid/src/grid.js +15 -29
  2. package/es/style.css +1 -1
  3. package/es/table/module/custom/panel.js +19 -21
  4. package/es/table/module/edit/hook.js +3 -5
  5. package/es/table/module/export/export-panel.js +17 -19
  6. package/es/table/module/export/hook.js +5 -11
  7. package/es/table/module/export/import-panel.js +11 -13
  8. package/es/table/module/validator/hook.js +1 -3
  9. package/es/table/render/index.js +90 -61
  10. package/es/table/src/columnInfo.js +26 -28
  11. package/es/table/src/table.js +132 -89
  12. package/es/toolbar/src/toolbar.js +16 -24
  13. package/es/ui/index.js +1 -1
  14. package/es/ui/src/log.js +1 -1
  15. package/lib/grid/src/grid.js +15 -29
  16. package/lib/grid/src/grid.min.js +1 -1
  17. package/lib/index.umd.js +361 -312
  18. package/lib/index.umd.min.js +1 -1
  19. package/lib/style.css +1 -1
  20. package/lib/table/module/custom/panel.js +21 -23
  21. package/lib/table/module/custom/panel.min.js +1 -1
  22. package/lib/table/module/edit/hook.js +3 -5
  23. package/lib/table/module/edit/hook.min.js +1 -1
  24. package/lib/table/module/export/export-panel.js +17 -19
  25. package/lib/table/module/export/export-panel.min.js +1 -1
  26. package/lib/table/module/export/hook.js +5 -11
  27. package/lib/table/module/export/hook.min.js +1 -1
  28. package/lib/table/module/export/import-panel.js +11 -13
  29. package/lib/table/module/export/import-panel.min.js +1 -1
  30. package/lib/table/module/validator/hook.js +1 -3
  31. package/lib/table/module/validator/hook.min.js +1 -1
  32. package/lib/table/render/index.js +98 -66
  33. package/lib/table/render/index.min.js +1 -1
  34. package/lib/table/src/columnInfo.js +30 -32
  35. package/lib/table/src/columnInfo.min.js +1 -1
  36. package/lib/table/src/table.js +138 -85
  37. package/lib/table/src/table.min.js +1 -1
  38. package/lib/toolbar/src/toolbar.js +16 -24
  39. package/lib/toolbar/src/toolbar.min.js +1 -1
  40. package/lib/ui/index.js +1 -1
  41. package/lib/ui/index.min.js +1 -1
  42. package/lib/ui/src/log.js +1 -1
  43. package/lib/ui/src/log.min.js +1 -1
  44. package/package.json +2 -2
  45. package/packages/grid/src/grid.ts +16 -29
  46. package/packages/table/module/custom/panel.ts +19 -21
  47. package/packages/table/module/edit/hook.ts +3 -5
  48. package/packages/table/module/export/export-panel.ts +17 -19
  49. package/packages/table/module/export/hook.ts +5 -11
  50. package/packages/table/module/export/import-panel.ts +11 -13
  51. package/packages/table/module/validator/hook.ts +1 -3
  52. package/packages/table/render/index.ts +89 -59
  53. package/packages/table/src/columnInfo.ts +26 -28
  54. package/packages/table/src/table.ts +128 -85
  55. package/packages/toolbar/src/toolbar.ts +16 -24
  56. /package/es/{iconfont.1741051544689.ttf → iconfont.1741224125327.ttf} +0 -0
  57. /package/es/{iconfont.1741051544689.woff → iconfont.1741224125327.woff} +0 -0
  58. /package/es/{iconfont.1741051544689.woff2 → iconfont.1741224125327.woff2} +0 -0
  59. /package/lib/{iconfont.1741051544689.ttf → iconfont.1741224125327.ttf} +0 -0
  60. /package/lib/{iconfont.1741051544689.woff → iconfont.1741224125327.woff} +0 -0
  61. /package/lib/{iconfont.1741051544689.woff2 → iconfont.1741224125327.woff2} +0 -0
@@ -408,9 +408,7 @@ export default defineComponent({
408
408
  return slots[funcSlot];
409
409
  }
410
410
  else {
411
- if (process.env.NODE_ENV === 'development') {
412
- errLog('vxe.error.notSlot', [funcSlot]);
413
- }
411
+ errLog('vxe.error.notSlot', [funcSlot]);
414
412
  }
415
413
  }
416
414
  else {
@@ -915,9 +913,7 @@ export default defineComponent({
915
913
  });
916
914
  }
917
915
  else {
918
- if (process.env.NODE_ENV === 'development') {
919
- errLog('vxe.error.notFunc', ['proxy-config.ajax.query']);
920
- }
916
+ errLog('vxe.error.notFunc', ['proxy-config.ajax.query']);
921
917
  }
922
918
  break;
923
919
  }
@@ -979,9 +975,7 @@ export default defineComponent({
979
975
  }
980
976
  }
981
977
  else {
982
- if (process.env.NODE_ENV === 'development') {
983
- errLog('vxe.error.notFunc', ['proxy-config.ajax.delete']);
984
- }
978
+ errLog('vxe.error.notFunc', ['proxy-config.ajax.delete']);
985
979
  }
986
980
  break;
987
981
  }
@@ -1056,9 +1050,7 @@ export default defineComponent({
1056
1050
  });
1057
1051
  }
1058
1052
  else {
1059
- if (process.env.NODE_ENV === 'development') {
1060
- errLog('vxe.error.notFunc', ['proxy-config.ajax.save']);
1061
- }
1053
+ errLog('vxe.error.notFunc', ['proxy-config.ajax.save']);
1062
1054
  }
1063
1055
  break;
1064
1056
  }
@@ -1070,9 +1062,7 @@ export default defineComponent({
1070
1062
  tCommandMethod({ code, button, $grid: $xeGrid, $table: $xeTable }, ...args);
1071
1063
  }
1072
1064
  else {
1073
- if (process.env.NODE_ENV === 'development') {
1074
- errLog('vxe.error.notCommands', [code]);
1075
- }
1065
+ errLog('vxe.error.notCommands', [code]);
1076
1066
  }
1077
1067
  }
1078
1068
  }
@@ -1251,22 +1241,18 @@ export default defineComponent({
1251
1241
  });
1252
1242
  initPages();
1253
1243
  onMounted(() => {
1254
- if (process.env.NODE_ENV === 'development') {
1255
- nextTick(() => {
1256
- if (props.formConfig) {
1257
- if (!VxeUIFormComponent) {
1258
- errLog('vxe.error.reqComp', ['vxe-form']);
1259
- }
1260
- }
1261
- if (props.pagerConfig) {
1262
- if (!VxeUIPagerComponent) {
1263
- errLog('vxe.error.reqComp', ['vxe-pager']);
1264
- }
1265
- }
1266
- });
1267
- }
1268
1244
  nextTick(() => {
1269
1245
  const { columns } = props;
1246
+ if (props.formConfig) {
1247
+ if (!VxeUIFormComponent) {
1248
+ errLog('vxe.error.reqComp', ['vxe-form']);
1249
+ }
1250
+ }
1251
+ if (props.pagerConfig) {
1252
+ if (!VxeUIPagerComponent) {
1253
+ errLog('vxe.error.reqComp', ['vxe-pager']);
1254
+ }
1255
+ }
1270
1256
  // const { data, columns, proxyConfig } = props
1271
1257
  // const proxyOpts = computeProxyOpts.value
1272
1258
  // const formOpts = computeFormOpts.value