vxe-pc-ui 4.17.28 → 4.17.29
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 +220 -121
- package/dist/style.css +1 -1
- package/dist/style.min.css +1 -1
- package/es/drawer/index.js +2 -1
- package/es/drawer/src/drawer.js +71 -14
- package/es/drawer/src/store.js +1 -0
- package/es/drawer/style.css +49 -20
- package/es/drawer/style.min.css +1 -1
- package/es/icon/style.css +1 -1
- package/es/modal/index.js +2 -1
- package/es/modal/src/modal.js +64 -26
- package/es/modal/src/store.js +1 -0
- package/es/modal/style.css +26 -15
- package/es/modal/style.min.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/ui/index.js +3 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-drawer/style.css +49 -20
- package/es/vxe-drawer/style.min.css +1 -1
- package/es/vxe-modal/style.css +26 -15
- package/es/vxe-modal/style.min.css +1 -1
- package/lib/drawer/index.js +5 -5
- package/lib/drawer/index.min.js +1 -1
- package/lib/drawer/src/drawer.js +79 -20
- package/lib/drawer/src/drawer.min.js +1 -1
- package/lib/drawer/src/store.js +7 -0
- package/lib/drawer/src/store.min.js +1 -0
- package/lib/drawer/style/style.css +49 -20
- package/lib/drawer/style/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 +147 -40
- package/lib/index.umd.min.js +1 -1
- package/lib/modal/index.js +5 -5
- package/lib/modal/index.min.js +1 -1
- package/lib/modal/src/modal.js +69 -33
- package/lib/modal/src/modal.min.js +1 -1
- package/lib/modal/src/store.js +7 -0
- package/lib/modal/src/store.min.js +1 -0
- package/lib/modal/style/style.css +26 -15
- package/lib/modal/style/style.min.css +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/ui/index.js +3 -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-drawer/style/style.css +49 -20
- package/lib/vxe-drawer/style/style.min.css +1 -1
- package/lib/vxe-modal/style/style.css +26 -15
- package/lib/vxe-modal/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/drawer/index.ts +2 -1
- package/packages/drawer/src/drawer.ts +71 -15
- package/packages/drawer/src/store.ts +3 -0
- package/packages/modal/index.ts +2 -1
- package/packages/modal/src/modal.ts +67 -27
- package/packages/modal/src/store.ts +3 -0
- package/packages/ui/index.ts +2 -0
- package/styles/components/drawer.scss +55 -16
- package/styles/components/modal.scss +25 -11
- package/types/components/drawer.d.ts +9 -0
- package/types/components/modal.d.ts +2 -1
- /package/es/icon/{iconfont.1788399096135.ttf → iconfont.1788486194527.ttf} +0 -0
- /package/es/icon/{iconfont.1788399096135.woff → iconfont.1788486194527.woff} +0 -0
- /package/es/icon/{iconfont.1788399096135.woff2 → iconfont.1788486194527.woff2} +0 -0
- /package/es/{iconfont.1788399096135.ttf → iconfont.1788486194527.ttf} +0 -0
- /package/es/{iconfont.1788399096135.woff → iconfont.1788486194527.woff} +0 -0
- /package/es/{iconfont.1788399096135.woff2 → iconfont.1788486194527.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1788399096135.ttf → iconfont.1788486194527.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1788399096135.woff → iconfont.1788486194527.woff} +0 -0
- /package/lib/icon/style/{iconfont.1788399096135.woff2 → iconfont.1788486194527.woff2} +0 -0
- /package/lib/{iconfont.1788399096135.ttf → iconfont.1788486194527.ttf} +0 -0
- /package/lib/{iconfont.1788399096135.woff → iconfont.1788486194527.woff} +0 -0
- /package/lib/{iconfont.1788399096135.woff2 → iconfont.1788486194527.woff2} +0 -0
package/dist/all.esm.js
CHANGED
|
@@ -101,7 +101,7 @@ function checkDynamic() {
|
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
const { log } = VxeUI;
|
|
104
|
-
const uiVersion = `ui v${"4.17.
|
|
104
|
+
const uiVersion = `ui v${"4.17.29"}`;
|
|
105
105
|
function createComponentLog(name) {
|
|
106
106
|
const tableVersion = VxeUI.tableVersion ? `table v${VxeUI.tableVersion}` : '';
|
|
107
107
|
const ganttVersion = VxeUI.ganttVersion ? `gantt v${VxeUI.ganttVersion}` : '';
|
|
@@ -115,7 +115,7 @@ function createComponentLog(name) {
|
|
|
115
115
|
const warnLog$i = log.create('warn', uiVersion);
|
|
116
116
|
log.create('error', uiVersion);
|
|
117
117
|
|
|
118
|
-
const version = "4.17.
|
|
118
|
+
const version = "4.17.29";
|
|
119
119
|
VxeUI.uiVersion = version;
|
|
120
120
|
VxeUI.dynamicApp = dynamicApp;
|
|
121
121
|
function config(options) {
|
|
@@ -251,6 +251,8 @@ setConfig$1({
|
|
|
251
251
|
drawer: {
|
|
252
252
|
// size: null,
|
|
253
253
|
// useHtml: false,
|
|
254
|
+
minWidth: 40,
|
|
255
|
+
minHeight: 40,
|
|
254
256
|
position: 'right',
|
|
255
257
|
showHeader: true,
|
|
256
258
|
// showTitleBackground: false,
|
|
@@ -2673,7 +2675,7 @@ function deModelValue(nodeid) {
|
|
|
2673
2675
|
return nodeid ? decodeURIComponent(`${nodeid}`) : nodeid;
|
|
2674
2676
|
}
|
|
2675
2677
|
|
|
2676
|
-
function createReactData$
|
|
2678
|
+
function createReactData$o() {
|
|
2677
2679
|
return {
|
|
2678
2680
|
target: null,
|
|
2679
2681
|
isUpdate: false,
|
|
@@ -2690,7 +2692,7 @@ function createReactData$n() {
|
|
|
2690
2692
|
}
|
|
2691
2693
|
};
|
|
2692
2694
|
}
|
|
2693
|
-
function createInternalData$
|
|
2695
|
+
function createInternalData$n() {
|
|
2694
2696
|
return {
|
|
2695
2697
|
// showDelayTip: undefined
|
|
2696
2698
|
};
|
|
@@ -2789,8 +2791,8 @@ var VxeTooltipComponent = defineVxeComponent({
|
|
|
2789
2791
|
const { slots, emit } = context;
|
|
2790
2792
|
const xID = XEUtils.uniqueId();
|
|
2791
2793
|
const { computeSize } = useSize(props);
|
|
2792
|
-
const reactData = reactive(createReactData$
|
|
2793
|
-
const internalData = createInternalData$
|
|
2794
|
+
const reactData = reactive(createReactData$o());
|
|
2795
|
+
const internalData = createInternalData$n();
|
|
2794
2796
|
const refElem = ref();
|
|
2795
2797
|
const contentWrapperfElem = ref();
|
|
2796
2798
|
const computeWrapperStyle = computed(() => {
|
|
@@ -3193,8 +3195,8 @@ var VxeTooltipComponent = defineVxeComponent({
|
|
|
3193
3195
|
}
|
|
3194
3196
|
globalEvents.off($xeTooltip, 'blur');
|
|
3195
3197
|
globalEvents.off($xeTooltip, 'scroll');
|
|
3196
|
-
XEUtils.assign(reactData, createReactData$
|
|
3197
|
-
XEUtils.assign(internalData, createInternalData$
|
|
3198
|
+
XEUtils.assign(reactData, createReactData$o());
|
|
3199
|
+
XEUtils.assign(internalData, createInternalData$n());
|
|
3198
3200
|
});
|
|
3199
3201
|
$xeTooltip.renderVN = renderVN;
|
|
3200
3202
|
return $xeTooltip;
|
|
@@ -4016,12 +4018,12 @@ VxeUI.component(VxeButtonComponent);
|
|
|
4016
4018
|
const Button = VxeButton;
|
|
4017
4019
|
|
|
4018
4020
|
const { errLog: errLog$k } = createComponentLog('backtop');
|
|
4019
|
-
function createInternalData$
|
|
4021
|
+
function createInternalData$m() {
|
|
4020
4022
|
return {
|
|
4021
4023
|
targetEl: null
|
|
4022
4024
|
};
|
|
4023
4025
|
}
|
|
4024
|
-
function createReactData$
|
|
4026
|
+
function createReactData$n() {
|
|
4025
4027
|
return {
|
|
4026
4028
|
showBtn: false,
|
|
4027
4029
|
backtopZindex: 0
|
|
@@ -4100,8 +4102,8 @@ var VxeBacktopComponent = defineVxeComponent({
|
|
|
4100
4102
|
const xID = XEUtils.uniqueId();
|
|
4101
4103
|
const refElem = ref();
|
|
4102
4104
|
const { computeSize } = useSize(props);
|
|
4103
|
-
const internalData = createInternalData$
|
|
4104
|
-
const reactData = reactive(createReactData$
|
|
4105
|
+
const internalData = createInternalData$m();
|
|
4106
|
+
const reactData = reactive(createReactData$n());
|
|
4105
4107
|
const refMaps = {
|
|
4106
4108
|
refElem
|
|
4107
4109
|
};
|
|
@@ -4275,8 +4277,8 @@ var VxeBacktopComponent = defineVxeComponent({
|
|
|
4275
4277
|
});
|
|
4276
4278
|
onBeforeUnmount(() => {
|
|
4277
4279
|
removeScrollEvent();
|
|
4278
|
-
XEUtils.assign(reactData, createReactData$
|
|
4279
|
-
XEUtils.assign(internalData, createInternalData$
|
|
4280
|
+
XEUtils.assign(reactData, createReactData$n());
|
|
4281
|
+
XEUtils.assign(internalData, createInternalData$m());
|
|
4280
4282
|
});
|
|
4281
4283
|
$xeBacktop.renderVN = renderVN;
|
|
4282
4284
|
return $xeBacktop;
|
|
@@ -7035,7 +7037,7 @@ function getRowIdByField(row, keyField) {
|
|
|
7035
7037
|
const rowKey = getRowKeyByField(row, keyField);
|
|
7036
7038
|
return enModelValue(rowKey);
|
|
7037
7039
|
}
|
|
7038
|
-
function createReactData$
|
|
7040
|
+
function createReactData$m() {
|
|
7039
7041
|
return {
|
|
7040
7042
|
scrollYLoad: false,
|
|
7041
7043
|
bodyHeight: 0,
|
|
@@ -7058,7 +7060,7 @@ function createReactData$l() {
|
|
|
7058
7060
|
isCrossDragRow: false
|
|
7059
7061
|
};
|
|
7060
7062
|
}
|
|
7061
|
-
function createInternalData$
|
|
7063
|
+
function createInternalData$l() {
|
|
7062
7064
|
return {
|
|
7063
7065
|
resizeObserver: undefined,
|
|
7064
7066
|
fullData: [],
|
|
@@ -7145,8 +7147,8 @@ var VxeListComponent = defineVxeComponent({
|
|
|
7145
7147
|
const xID = XEUtils.uniqueId();
|
|
7146
7148
|
const browseObj = XEUtils.browse();
|
|
7147
7149
|
const { computeSize } = useSize(props);
|
|
7148
|
-
const reactData = reactive(createReactData$
|
|
7149
|
-
const internalData = createInternalData$
|
|
7150
|
+
const reactData = reactive(createReactData$m());
|
|
7151
|
+
const internalData = createInternalData$l();
|
|
7150
7152
|
const crossListDragRowInfo = getCrossListDragRowInfo();
|
|
7151
7153
|
const refElem = ref();
|
|
7152
7154
|
const refHeaderElem = ref();
|
|
@@ -9109,8 +9111,8 @@ var VxeListComponent = defineVxeComponent({
|
|
|
9109
9111
|
resizeObserver.disconnect();
|
|
9110
9112
|
}
|
|
9111
9113
|
globalEvents.off($xeList, 'resize');
|
|
9112
|
-
XEUtils.assign(reactData, createReactData$
|
|
9113
|
-
XEUtils.assign(internalData, createInternalData$
|
|
9114
|
+
XEUtils.assign(reactData, createReactData$m());
|
|
9115
|
+
XEUtils.assign(internalData, createInternalData$l());
|
|
9114
9116
|
});
|
|
9115
9117
|
$xeList.renderVN = renderVN;
|
|
9116
9118
|
return $xeList;
|
|
@@ -11901,7 +11903,7 @@ const Input = VxeInput;
|
|
|
11901
11903
|
function getNodeUniqueId$1() {
|
|
11902
11904
|
return XEUtils.uniqueId('node_');
|
|
11903
11905
|
}
|
|
11904
|
-
function createReactData$
|
|
11906
|
+
function createReactData$l() {
|
|
11905
11907
|
return {
|
|
11906
11908
|
initialized: false,
|
|
11907
11909
|
searchValue: '',
|
|
@@ -11924,7 +11926,7 @@ function createReactData$k() {
|
|
|
11924
11926
|
lazyOptFlag: 1
|
|
11925
11927
|
};
|
|
11926
11928
|
}
|
|
11927
|
-
function createInternalData$
|
|
11929
|
+
function createInternalData$k() {
|
|
11928
11930
|
return {
|
|
11929
11931
|
// hpTimeout: undefined,
|
|
11930
11932
|
listVirtualYOpts: {
|
|
@@ -12052,8 +12054,8 @@ var VxeCascaderComponent = defineVxeComponent({
|
|
|
12052
12054
|
const refInpSearch = ref();
|
|
12053
12055
|
const refChunkWrapper = ref();
|
|
12054
12056
|
const refOptionPanel = ref();
|
|
12055
|
-
const reactData = reactive(createReactData$
|
|
12056
|
-
const internalData = createInternalData$
|
|
12057
|
+
const reactData = reactive(createReactData$l());
|
|
12058
|
+
const internalData = createInternalData$k();
|
|
12057
12059
|
const refMaps = {
|
|
12058
12060
|
refElem
|
|
12059
12061
|
};
|
|
@@ -13663,8 +13665,8 @@ var VxeCascaderComponent = defineVxeComponent({
|
|
|
13663
13665
|
globalEvents.off($xeCascader, 'mousedown');
|
|
13664
13666
|
globalEvents.off($xeCascader, 'blur');
|
|
13665
13667
|
globalEvents.off($xeCascader, 'resize');
|
|
13666
|
-
XEUtils.assign(reactData, createReactData$
|
|
13667
|
-
XEUtils.assign(internalData, createInternalData$
|
|
13668
|
+
XEUtils.assign(reactData, createReactData$l());
|
|
13669
|
+
XEUtils.assign(internalData, createInternalData$k());
|
|
13668
13670
|
});
|
|
13669
13671
|
provide('$xeCascader', $xeCascader);
|
|
13670
13672
|
$xeCascader.renderVN = renderVN;
|
|
@@ -14068,10 +14070,10 @@ dynamicApp.use(VxeCheckboxButton);
|
|
|
14068
14070
|
VxeUI.component(VxeCheckboxButtonComponent);
|
|
14069
14071
|
const CheckboxButton = VxeCheckboxButton;
|
|
14070
14072
|
|
|
14071
|
-
function createReactData$
|
|
14073
|
+
function createReactData$k() {
|
|
14072
14074
|
return {};
|
|
14073
14075
|
}
|
|
14074
|
-
function createInternalData$
|
|
14076
|
+
function createInternalData$j() {
|
|
14075
14077
|
return {
|
|
14076
14078
|
// isLoaded: false
|
|
14077
14079
|
};
|
|
@@ -14115,8 +14117,8 @@ var VxeCheckboxGroupComponent = defineVxeComponent({
|
|
|
14115
14117
|
const $xeForm = inject('$xeForm', null);
|
|
14116
14118
|
const formItemInfo = inject('xeFormItemInfo', null);
|
|
14117
14119
|
const xID = XEUtils.uniqueId();
|
|
14118
|
-
const reactData = reactive(createReactData$
|
|
14119
|
-
const internalData = createInternalData$
|
|
14120
|
+
const reactData = reactive(createReactData$k());
|
|
14121
|
+
const internalData = createInternalData$j();
|
|
14120
14122
|
const computeIsReadonly = computed(() => {
|
|
14121
14123
|
const { readonly } = props;
|
|
14122
14124
|
if (readonly === null) {
|
|
@@ -14289,8 +14291,8 @@ var VxeCheckboxGroupComponent = defineVxeComponent({
|
|
|
14289
14291
|
});
|
|
14290
14292
|
});
|
|
14291
14293
|
onUnmounted(() => {
|
|
14292
|
-
XEUtils.assign(reactData, createReactData$
|
|
14293
|
-
XEUtils.assign(internalData, createInternalData$
|
|
14294
|
+
XEUtils.assign(reactData, createReactData$k());
|
|
14295
|
+
XEUtils.assign(internalData, createInternalData$j());
|
|
14294
14296
|
});
|
|
14295
14297
|
provide('$xeCheckboxGroup', $xeCheckboxGroup);
|
|
14296
14298
|
$xeCheckboxGroup.renderVN = renderVN;
|
|
@@ -14423,7 +14425,7 @@ dynamicApp.use(VxeCol);
|
|
|
14423
14425
|
VxeUI.component(VxeColComponent);
|
|
14424
14426
|
const Col = VxeCol;
|
|
14425
14427
|
|
|
14426
|
-
function createReactData$
|
|
14428
|
+
function createReactData$j() {
|
|
14427
14429
|
return {
|
|
14428
14430
|
staticPanes: [],
|
|
14429
14431
|
cachePaneMaps: {},
|
|
@@ -14431,7 +14433,7 @@ function createReactData$i() {
|
|
|
14431
14433
|
openKeyFlag: 0
|
|
14432
14434
|
};
|
|
14433
14435
|
}
|
|
14434
|
-
function createInternalData$
|
|
14436
|
+
function createInternalData$i() {
|
|
14435
14437
|
return {
|
|
14436
14438
|
// esTime: null,
|
|
14437
14439
|
activeKeyMaps: {},
|
|
@@ -14468,8 +14470,8 @@ var VxeCollapseComponent = defineVxeComponent({
|
|
|
14468
14470
|
const xID = XEUtils.uniqueId();
|
|
14469
14471
|
const { computeSize } = useSize(props);
|
|
14470
14472
|
const refElem = ref();
|
|
14471
|
-
const reactData = reactive(createReactData$
|
|
14472
|
-
const internalData = createInternalData$
|
|
14473
|
+
const reactData = reactive(createReactData$j());
|
|
14474
|
+
const internalData = createInternalData$i();
|
|
14473
14475
|
const refMaps = {
|
|
14474
14476
|
refElem
|
|
14475
14477
|
};
|
|
@@ -14748,8 +14750,8 @@ var VxeCollapseComponent = defineVxeComponent({
|
|
|
14748
14750
|
if (esTime) {
|
|
14749
14751
|
clearTimeout(esTime);
|
|
14750
14752
|
}
|
|
14751
|
-
XEUtils.assign(reactData, createReactData$
|
|
14752
|
-
XEUtils.assign(internalData, createInternalData$
|
|
14753
|
+
XEUtils.assign(reactData, createReactData$j());
|
|
14754
|
+
XEUtils.assign(internalData, createInternalData$i());
|
|
14753
14755
|
});
|
|
14754
14756
|
provide('$xeCollapse', $xeCollapse);
|
|
14755
14757
|
$xeCollapse.renderVN = renderVN;
|
|
@@ -17510,12 +17512,12 @@ VxeUI.color = {
|
|
|
17510
17512
|
};
|
|
17511
17513
|
const ColorPicker = VxeColorPicker;
|
|
17512
17514
|
|
|
17513
|
-
function createInternalData$
|
|
17515
|
+
function createInternalData$h() {
|
|
17514
17516
|
return {
|
|
17515
17517
|
// leaveTime: null
|
|
17516
17518
|
};
|
|
17517
17519
|
}
|
|
17518
|
-
function createReactData$
|
|
17520
|
+
function createReactData$i() {
|
|
17519
17521
|
return {
|
|
17520
17522
|
visible: false,
|
|
17521
17523
|
activeOption: null,
|
|
@@ -17570,8 +17572,8 @@ var VxeContextMenuComponent = defineVxeComponent({
|
|
|
17570
17572
|
const xID = XEUtils.uniqueId();
|
|
17571
17573
|
const refElem = ref();
|
|
17572
17574
|
const { computeSize } = useSize(props);
|
|
17573
|
-
const internalData = createInternalData$
|
|
17574
|
-
const reactData = reactive(createReactData$
|
|
17575
|
+
const internalData = createInternalData$h();
|
|
17576
|
+
const reactData = reactive(createReactData$i());
|
|
17575
17577
|
const refMaps = {
|
|
17576
17578
|
refElem
|
|
17577
17579
|
};
|
|
@@ -18126,8 +18128,8 @@ var VxeContextMenuComponent = defineVxeComponent({
|
|
|
18126
18128
|
globalEvents.off($xeContextMenu, 'keydown');
|
|
18127
18129
|
globalEvents.off($xeContextMenu, 'mousedown');
|
|
18128
18130
|
globalEvents.off($xeContextMenu, 'blur');
|
|
18129
|
-
XEUtils.assign(reactData, createReactData$
|
|
18130
|
-
XEUtils.assign(internalData, createInternalData$
|
|
18131
|
+
XEUtils.assign(reactData, createReactData$i());
|
|
18132
|
+
XEUtils.assign(internalData, createInternalData$h());
|
|
18131
18133
|
});
|
|
18132
18134
|
$xeContextMenu.renderVN = renderVN;
|
|
18133
18135
|
return $xeContextMenu;
|
|
@@ -20445,7 +20447,7 @@ const parseInputKayMaps = {};
|
|
|
20445
20447
|
inputMaskedKeys.forEach(key => {
|
|
20446
20448
|
parseInputKayMaps[key] = true;
|
|
20447
20449
|
});
|
|
20448
|
-
function createReactData$
|
|
20450
|
+
function createReactData$h() {
|
|
20449
20451
|
return {
|
|
20450
20452
|
initialized: false,
|
|
20451
20453
|
panelIndex: 0,
|
|
@@ -20458,7 +20460,7 @@ function createReactData$g() {
|
|
|
20458
20460
|
labelFlag: 0
|
|
20459
20461
|
};
|
|
20460
20462
|
}
|
|
20461
|
-
function createInternalData$
|
|
20463
|
+
function createInternalData$g() {
|
|
20462
20464
|
return {
|
|
20463
20465
|
// hpTimeout: undefined,
|
|
20464
20466
|
// fsTimeout: undefined,
|
|
@@ -20603,8 +20605,8 @@ var VxeDatePickerComponent = defineVxeComponent({
|
|
|
20603
20605
|
const formItemInfo = inject('xeFormItemInfo', null);
|
|
20604
20606
|
const xID = XEUtils.uniqueId();
|
|
20605
20607
|
const { computeSize } = useSize(props);
|
|
20606
|
-
const reactData = reactive(createReactData$
|
|
20607
|
-
const internalData = createInternalData$
|
|
20608
|
+
const reactData = reactive(createReactData$h());
|
|
20609
|
+
const internalData = createInternalData$g();
|
|
20608
20610
|
const refElem = ref();
|
|
20609
20611
|
const refInputTarget = ref();
|
|
20610
20612
|
const refInputPanel = ref();
|
|
@@ -22040,8 +22042,8 @@ var VxeDatePickerComponent = defineVxeComponent({
|
|
|
22040
22042
|
globalEvents.off($xeDatePicker, 'keydown');
|
|
22041
22043
|
globalEvents.off($xeDatePicker, 'blur');
|
|
22042
22044
|
globalEvents.off($xeDatePicker, 'resize');
|
|
22043
|
-
XEUtils.assign(reactData, createReactData$
|
|
22044
|
-
XEUtils.assign(internalData, createInternalData$
|
|
22045
|
+
XEUtils.assign(reactData, createReactData$h());
|
|
22046
|
+
XEUtils.assign(internalData, createInternalData$g());
|
|
22045
22047
|
});
|
|
22046
22048
|
provide('$xeDatePicker', $xeDatePicker);
|
|
22047
22049
|
$xeDatePicker.renderVN = renderVN;
|
|
@@ -22062,7 +22064,7 @@ VxeUI.component(VxeDatePickerComponent);
|
|
|
22062
22064
|
const DatePicker = VxeDatePicker;
|
|
22063
22065
|
|
|
22064
22066
|
const { errLog: errLog$e } = createComponentLog('date-range-picker');
|
|
22065
|
-
function createReactData$
|
|
22067
|
+
function createReactData$g() {
|
|
22066
22068
|
return {
|
|
22067
22069
|
initialized: false,
|
|
22068
22070
|
panelIndex: 0,
|
|
@@ -22077,7 +22079,7 @@ function createReactData$f() {
|
|
|
22077
22079
|
paneEndVal: []
|
|
22078
22080
|
};
|
|
22079
22081
|
}
|
|
22080
|
-
function createInternalData$
|
|
22082
|
+
function createInternalData$f() {
|
|
22081
22083
|
return {
|
|
22082
22084
|
// selectStatus: false
|
|
22083
22085
|
// hpTimeout: undefined
|
|
@@ -22224,8 +22226,8 @@ var VxeDateRangePickerComponent = defineVxeComponent({
|
|
|
22224
22226
|
const formItemInfo = inject('xeFormItemInfo', null);
|
|
22225
22227
|
const xID = XEUtils.uniqueId();
|
|
22226
22228
|
const { computeSize } = useSize(props);
|
|
22227
|
-
const reactData = reactive(createReactData$
|
|
22228
|
-
const internalData = createInternalData$
|
|
22229
|
+
const reactData = reactive(createReactData$g());
|
|
22230
|
+
const internalData = createInternalData$f();
|
|
22229
22231
|
const refElem = ref();
|
|
22230
22232
|
const refInputTarget = ref();
|
|
22231
22233
|
const refInputPanel = ref();
|
|
@@ -23551,8 +23553,8 @@ var VxeDateRangePickerComponent = defineVxeComponent({
|
|
|
23551
23553
|
globalEvents.off($xeDateRangePicker, 'mousedown');
|
|
23552
23554
|
globalEvents.off($xeDateRangePicker, 'blur');
|
|
23553
23555
|
globalEvents.off($xeDateRangePicker, 'resize');
|
|
23554
|
-
XEUtils.assign(reactData, createReactData$
|
|
23555
|
-
XEUtils.assign(internalData, createInternalData$
|
|
23556
|
+
XEUtils.assign(reactData, createReactData$g());
|
|
23557
|
+
XEUtils.assign(internalData, createInternalData$f());
|
|
23556
23558
|
});
|
|
23557
23559
|
provide('$xeDateRangePicker', $xeDateRangePicker);
|
|
23558
23560
|
$xeDateRangePicker.renderVN = renderVN;
|
|
@@ -23572,6 +23574,8 @@ dynamicApp.use(VxeDateRangePicker);
|
|
|
23572
23574
|
VxeUI.component(VxeDateRangePickerComponent);
|
|
23573
23575
|
const DateRangePicker = VxeDateRangePicker;
|
|
23574
23576
|
|
|
23577
|
+
const allActiveDrawers = [];
|
|
23578
|
+
|
|
23575
23579
|
const VxeLoading = Object.assign({}, VxeLoadingComponent, {
|
|
23576
23580
|
install(app) {
|
|
23577
23581
|
app.component(VxeLoadingComponent.name, VxeLoadingComponent);
|
|
@@ -23598,7 +23602,6 @@ VxeUI.component(VxeLoadingComponent);
|
|
|
23598
23602
|
VxeUI.loading = LoadingController;
|
|
23599
23603
|
const Loading = VxeLoading;
|
|
23600
23604
|
|
|
23601
|
-
const allActiveDrawers = [];
|
|
23602
23605
|
var VxeDrawerComponent = defineVxeComponent({
|
|
23603
23606
|
name: 'VxeDrawer',
|
|
23604
23607
|
props: {
|
|
@@ -23681,8 +23684,22 @@ var VxeDrawerComponent = defineVxeComponent({
|
|
|
23681
23684
|
default: () => getConfig$3().drawer.showTitleOverflow
|
|
23682
23685
|
},
|
|
23683
23686
|
preload: Boolean,
|
|
23684
|
-
width:
|
|
23685
|
-
|
|
23687
|
+
width: {
|
|
23688
|
+
type: [Number, String],
|
|
23689
|
+
default: () => getConfig$3().drawer.width
|
|
23690
|
+
},
|
|
23691
|
+
height: {
|
|
23692
|
+
type: [Number, String],
|
|
23693
|
+
default: () => getConfig$3().drawer.height
|
|
23694
|
+
},
|
|
23695
|
+
minWidth: {
|
|
23696
|
+
type: [Number, String],
|
|
23697
|
+
default: () => getConfig$3().drawer.minWidth
|
|
23698
|
+
},
|
|
23699
|
+
minHeight: {
|
|
23700
|
+
type: [Number, String],
|
|
23701
|
+
default: () => getConfig$3().drawer.minHeight
|
|
23702
|
+
},
|
|
23686
23703
|
resize: {
|
|
23687
23704
|
type: Boolean,
|
|
23688
23705
|
default: () => getConfig$3().drawer.resize
|
|
@@ -23704,6 +23721,10 @@ var VxeDrawerComponent = defineVxeComponent({
|
|
|
23704
23721
|
type: [String, Function],
|
|
23705
23722
|
default: () => getConfig$3().drawer.appendTo
|
|
23706
23723
|
},
|
|
23724
|
+
isWithinAppendTo: {
|
|
23725
|
+
type: Boolean,
|
|
23726
|
+
default: () => getConfig$3().drawer.isWithinAppendTo
|
|
23727
|
+
},
|
|
23707
23728
|
padding: {
|
|
23708
23729
|
type: Boolean,
|
|
23709
23730
|
default: () => getConfig$3().drawer.padding
|
|
@@ -23788,11 +23809,12 @@ var VxeDrawerComponent = defineVxeComponent({
|
|
|
23788
23809
|
return boxElem;
|
|
23789
23810
|
};
|
|
23790
23811
|
const recalculate = () => {
|
|
23791
|
-
const { width, height } = props;
|
|
23812
|
+
const { position, width, height } = props;
|
|
23792
23813
|
const boxElem = getBox();
|
|
23793
23814
|
if (boxElem) {
|
|
23794
|
-
|
|
23795
|
-
boxElem.style.height = toCssUnit(height);
|
|
23815
|
+
const isTb = position === 'top' || position === 'bottom';
|
|
23816
|
+
boxElem.style.height = isTb ? toCssUnit(height) : '';
|
|
23817
|
+
boxElem.style.width = isTb ? '' : toCssUnit(width);
|
|
23796
23818
|
}
|
|
23797
23819
|
return nextTick();
|
|
23798
23820
|
};
|
|
@@ -23818,6 +23840,10 @@ var VxeDrawerComponent = defineVxeComponent({
|
|
|
23818
23840
|
if (visible) {
|
|
23819
23841
|
Promise.resolve(beforeHideMethod ? beforeHideMethod(params) : null).then((rest) => {
|
|
23820
23842
|
if (!XEUtils.isError(rest)) {
|
|
23843
|
+
const el = refElem.value;
|
|
23844
|
+
if (el) {
|
|
23845
|
+
el.setAttribute('data-effect', 'y');
|
|
23846
|
+
}
|
|
23821
23847
|
reactData.contentVisible = false;
|
|
23822
23848
|
removeActiveQueue();
|
|
23823
23849
|
dispatchEvent('before-hide', params, null);
|
|
@@ -23826,6 +23852,12 @@ var VxeDrawerComponent = defineVxeComponent({
|
|
|
23826
23852
|
emit('update:modelValue', false);
|
|
23827
23853
|
dispatchEvent('hide', params, null);
|
|
23828
23854
|
}, 200);
|
|
23855
|
+
setTimeout(() => {
|
|
23856
|
+
const el = refElem.value;
|
|
23857
|
+
if (el) {
|
|
23858
|
+
el.removeAttribute('data-effect');
|
|
23859
|
+
}
|
|
23860
|
+
}, 350);
|
|
23829
23861
|
}
|
|
23830
23862
|
}).catch(e => e);
|
|
23831
23863
|
}
|
|
@@ -23863,6 +23895,12 @@ var VxeDrawerComponent = defineVxeComponent({
|
|
|
23863
23895
|
reactData.contentVisible = false;
|
|
23864
23896
|
updateZindex();
|
|
23865
23897
|
allActiveDrawers.push($xeDrawer);
|
|
23898
|
+
nextTick(() => {
|
|
23899
|
+
const el = refElem.value;
|
|
23900
|
+
if (el) {
|
|
23901
|
+
el.setAttribute('data-effect', 'y');
|
|
23902
|
+
}
|
|
23903
|
+
});
|
|
23866
23904
|
setTimeout(() => {
|
|
23867
23905
|
recalculate();
|
|
23868
23906
|
reactData.contentVisible = true;
|
|
@@ -23881,6 +23919,12 @@ var VxeDrawerComponent = defineVxeComponent({
|
|
|
23881
23919
|
dispatchEvent('show', params, null);
|
|
23882
23920
|
});
|
|
23883
23921
|
}, 10);
|
|
23922
|
+
setTimeout(() => {
|
|
23923
|
+
const el = refElem.value;
|
|
23924
|
+
if (el) {
|
|
23925
|
+
el.removeAttribute('data-effect');
|
|
23926
|
+
}
|
|
23927
|
+
}, 350);
|
|
23884
23928
|
}
|
|
23885
23929
|
return nextTick();
|
|
23886
23930
|
};
|
|
@@ -23926,12 +23970,19 @@ var VxeDrawerComponent = defineVxeComponent({
|
|
|
23926
23970
|
};
|
|
23927
23971
|
const dragEvent = (evnt) => {
|
|
23928
23972
|
evnt.preventDefault();
|
|
23929
|
-
const {
|
|
23973
|
+
const { resize, isWithinAppendTo } = props;
|
|
23974
|
+
const el = refElem.value;
|
|
23975
|
+
const parentWrapperEl = getPopupWrapperElement(isWithinAppendTo ? el : document.body);
|
|
23976
|
+
if (!parentWrapperEl) {
|
|
23977
|
+
return;
|
|
23978
|
+
}
|
|
23979
|
+
const visibleWidth = parentWrapperEl.clientWidth - (resize && isWithinAppendTo ? 8 : 0);
|
|
23980
|
+
const visibleHeight = parentWrapperEl.clientHeight - (resize && isWithinAppendTo ? 8 : 0);
|
|
23930
23981
|
const marginSize = 0;
|
|
23931
23982
|
const targetElem = evnt.target;
|
|
23932
23983
|
const type = targetElem.getAttribute('type');
|
|
23933
|
-
const minWidth =
|
|
23934
|
-
const minHeight =
|
|
23984
|
+
const minWidth = XEUtils.toNumber(props.minWidth);
|
|
23985
|
+
const minHeight = XEUtils.toNumber(props.minHeight);
|
|
23935
23986
|
const maxWidth = visibleWidth;
|
|
23936
23987
|
const maxHeight = visibleHeight;
|
|
23937
23988
|
const boxElem = getBox();
|
|
@@ -24126,7 +24177,7 @@ var VxeDrawerComponent = defineVxeComponent({
|
|
|
24126
24177
|
return renderEmptyElement($xeDrawer);
|
|
24127
24178
|
};
|
|
24128
24179
|
const renderVN = () => {
|
|
24129
|
-
const { border, showTitleBackground, slots: propSlots = {}, className, position, loading, lockScroll, padding, lockView, mask, resize, appendTo, destroyOnClose } = props;
|
|
24180
|
+
const { border, showTitleBackground, slots: propSlots = {}, className, position, loading, lockScroll, padding, lockView, mask, resize, appendTo, destroyOnClose, isWithinAppendTo } = props;
|
|
24130
24181
|
const { initialized, contentVisible, visible } = reactData;
|
|
24131
24182
|
const asideSlot = slots.aside || propSlots.aside;
|
|
24132
24183
|
const vSize = computeSize.value;
|
|
@@ -24138,7 +24189,7 @@ var VxeDrawerComponent = defineVxeComponent({
|
|
|
24138
24189
|
}, [
|
|
24139
24190
|
h('div', {
|
|
24140
24191
|
ref: refElem,
|
|
24141
|
-
class: ['vxe-drawer--wrapper', `pos--${position}`, className || '', {
|
|
24192
|
+
class: ['vxe-drawer--wrapper', `pos--${position}`, isWithinAppendTo ? 'ctx--within' : 'ctx--free', className || '', {
|
|
24142
24193
|
[`size--${vSize}`]: vSize,
|
|
24143
24194
|
'is--padding': padding,
|
|
24144
24195
|
'is--border': border,
|
|
@@ -24190,8 +24241,17 @@ var VxeDrawerComponent = defineVxeComponent({
|
|
|
24190
24241
|
])
|
|
24191
24242
|
]);
|
|
24192
24243
|
};
|
|
24193
|
-
|
|
24194
|
-
watch(() => props.
|
|
24244
|
+
const reFlag = ref(0);
|
|
24245
|
+
watch(() => props.width, () => {
|
|
24246
|
+
reFlag.value++;
|
|
24247
|
+
});
|
|
24248
|
+
watch(() => props.height, () => {
|
|
24249
|
+
reFlag.value++;
|
|
24250
|
+
});
|
|
24251
|
+
watch(() => props.position, () => {
|
|
24252
|
+
reFlag.value++;
|
|
24253
|
+
});
|
|
24254
|
+
watch(reFlag, recalculate);
|
|
24195
24255
|
watch(() => props.modelValue, (value) => {
|
|
24196
24256
|
if (value) {
|
|
24197
24257
|
openDrawer();
|
|
@@ -25762,7 +25822,7 @@ function checkRuleStatus(rule, data, val) {
|
|
|
25762
25822
|
}
|
|
25763
25823
|
return true;
|
|
25764
25824
|
}
|
|
25765
|
-
function createReactData$
|
|
25825
|
+
function createReactData$f() {
|
|
25766
25826
|
return {
|
|
25767
25827
|
collapseAll: false,
|
|
25768
25828
|
staticItems: [],
|
|
@@ -25770,7 +25830,7 @@ function createReactData$e() {
|
|
|
25770
25830
|
itemWidth: 0
|
|
25771
25831
|
};
|
|
25772
25832
|
}
|
|
25773
|
-
function createInternalData$
|
|
25833
|
+
function createInternalData$e() {
|
|
25774
25834
|
return {
|
|
25775
25835
|
meTimeout: undefined,
|
|
25776
25836
|
stTimeout: undefined,
|
|
@@ -25879,8 +25939,8 @@ var VxeFormComponent = defineVxeComponent({
|
|
|
25879
25939
|
const $xeGrid = inject('$xeGrid', null);
|
|
25880
25940
|
const xID = XEUtils.uniqueId();
|
|
25881
25941
|
const { computeSize } = useSize(props);
|
|
25882
|
-
const reactData = reactive(createReactData$
|
|
25883
|
-
const internalData = createInternalData$
|
|
25942
|
+
const reactData = reactive(createReactData$f());
|
|
25943
|
+
const internalData = createInternalData$e();
|
|
25884
25944
|
const refElem = ref();
|
|
25885
25945
|
const refTooltip = ref();
|
|
25886
25946
|
let formMethods = {};
|
|
@@ -26589,8 +26649,8 @@ var VxeFormComponent = defineVxeComponent({
|
|
|
26589
26649
|
});
|
|
26590
26650
|
onUnmounted(() => {
|
|
26591
26651
|
globalEvents.off($xeForm, 'resize');
|
|
26592
|
-
XEUtils.assign(reactData, createReactData$
|
|
26593
|
-
XEUtils.assign(internalData, createInternalData$
|
|
26652
|
+
XEUtils.assign(reactData, createReactData$f());
|
|
26653
|
+
XEUtils.assign(internalData, createInternalData$e());
|
|
26594
26654
|
});
|
|
26595
26655
|
reactData.collapseAll = !!props.collapseStatus;
|
|
26596
26656
|
if (props.items) {
|
|
@@ -26717,7 +26777,7 @@ dynamicApp.use(VxeFormItem);
|
|
|
26717
26777
|
VxeUI.component(VxeFormItemComponent);
|
|
26718
26778
|
const FormItem = VxeFormItem;
|
|
26719
26779
|
|
|
26720
|
-
function createReactData$
|
|
26780
|
+
function createReactData$e() {
|
|
26721
26781
|
return {
|
|
26722
26782
|
initialized: false,
|
|
26723
26783
|
selectIcon: '',
|
|
@@ -26731,7 +26791,7 @@ function createReactData$d() {
|
|
|
26731
26791
|
iconList: []
|
|
26732
26792
|
};
|
|
26733
26793
|
}
|
|
26734
|
-
function createInternalData$
|
|
26794
|
+
function createInternalData$d() {
|
|
26735
26795
|
return {
|
|
26736
26796
|
fullList: []
|
|
26737
26797
|
// hpTimeout: undefined
|
|
@@ -26793,8 +26853,8 @@ var VxeIconPickerComponent = defineVxeComponent({
|
|
|
26793
26853
|
const formItemInfo = inject('xeFormItemInfo', null);
|
|
26794
26854
|
const xID = XEUtils.uniqueId();
|
|
26795
26855
|
const { computeSize } = useSize(props);
|
|
26796
|
-
const reactData = reactive(createReactData$
|
|
26797
|
-
const internalData = createInternalData$
|
|
26856
|
+
const reactData = reactive(createReactData$e());
|
|
26857
|
+
const internalData = createInternalData$d();
|
|
26798
26858
|
const refElem = ref();
|
|
26799
26859
|
const refInput = ref();
|
|
26800
26860
|
const refOptionPanel = ref();
|
|
@@ -27394,8 +27454,8 @@ var VxeIconPickerComponent = defineVxeComponent({
|
|
|
27394
27454
|
globalEvents.off($xeIconPicker, 'mousedown');
|
|
27395
27455
|
globalEvents.off($xeIconPicker, 'keydown');
|
|
27396
27456
|
globalEvents.off($xeIconPicker, 'blur');
|
|
27397
|
-
XEUtils.assign(reactData, createReactData$
|
|
27398
|
-
XEUtils.assign(internalData, createInternalData$
|
|
27457
|
+
XEUtils.assign(reactData, createReactData$e());
|
|
27458
|
+
XEUtils.assign(internalData, createInternalData$d());
|
|
27399
27459
|
});
|
|
27400
27460
|
provide('$xeIconPicker', $xeIconPicker);
|
|
27401
27461
|
$xeIconPicker.renderVN = renderVN;
|
|
@@ -28098,13 +28158,13 @@ const openPreviewImage = (options) => {
|
|
|
28098
28158
|
return Promise.resolve();
|
|
28099
28159
|
};
|
|
28100
28160
|
|
|
28101
|
-
function createInternalData$
|
|
28161
|
+
function createInternalData$c() {
|
|
28102
28162
|
return {
|
|
28103
28163
|
// dgTime: 0,
|
|
28104
28164
|
// mdTime: 0
|
|
28105
28165
|
};
|
|
28106
28166
|
}
|
|
28107
|
-
function createReactData$
|
|
28167
|
+
function createReactData$d() {
|
|
28108
28168
|
return {};
|
|
28109
28169
|
}
|
|
28110
28170
|
var VxeImageComponent = defineVxeComponent({
|
|
@@ -28163,8 +28223,8 @@ var VxeImageComponent = defineVxeComponent({
|
|
|
28163
28223
|
const $xeImageGroup = inject('$xeImageGroup', null);
|
|
28164
28224
|
const refElem = ref();
|
|
28165
28225
|
const { computeSize } = useSize(props);
|
|
28166
|
-
const internalData = createInternalData$
|
|
28167
|
-
const reactData = reactive(createReactData$
|
|
28226
|
+
const internalData = createInternalData$c();
|
|
28227
|
+
const reactData = reactive(createReactData$d());
|
|
28168
28228
|
const refMaps = {
|
|
28169
28229
|
refElem
|
|
28170
28230
|
};
|
|
@@ -28350,8 +28410,8 @@ var VxeImageComponent = defineVxeComponent({
|
|
|
28350
28410
|
]);
|
|
28351
28411
|
};
|
|
28352
28412
|
onBeforeUnmount(() => {
|
|
28353
|
-
XEUtils.assign(reactData, createReactData$
|
|
28354
|
-
XEUtils.assign(internalData, createInternalData$
|
|
28413
|
+
XEUtils.assign(reactData, createReactData$d());
|
|
28414
|
+
XEUtils.assign(internalData, createInternalData$c());
|
|
28355
28415
|
});
|
|
28356
28416
|
$xeImage.renderVN = renderVN;
|
|
28357
28417
|
return $xeImage;
|
|
@@ -28624,10 +28684,10 @@ dynamicApp.use(VxeLayoutAside);
|
|
|
28624
28684
|
VxeUI.component(VxeLayoutAsideComponent);
|
|
28625
28685
|
const LayoutAside = VxeLayoutAside;
|
|
28626
28686
|
|
|
28627
|
-
function createInternalData$
|
|
28687
|
+
function createInternalData$b() {
|
|
28628
28688
|
return {};
|
|
28629
28689
|
}
|
|
28630
|
-
function createReactData$
|
|
28690
|
+
function createReactData$c() {
|
|
28631
28691
|
return {};
|
|
28632
28692
|
}
|
|
28633
28693
|
var VxeLayoutBodyComponent = defineVxeComponent({
|
|
@@ -28652,8 +28712,8 @@ var VxeLayoutBodyComponent = defineVxeComponent({
|
|
|
28652
28712
|
const backtopId = `vxe_layout_body_backtop_${xID}`;
|
|
28653
28713
|
const refElem = ref();
|
|
28654
28714
|
const { computeSize } = useSize(props);
|
|
28655
|
-
const internalData = createInternalData$
|
|
28656
|
-
const reactData = reactive(createReactData$
|
|
28715
|
+
const internalData = createInternalData$b();
|
|
28716
|
+
const reactData = reactive(createReactData$c());
|
|
28657
28717
|
const refMaps = {
|
|
28658
28718
|
refElem
|
|
28659
28719
|
};
|
|
@@ -29070,7 +29130,7 @@ const Link = VxeLink;
|
|
|
29070
29130
|
|
|
29071
29131
|
const { errLog: errLog$a } = createComponentLog('menu');
|
|
29072
29132
|
const { menus: menus$1, getConfig: getConfig$1, getIcon: getIcon$1 } = VxeUI;
|
|
29073
|
-
function createInternalData$
|
|
29133
|
+
function createInternalData$a() {
|
|
29074
29134
|
return {
|
|
29075
29135
|
lastActiveTime: 0,
|
|
29076
29136
|
menuInitMaps: {},
|
|
@@ -29079,7 +29139,7 @@ function createInternalData$9() {
|
|
|
29079
29139
|
menuEffectMaps: {}
|
|
29080
29140
|
};
|
|
29081
29141
|
}
|
|
29082
|
-
function createReactData$
|
|
29142
|
+
function createReactData$b() {
|
|
29083
29143
|
return {
|
|
29084
29144
|
initialized: false,
|
|
29085
29145
|
isEnterCollapse: false,
|
|
@@ -29142,8 +29202,8 @@ var VxeMenuComponent = defineVxeComponent({
|
|
|
29142
29202
|
const refElem = ref();
|
|
29143
29203
|
const refCollapseElem = ref();
|
|
29144
29204
|
const { computeSize } = useSize(props);
|
|
29145
|
-
const reactData = reactive(createReactData$
|
|
29146
|
-
const internalData = createInternalData$
|
|
29205
|
+
const reactData = reactive(createReactData$b());
|
|
29206
|
+
const internalData = createInternalData$a();
|
|
29147
29207
|
const refMaps = {
|
|
29148
29208
|
refElem
|
|
29149
29209
|
};
|
|
@@ -29767,8 +29827,8 @@ var VxeMenuComponent = defineVxeComponent({
|
|
|
29767
29827
|
});
|
|
29768
29828
|
onBeforeUnmount(() => {
|
|
29769
29829
|
globalEvents.off($xeMenu, 'resize');
|
|
29770
|
-
XEUtils.assign(reactData, createReactData$
|
|
29771
|
-
XEUtils.assign(internalData, createInternalData$
|
|
29830
|
+
XEUtils.assign(reactData, createReactData$b());
|
|
29831
|
+
XEUtils.assign(internalData, createInternalData$a());
|
|
29772
29832
|
});
|
|
29773
29833
|
reactData.initialized = !!props.collapsed;
|
|
29774
29834
|
reactData.activeName = props.modelValue;
|
|
@@ -29791,8 +29851,30 @@ dynamicApp.use(VxeMenu);
|
|
|
29791
29851
|
VxeUI.component(VxeMenuComponent);
|
|
29792
29852
|
const Menu = VxeMenu;
|
|
29793
29853
|
|
|
29794
|
-
const { warnLog: warnLog$a, errLog: errLog$9 } = createComponentLog('modal');
|
|
29795
29854
|
const allActiveModals = [];
|
|
29855
|
+
|
|
29856
|
+
const { warnLog: warnLog$a, errLog: errLog$9 } = createComponentLog('modal');
|
|
29857
|
+
function createInternalData$9() {
|
|
29858
|
+
return {
|
|
29859
|
+
// msgTimeout: undefined,
|
|
29860
|
+
isMoveStatus: false
|
|
29861
|
+
};
|
|
29862
|
+
}
|
|
29863
|
+
function createReactData$a() {
|
|
29864
|
+
return {
|
|
29865
|
+
initialized: false,
|
|
29866
|
+
visible: false,
|
|
29867
|
+
contentVisible: false,
|
|
29868
|
+
modalTop: 0,
|
|
29869
|
+
modalZindex: 0,
|
|
29870
|
+
prevZoomStatus: '',
|
|
29871
|
+
zoomStatus: '',
|
|
29872
|
+
revertLocat: null,
|
|
29873
|
+
prevLocat: null,
|
|
29874
|
+
firstOpen: true,
|
|
29875
|
+
resizeFlag: 1
|
|
29876
|
+
};
|
|
29877
|
+
}
|
|
29796
29878
|
const msgQueue = [];
|
|
29797
29879
|
const notifyQueue = [];
|
|
29798
29880
|
const lockScrollAttrKey = 'data-vxe-lock-scroll';
|
|
@@ -30007,22 +30089,8 @@ var VxeModalComponent = defineVxeComponent({
|
|
|
30007
30089
|
const $xeTable = inject('$xeTable', null);
|
|
30008
30090
|
const $xeForm = inject('$xeForm', null);
|
|
30009
30091
|
const { computeSize } = useSize(props);
|
|
30010
|
-
const reactData = reactive(
|
|
30011
|
-
|
|
30012
|
-
visible: false,
|
|
30013
|
-
contentVisible: false,
|
|
30014
|
-
modalTop: 0,
|
|
30015
|
-
modalZindex: 0,
|
|
30016
|
-
prevZoomStatus: '',
|
|
30017
|
-
zoomStatus: '',
|
|
30018
|
-
revertLocat: null,
|
|
30019
|
-
prevLocat: null,
|
|
30020
|
-
firstOpen: true,
|
|
30021
|
-
resizeFlag: 1
|
|
30022
|
-
});
|
|
30023
|
-
const internalData = {
|
|
30024
|
-
msgTimeout: undefined
|
|
30025
|
-
};
|
|
30092
|
+
const reactData = reactive(createReactData$a());
|
|
30093
|
+
const internalData = createInternalData$9();
|
|
30026
30094
|
const refElem = ref();
|
|
30027
30095
|
const refModalBox = ref();
|
|
30028
30096
|
const refHeaderElem = ref();
|
|
@@ -30181,6 +30249,10 @@ var VxeModalComponent = defineVxeComponent({
|
|
|
30181
30249
|
if (visible) {
|
|
30182
30250
|
Promise.resolve(beforeHideFn ? beforeHideFn(params) : null).then((rest) => {
|
|
30183
30251
|
if (!XEUtils.isError(rest)) {
|
|
30252
|
+
const el = refElem.value;
|
|
30253
|
+
if (el) {
|
|
30254
|
+
el.setAttribute('data-effect', 'y');
|
|
30255
|
+
}
|
|
30184
30256
|
if (isMsg) {
|
|
30185
30257
|
removeMsgQueue();
|
|
30186
30258
|
}
|
|
@@ -30196,6 +30268,12 @@ var VxeModalComponent = defineVxeComponent({
|
|
|
30196
30268
|
dispatchEvent('hide', params, null);
|
|
30197
30269
|
}, 200);
|
|
30198
30270
|
removeBodyLockScroll();
|
|
30271
|
+
setTimeout(() => {
|
|
30272
|
+
const el = refElem.value;
|
|
30273
|
+
if (el) {
|
|
30274
|
+
el.removeAttribute('data-effect');
|
|
30275
|
+
}
|
|
30276
|
+
}, 350);
|
|
30199
30277
|
}
|
|
30200
30278
|
}).catch(e => e);
|
|
30201
30279
|
}
|
|
@@ -30494,6 +30572,7 @@ var VxeModalComponent = defineVxeComponent({
|
|
|
30494
30572
|
}
|
|
30495
30573
|
if (!visible) {
|
|
30496
30574
|
addBodyLockScroll();
|
|
30575
|
+
internalData.isMoveStatus = false;
|
|
30497
30576
|
reactData.visible = true;
|
|
30498
30577
|
reactData.contentVisible = false;
|
|
30499
30578
|
updateZindex();
|
|
@@ -30525,6 +30604,10 @@ var VxeModalComponent = defineVxeComponent({
|
|
|
30525
30604
|
else {
|
|
30526
30605
|
nextTick(() => {
|
|
30527
30606
|
const { firstOpen } = reactData;
|
|
30607
|
+
const el = refElem.value;
|
|
30608
|
+
if (el) {
|
|
30609
|
+
el.setAttribute('data-effect', 'y');
|
|
30610
|
+
}
|
|
30528
30611
|
if (firstOpen) {
|
|
30529
30612
|
reactData.firstOpen = false;
|
|
30530
30613
|
if (hasPosStorage()) {
|
|
@@ -30551,6 +30634,12 @@ var VxeModalComponent = defineVxeComponent({
|
|
|
30551
30634
|
}
|
|
30552
30635
|
}
|
|
30553
30636
|
});
|
|
30637
|
+
setTimeout(() => {
|
|
30638
|
+
const el = refElem.value;
|
|
30639
|
+
if (el) {
|
|
30640
|
+
el.removeAttribute('data-effect');
|
|
30641
|
+
}
|
|
30642
|
+
}, 350);
|
|
30554
30643
|
}
|
|
30555
30644
|
}
|
|
30556
30645
|
return nextTick();
|
|
@@ -30598,6 +30687,11 @@ var VxeModalComponent = defineVxeComponent({
|
|
|
30598
30687
|
}
|
|
30599
30688
|
}
|
|
30600
30689
|
};
|
|
30690
|
+
const handleGlobalResizeEvent = () => {
|
|
30691
|
+
if (!internalData.isMoveStatus) {
|
|
30692
|
+
updatePosition();
|
|
30693
|
+
}
|
|
30694
|
+
};
|
|
30601
30695
|
const isMinimized = () => {
|
|
30602
30696
|
return reactData.zoomStatus === 'minimize';
|
|
30603
30697
|
};
|
|
@@ -30700,7 +30794,7 @@ var VxeModalComponent = defineVxeComponent({
|
|
|
30700
30794
|
}
|
|
30701
30795
|
};
|
|
30702
30796
|
const mousedownEvent = (evnt) => {
|
|
30703
|
-
const {
|
|
30797
|
+
const { storage, isWithinAppendTo } = props;
|
|
30704
30798
|
const { zoomStatus } = reactData;
|
|
30705
30799
|
const marginSize = XEUtils.toNumber(props.marginSize);
|
|
30706
30800
|
const boxElem = getBox();
|
|
@@ -30714,8 +30808,8 @@ var VxeModalComponent = defineVxeComponent({
|
|
|
30714
30808
|
if (!parentWrapperEl) {
|
|
30715
30809
|
return;
|
|
30716
30810
|
}
|
|
30717
|
-
const visibleWidth = parentWrapperEl.clientWidth
|
|
30718
|
-
const visibleHeight = parentWrapperEl.clientHeight
|
|
30811
|
+
const visibleWidth = parentWrapperEl.clientWidth;
|
|
30812
|
+
const visibleHeight = parentWrapperEl.clientHeight;
|
|
30719
30813
|
const disX = evnt.clientX - boxElem.offsetLeft;
|
|
30720
30814
|
const disY = evnt.clientY - boxElem.offsetTop;
|
|
30721
30815
|
document.onmousemove = evnt => {
|
|
@@ -30744,6 +30838,7 @@ var VxeModalComponent = defineVxeComponent({
|
|
|
30744
30838
|
boxElem.style.top = `${top}px`;
|
|
30745
30839
|
boxElem.className = boxElem.className.replace(/\s?is--drag/, '') + ' is--drag';
|
|
30746
30840
|
dispatchEvent('move', { type: 'move' }, evnt);
|
|
30841
|
+
internalData.isMoveStatus = true;
|
|
30747
30842
|
reactData.resizeFlag++;
|
|
30748
30843
|
};
|
|
30749
30844
|
document.onmouseup = () => {
|
|
@@ -30763,14 +30858,14 @@ var VxeModalComponent = defineVxeComponent({
|
|
|
30763
30858
|
};
|
|
30764
30859
|
const dragEvent = (evnt) => {
|
|
30765
30860
|
evnt.preventDefault();
|
|
30766
|
-
const {
|
|
30861
|
+
const { storage, isWithinAppendTo } = props;
|
|
30767
30862
|
const el = refElem.value;
|
|
30768
30863
|
const parentWrapperEl = getPopupWrapperElement(isWithinAppendTo ? el : document.body);
|
|
30769
30864
|
if (!parentWrapperEl) {
|
|
30770
30865
|
return;
|
|
30771
30866
|
}
|
|
30772
|
-
const visibleWidth = parentWrapperEl.clientWidth
|
|
30773
|
-
const visibleHeight = parentWrapperEl.clientHeight
|
|
30867
|
+
const visibleWidth = parentWrapperEl.clientWidth;
|
|
30868
|
+
const visibleHeight = parentWrapperEl.clientHeight;
|
|
30774
30869
|
const marginSize = XEUtils.toNumber(props.marginSize);
|
|
30775
30870
|
const targetElem = evnt.target;
|
|
30776
30871
|
const type = targetElem.getAttribute('data-type');
|
|
@@ -31151,7 +31246,7 @@ var VxeModalComponent = defineVxeComponent({
|
|
|
31151
31246
|
to: getPopupContainer(appendTo),
|
|
31152
31247
|
disabled: btnTransfer ? !initialized : true
|
|
31153
31248
|
}, [
|
|
31154
|
-
h('div', Object.assign({ ref: refElem, class: ['vxe-modal--wrapper', `type--${type}`, `zoom--${zoomStatus || 'revert'}`,
|
|
31249
|
+
h('div', Object.assign({ ref: refElem, class: ['vxe-modal--wrapper', `type--${type}`, `zoom--${zoomStatus || 'revert'}`, position ? `pos--${position}` : '', isWithinAppendTo ? 'ctx--within' : 'ctx--free', className || '', {
|
|
31155
31250
|
[`size--${vSize}`]: vSize,
|
|
31156
31251
|
[`status--${status}`]: status,
|
|
31157
31252
|
'is--padding': padding,
|
|
@@ -31244,12 +31339,16 @@ var VxeModalComponent = defineVxeComponent({
|
|
|
31244
31339
|
if (props.escClosable) {
|
|
31245
31340
|
globalEvents.on($xeModal, 'keydown', handleGlobalKeydownEvent);
|
|
31246
31341
|
}
|
|
31342
|
+
globalEvents.on($xeModal, 'resize', handleGlobalResizeEvent);
|
|
31247
31343
|
});
|
|
31248
31344
|
onUnmounted(() => {
|
|
31249
31345
|
globalEvents.off($xeModal, 'keydown');
|
|
31346
|
+
globalEvents.off($xeModal, 'resize');
|
|
31250
31347
|
removeMsgQueue();
|
|
31251
31348
|
removeActiveQueue();
|
|
31252
31349
|
removeBodyLockScroll();
|
|
31350
|
+
XEUtils.assign(reactData, createReactData$a());
|
|
31351
|
+
XEUtils.assign(internalData, createInternalData$9());
|
|
31253
31352
|
});
|
|
31254
31353
|
provide('$xeModal', $xeModal);
|
|
31255
31354
|
return $xeModal;
|