vxe-table 3.14.0 → 3.14.1

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 (38) hide show
  1. package/es/style.css +1 -1
  2. package/es/table/module/edit/mixin.js +92 -63
  3. package/es/table/module/validator/mixin.js +2 -5
  4. package/es/table/src/body.js +6 -7
  5. package/es/table/src/methods.js +291 -278
  6. package/es/table/src/table.js +15 -15
  7. package/es/ui/index.js +1 -1
  8. package/es/ui/src/log.js +1 -1
  9. package/lib/index.umd.js +478 -484
  10. package/lib/index.umd.min.js +1 -1
  11. package/lib/style.css +1 -1
  12. package/lib/table/module/edit/mixin.js +106 -98
  13. package/lib/table/module/edit/mixin.min.js +1 -1
  14. package/lib/table/module/validator/mixin.js +3 -9
  15. package/lib/table/module/validator/mixin.min.js +1 -1
  16. package/lib/table/src/body.js +6 -7
  17. package/lib/table/src/body.min.js +1 -1
  18. package/lib/table/src/methods.js +343 -348
  19. package/lib/table/src/methods.min.js +1 -1
  20. package/lib/table/src/table.js +15 -15
  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 +2 -2
  27. package/packages/table/module/edit/mixin.ts +125 -87
  28. package/packages/table/module/validator/mixin.ts +3 -6
  29. package/packages/table/src/body.ts +6 -7
  30. package/packages/table/src/methods.ts +334 -293
  31. package/packages/table/src/table.ts +18 -18
  32. package/packages/table/src/util.ts +2 -2
  33. /package/es/{iconfont.1742955973002.ttf → iconfont.1743045564244.ttf} +0 -0
  34. /package/es/{iconfont.1742955973002.woff → iconfont.1743045564244.woff} +0 -0
  35. /package/es/{iconfont.1742955973002.woff2 → iconfont.1743045564244.woff2} +0 -0
  36. /package/lib/{iconfont.1742955973002.ttf → iconfont.1743045564244.ttf} +0 -0
  37. /package/lib/{iconfont.1742955973002.woff → iconfont.1743045564244.woff} +0 -0
  38. /package/lib/{iconfont.1742955973002.woff2 → iconfont.1743045564244.woff2} +0 -0
@@ -544,9 +544,7 @@ export default {
544
544
  focused: {
545
545
  row: null,
546
546
  column: null
547
- },
548
- insertMaps: {},
549
- removeMaps: {}
547
+ }
550
548
  },
551
549
  // 存放 tooltip 相关信息
552
550
  tooltipStore: {
@@ -658,22 +656,22 @@ export default {
658
656
  return Object.assign({ message: 'default' }, getConfig().table.validConfig, this.validConfig);
659
657
  },
660
658
  sXOpts() {
661
- return this.computeSXOpts;
659
+ return this.computeVirtualXOpts;
662
660
  },
663
661
  computeSXOpts() {
664
662
  return this.computeVirtualXOpts;
665
663
  },
666
664
  computeScrollXThreshold() {
667
665
  const $xeTable = this;
668
- const sXOpts = $xeTable.computeSXOpts;
669
- const { threshold } = sXOpts;
666
+ const virtualXOpts = $xeTable.computeVirtualXOpts;
667
+ const { threshold } = virtualXOpts;
670
668
  if (threshold) {
671
669
  return XEUtils.toNumber(threshold);
672
670
  }
673
671
  return 0;
674
672
  },
675
673
  sYOpts() {
676
- return this.computeSYOpts;
674
+ return this.computeVirtualYOpts;
677
675
  },
678
676
  computeSYOpts() {
679
677
  return this.computeVirtualYOpts;
@@ -705,8 +703,8 @@ export default {
705
703
  },
706
704
  computeScrollYThreshold() {
707
705
  const $xeTable = this;
708
- const sYOpts = $xeTable.computeSYOpts;
709
- const { threshold } = sYOpts;
706
+ const virtualYOpts = $xeTable.computeVirtualYOpts;
707
+ const { threshold } = virtualYOpts;
710
708
  if (threshold) {
711
709
  return XEUtils.toNumber(threshold);
712
710
  }
@@ -1297,11 +1295,11 @@ export default {
1297
1295
  tableFullColumn: [],
1298
1296
  // 渲染所有列
1299
1297
  visibleColumn: [],
1300
- // 缓存数据集
1298
+ // 总的缓存数据集
1301
1299
  fullAllDataRowIdData: {},
1302
- fullDataRowMap: new Map(),
1300
+ // 渲染中缓存数据
1301
+ sourceDataRowIdData: {},
1303
1302
  fullDataRowIdData: {},
1304
- fullColumnMap: new Map(),
1305
1303
  fullColumnIdData: {},
1306
1304
  fullColumnFieldData: {},
1307
1305
  // 已展开的行集合
@@ -1316,13 +1314,16 @@ export default {
1316
1314
  selectCheckboxMaps: {},
1317
1315
  // 已标记的对象集
1318
1316
  pendingRowMaps: {},
1317
+ // 已新增的临时行
1318
+ insertRowMaps: {},
1319
+ // 已删除行
1320
+ removeRowMaps: {},
1319
1321
  swYSize: 0,
1320
1322
  swYInterval: 0,
1321
1323
  swYTotal: 0
1322
1324
  });
1323
1325
  const { data, exportConfig, importConfig, treeConfig, showOverflow } = props;
1324
1326
  const { scrollXStore, scrollYStore } = internalData;
1325
- const sYOpts = $xeTable.computeSYOpts;
1326
1327
  const editOpts = $xeTable.computeEditOpts;
1327
1328
  const treeOpts = $xeTable.computeTreeOpts;
1328
1329
  const radioOpts = $xeTable.computeRadioOpts;
@@ -1482,8 +1483,7 @@ export default {
1482
1483
  Object.assign(scrollYStore, {
1483
1484
  startIndex: 0,
1484
1485
  endIndex: 1,
1485
- visibleSize: 0,
1486
- adaptive: sYOpts.adaptive !== false
1486
+ visibleSize: 0
1487
1487
  });
1488
1488
  Object.assign(scrollXStore, {
1489
1489
  startIndex: 0,
package/es/ui/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { VxeUI } from '@vxe-ui/core';
2
2
  import { getFuncText } from './src/utils';
3
- export const version = "3.14.0";
3
+ export const version = "3.14.1";
4
4
  VxeUI.version = version;
5
5
  VxeUI.tableVersion = version;
6
6
  VxeUI.setConfig({
package/es/ui/src/log.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { VxeUI } from '@vxe-ui/core';
2
2
  const { log } = VxeUI;
3
- const version = `table v${"3.14.0"}`;
3
+ const version = `table v${"3.14.1"}`;
4
4
  export const warnLog = log.create('warn', version);
5
5
  export const errLog = log.create('error', version);