vxe-pc-ui 4.10.50 → 4.11.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.
- package/es/icon/style.css +1 -1
- package/es/select/src/select.js +23 -2
- package/es/select/style.css +13 -4
- package/es/select/style.min.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/tree/src/store.js +8 -0
- package/es/tree/src/tree.js +40 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-select/style.css +13 -4
- package/es/vxe-select/style.min.css +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +76 -8
- package/lib/index.umd.min.js +1 -1
- package/lib/select/src/select.js +25 -2
- package/lib/select/src/select.min.js +1 -1
- package/lib/select/style/style.css +13 -4
- package/lib/select/style/style.min.css +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/tree/src/store.js +15 -0
- package/lib/tree/src/store.min.js +1 -0
- package/lib/tree/src/tree.js +37 -1
- 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/lib/vxe-select/style/style.css +13 -4
- package/lib/vxe-select/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/select/src/select.ts +26 -3
- package/packages/tree/src/store.ts +14 -0
- package/packages/tree/src/tree.ts +43 -1
- package/styles/components/select.scss +13 -3
- package/types/components/gantt-plugins/extend-gantt-chart.d.ts +19 -0
- package/types/components/select.d.ts +6 -0
- package/types/components/tree.d.ts +24 -0
- /package/es/icon/{iconfont.1765343568078.ttf → iconfont.1765466150452.ttf} +0 -0
- /package/es/icon/{iconfont.1765343568078.woff → iconfont.1765466150452.woff} +0 -0
- /package/es/icon/{iconfont.1765343568078.woff2 → iconfont.1765466150452.woff2} +0 -0
- /package/es/{iconfont.1765343568078.ttf → iconfont.1765466150452.ttf} +0 -0
- /package/es/{iconfont.1765343568078.woff → iconfont.1765466150452.woff} +0 -0
- /package/es/{iconfont.1765343568078.woff2 → iconfont.1765466150452.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1765343568078.ttf → iconfont.1765466150452.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1765343568078.woff → iconfont.1765466150452.woff} +0 -0
- /package/lib/icon/style/{iconfont.1765343568078.woff2 → iconfont.1765466150452.woff2} +0 -0
- /package/lib/{iconfont.1765343568078.ttf → iconfont.1765466150452.ttf} +0 -0
- /package/lib/{iconfont.1765343568078.woff → iconfont.1765466150452.woff} +0 -0
- /package/lib/{iconfont.1765343568078.woff2 → iconfont.1765466150452.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -3599,14 +3599,14 @@ function checkDynamic() {
|
|
|
3599
3599
|
}
|
|
3600
3600
|
;// CONCATENATED MODULE: ./packages/ui/src/log.ts
|
|
3601
3601
|
|
|
3602
|
-
const log_version = `ui v${"4.
|
|
3602
|
+
const log_version = `ui v${"4.11.1"}`;
|
|
3603
3603
|
const warnLog = log.create('warn', log_version);
|
|
3604
3604
|
const errLog = log.create('error', log_version);
|
|
3605
3605
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
3606
3606
|
|
|
3607
3607
|
|
|
3608
3608
|
|
|
3609
|
-
const ui_version = "4.
|
|
3609
|
+
const ui_version = "4.11.1";
|
|
3610
3610
|
index_esm_VxeUI.uiVersion = ui_version;
|
|
3611
3611
|
index_esm_VxeUI.dynamicApp = dynamicApp;
|
|
3612
3612
|
function config(options) {
|
|
@@ -29861,6 +29861,7 @@ function select_createInternalData() {
|
|
|
29861
29861
|
type: Boolean,
|
|
29862
29862
|
default: null
|
|
29863
29863
|
},
|
|
29864
|
+
popupConfig: Object,
|
|
29864
29865
|
virtualYConfig: Object,
|
|
29865
29866
|
scrollY: Object,
|
|
29866
29867
|
/**
|
|
@@ -30015,6 +30016,9 @@ function select_createInternalData() {
|
|
|
30015
30016
|
const selectVals = computeSelectVals.value;
|
|
30016
30017
|
return checkMaxLimit(selectVals);
|
|
30017
30018
|
});
|
|
30019
|
+
const computePopupOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
30020
|
+
return Object.assign({}, getConfig().treeSelect.popupConfig, props.popupConfig);
|
|
30021
|
+
});
|
|
30018
30022
|
const computeVirtualYOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
30019
30023
|
return Object.assign({}, getConfig().select.virtualYConfig || getConfig().select.scrollY, props.virtualYConfig || props.scrollY);
|
|
30020
30024
|
});
|
|
@@ -30027,6 +30031,22 @@ function select_createInternalData() {
|
|
|
30027
30031
|
const computeMultiMaxCharNum = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
30028
30032
|
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(props.multiCharOverflow);
|
|
30029
30033
|
});
|
|
30034
|
+
const computePopupWrapperStyle = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
30035
|
+
const popupOpts = computePopupOpts.value;
|
|
30036
|
+
const {
|
|
30037
|
+
height,
|
|
30038
|
+
width
|
|
30039
|
+
} = popupOpts;
|
|
30040
|
+
const stys = {};
|
|
30041
|
+
if (width) {
|
|
30042
|
+
stys.width = toCssUnit(width);
|
|
30043
|
+
}
|
|
30044
|
+
if (height) {
|
|
30045
|
+
stys.height = toCssUnit(height);
|
|
30046
|
+
stys.maxHeight = toCssUnit(height);
|
|
30047
|
+
}
|
|
30048
|
+
return stys;
|
|
30049
|
+
});
|
|
30030
30050
|
const computeSelectVals = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
30031
30051
|
const {
|
|
30032
30052
|
modelValue,
|
|
@@ -31224,7 +31244,6 @@ function select_createInternalData() {
|
|
|
31224
31244
|
const renderVN = () => {
|
|
31225
31245
|
const {
|
|
31226
31246
|
className,
|
|
31227
|
-
popupClassName,
|
|
31228
31247
|
multiple,
|
|
31229
31248
|
loading,
|
|
31230
31249
|
filterable,
|
|
@@ -31248,6 +31267,9 @@ function select_createInternalData() {
|
|
|
31248
31267
|
const btnTransfer = computeBtnTransfer.value;
|
|
31249
31268
|
const formReadonly = computeFormReadonly.value;
|
|
31250
31269
|
const inpPlaceholder = computeInpPlaceholder.value;
|
|
31270
|
+
const popupWrapperStyle = computePopupWrapperStyle.value;
|
|
31271
|
+
const popupOpts = computePopupOpts.value;
|
|
31272
|
+
const popupClassName = popupOpts.className || props.popupClassName;
|
|
31251
31273
|
const defaultSlot = slots.default;
|
|
31252
31274
|
const headerSlot = slots.header;
|
|
31253
31275
|
const footerSlot = slots.footer;
|
|
@@ -31315,7 +31337,8 @@ function select_createInternalData() {
|
|
|
31315
31337
|
placement: reactData.panelPlacement,
|
|
31316
31338
|
style: reactData.panelStyle
|
|
31317
31339
|
}, initialized && (visiblePanel || isAniVisible) ? [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
31318
|
-
class: 'vxe-select--panel-wrapper'
|
|
31340
|
+
class: 'vxe-select--panel-wrapper',
|
|
31341
|
+
style: popupWrapperStyle
|
|
31319
31342
|
}, [filterable ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
31320
31343
|
class: 'vxe-select--panel-search'
|
|
31321
31344
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(input, {
|
|
@@ -39375,6 +39398,15 @@ function calcTreeLine($xeTree, node, prevNode) {
|
|
|
39375
39398
|
}
|
|
39376
39399
|
return (rowHeight || 28) * expandSize - (prevNode ? 1 : 12);
|
|
39377
39400
|
}
|
|
39401
|
+
;// CONCATENATED MODULE: ./packages/tree/src/store.ts
|
|
39402
|
+
|
|
39403
|
+
// 跨树拖拽
|
|
39404
|
+
const crossTreeDragNodeInfo = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)({
|
|
39405
|
+
node: null
|
|
39406
|
+
});
|
|
39407
|
+
function getCrossTreeDragNodeInfo() {
|
|
39408
|
+
return crossTreeDragNodeInfo;
|
|
39409
|
+
}
|
|
39378
39410
|
;// CONCATENATED MODULE: ./packages/ui/src/anime.ts
|
|
39379
39411
|
|
|
39380
39412
|
|
|
@@ -39434,6 +39466,7 @@ function clearColAnimate(elem, clss) {
|
|
|
39434
39466
|
|
|
39435
39467
|
|
|
39436
39468
|
|
|
39469
|
+
|
|
39437
39470
|
/**
|
|
39438
39471
|
* 生成节点的唯一主键
|
|
39439
39472
|
*/
|
|
@@ -39468,6 +39501,10 @@ function tree_createInternalData() {
|
|
|
39468
39501
|
// hpTimeout: undefined
|
|
39469
39502
|
};
|
|
39470
39503
|
}
|
|
39504
|
+
// let crossTreeDragNodeObj: {
|
|
39505
|
+
// $oldTree: VxeTreeConstructor & VxeTreePrivateMethods
|
|
39506
|
+
// $newTree: (VxeTreeConstructor & VxeTreePrivateMethods) | null
|
|
39507
|
+
// } | null = null
|
|
39471
39508
|
/* harmony default export */ var tree = (defineVxeComponent({
|
|
39472
39509
|
name: 'VxeTree',
|
|
39473
39510
|
props: {
|
|
@@ -39603,6 +39640,7 @@ function tree_createInternalData() {
|
|
|
39603
39640
|
const refVirtualBody = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
39604
39641
|
const refDragNodeLineElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
39605
39642
|
const refDragTipElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
39643
|
+
const crossTreeDragNodeInfo = getCrossTreeDragNodeInfo();
|
|
39606
39644
|
const reactData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)({
|
|
39607
39645
|
parentHeight: 0,
|
|
39608
39646
|
customHeight: 0,
|
|
@@ -41385,13 +41423,18 @@ function tree_createInternalData() {
|
|
|
41385
41423
|
rdLineEl.style.display = '';
|
|
41386
41424
|
}
|
|
41387
41425
|
};
|
|
41426
|
+
const clearCrossTreeDragStatus = () => {
|
|
41427
|
+
// crossTreeDragNodeObj = null
|
|
41428
|
+
crossTreeDragNodeInfo.node = null;
|
|
41429
|
+
};
|
|
41388
41430
|
const clearDragStatus = () => {
|
|
41389
41431
|
const {
|
|
41390
41432
|
dragNode
|
|
41391
41433
|
} = reactData;
|
|
41392
41434
|
if (dragNode) {
|
|
41393
|
-
clearNodeDropOrigin();
|
|
41394
41435
|
hideDropTip();
|
|
41436
|
+
clearNodeDropOrigin();
|
|
41437
|
+
clearCrossTreeDragStatus();
|
|
41395
41438
|
reactData.dragNode = null;
|
|
41396
41439
|
}
|
|
41397
41440
|
};
|
|
@@ -41734,10 +41777,12 @@ function tree_createInternalData() {
|
|
|
41734
41777
|
return errRest;
|
|
41735
41778
|
}).then(rest => {
|
|
41736
41779
|
clearNodeDragData();
|
|
41780
|
+
clearCrossTreeDragStatus();
|
|
41737
41781
|
return rest;
|
|
41738
41782
|
});
|
|
41739
41783
|
}
|
|
41740
41784
|
clearNodeDragData();
|
|
41785
|
+
clearCrossTreeDragStatus();
|
|
41741
41786
|
return Promise.resolve(errRest);
|
|
41742
41787
|
};
|
|
41743
41788
|
const handleNodeDragDragstartEvent = evnt => {
|
|
@@ -41837,6 +41882,25 @@ function tree_createInternalData() {
|
|
|
41837
41882
|
return getNodeId(node1) === getNodeId(node2);
|
|
41838
41883
|
}
|
|
41839
41884
|
return false;
|
|
41885
|
+
},
|
|
41886
|
+
handleCrossTreeNodeDragCancelEvent() {
|
|
41887
|
+
clearNodeDragData();
|
|
41888
|
+
clearCrossTreeDragStatus();
|
|
41889
|
+
},
|
|
41890
|
+
/**
|
|
41891
|
+
* 处理跨树拖拽完成
|
|
41892
|
+
*/
|
|
41893
|
+
handleCrossTreeNodeDragFinishEvent() {},
|
|
41894
|
+
/**
|
|
41895
|
+
* 处理跨树拖至新的空树
|
|
41896
|
+
*/
|
|
41897
|
+
handleCrossTreeNodeDragInsertEvent() {},
|
|
41898
|
+
/**
|
|
41899
|
+
* 处理跨树拖插入
|
|
41900
|
+
*/
|
|
41901
|
+
handleCrossTreeNodeDragoverEmptyEvent() {},
|
|
41902
|
+
hideCrossTreeNodeDropClearStatus() {
|
|
41903
|
+
hideDropTip();
|
|
41840
41904
|
}
|
|
41841
41905
|
};
|
|
41842
41906
|
Object.assign($xeTree, treeMethods, treePrivateMethods);
|
|
@@ -42263,6 +42327,10 @@ function tree_createInternalData() {
|
|
|
42263
42327
|
recalculate();
|
|
42264
42328
|
});
|
|
42265
42329
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
|
|
42330
|
+
const dragOpts = computeDragOpts.value;
|
|
42331
|
+
if (dragOpts.isCrossTreeDrag) {
|
|
42332
|
+
errLog('vxe.error.notProp', ['drag-config.isCrossTreeDrag']);
|
|
42333
|
+
}
|
|
42266
42334
|
if (props.autoResize) {
|
|
42267
42335
|
const el = refElem.value;
|
|
42268
42336
|
const parentEl = getParentElem();
|
|
@@ -45715,13 +45783,13 @@ const readFile = readLocalFile;
|
|
|
45715
45783
|
|
|
45716
45784
|
|
|
45717
45785
|
if (typeof window !== 'undefined') {
|
|
45718
|
-
if (
|
|
45786
|
+
if (!window.VxeUIAll) {
|
|
45719
45787
|
window.VxeUIAll = components_namespaceObject;
|
|
45720
45788
|
}
|
|
45721
|
-
if (
|
|
45789
|
+
if (!window.VxeUIBase) {
|
|
45722
45790
|
window.VxeUIBase = components_namespaceObject;
|
|
45723
45791
|
}
|
|
45724
|
-
if (
|
|
45792
|
+
if (!window.VxeUI) {
|
|
45725
45793
|
window.VxeUI = components_namespaceObject;
|
|
45726
45794
|
}
|
|
45727
45795
|
}
|