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.
- package/dist/all.esm.js +18 -8
- package/dist/style.css +1 -1
- package/dist/style.min.css +1 -1
- package/es/icon/style.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/tree/src/tree.js +16 -6
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/helper/vetur/attributes.json +1 -1
- package/helper/vetur/tags.json +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +22 -10
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/tree/src/tree.js +20 -8
- package/lib/tree/src/tree.min.js +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/package.json +1 -1
- package/packages/tree/src/tree.ts +16 -6
- package/types/components/gantt.d.ts +1 -0
- /package/es/icon/{iconfont.1783571763891.ttf → iconfont.1783607056967.ttf} +0 -0
- /package/es/icon/{iconfont.1783571763891.woff → iconfont.1783607056967.woff} +0 -0
- /package/es/icon/{iconfont.1783571763891.woff2 → iconfont.1783607056967.woff2} +0 -0
- /package/es/{iconfont.1783571763891.ttf → iconfont.1783607056967.ttf} +0 -0
- /package/es/{iconfont.1783571763891.woff → iconfont.1783607056967.woff} +0 -0
- /package/es/{iconfont.1783571763891.woff2 → iconfont.1783607056967.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1783571763891.ttf → iconfont.1783607056967.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1783571763891.woff → iconfont.1783607056967.woff} +0 -0
- /package/lib/icon/style/{iconfont.1783571763891.woff2 → iconfont.1783607056967.woff2} +0 -0
- /package/lib/{iconfont.1783571763891.ttf → iconfont.1783607056967.ttf} +0 -0
- /package/lib/{iconfont.1783571763891.woff → iconfont.1783607056967.woff} +0 -0
- /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.
|
|
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.
|
|
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
|
|
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
|
|
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
|
// }
|