vxe-pc-ui 4.16.5 → 4.16.7
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 +177 -108
- package/dist/style.css +1 -1
- package/dist/style.min.css +1 -1
- package/es/icon/style.css +1 -1
- package/es/list/src/list.js +21 -9
- package/es/menu/src/menu.js +64 -17
- package/es/menu/style.css +16 -7
- package/es/menu/style.min.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/tree/src/tree.js +12 -2
- package/es/ui/index.js +3 -3
- package/es/ui/src/log.js +1 -1
- package/es/vxe-menu/style.css +16 -7
- package/es/vxe-menu/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 +102 -28
- package/lib/index.umd.min.js +1 -1
- package/lib/list/src/list.js +21 -9
- package/lib/list/src/list.min.js +1 -1
- package/lib/menu/src/menu.js +65 -13
- package/lib/menu/src/menu.min.js +1 -1
- package/lib/menu/style/style.css +16 -7
- package/lib/menu/style/style.min.css +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/tree/src/tree.js +12 -2
- package/lib/tree/src/tree.min.js +1 -1
- package/lib/ui/index.js +3 -3
- 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-menu/style/style.css +16 -7
- package/lib/vxe-menu/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/list/src/list.ts +25 -13
- package/packages/menu/src/menu.ts +70 -17
- package/packages/tree/src/tree.ts +12 -2
- package/packages/ui/index.ts +2 -2
- package/styles/components/menu.scss +10 -4
- package/types/components/list.d.ts +12 -0
- package/types/components/menu.d.ts +6 -0
- package/types/components/tree.d.ts +12 -0
- /package/es/icon/{iconfont.1783670404729.ttf → iconfont.1783873713408.ttf} +0 -0
- /package/es/icon/{iconfont.1783670404729.woff → iconfont.1783873713408.woff} +0 -0
- /package/es/icon/{iconfont.1783670404729.woff2 → iconfont.1783873713408.woff2} +0 -0
- /package/es/{iconfont.1783670404729.ttf → iconfont.1783873713408.ttf} +0 -0
- /package/es/{iconfont.1783670404729.woff → iconfont.1783873713408.woff} +0 -0
- /package/es/{iconfont.1783670404729.woff2 → iconfont.1783873713408.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1783670404729.ttf → iconfont.1783873713408.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1783670404729.woff → iconfont.1783873713408.woff} +0 -0
- /package/lib/icon/style/{iconfont.1783670404729.woff2 → iconfont.1783873713408.woff2} +0 -0
- /package/lib/{iconfont.1783670404729.ttf → iconfont.1783873713408.ttf} +0 -0
- /package/lib/{iconfont.1783670404729.woff → iconfont.1783873713408.woff} +0 -0
- /package/lib/{iconfont.1783670404729.woff2 → iconfont.1783873713408.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.7"}`;
|
|
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.7";
|
|
99
99
|
VxeUI.uiVersion = version;
|
|
100
100
|
VxeUI.dynamicApp = dynamicApp;
|
|
101
101
|
function config(options) {
|
|
@@ -591,8 +591,8 @@ setIcon({
|
|
|
591
591
|
BUTTON_LOADING: iconPrefix + 'spinner roll',
|
|
592
592
|
BUTTON_TOOLTIP_ICON: iconPrefix + 'question-circle-fill',
|
|
593
593
|
// menu
|
|
594
|
-
MENU_ITEM_EXPAND_OPEN: iconPrefix + 'arrow-
|
|
595
|
-
MENU_ITEM_EXPAND_CLOSE: iconPrefix + 'arrow-
|
|
594
|
+
MENU_ITEM_EXPAND_OPEN: iconPrefix + 'arrow-right rotate90',
|
|
595
|
+
MENU_ITEM_EXPAND_CLOSE: iconPrefix + 'arrow-right',
|
|
596
596
|
// select
|
|
597
597
|
SELECT_LOADED: iconPrefix + 'spinner roll',
|
|
598
598
|
SELECT_OPEN: iconPrefix + 'caret-down rotate180',
|
|
@@ -2548,7 +2548,7 @@ function deModelValue(nodeid) {
|
|
|
2548
2548
|
return nodeid ? decodeURIComponent(`${nodeid}`) : nodeid;
|
|
2549
2549
|
}
|
|
2550
2550
|
|
|
2551
|
-
function createReactData$
|
|
2551
|
+
function createReactData$m() {
|
|
2552
2552
|
return {
|
|
2553
2553
|
target: null,
|
|
2554
2554
|
isUpdate: false,
|
|
@@ -2565,7 +2565,7 @@ function createReactData$l() {
|
|
|
2565
2565
|
}
|
|
2566
2566
|
};
|
|
2567
2567
|
}
|
|
2568
|
-
function createInternalData$
|
|
2568
|
+
function createInternalData$l() {
|
|
2569
2569
|
return {
|
|
2570
2570
|
// showDelayTip: undefined
|
|
2571
2571
|
};
|
|
@@ -2658,8 +2658,8 @@ var VxeTooltipComponent = defineVxeComponent({
|
|
|
2658
2658
|
const { slots, emit } = context;
|
|
2659
2659
|
const xID = XEUtils.uniqueId();
|
|
2660
2660
|
const { computeSize } = useSize(props);
|
|
2661
|
-
const reactData = reactive(createReactData$
|
|
2662
|
-
const internalData = createInternalData$
|
|
2661
|
+
const reactData = reactive(createReactData$m());
|
|
2662
|
+
const internalData = createInternalData$l();
|
|
2663
2663
|
const refElem = ref();
|
|
2664
2664
|
const contentWrapperfElem = ref();
|
|
2665
2665
|
const computeWrapperStyle = computed(() => {
|
|
@@ -3103,8 +3103,8 @@ var VxeTooltipComponent = defineVxeComponent({
|
|
|
3103
3103
|
}
|
|
3104
3104
|
});
|
|
3105
3105
|
onUnmounted(() => {
|
|
3106
|
-
XEUtils.assign(reactData, createReactData$
|
|
3107
|
-
XEUtils.assign(internalData, createInternalData$
|
|
3106
|
+
XEUtils.assign(reactData, createReactData$m());
|
|
3107
|
+
XEUtils.assign(internalData, createInternalData$l());
|
|
3108
3108
|
});
|
|
3109
3109
|
$xeTooltip.renderVN = renderVN;
|
|
3110
3110
|
return $xeTooltip;
|
|
@@ -3870,12 +3870,12 @@ VxeUI.component(VxeButtonComponent);
|
|
|
3870
3870
|
const Button = VxeButton;
|
|
3871
3871
|
|
|
3872
3872
|
const { errLog: errLog$i } = createComponentLog('backtop');
|
|
3873
|
-
function createInternalData$
|
|
3873
|
+
function createInternalData$k() {
|
|
3874
3874
|
return {
|
|
3875
3875
|
targetEl: null
|
|
3876
3876
|
};
|
|
3877
3877
|
}
|
|
3878
|
-
function createReactData$
|
|
3878
|
+
function createReactData$l() {
|
|
3879
3879
|
return {
|
|
3880
3880
|
showBtn: false,
|
|
3881
3881
|
backtopZindex: 0
|
|
@@ -3954,8 +3954,8 @@ var VxeBacktopComponent = defineVxeComponent({
|
|
|
3954
3954
|
const xID = XEUtils.uniqueId();
|
|
3955
3955
|
const refElem = ref();
|
|
3956
3956
|
const { computeSize } = useSize(props);
|
|
3957
|
-
const internalData = createInternalData$
|
|
3958
|
-
const reactData = reactive(createReactData$
|
|
3957
|
+
const internalData = createInternalData$k();
|
|
3958
|
+
const reactData = reactive(createReactData$l());
|
|
3959
3959
|
const refMaps = {
|
|
3960
3960
|
refElem
|
|
3961
3961
|
};
|
|
@@ -4132,8 +4132,8 @@ var VxeBacktopComponent = defineVxeComponent({
|
|
|
4132
4132
|
});
|
|
4133
4133
|
onBeforeUnmount(() => {
|
|
4134
4134
|
removeScrollEvent();
|
|
4135
|
-
XEUtils.assign(reactData, createReactData$
|
|
4136
|
-
XEUtils.assign(internalData, createInternalData$
|
|
4135
|
+
XEUtils.assign(reactData, createReactData$l());
|
|
4136
|
+
XEUtils.assign(internalData, createInternalData$k());
|
|
4137
4137
|
});
|
|
4138
4138
|
$xeBacktop.renderVN = renderVN;
|
|
4139
4139
|
return $xeBacktop;
|
|
@@ -6892,7 +6892,7 @@ function getRowIdByField(row, keyField) {
|
|
|
6892
6892
|
const rowKey = getRowKeyByField(row, keyField);
|
|
6893
6893
|
return enModelValue(rowKey);
|
|
6894
6894
|
}
|
|
6895
|
-
function createReactData$
|
|
6895
|
+
function createReactData$k() {
|
|
6896
6896
|
return {
|
|
6897
6897
|
scrollYLoad: false,
|
|
6898
6898
|
bodyHeight: 0,
|
|
@@ -6915,7 +6915,7 @@ function createReactData$j() {
|
|
|
6915
6915
|
isCrossDragRow: false
|
|
6916
6916
|
};
|
|
6917
6917
|
}
|
|
6918
|
-
function createInternalData$
|
|
6918
|
+
function createInternalData$j() {
|
|
6919
6919
|
return {
|
|
6920
6920
|
resizeObserver: undefined,
|
|
6921
6921
|
fullData: [],
|
|
@@ -7002,8 +7002,8 @@ var VxeListComponent = defineVxeComponent({
|
|
|
7002
7002
|
const xID = XEUtils.uniqueId();
|
|
7003
7003
|
const browseObj = XEUtils.browse();
|
|
7004
7004
|
const { computeSize } = useSize(props);
|
|
7005
|
-
const reactData = reactive(createReactData$
|
|
7006
|
-
const internalData = createInternalData$
|
|
7005
|
+
const reactData = reactive(createReactData$k());
|
|
7006
|
+
const internalData = createInternalData$j();
|
|
7007
7007
|
const crossListDragRowInfo = getCrossListDragRowInfo();
|
|
7008
7008
|
const refElem = ref();
|
|
7009
7009
|
const refHeaderElem = ref();
|
|
@@ -7248,7 +7248,12 @@ var VxeListComponent = defineVxeComponent({
|
|
|
7248
7248
|
const el = refElem.value;
|
|
7249
7249
|
if (el) {
|
|
7250
7250
|
const parentEl = el.parentElement;
|
|
7251
|
-
|
|
7251
|
+
let parentHeight = 0;
|
|
7252
|
+
if (parentEl) {
|
|
7253
|
+
const parentStyle = getComputedStyle(parentEl);
|
|
7254
|
+
parentHeight = parentEl.clientHeight - Math.ceil(XEUtils.toNumber(parentStyle.paddingLeft) + XEUtils.toNumber(parentStyle.paddingRight));
|
|
7255
|
+
}
|
|
7256
|
+
reactData.parentHeight = parentHeight;
|
|
7252
7257
|
updateHeight();
|
|
7253
7258
|
if (el.clientWidth && el.clientHeight) {
|
|
7254
7259
|
return computeScrollLoad();
|
|
@@ -7940,7 +7945,7 @@ var VxeListComponent = defineVxeComponent({
|
|
|
7940
7945
|
emitCheckboxMode(value);
|
|
7941
7946
|
return updateCheckboxStatus();
|
|
7942
7947
|
};
|
|
7943
|
-
const
|
|
7948
|
+
const getCheckboxRecords = () => {
|
|
7944
7949
|
const { updateCheckboxFlag } = reactData;
|
|
7945
7950
|
const { selectCheckboxMaps } = internalData;
|
|
7946
7951
|
const rowList = [];
|
|
@@ -8288,7 +8293,8 @@ var VxeListComponent = defineVxeComponent({
|
|
|
8288
8293
|
clearRadioRow,
|
|
8289
8294
|
setCheckboxRow,
|
|
8290
8295
|
setCheckboxRowByKey,
|
|
8291
|
-
|
|
8296
|
+
getCheckboxRecords,
|
|
8297
|
+
getCheckboxRows: getCheckboxRecords,
|
|
8292
8298
|
getCheckboxRowKeys,
|
|
8293
8299
|
clearCheckboxRow,
|
|
8294
8300
|
setAllCheckboxRow,
|
|
@@ -8385,6 +8391,12 @@ var VxeListComponent = defineVxeComponent({
|
|
|
8385
8391
|
isRemoveByRow(row) {
|
|
8386
8392
|
const rowid = getRowId(row);
|
|
8387
8393
|
return !!reactData.removeRowFlag && !!internalData.removeRowMaps[rowid];
|
|
8394
|
+
},
|
|
8395
|
+
getRecordset() {
|
|
8396
|
+
return {
|
|
8397
|
+
insertRecords: $xeList.getInsertRecords(),
|
|
8398
|
+
removeRecords: $xeList.getRemoveRecords()
|
|
8399
|
+
};
|
|
8388
8400
|
}
|
|
8389
8401
|
};
|
|
8390
8402
|
const listPrivateMethods = {
|
|
@@ -8689,6 +8701,12 @@ var VxeListComponent = defineVxeComponent({
|
|
|
8689
8701
|
isCheckboxChecked = !!(updateCheckboxFlag && selectCheckboxMaps[rowid]);
|
|
8690
8702
|
}
|
|
8691
8703
|
const ctVNs = [];
|
|
8704
|
+
if (showRadio) {
|
|
8705
|
+
ctVNs.push(renderRadio(row, rowid, isRadioChecked));
|
|
8706
|
+
}
|
|
8707
|
+
if (showCheckbox) {
|
|
8708
|
+
ctVNs.push(renderCheckbox(row, rowid, isCheckboxChecked));
|
|
8709
|
+
}
|
|
8692
8710
|
let isDragDisabled = false;
|
|
8693
8711
|
if (isDrag && keyField && (!visibleMethod || visibleMethod(rowParams))) {
|
|
8694
8712
|
const handleOns = {};
|
|
@@ -8712,12 +8730,6 @@ var VxeListComponent = defineVxeComponent({
|
|
|
8712
8730
|
])
|
|
8713
8731
|
]));
|
|
8714
8732
|
}
|
|
8715
|
-
if (showRadio) {
|
|
8716
|
-
ctVNs.push(renderRadio(row, rowid, isRadioChecked));
|
|
8717
|
-
}
|
|
8718
|
-
if (showCheckbox) {
|
|
8719
|
-
ctVNs.push(renderCheckbox(row, rowid, isCheckboxChecked));
|
|
8720
|
-
}
|
|
8721
8733
|
ctVNs.push(h('div', {
|
|
8722
8734
|
key: 'ct5',
|
|
8723
8735
|
class: 'vxe-list--row-content'
|
|
@@ -8948,8 +8960,8 @@ var VxeListComponent = defineVxeComponent({
|
|
|
8948
8960
|
resizeObserver.disconnect();
|
|
8949
8961
|
}
|
|
8950
8962
|
globalEvents.off($xeList, 'resize');
|
|
8951
|
-
XEUtils.assign(reactData, createReactData$
|
|
8952
|
-
XEUtils.assign(internalData, createInternalData$
|
|
8963
|
+
XEUtils.assign(reactData, createReactData$k());
|
|
8964
|
+
XEUtils.assign(internalData, createInternalData$j());
|
|
8953
8965
|
});
|
|
8954
8966
|
$xeList.renderVN = renderVN;
|
|
8955
8967
|
return $xeList;
|
|
@@ -11680,7 +11692,7 @@ const Input = VxeInput;
|
|
|
11680
11692
|
function getNodeUniqueId$1() {
|
|
11681
11693
|
return XEUtils.uniqueId('node_');
|
|
11682
11694
|
}
|
|
11683
|
-
function createReactData$
|
|
11695
|
+
function createReactData$j() {
|
|
11684
11696
|
return {
|
|
11685
11697
|
initialized: false,
|
|
11686
11698
|
searchValue: '',
|
|
@@ -11703,7 +11715,7 @@ function createReactData$i() {
|
|
|
11703
11715
|
lazyOptFlag: 1
|
|
11704
11716
|
};
|
|
11705
11717
|
}
|
|
11706
|
-
function createInternalData$
|
|
11718
|
+
function createInternalData$i() {
|
|
11707
11719
|
return {
|
|
11708
11720
|
// hpTimeout: undefined,
|
|
11709
11721
|
listVirtualYOpts: {
|
|
@@ -11830,8 +11842,8 @@ var VxeCascaderComponent = defineVxeComponent({
|
|
|
11830
11842
|
const refInpSearch = ref();
|
|
11831
11843
|
const refChunkWrapper = ref();
|
|
11832
11844
|
const refOptionPanel = ref();
|
|
11833
|
-
const reactData = reactive(createReactData$
|
|
11834
|
-
const internalData = createInternalData$
|
|
11845
|
+
const reactData = reactive(createReactData$j());
|
|
11846
|
+
const internalData = createInternalData$i();
|
|
11835
11847
|
const refMaps = {
|
|
11836
11848
|
refElem
|
|
11837
11849
|
};
|
|
@@ -13402,8 +13414,8 @@ var VxeCascaderComponent = defineVxeComponent({
|
|
|
13402
13414
|
globalEvents.off($xeCascader, 'mousedown');
|
|
13403
13415
|
globalEvents.off($xeCascader, 'blur');
|
|
13404
13416
|
globalEvents.off($xeCascader, 'resize');
|
|
13405
|
-
XEUtils.assign(reactData, createReactData$
|
|
13406
|
-
XEUtils.assign(internalData, createInternalData$
|
|
13417
|
+
XEUtils.assign(reactData, createReactData$j());
|
|
13418
|
+
XEUtils.assign(internalData, createInternalData$i());
|
|
13407
13419
|
});
|
|
13408
13420
|
provide('$xeCascader', $xeCascader);
|
|
13409
13421
|
$xeCascader.renderVN = renderVN;
|
|
@@ -13807,10 +13819,10 @@ dynamicApp.use(VxeCheckboxButton);
|
|
|
13807
13819
|
VxeUI.component(VxeCheckboxButtonComponent);
|
|
13808
13820
|
const CheckboxButton = VxeCheckboxButton;
|
|
13809
13821
|
|
|
13810
|
-
function createReactData$
|
|
13822
|
+
function createReactData$i() {
|
|
13811
13823
|
return {};
|
|
13812
13824
|
}
|
|
13813
|
-
function createInternalData$
|
|
13825
|
+
function createInternalData$h() {
|
|
13814
13826
|
return {
|
|
13815
13827
|
// isLoaded: false
|
|
13816
13828
|
};
|
|
@@ -13853,8 +13865,8 @@ var VxeCheckboxGroupComponent = defineVxeComponent({
|
|
|
13853
13865
|
const $xeForm = inject('$xeForm', null);
|
|
13854
13866
|
const formItemInfo = inject('xeFormItemInfo', null);
|
|
13855
13867
|
const xID = XEUtils.uniqueId();
|
|
13856
|
-
const reactData = reactive(createReactData$
|
|
13857
|
-
const internalData = createInternalData$
|
|
13868
|
+
const reactData = reactive(createReactData$i());
|
|
13869
|
+
const internalData = createInternalData$h();
|
|
13858
13870
|
const computeIsReadonly = computed(() => {
|
|
13859
13871
|
const { readonly } = props;
|
|
13860
13872
|
if (readonly === null) {
|
|
@@ -14026,8 +14038,8 @@ var VxeCheckboxGroupComponent = defineVxeComponent({
|
|
|
14026
14038
|
});
|
|
14027
14039
|
});
|
|
14028
14040
|
onUnmounted(() => {
|
|
14029
|
-
XEUtils.assign(reactData, createReactData$
|
|
14030
|
-
XEUtils.assign(internalData, createInternalData$
|
|
14041
|
+
XEUtils.assign(reactData, createReactData$i());
|
|
14042
|
+
XEUtils.assign(internalData, createInternalData$h());
|
|
14031
14043
|
});
|
|
14032
14044
|
provide('$xeCheckboxGroup', $xeCheckboxGroup);
|
|
14033
14045
|
$xeCheckboxGroup.renderVN = renderVN;
|
|
@@ -14160,7 +14172,7 @@ dynamicApp.use(VxeCol);
|
|
|
14160
14172
|
VxeUI.component(VxeColComponent);
|
|
14161
14173
|
const Col = VxeCol;
|
|
14162
14174
|
|
|
14163
|
-
function createReactData$
|
|
14175
|
+
function createReactData$h() {
|
|
14164
14176
|
return {
|
|
14165
14177
|
staticPanes: [],
|
|
14166
14178
|
cachePaneMaps: {},
|
|
@@ -14168,7 +14180,7 @@ function createReactData$g() {
|
|
|
14168
14180
|
openKeyFlag: 0
|
|
14169
14181
|
};
|
|
14170
14182
|
}
|
|
14171
|
-
function createInternalData$
|
|
14183
|
+
function createInternalData$g() {
|
|
14172
14184
|
return {
|
|
14173
14185
|
// esTime: null,
|
|
14174
14186
|
activeKeyMaps: {},
|
|
@@ -14205,8 +14217,8 @@ var VxeCollapseComponent = defineVxeComponent({
|
|
|
14205
14217
|
const xID = XEUtils.uniqueId();
|
|
14206
14218
|
const { computeSize } = useSize(props);
|
|
14207
14219
|
const refElem = ref();
|
|
14208
|
-
const reactData = reactive(createReactData$
|
|
14209
|
-
const internalData = createInternalData$
|
|
14220
|
+
const reactData = reactive(createReactData$h());
|
|
14221
|
+
const internalData = createInternalData$g();
|
|
14210
14222
|
const refMaps = {
|
|
14211
14223
|
refElem
|
|
14212
14224
|
};
|
|
@@ -14485,8 +14497,8 @@ var VxeCollapseComponent = defineVxeComponent({
|
|
|
14485
14497
|
if (esTime) {
|
|
14486
14498
|
clearTimeout(esTime);
|
|
14487
14499
|
}
|
|
14488
|
-
XEUtils.assign(reactData, createReactData$
|
|
14489
|
-
XEUtils.assign(internalData, createInternalData$
|
|
14500
|
+
XEUtils.assign(reactData, createReactData$h());
|
|
14501
|
+
XEUtils.assign(internalData, createInternalData$g());
|
|
14490
14502
|
});
|
|
14491
14503
|
provide('$xeCollapse', $xeCollapse);
|
|
14492
14504
|
$xeCollapse.renderVN = renderVN;
|
|
@@ -16872,12 +16884,12 @@ dynamicApp.use(VxeColorPicker);
|
|
|
16872
16884
|
VxeUI.component(VxeColorPickerComponent);
|
|
16873
16885
|
const ColorPicker = VxeColorPicker;
|
|
16874
16886
|
|
|
16875
|
-
function createInternalData$
|
|
16887
|
+
function createInternalData$f() {
|
|
16876
16888
|
return {
|
|
16877
16889
|
// leaveTime: null
|
|
16878
16890
|
};
|
|
16879
16891
|
}
|
|
16880
|
-
function createReactData$
|
|
16892
|
+
function createReactData$g() {
|
|
16881
16893
|
return {
|
|
16882
16894
|
visible: false,
|
|
16883
16895
|
activeOption: null,
|
|
@@ -16932,8 +16944,8 @@ var VxeContextMenuComponent = defineVxeComponent({
|
|
|
16932
16944
|
const xID = XEUtils.uniqueId();
|
|
16933
16945
|
const refElem = ref();
|
|
16934
16946
|
const { computeSize } = useSize(props);
|
|
16935
|
-
const internalData = createInternalData$
|
|
16936
|
-
const reactData = reactive(createReactData$
|
|
16947
|
+
const internalData = createInternalData$f();
|
|
16948
|
+
const reactData = reactive(createReactData$g());
|
|
16937
16949
|
const refMaps = {
|
|
16938
16950
|
refElem
|
|
16939
16951
|
};
|
|
@@ -17488,8 +17500,8 @@ var VxeContextMenuComponent = defineVxeComponent({
|
|
|
17488
17500
|
globalEvents.off($xeContextMenu, 'keydown');
|
|
17489
17501
|
globalEvents.off($xeContextMenu, 'mousedown');
|
|
17490
17502
|
globalEvents.off($xeContextMenu, 'blur');
|
|
17491
|
-
XEUtils.assign(reactData, createReactData$
|
|
17492
|
-
XEUtils.assign(internalData, createInternalData$
|
|
17503
|
+
XEUtils.assign(reactData, createReactData$g());
|
|
17504
|
+
XEUtils.assign(internalData, createInternalData$f());
|
|
17493
17505
|
});
|
|
17494
17506
|
$xeContextMenu.renderVN = renderVN;
|
|
17495
17507
|
return $xeContextMenu;
|
|
@@ -19807,7 +19819,7 @@ const parseInputKayMaps = {};
|
|
|
19807
19819
|
inputMaskedKeys.forEach(key => {
|
|
19808
19820
|
parseInputKayMaps[key] = true;
|
|
19809
19821
|
});
|
|
19810
|
-
function createReactData$
|
|
19822
|
+
function createReactData$f() {
|
|
19811
19823
|
return {
|
|
19812
19824
|
initialized: false,
|
|
19813
19825
|
panelIndex: 0,
|
|
@@ -19820,7 +19832,7 @@ function createReactData$e() {
|
|
|
19820
19832
|
labelFlag: 0
|
|
19821
19833
|
};
|
|
19822
19834
|
}
|
|
19823
|
-
function createInternalData$
|
|
19835
|
+
function createInternalData$e() {
|
|
19824
19836
|
return {
|
|
19825
19837
|
// hpTimeout: undefined,
|
|
19826
19838
|
// fsTimeout: undefined,
|
|
@@ -19960,8 +19972,8 @@ var VxeDatePickerComponent = defineVxeComponent({
|
|
|
19960
19972
|
const formItemInfo = inject('xeFormItemInfo', null);
|
|
19961
19973
|
const xID = XEUtils.uniqueId();
|
|
19962
19974
|
const { computeSize } = useSize(props);
|
|
19963
|
-
const reactData = reactive(createReactData$
|
|
19964
|
-
const internalData = createInternalData$
|
|
19975
|
+
const reactData = reactive(createReactData$f());
|
|
19976
|
+
const internalData = createInternalData$e();
|
|
19965
19977
|
const refElem = ref();
|
|
19966
19978
|
const refInputTarget = ref();
|
|
19967
19979
|
const refInputPanel = ref();
|
|
@@ -21396,8 +21408,8 @@ var VxeDatePickerComponent = defineVxeComponent({
|
|
|
21396
21408
|
globalEvents.off($xeDatePicker, 'keydown');
|
|
21397
21409
|
globalEvents.off($xeDatePicker, 'blur');
|
|
21398
21410
|
globalEvents.off($xeDatePicker, 'resize');
|
|
21399
|
-
XEUtils.assign(reactData, createReactData$
|
|
21400
|
-
XEUtils.assign(internalData, createInternalData$
|
|
21411
|
+
XEUtils.assign(reactData, createReactData$f());
|
|
21412
|
+
XEUtils.assign(internalData, createInternalData$e());
|
|
21401
21413
|
});
|
|
21402
21414
|
provide('$xeDatePicker', $xeDatePicker);
|
|
21403
21415
|
$xeDatePicker.renderVN = renderVN;
|
|
@@ -21418,7 +21430,7 @@ VxeUI.component(VxeDatePickerComponent);
|
|
|
21418
21430
|
const DatePicker = VxeDatePicker;
|
|
21419
21431
|
|
|
21420
21432
|
const { errLog: errLog$d } = createComponentLog('date-range-picker');
|
|
21421
|
-
function createReactData$
|
|
21433
|
+
function createReactData$e() {
|
|
21422
21434
|
return {
|
|
21423
21435
|
initialized: false,
|
|
21424
21436
|
panelIndex: 0,
|
|
@@ -21433,7 +21445,7 @@ function createReactData$d() {
|
|
|
21433
21445
|
paneEndVal: []
|
|
21434
21446
|
};
|
|
21435
21447
|
}
|
|
21436
|
-
function createInternalData$
|
|
21448
|
+
function createInternalData$d() {
|
|
21437
21449
|
return {
|
|
21438
21450
|
// selectStatus: false
|
|
21439
21451
|
// hpTimeout: undefined
|
|
@@ -21575,8 +21587,8 @@ var VxeDateRangePickerComponent = defineVxeComponent({
|
|
|
21575
21587
|
const formItemInfo = inject('xeFormItemInfo', null);
|
|
21576
21588
|
const xID = XEUtils.uniqueId();
|
|
21577
21589
|
const { computeSize } = useSize(props);
|
|
21578
|
-
const reactData = reactive(createReactData$
|
|
21579
|
-
const internalData = createInternalData$
|
|
21590
|
+
const reactData = reactive(createReactData$e());
|
|
21591
|
+
const internalData = createInternalData$d();
|
|
21580
21592
|
const refElem = ref();
|
|
21581
21593
|
const refInputTarget = ref();
|
|
21582
21594
|
const refInputPanel = ref();
|
|
@@ -22885,8 +22897,8 @@ var VxeDateRangePickerComponent = defineVxeComponent({
|
|
|
22885
22897
|
globalEvents.off($xeDateRangePicker, 'mousedown');
|
|
22886
22898
|
globalEvents.off($xeDateRangePicker, 'blur');
|
|
22887
22899
|
globalEvents.off($xeDateRangePicker, 'resize');
|
|
22888
|
-
XEUtils.assign(reactData, createReactData$
|
|
22889
|
-
XEUtils.assign(internalData, createInternalData$
|
|
22900
|
+
XEUtils.assign(reactData, createReactData$e());
|
|
22901
|
+
XEUtils.assign(internalData, createInternalData$d());
|
|
22890
22902
|
});
|
|
22891
22903
|
provide('$xeDateRangePicker', $xeDateRangePicker);
|
|
22892
22904
|
$xeDateRangePicker.renderVN = renderVN;
|
|
@@ -25080,7 +25092,7 @@ function checkRuleStatus(rule, data, val) {
|
|
|
25080
25092
|
}
|
|
25081
25093
|
return true;
|
|
25082
25094
|
}
|
|
25083
|
-
function createReactData$
|
|
25095
|
+
function createReactData$d() {
|
|
25084
25096
|
return {
|
|
25085
25097
|
collapseAll: false,
|
|
25086
25098
|
staticItems: [],
|
|
@@ -25088,7 +25100,7 @@ function createReactData$c() {
|
|
|
25088
25100
|
itemWidth: 0
|
|
25089
25101
|
};
|
|
25090
25102
|
}
|
|
25091
|
-
function createInternalData$
|
|
25103
|
+
function createInternalData$c() {
|
|
25092
25104
|
return {
|
|
25093
25105
|
meTimeout: undefined,
|
|
25094
25106
|
stTimeout: undefined,
|
|
@@ -25197,8 +25209,8 @@ var VxeFormComponent = defineVxeComponent({
|
|
|
25197
25209
|
const $xeGrid = inject('$xeGrid', null);
|
|
25198
25210
|
const xID = XEUtils.uniqueId();
|
|
25199
25211
|
const { computeSize } = useSize(props);
|
|
25200
|
-
const reactData = reactive(createReactData$
|
|
25201
|
-
const internalData = createInternalData$
|
|
25212
|
+
const reactData = reactive(createReactData$d());
|
|
25213
|
+
const internalData = createInternalData$c();
|
|
25202
25214
|
const refElem = ref();
|
|
25203
25215
|
const refTooltip = ref();
|
|
25204
25216
|
let formMethods = {};
|
|
@@ -25892,8 +25904,8 @@ var VxeFormComponent = defineVxeComponent({
|
|
|
25892
25904
|
});
|
|
25893
25905
|
onUnmounted(() => {
|
|
25894
25906
|
globalEvents.off($xeForm, 'resize');
|
|
25895
|
-
XEUtils.assign(reactData, createReactData$
|
|
25896
|
-
XEUtils.assign(internalData, createInternalData$
|
|
25907
|
+
XEUtils.assign(reactData, createReactData$d());
|
|
25908
|
+
XEUtils.assign(internalData, createInternalData$c());
|
|
25897
25909
|
});
|
|
25898
25910
|
reactData.collapseAll = !!props.collapseStatus;
|
|
25899
25911
|
if (props.items) {
|
|
@@ -26020,7 +26032,7 @@ dynamicApp.use(VxeFormItem);
|
|
|
26020
26032
|
VxeUI.component(VxeFormItemComponent);
|
|
26021
26033
|
const FormItem = VxeFormItem;
|
|
26022
26034
|
|
|
26023
|
-
function createReactData$
|
|
26035
|
+
function createReactData$c() {
|
|
26024
26036
|
return {
|
|
26025
26037
|
initialized: false,
|
|
26026
26038
|
selectIcon: '',
|
|
@@ -26034,7 +26046,7 @@ function createReactData$b() {
|
|
|
26034
26046
|
iconList: []
|
|
26035
26047
|
};
|
|
26036
26048
|
}
|
|
26037
|
-
function createInternalData$
|
|
26049
|
+
function createInternalData$b() {
|
|
26038
26050
|
return {
|
|
26039
26051
|
fullList: []
|
|
26040
26052
|
// hpTimeout: undefined
|
|
@@ -26096,8 +26108,8 @@ var VxeIconPickerComponent = defineVxeComponent({
|
|
|
26096
26108
|
const formItemInfo = inject('xeFormItemInfo', null);
|
|
26097
26109
|
const xID = XEUtils.uniqueId();
|
|
26098
26110
|
const { computeSize } = useSize(props);
|
|
26099
|
-
const reactData = reactive(createReactData$
|
|
26100
|
-
const internalData = createInternalData$
|
|
26111
|
+
const reactData = reactive(createReactData$c());
|
|
26112
|
+
const internalData = createInternalData$b();
|
|
26101
26113
|
const refElem = ref();
|
|
26102
26114
|
const refInput = ref();
|
|
26103
26115
|
const refOptionPanel = ref();
|
|
@@ -26696,8 +26708,8 @@ var VxeIconPickerComponent = defineVxeComponent({
|
|
|
26696
26708
|
globalEvents.off($xeIconPicker, 'mousedown');
|
|
26697
26709
|
globalEvents.off($xeIconPicker, 'keydown');
|
|
26698
26710
|
globalEvents.off($xeIconPicker, 'blur');
|
|
26699
|
-
XEUtils.assign(reactData, createReactData$
|
|
26700
|
-
XEUtils.assign(internalData, createInternalData$
|
|
26711
|
+
XEUtils.assign(reactData, createReactData$c());
|
|
26712
|
+
XEUtils.assign(internalData, createInternalData$b());
|
|
26701
26713
|
});
|
|
26702
26714
|
provide('$xeIconPicker', $xeIconPicker);
|
|
26703
26715
|
$xeIconPicker.renderVN = renderVN;
|
|
@@ -27400,13 +27412,13 @@ const openPreviewImage = (options) => {
|
|
|
27400
27412
|
return Promise.resolve();
|
|
27401
27413
|
};
|
|
27402
27414
|
|
|
27403
|
-
function createInternalData$
|
|
27415
|
+
function createInternalData$a() {
|
|
27404
27416
|
return {
|
|
27405
27417
|
// dgTime: 0,
|
|
27406
27418
|
// mdTime: 0
|
|
27407
27419
|
};
|
|
27408
27420
|
}
|
|
27409
|
-
function createReactData$
|
|
27421
|
+
function createReactData$b() {
|
|
27410
27422
|
return {};
|
|
27411
27423
|
}
|
|
27412
27424
|
var VxeImageComponent = defineVxeComponent({
|
|
@@ -27465,8 +27477,8 @@ var VxeImageComponent = defineVxeComponent({
|
|
|
27465
27477
|
const $xeImageGroup = inject('$xeImageGroup', null);
|
|
27466
27478
|
const refElem = ref();
|
|
27467
27479
|
const { computeSize } = useSize(props);
|
|
27468
|
-
const internalData = createInternalData$
|
|
27469
|
-
const reactData = reactive(createReactData$
|
|
27480
|
+
const internalData = createInternalData$a();
|
|
27481
|
+
const reactData = reactive(createReactData$b());
|
|
27470
27482
|
const refMaps = {
|
|
27471
27483
|
refElem
|
|
27472
27484
|
};
|
|
@@ -27652,8 +27664,8 @@ var VxeImageComponent = defineVxeComponent({
|
|
|
27652
27664
|
]);
|
|
27653
27665
|
};
|
|
27654
27666
|
onBeforeUnmount(() => {
|
|
27655
|
-
XEUtils.assign(reactData, createReactData$
|
|
27656
|
-
XEUtils.assign(internalData, createInternalData$
|
|
27667
|
+
XEUtils.assign(reactData, createReactData$b());
|
|
27668
|
+
XEUtils.assign(internalData, createInternalData$a());
|
|
27657
27669
|
});
|
|
27658
27670
|
$xeImage.renderVN = renderVN;
|
|
27659
27671
|
return $xeImage;
|
|
@@ -27933,10 +27945,10 @@ dynamicApp.use(VxeLayoutAside);
|
|
|
27933
27945
|
VxeUI.component(VxeLayoutAsideComponent);
|
|
27934
27946
|
const LayoutAside = VxeLayoutAside;
|
|
27935
27947
|
|
|
27936
|
-
function createInternalData$
|
|
27948
|
+
function createInternalData$9() {
|
|
27937
27949
|
return {};
|
|
27938
27950
|
}
|
|
27939
|
-
function createReactData$
|
|
27951
|
+
function createReactData$a() {
|
|
27940
27952
|
return {};
|
|
27941
27953
|
}
|
|
27942
27954
|
var VxeLayoutBodyComponent = defineVxeComponent({
|
|
@@ -27961,8 +27973,8 @@ var VxeLayoutBodyComponent = defineVxeComponent({
|
|
|
27961
27973
|
const backtopId = `vxe_layout_body_backtop_${xID}`;
|
|
27962
27974
|
const refElem = ref();
|
|
27963
27975
|
const { computeSize } = useSize(props);
|
|
27964
|
-
const internalData = createInternalData$
|
|
27965
|
-
const reactData = reactive(createReactData$
|
|
27976
|
+
const internalData = createInternalData$9();
|
|
27977
|
+
const reactData = reactive(createReactData$a());
|
|
27966
27978
|
const refMaps = {
|
|
27967
27979
|
refElem
|
|
27968
27980
|
};
|
|
@@ -28379,6 +28391,23 @@ const Link = VxeLink;
|
|
|
28379
28391
|
|
|
28380
28392
|
const { errLog: errLog$9 } = createComponentLog('menu');
|
|
28381
28393
|
const { menus: menus$1, getConfig: getConfig$1, getIcon: getIcon$1 } = VxeUI;
|
|
28394
|
+
function createInternalData$8() {
|
|
28395
|
+
return {
|
|
28396
|
+
menuEffectMaps: {}
|
|
28397
|
+
};
|
|
28398
|
+
}
|
|
28399
|
+
function createReactData$9() {
|
|
28400
|
+
return {
|
|
28401
|
+
initialized: false,
|
|
28402
|
+
isEnterCollapse: false,
|
|
28403
|
+
collapseStyle: {},
|
|
28404
|
+
collapseZindex: 0,
|
|
28405
|
+
activeName: '',
|
|
28406
|
+
menuList: [],
|
|
28407
|
+
itemHeight: 1
|
|
28408
|
+
};
|
|
28409
|
+
}
|
|
28410
|
+
let nemuUniqueKey = 100000000;
|
|
28382
28411
|
var VxeMenuComponent = defineVxeComponent({
|
|
28383
28412
|
name: 'VxeMenu',
|
|
28384
28413
|
props: {
|
|
@@ -28417,15 +28446,8 @@ var VxeMenuComponent = defineVxeComponent({
|
|
|
28417
28446
|
const refElem = ref();
|
|
28418
28447
|
const refCollapseElem = ref();
|
|
28419
28448
|
const { computeSize } = useSize(props);
|
|
28420
|
-
const reactData = reactive(
|
|
28421
|
-
|
|
28422
|
-
isEnterCollapse: false,
|
|
28423
|
-
collapseStyle: {},
|
|
28424
|
-
collapseZindex: 0,
|
|
28425
|
-
activeName: props.modelValue,
|
|
28426
|
-
menuList: [],
|
|
28427
|
-
itemHeight: 1
|
|
28428
|
-
});
|
|
28449
|
+
const reactData = reactive(createReactData$9());
|
|
28450
|
+
const internalData = createInternalData$8();
|
|
28429
28451
|
const refMaps = {
|
|
28430
28452
|
refElem
|
|
28431
28453
|
};
|
|
@@ -28496,7 +28518,7 @@ var VxeMenuComponent = defineVxeComponent({
|
|
|
28496
28518
|
const updateMenuConfig = () => {
|
|
28497
28519
|
const { options, expandAll } = props;
|
|
28498
28520
|
reactData.menuList = XEUtils.mapTree(options, (item, index, items, path, parent) => {
|
|
28499
|
-
const objItem = Object.assign(Object.assign({}, item), { parentKey: parent ? (parent.name || path.slice(0, path.length - 1).join(',')) : '', level: path.length, itemKey: item.name || path.join(','), isExactActive: false, isActive: false, isExpand: XEUtils.isBoolean(item.expanded) ? item.expanded : !!expandAll, hasChild: item.children && item.children.length > 0 });
|
|
28521
|
+
const objItem = Object.assign(Object.assign({}, item), { parentKey: parent ? (parent.name || path.slice(0, path.length - 1).join(',')) : '', level: path.length, itemId: ++nemuUniqueKey, itemKey: item.name || path.join(','), isExactActive: false, isActive: false, isExpand: XEUtils.isBoolean(item.expanded) ? item.expanded : !!expandAll, hasChild: item.children && item.children.length > 0 });
|
|
28500
28522
|
return objItem;
|
|
28501
28523
|
}, { children: 'children', mapChildren: 'childList' });
|
|
28502
28524
|
};
|
|
@@ -28548,10 +28570,15 @@ var VxeMenuComponent = defineVxeComponent({
|
|
|
28548
28570
|
};
|
|
28549
28571
|
const handleClickIconCollapse = (evnt, item, itemList) => {
|
|
28550
28572
|
const { accordion } = props;
|
|
28551
|
-
const {
|
|
28573
|
+
const { menuEffectMaps } = internalData;
|
|
28574
|
+
const { itemId, hasChild, isExpand } = item;
|
|
28575
|
+
const expanded = !isExpand;
|
|
28552
28576
|
if (hasChild) {
|
|
28553
28577
|
evnt.stopPropagation();
|
|
28554
28578
|
evnt.preventDefault();
|
|
28579
|
+
if (menuEffectMaps[itemId]) {
|
|
28580
|
+
clearTimeout(menuEffectMaps[itemId]);
|
|
28581
|
+
}
|
|
28555
28582
|
if (accordion) {
|
|
28556
28583
|
itemList.forEach(obj => {
|
|
28557
28584
|
if (obj !== item) {
|
|
@@ -28559,7 +28586,33 @@ var VxeMenuComponent = defineVxeComponent({
|
|
|
28559
28586
|
}
|
|
28560
28587
|
});
|
|
28561
28588
|
}
|
|
28562
|
-
item.isExpand =
|
|
28589
|
+
item.isExpand = expanded;
|
|
28590
|
+
const el = refElem.value;
|
|
28591
|
+
if (el) {
|
|
28592
|
+
const nemuEl = el.querySelector(`.vxe-menu--item-wrapper[data-menu-id="${itemId}"]`);
|
|
28593
|
+
const groupEl = nemuEl ? nemuEl.querySelector('.vxe-menu--item-group') : null;
|
|
28594
|
+
if (groupEl) {
|
|
28595
|
+
if (expanded) {
|
|
28596
|
+
groupEl.style.height = '0';
|
|
28597
|
+
groupEl.setAttribute('data-effect', 'y');
|
|
28598
|
+
requestAnimationFrame(() => {
|
|
28599
|
+
groupEl.style.height = `${groupEl.scrollHeight}px`;
|
|
28600
|
+
});
|
|
28601
|
+
}
|
|
28602
|
+
else {
|
|
28603
|
+
groupEl.style.height = `${groupEl.scrollHeight}px`;
|
|
28604
|
+
groupEl.setAttribute('data-effect', 'y');
|
|
28605
|
+
requestAnimationFrame(() => {
|
|
28606
|
+
groupEl.style.height = '0';
|
|
28607
|
+
});
|
|
28608
|
+
}
|
|
28609
|
+
menuEffectMaps[itemId] = setTimeout(() => {
|
|
28610
|
+
delete menuEffectMaps[itemId];
|
|
28611
|
+
groupEl.removeAttribute('data-effect');
|
|
28612
|
+
groupEl.style.height = '';
|
|
28613
|
+
}, 350);
|
|
28614
|
+
}
|
|
28615
|
+
}
|
|
28563
28616
|
}
|
|
28564
28617
|
};
|
|
28565
28618
|
const emitModel = (value) => {
|
|
@@ -28705,7 +28758,7 @@ var VxeMenuComponent = defineVxeComponent({
|
|
|
28705
28758
|
];
|
|
28706
28759
|
};
|
|
28707
28760
|
const renderDefaultChildren = (item, itemList) => {
|
|
28708
|
-
const { itemKey, level, hasChild, isActive, isExactActive, isExpand, routerLink, childList } = item;
|
|
28761
|
+
const { itemId, itemKey, level, hasChild, isActive, isExactActive, isExpand, routerLink, childList } = item;
|
|
28709
28762
|
const { isEnterCollapse } = reactData;
|
|
28710
28763
|
const isCollapsed = computeIsCollapsed.value;
|
|
28711
28764
|
if (item.permissionCode) {
|
|
@@ -28719,7 +28772,8 @@ var VxeMenuComponent = defineVxeComponent({
|
|
|
28719
28772
|
'is--exact-active': isExactActive,
|
|
28720
28773
|
'is--active': isActive,
|
|
28721
28774
|
'is--expand': (!isCollapsed || isEnterCollapse) && isExpand
|
|
28722
|
-
}]
|
|
28775
|
+
}],
|
|
28776
|
+
'data-menu-id': itemId
|
|
28723
28777
|
}, [
|
|
28724
28778
|
routerLink
|
|
28725
28779
|
? h(resolveComponent('router-link'), {
|
|
@@ -28751,7 +28805,7 @@ var VxeMenuComponent = defineVxeComponent({
|
|
|
28751
28805
|
]);
|
|
28752
28806
|
};
|
|
28753
28807
|
const renderCollapseChildren = (item, itemList) => {
|
|
28754
|
-
const { itemKey, level, hasChild, isActive, isExactActive, routerLink, childList } = item;
|
|
28808
|
+
const { itemId, itemKey, level, hasChild, isActive, isExactActive, routerLink, childList } = item;
|
|
28755
28809
|
if (item.permissionCode) {
|
|
28756
28810
|
if (!permission.checkVisible(item.permissionCode)) {
|
|
28757
28811
|
return renderEmptyElement($xeMenu);
|
|
@@ -28762,7 +28816,8 @@ var VxeMenuComponent = defineVxeComponent({
|
|
|
28762
28816
|
class: ['vxe-menu--item-wrapper', `vxe-menu--item-level${level}`, {
|
|
28763
28817
|
'is--exact-active': isExactActive,
|
|
28764
28818
|
'is--active': isActive
|
|
28765
|
-
}]
|
|
28819
|
+
}],
|
|
28820
|
+
'data-menu-id': itemId
|
|
28766
28821
|
}, [
|
|
28767
28822
|
routerLink
|
|
28768
28823
|
? h(resolveComponent('router-link'), {
|
|
@@ -28870,7 +28925,6 @@ var VxeMenuComponent = defineVxeComponent({
|
|
|
28870
28925
|
updateCollapseStyle();
|
|
28871
28926
|
});
|
|
28872
28927
|
onBeforeUnmount(() => {
|
|
28873
|
-
globalEvents.off($xeMenu, 'resize');
|
|
28874
28928
|
const collapseEl = refCollapseElem.value;
|
|
28875
28929
|
if (collapseEl) {
|
|
28876
28930
|
const parentNode = collapseEl.parentNode;
|
|
@@ -28878,7 +28932,12 @@ var VxeMenuComponent = defineVxeComponent({
|
|
|
28878
28932
|
parentNode.removeChild(collapseEl);
|
|
28879
28933
|
}
|
|
28880
28934
|
}
|
|
28935
|
+
globalEvents.off($xeMenu, 'resize');
|
|
28936
|
+
XEUtils.assign(reactData, createReactData$9());
|
|
28937
|
+
XEUtils.assign(internalData, createInternalData$8());
|
|
28881
28938
|
});
|
|
28939
|
+
reactData.initialized = !!props.collapsed;
|
|
28940
|
+
reactData.activeName = props.modelValue;
|
|
28882
28941
|
updateMenuConfig();
|
|
28883
28942
|
updateActiveMenu();
|
|
28884
28943
|
$xeMenu.renderVN = renderVN;
|
|
@@ -42216,6 +42275,9 @@ var VxeTreeComponent = defineVxeComponent({
|
|
|
42216
42275
|
return nodeKeys;
|
|
42217
42276
|
},
|
|
42218
42277
|
getCheckboxNodes() {
|
|
42278
|
+
return $xeTree.getCheckboxRecords();
|
|
42279
|
+
},
|
|
42280
|
+
getCheckboxRecords() {
|
|
42219
42281
|
const { nodeMaps, selectCheckboxMaps } = internalData;
|
|
42220
42282
|
const list = [];
|
|
42221
42283
|
XEUtils.each(selectCheckboxMaps, (item, nodeid) => {
|
|
@@ -42620,7 +42682,13 @@ var VxeTreeComponent = defineVxeComponent({
|
|
|
42620
42682
|
const nodeid = getNodeId(node);
|
|
42621
42683
|
return !!reactData.removeNodeFlag && !!internalData.removeNodeMaps[nodeid];
|
|
42622
42684
|
},
|
|
42623
|
-
closeTooltip
|
|
42685
|
+
closeTooltip,
|
|
42686
|
+
getRecordset() {
|
|
42687
|
+
return {
|
|
42688
|
+
insertRecords: $xeTree.getInsertRecords(),
|
|
42689
|
+
removeRecords: $xeTree.getRemoveRecords()
|
|
42690
|
+
};
|
|
42691
|
+
}
|
|
42624
42692
|
};
|
|
42625
42693
|
const handleNodeDragEndClearStatus = () => {
|
|
42626
42694
|
clearNodeDragData();
|
|
@@ -43549,9 +43617,9 @@ var VxeTreeComponent = defineVxeComponent({
|
|
|
43549
43617
|
])
|
|
43550
43618
|
]
|
|
43551
43619
|
: []),
|
|
43552
|
-
renderDragIcon(node, nodeid),
|
|
43553
43620
|
renderRadio(node, nodeid, isExistChild, nLevel, isRadioChecked),
|
|
43554
43621
|
renderCheckbox(node, nodeid, isExistChild, nLevel, isCheckboxChecked, isIndeterminate),
|
|
43622
|
+
renderDragIcon(node, nodeid),
|
|
43555
43623
|
h('div', {
|
|
43556
43624
|
class: 'vxe-tree--node-item-inner'
|
|
43557
43625
|
}, [
|
|
@@ -43839,6 +43907,7 @@ var VxeTreeComponent = defineVxeComponent({
|
|
|
43839
43907
|
}
|
|
43840
43908
|
internalData.resizeObserver = resizeObserver;
|
|
43841
43909
|
}
|
|
43910
|
+
recalculate();
|
|
43842
43911
|
globalEvents.on($xeTree, 'resize', handleGlobalResizeEvent);
|
|
43843
43912
|
});
|
|
43844
43913
|
onBeforeUnmount(() => {
|