vxe-table 3.23.0-beta.6 → 3.23.0

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 (40) hide show
  1. package/es/grid/src/grid.js +3 -0
  2. package/es/index.css +1 -1
  3. package/es/index.min.css +1 -1
  4. package/es/style.css +1 -1
  5. package/es/style.min.css +1 -1
  6. package/es/table/module/export/mixin.js +10 -9
  7. package/es/table/style.css +12 -3
  8. package/es/table/style.min.css +1 -1
  9. package/es/ui/index.js +1 -1
  10. package/es/ui/src/log.js +1 -1
  11. package/es/vxe-table/style.css +12 -3
  12. package/es/vxe-table/style.min.css +1 -1
  13. package/lib/grid/src/grid.js +5 -0
  14. package/lib/grid/src/grid.min.js +1 -1
  15. package/lib/index.css +1 -1
  16. package/lib/index.min.css +1 -1
  17. package/lib/index.umd.js +27 -11
  18. package/lib/index.umd.min.js +1 -1
  19. package/lib/style.css +1 -1
  20. package/lib/style.min.css +1 -1
  21. package/lib/table/module/export/mixin.js +19 -9
  22. package/lib/table/module/export/mixin.min.js +1 -1
  23. package/lib/table/style/style.css +12 -3
  24. package/lib/table/style/style.min.css +1 -1
  25. package/lib/ui/index.js +1 -1
  26. package/lib/ui/index.min.js +1 -1
  27. package/lib/ui/src/log.js +1 -1
  28. package/lib/ui/src/log.min.js +1 -1
  29. package/lib/vxe-table/style/style.css +12 -3
  30. package/lib/vxe-table/style/style.min.css +1 -1
  31. package/package.json +2 -2
  32. package/packages/grid/src/grid.ts +2 -0
  33. package/packages/table/module/export/mixin.ts +10 -9
  34. package/styles/components/table.scss +11 -2
  35. /package/es/{iconfont.1787300499401.ttf → iconfont.1787473155426.ttf} +0 -0
  36. /package/es/{iconfont.1787300499401.woff → iconfont.1787473155426.woff} +0 -0
  37. /package/es/{iconfont.1787300499401.woff2 → iconfont.1787473155426.woff2} +0 -0
  38. /package/lib/{iconfont.1787300499401.ttf → iconfont.1787473155426.ttf} +0 -0
  39. /package/lib/{iconfont.1787300499401.woff → iconfont.1787473155426.woff} +0 -0
  40. /package/lib/{iconfont.1787300499401.woff2 → iconfont.1787473155426.woff2} +0 -0
package/lib/index.umd.js CHANGED
@@ -3314,7 +3314,7 @@ function getDefaultConfig(val1, def1) {
3314
3314
  /* unused harmony import specifier */ var VxeUI;
3315
3315
 
3316
3316
 
3317
- const version = "3.23.0-beta.6";
3317
+ const version = "3.23.0";
3318
3318
  core_.VxeUI.version = version;
3319
3319
  core_.VxeUI.tableVersion = version;
3320
3320
  core_.VxeUI.setConfig({
@@ -4112,7 +4112,7 @@ function getPopupAppendElement(appendTo) {
4112
4112
  const {
4113
4113
  log: log_log
4114
4114
  } = core_.VxeUI;
4115
- const tableVersion = `table v${"3.23.0-beta.6"}`;
4115
+ const tableVersion = `table v${"3.23.0"}`;
4116
4116
  function createComponentLog(name) {
4117
4117
  const uiVersion = core_.VxeUI.uiVersion ? `ui v${core_.VxeUI.uiVersion}` : '';
4118
4118
  const ganttVersion = core_.VxeUI.ganttVersion ? `gantt v${core_.VxeUI.ganttVersion}` : '';
@@ -17814,7 +17814,8 @@ function handleImport($xeTable, content, opts) {
17814
17814
  });
17815
17815
  if (_importReject) {
17816
17816
  _importReject({
17817
- status: false
17817
+ status: false,
17818
+ msg: 'field mismatching'
17818
17819
  });
17819
17820
  }
17820
17821
  }
@@ -17843,7 +17844,8 @@ function handleFileImport($xeTable, file, opts) {
17843
17844
  });
17844
17845
  }
17845
17846
  const params = {
17846
- status: false
17847
+ status: false,
17848
+ msg: 'type error'
17847
17849
  };
17848
17850
  return Promise.reject(params);
17849
17851
  }
