vxe-pc-ui 4.16.2 → 4.16.3

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/dist/all.esm.js +18 -8
  2. package/dist/style.css +1 -1
  3. package/dist/style.min.css +1 -1
  4. package/es/icon/style.css +1 -1
  5. package/es/style.css +1 -1
  6. package/es/style.min.css +1 -1
  7. package/es/tree/src/tree.js +16 -6
  8. package/es/ui/index.js +1 -1
  9. package/es/ui/src/log.js +1 -1
  10. package/helper/vetur/attributes.json +1 -1
  11. package/helper/vetur/tags.json +1 -1
  12. package/lib/icon/style/style.css +1 -1
  13. package/lib/icon/style/style.min.css +1 -1
  14. package/lib/index.umd.js +22 -10
  15. package/lib/index.umd.min.js +1 -1
  16. package/lib/style.css +1 -1
  17. package/lib/style.min.css +1 -1
  18. package/lib/tree/src/tree.js +20 -8
  19. package/lib/tree/src/tree.min.js +1 -1
  20. package/lib/ui/index.js +1 -1
  21. package/lib/ui/index.min.js +1 -1
  22. package/lib/ui/src/log.js +1 -1
  23. package/lib/ui/src/log.min.js +1 -1
  24. package/package.json +1 -1
  25. package/packages/tree/src/tree.ts +16 -6
  26. package/types/components/gantt.d.ts +1 -0
  27. /package/es/icon/{iconfont.1783571763891.ttf → iconfont.1783607056967.ttf} +0 -0
  28. /package/es/icon/{iconfont.1783571763891.woff → iconfont.1783607056967.woff} +0 -0
  29. /package/es/icon/{iconfont.1783571763891.woff2 → iconfont.1783607056967.woff2} +0 -0
  30. /package/es/{iconfont.1783571763891.ttf → iconfont.1783607056967.ttf} +0 -0
  31. /package/es/{iconfont.1783571763891.woff → iconfont.1783607056967.woff} +0 -0
  32. /package/es/{iconfont.1783571763891.woff2 → iconfont.1783607056967.woff2} +0 -0
  33. /package/lib/icon/style/{iconfont.1783571763891.ttf → iconfont.1783607056967.ttf} +0 -0
  34. /package/lib/icon/style/{iconfont.1783571763891.woff → iconfont.1783607056967.woff} +0 -0
  35. /package/lib/icon/style/{iconfont.1783571763891.woff2 → iconfont.1783607056967.woff2} +0 -0
  36. /package/lib/{iconfont.1783571763891.ttf → iconfont.1783607056967.ttf} +0 -0
  37. /package/lib/{iconfont.1783571763891.woff → iconfont.1783607056967.woff} +0 -0
  38. /package/lib/{iconfont.1783571763891.woff2 → iconfont.1783607056967.woff2} +0 -0
package/dist/all.esm.js CHANGED
@@ -81,7 +81,7 @@ function checkDynamic() {
81
81
  }
82
82
 
83
83
  const { log } = VxeUI;
84
- const uiVersion = `ui v${"4.16.2"}`;
84
+ const uiVersion = `ui v${"4.16.3"}`;
85
85
  function createComponentLog(name) {
86
86
  const tableVersion = VxeUI.tableVersion ? `table v${VxeUI.tableVersion}` : '';
87
87
  const ganttVersion = VxeUI.ganttVersion ? `gantt v${VxeUI.ganttVersion}` : '';
@@ -95,7 +95,7 @@ function createComponentLog(name) {
95
95
  const warnLog$h = log.create('warn', uiVersion);
96
96
  log.create('error', uiVersion);
97
97
 
98
- const version = "4.16.2";
98
+ const version = "4.16.3";
99
99
  VxeUI.uiVersion = version;
100
100
  VxeUI.dynamicApp = dynamicApp;
101
101
  function config(options) {
@@ -41586,14 +41586,16 @@ var VxeTreeComponent = defineVxeComponent({
41586
41586
  const { loadMethod } = props;
41587
41587
  const { checkStrictly } = checkboxOpts;
41588
41588
  return new Promise(resolve => {
41589
+ const { nodeMaps } = internalData;
41590
+ const nodeid = getNodeId(node);
41591
+ const nodeItem = nodeMaps[nodeid];
41589
41592
  if (loadMethod) {
41590
- const { nodeMaps } = internalData;
41591
- const nodeid = getNodeId(node);
41592
- const nodeItem = nodeMaps[nodeid];
41593
41593
  internalData.treeExpandLazyLoadedMaps[nodeid] = true;
41594
41594
  Promise.resolve(loadMethod({ $tree: $xeTree, node })).then((childRecords) => {
41595
41595
  const { treeExpandLazyLoadedMaps } = internalData;
41596
- nodeItem.treeLoaded = true;
41596
+ if (nodeItem) {
41597
+ nodeItem.treeLoaded = true;
41598
+ }
41597
41599
  if (treeExpandLazyLoadedMaps[nodeid]) {
41598
41600
  treeExpandLazyLoadedMaps[nodeid] = false;
41599
41601
  }
@@ -41620,7 +41622,9 @@ var VxeTreeComponent = defineVxeComponent({
41620
41622
  }
41621
41623
  }).catch((e) => {
41622
41624
  const { treeExpandLazyLoadedMaps } = internalData;
41623
- nodeItem.treeLoaded = false;
41625
+ if (nodeItem) {
41626
+ nodeItem.treeLoaded = false;
41627
+ }
41624
41628
  if (treeExpandLazyLoadedMaps[nodeid]) {
41625
41629
  treeExpandLazyLoadedMaps[nodeid] = false;
41626
41630
  }
@@ -41632,6 +41636,9 @@ var VxeTreeComponent = defineVxeComponent({
41632
41636
  });
41633
41637
  }
41634
41638
  else {
41639
+ if (nodeItem) {
41640
+ nodeItem.treeLoaded = true;
41641
+ }
41635
41642
  resolve();
41636
41643
  }
41637
41644
  });
@@ -43791,7 +43798,7 @@ var VxeTreeComponent = defineVxeComponent({
43791
43798
  recalculate();
43792
43799
  });
43793
43800
  onMounted(() => {
43794
- const { transform, drag, menuConfig, showOverflow } = props;
43801
+ const { transform, drag, menuConfig, showOverflow, lazy, loadMethod } = props;
43795
43802
  const dragOpts = computeDragOpts.value;
43796
43803
  if (!showOverflow) {
43797
43804
  errLog$2('vxe.error.errProp', ['show-overflow=false', 'show-overflow=true']);
@@ -43802,6 +43809,9 @@ var VxeTreeComponent = defineVxeComponent({
43802
43809
  if (dragOpts.isCrossTreeDrag && !dragOpts.isCrossDrag) {
43803
43810
  errLog$2('vxe.error.reqSupportProp', ['drag-config.isCrossTreeDrag', 'drag-config.isCrossDrag']);
43804
43811
  }
43812
+ if (lazy && !loadMethod) {
43813
+ warnLog$2('vxe.error.reqSupportProp', ['lazy', 'load-method']);
43814
+ }
43805
43815
  // if (valueField) {
43806
43816
  // errLog('vxe.error.delProp', ['value-field', 'value-field'])
43807
43817
  // }