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/es/tree/src/tree.js
CHANGED
|
@@ -1116,14 +1116,16 @@ export default defineVxeComponent({
|
|
|
1116
1116
|
const { loadMethod } = props;
|
|
1117
1117
|
const { checkStrictly } = checkboxOpts;
|
|
1118
1118
|
return new Promise(resolve => {
|
|
1119
|
+
const { nodeMaps } = internalData;
|
|
1120
|
+
const nodeid = getNodeId(node);
|
|
1121
|
+
const nodeItem = nodeMaps[nodeid];
|
|
1119
1122
|
if (loadMethod) {
|
|
1120
|
-
const { nodeMaps } = internalData;
|
|
1121
|
-
const nodeid = getNodeId(node);
|
|
1122
|
-
const nodeItem = nodeMaps[nodeid];
|
|
1123
1123
|
internalData.treeExpandLazyLoadedMaps[nodeid] = true;
|
|
1124
1124
|
Promise.resolve(loadMethod({ $tree: $xeTree, node })).then((childRecords) => {
|
|
1125
1125
|
const { treeExpandLazyLoadedMaps } = internalData;
|
|
1126
|
-
nodeItem
|
|
1126
|
+
if (nodeItem) {
|
|
1127
|
+
nodeItem.treeLoaded = true;
|
|
1128
|
+
}
|
|
1127
1129
|
if (treeExpandLazyLoadedMaps[nodeid]) {
|
|
1128
1130
|
treeExpandLazyLoadedMaps[nodeid] = false;
|
|
1129
1131
|
}
|
|
@@ -1150,7 +1152,9 @@ export default defineVxeComponent({
|
|
|
1150
1152
|
}
|
|
1151
1153
|
}).catch((e) => {
|
|
1152
1154
|
const { treeExpandLazyLoadedMaps } = internalData;
|
|
1153
|
-
nodeItem
|
|
1155
|
+
if (nodeItem) {
|
|
1156
|
+
nodeItem.treeLoaded = false;
|
|
1157
|
+
}
|
|
1154
1158
|
if (treeExpandLazyLoadedMaps[nodeid]) {
|
|
1155
1159
|
treeExpandLazyLoadedMaps[nodeid] = false;
|
|
1156
1160
|
}
|
|
@@ -1162,6 +1166,9 @@ export default defineVxeComponent({
|
|
|
1162
1166
|
});
|
|
1163
1167
|
}
|
|
1164
1168
|
else {
|
|
1169
|
+
if (nodeItem) {
|
|
1170
|
+
nodeItem.treeLoaded = true;
|
|
1171
|
+
}
|
|
1165
1172
|
resolve();
|
|
1166
1173
|
}
|
|
1167
1174
|
});
|
|
@@ -3326,7 +3333,7 @@ export default defineVxeComponent({
|
|
|
3326
3333
|
recalculate();
|
|
3327
3334
|
});
|
|
3328
3335
|
onMounted(() => {
|
|
3329
|
-
const { transform, drag, menuConfig, showOverflow } = props;
|
|
3336
|
+
const { transform, drag, menuConfig, showOverflow, lazy, loadMethod } = props;
|
|
3330
3337
|
const dragOpts = computeDragOpts.value;
|
|
3331
3338
|
if (!showOverflow) {
|
|
3332
3339
|
errLog('vxe.error.errProp', ['show-overflow=false', 'show-overflow=true']);
|
|
@@ -3337,6 +3344,9 @@ export default defineVxeComponent({
|
|
|
3337
3344
|
if (dragOpts.isCrossTreeDrag && !dragOpts.isCrossDrag) {
|
|
3338
3345
|
errLog('vxe.error.reqSupportProp', ['drag-config.isCrossTreeDrag', 'drag-config.isCrossDrag']);
|
|
3339
3346
|
}
|
|
3347
|
+
if (lazy && !loadMethod) {
|
|
3348
|
+
warnLog('vxe.error.reqSupportProp', ['lazy', 'load-method']);
|
|
3349
|
+
}
|
|
3340
3350
|
// if (valueField) {
|
|
3341
3351
|
// errLog('vxe.error.delProp', ['value-field', 'value-field'])
|
|
3342
3352
|
// }
|
package/es/ui/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VxeUI, setConfig, setIcon } from '@vxe-ui/core';
|
|
2
2
|
import { dynamicApp } from '../dynamics';
|
|
3
3
|
import { warnLog } from './src/log';
|
|
4
|
-
export const version = "4.16.
|
|
4
|
+
export const version = "4.16.3";
|
|
5
5
|
VxeUI.uiVersion = version;
|
|
6
6
|
VxeUI.dynamicApp = dynamicApp;
|
|
7
7
|
export function config(options) {
|
package/es/ui/src/log.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VxeUI } from '@vxe-ui/core';
|
|
2
2
|
const { log } = VxeUI;
|
|
3
|
-
const uiVersion = `ui v${"4.16.
|
|
3
|
+
const uiVersion = `ui v${"4.16.3"}`;
|
|
4
4
|
export function createComponentLog(name) {
|
|
5
5
|
const tableVersion = VxeUI.tableVersion ? `table v${VxeUI.tableVersion}` : '';
|
|
6
6
|
const ganttVersion = VxeUI.ganttVersion ? `gantt v${VxeUI.ganttVersion}` : '';
|