@@ -17900,7 +17902,8 @@ function handleFileImport($xeTable, file, opts) {
17900
17902
  reader.onerror = () => {
17901
17903
  export_mixin_errLog('vxe.error.notType', [type]);
17902
17904
  _importReject({
17903
- status: false
17905
+ status: false,
17906
+ msg: 'reading file error'
17904
17907
  });
17905
17908
  };
17906
17909
  reader.onload = e => {
@@ -17913,7 +17916,8 @@ function handleFileImport($xeTable, file, opts) {
17913
17916
  // 不支持的浏览器
17914
17917
  export_mixin_errLog('vxe.error.notExp');
17915
17918
  _importResolve({
17916
- status: true
17919
+ status: false,
17920
+ msg: 'unsupported browser'
17917
17921
  });
17918
17922
  }
17919
17923
  });
@@ -18459,7 +18463,8 @@ const convertToRows = originColumns => {
18459
18463
  export_mixin_warnLog('vxe.error.reqPlugin', [3, 'plugin-export-xlsx']);
18460
18464
  }
18461
18465
  const params = {
18462
- status: false
18466
+ status: false,
18467
+ msg: 'type error'
18463
18468
  };
18464
18469
  return Promise.reject(params);
18465
18470
  }
@@ -18474,7 +18479,8 @@ const convertToRows = originColumns => {
18474
18479
  if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(beRest)) {
18475
18480
  if (!beRest) {
18476
18481
  const params = {
18477
- status: false
18482
+ status: false,
18483
+ msg: 'before prevent'
18478
18484
  };
18479
18485
  return Promise.reject(params);
18480
18486
  }
@@ -18618,7 +18624,8 @@ const convertToRows = originColumns => {
18618
18624
  if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(biRest)) {
18619
18625
  if (!biRest) {
18620
18626
  const params = {
18621
- status: false
18627
+ status: false,
18628
+ mas: 'before prevent'
18622
18629
  };
18623
18630
  return Promise.reject(params);
18624
18631
  }
@@ -18648,7 +18655,8 @@ const convertToRows = originColumns => {
18648
18655
  if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(biRest)) {
18649
18656
  if (!biRest) {
18650
18657
  const params = {
18651
- status: false
18658
+ status: false,
18659
+ mas: 'before prevent'
18652
18660
  };
18653
18661
  return Promise.reject(params);
18654
18662
  }
@@ -18806,8 +18814,10 @@ const convertToRows = originColumns => {
18806
18814
  }));
18807
18815
  }
18808
18816
  } else {
18817
+ export_mixin_errLog('vxe.error.reqComp', ['vxe-print']);
18809
18818
  const e = {
18810
- status: false
18819
+ status: false,
18820
+ msg: 'print not exist'
18811
18821
  };
18812
18822
  reject(e);
18813
18823
  }
@@ -25555,6 +25565,12 @@ function grid_createInternalData() {
25555
25565
  return Promise.resolve((oldBeforeSave || sMethod)(commitParams, ...args)).then(rest => {
25556
25566
  reactData.tableLoading = false;
25557
25567
  if (aSaveMethod) {
25568
+ aSaveMethod({
25569
+ ...commitParams,
25570
+ response: rest,
25571
+ status: 'success'
25572
+ }, ...args);
25573
+ } else {
25558
25574
  $xeTable.clearPendingRow();
25559
25575
  if (isRespMsg) {
25560
25576
  if (core_.VxeUI.modal) {