vxe-pc-ui 4.17.27 → 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 +261 -137
- package/dist/style.css +1 -1
- package/dist/style.min.css +1 -1
- package/es/color-picker/src/color-picker.js +11 -5
- package/es/color-picker/style.css +44 -35
- package/es/color-picker/style.min.css +1 -1
- package/es/drawer/index.js +2 -1
- package/es/drawer/src/drawer.js +81 -14
- package/es/drawer/src/store.js +1 -0
- package/es/drawer/style.css +59 -22
- 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 +80 -37
- package/es/modal/src/store.js +1 -0
- package/es/modal/style.css +35 -20
- 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 +7 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-color-picker/style.css +44 -35
- package/es/vxe-color-picker/style.min.css +1 -1
- package/es/vxe-drawer/style.css +59 -22
- package/es/vxe-drawer/style.min.css +1 -1
- package/es/vxe-modal/style.css +35 -20
- package/es/vxe-modal/style.min.css +1 -1
- package/lib/color-picker/src/color-picker.js +8 -4
- package/lib/color-picker/src/color-picker.min.js +1 -1
- package/lib/color-picker/style/style.css +44 -35
- package/lib/color-picker/style/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 +91 -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 +59 -22
- 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 +188 -54
- 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 +86 -43
- 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 +35 -20
- 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 +7 -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-color-picker/style/style.css +44 -35
- package/lib/vxe-color-picker/style/style.min.css +1 -1
- package/lib/vxe-drawer/style/style.css +59 -22
- package/lib/vxe-drawer/style/style.min.css +1 -1
- package/lib/vxe-modal/style/style.css +35 -20
- package/lib/vxe-modal/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/color-picker/src/color-picker.ts +11 -5
- package/packages/drawer/index.ts +2 -1
- package/packages/drawer/src/drawer.ts +81 -15
- package/packages/drawer/src/store.ts +3 -0
- package/packages/modal/index.ts +2 -1
- package/packages/modal/src/modal.ts +83 -38
- package/packages/modal/src/store.ts +3 -0
- package/packages/ui/index.ts +6 -0
- package/styles/components/color-picker.scss +35 -26
- package/styles/components/drawer.scss +70 -18
- package/styles/components/modal.scss +38 -16
- package/styles/theme/dark.scss +4 -1
- package/styles/theme/light.scss +3 -0
- package/styles/variable.scss +3 -0
- package/types/components/drawer.d.ts +13 -0
- package/types/components/modal.d.ts +6 -1
- /package/es/icon/{iconfont.1788342346304.ttf → iconfont.1788486194527.ttf} +0 -0
- /package/es/icon/{iconfont.1788342346304.woff → iconfont.1788486194527.woff} +0 -0
- /package/es/icon/{iconfont.1788342346304.woff2 → iconfont.1788486194527.woff2} +0 -0
- /package/es/{iconfont.1788342346304.ttf → iconfont.1788486194527.ttf} +0 -0
- /package/es/{iconfont.1788342346304.woff → iconfont.1788486194527.woff} +0 -0
- /package/es/{iconfont.1788342346304.woff2 → iconfont.1788486194527.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1788342346304.ttf → iconfont.1788486194527.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1788342346304.woff → iconfont.1788486194527.woff} +0 -0
- /package/lib/icon/style/{iconfont.1788342346304.woff2 → iconfont.1788486194527.woff2} +0 -0
- /package/lib/{iconfont.1788342346304.ttf → iconfont.1788486194527.ttf} +0 -0
- /package/lib/{iconfont.1788342346304.woff → iconfont.1788486194527.woff} +0 -0
- /package/lib/{iconfont.1788342346304.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,8 +251,12 @@ 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,
|
|
258
|
+
// showTitleBackground: false,
|
|
259
|
+
border: true,
|
|
256
260
|
lockView: true,
|
|
257
261
|
mask: true,
|
|
258
262
|
showTitleOverflow: true,
|
|
@@ -362,6 +366,8 @@ setConfig$1({
|
|
|
362
366
|
// size: null,
|
|
363
367
|
top: 16,
|
|
364
368
|
showHeader: true,
|
|
369
|
+
// showTitleBackground: false,
|
|
370
|
+
border: true,
|
|
365
371
|
// useHtml: false,
|
|
366
372
|
// width: null,
|
|
367
373
|
// height: null,
|
|
@@ -2669,7 +2675,7 @@ function deModelValue(nodeid) {
|
|
|
2669
2675
|
return nodeid ? decodeURIComponent(`${nodeid}`) : nodeid;
|
|
2670
2676
|
}
|
|
2671
2677
|
|
|
2672
|
-
function createReactData$
|
|
2678
|
+
function createReactData$o() {
|
|
2673
2679
|
return {
|
|
2674
2680
|
target: null,
|
|
2675
2681
|
isUpdate: false,
|
|
@@ -2686,7 +2692,7 @@ function createReactData$n() {
|
|
|
2686
2692
|
}
|
|
2687
2693
|
};
|
|
2688
2694
|
}
|
|
2689
|
-
function createInternalData$
|
|
2695
|
+
function createInternalData$n() {
|
|
2690
2696
|
return {
|
|
2691
2697
|
// showDelayTip: undefined
|
|
2692
2698
|
};
|
|
@@ -2785,8 +2791,8 @@ var VxeTooltipComponent = defineVxeComponent({
|
|
|
2785
2791
|
const { slots, emit } = context;
|
|
2786
2792
|
const xID = XEUtils.uniqueId();
|
|
2787
2793
|
const { computeSize } = useSize(props);
|
|
2788
|
-
const reactData = reactive(createReactData$
|
|
2789
|
-
const internalData = createInternalData$
|
|
2794
|
+
const reactData = reactive(createReactData$o());
|
|
2795
|
+
const internalData = createInternalData$n();
|
|
2790
2796
|
const refElem = ref();
|
|
2791
2797
|
const contentWrapperfElem = ref();
|
|
2792
2798
|
const computeWrapperStyle = computed(() => {
|
|
@@ -3189,8 +3195,8 @@ var VxeTooltipComponent = defineVxeComponent({
|
|
|
3189
3195
|
}
|
|
3190
3196
|
globalEvents.off($xeTooltip, 'blur');
|
|
3191
3197
|
globalEvents.off($xeTooltip, 'scroll');
|
|
3192
|
-
XEUtils.assign(reactData, createReactData$
|
|
3193
|
-
XEUtils.assign(internalData, createInternalData$
|
|
3198
|
+
XEUtils.assign(reactData, createReactData$o());
|
|
3199
|
+
XEUtils.assign(internalData, createInternalData$n());
|
|
3194
3200
|
});
|
|
3195
3201
|
$xeTooltip.renderVN = renderVN;
|
|
3196
3202
|
return $xeTooltip;
|
|
@@ -4012,12 +4018,12 @@ VxeUI.component(VxeButtonComponent);
|
|
|
4012
4018
|
const Button = VxeButton;
|
|
4013
4019
|
|
|
4014
4020
|
const { errLog: errLog$k } = createComponentLog('backtop');
|
|
4015
|
-
function createInternalData$
|
|
4021
|
+
function createInternalData$m() {
|
|
4016
4022
|
return {
|
|
4017
4023
|
targetEl: null
|
|
4018
4024
|
};
|
|
4019
4025
|
}
|
|
4020
|
-
function createReactData$
|
|
4026
|
+
function createReactData$n() {
|
|
4021
4027
|
return {
|
|
4022
4028
|
showBtn: false,
|
|
4023
4029
|
backtopZindex: 0
|
|
@@ -4096,8 +4102,8 @@ var VxeBacktopComponent = defineVxeComponent({
|
|
|
4096
4102
|
const xID = XEUtils.uniqueId();
|
|
4097
4103
|
const refElem = ref();
|
|
4098
4104
|
const { computeSize } = useSize(props);
|
|
4099
|
-
const internalData = createInternalData$
|
|
4100
|
-
const reactData = reactive(createReactData$
|
|
4105
|
+
const internalData = createInternalData$m();
|
|
4106
|
+
const reactData = reactive(createReactData$n());
|
|
4101
4107
|
const refMaps = {
|
|
4102
4108
|
refElem
|
|
4103
4109
|
};
|
|
@@ -4271,8 +4277,8 @@ var VxeBacktopComponent = defineVxeComponent({
|
|
|
4271
4277
|
});
|
|
4272
4278
|
onBeforeUnmount(() => {
|
|
4273
4279
|
removeScrollEvent();
|
|
4274
|
-
XEUtils.assign(reactData, createReactData$
|
|
4275
|
-
XEUtils.assign(internalData, createInternalData$
|
|
4280
|
+
XEUtils.assign(reactData, createReactData$n());
|
|
4281
|
+
XEUtils.assign(internalData, createInternalData$m());
|
|
4276
4282
|
});
|
|
4277
4283
|
$xeBacktop.renderVN = renderVN;
|
|
4278
4284
|
return $xeBacktop;
|
|
@@ -7031,7 +7037,7 @@ function getRowIdByField(row, keyField) {
|
|
|
7031
7037
|
const rowKey = getRowKeyByField(row, keyField);
|
|
7032
7038
|
return enModelValue(rowKey);
|
|
7033
7039
|
}
|
|
7034
|
-
function createReactData$
|
|
7040
|
+
function createReactData$m() {
|
|
7035
7041
|
return {
|
|
7036
7042
|
scrollYLoad: false,
|
|
7037
7043
|
bodyHeight: 0,
|
|
@@ -7054,7 +7060,7 @@ function createReactData$l() {
|
|
|
7054
7060
|
isCrossDragRow: false
|
|
7055
7061
|
};
|
|
7056
7062
|
}
|
|
7057
|
-
function createInternalData$
|
|
7063
|
+
function createInternalData$l() {
|
|
7058
7064
|
return {
|
|
7059
7065
|
resizeObserver: undefined,
|
|
7060
7066
|
fullData: [],
|
|
@@ -7141,8 +7147,8 @@ var VxeListComponent = defineVxeComponent({
|
|
|
7141
7147
|
const xID = XEUtils.uniqueId();
|
|
7142
7148
|
const browseObj = XEUtils.browse();
|
|
7143
7149
|
const { computeSize } = useSize(props);
|
|
7144
|
-
const reactData = reactive(createReactData$
|
|
7145
|
-
const internalData = createInternalData$
|
|
7150
|
+
const reactData = reactive(createReactData$m());
|
|
7151
|
+
const internalData = createInternalData$l();
|
|
7146
7152
|
const crossListDragRowInfo = getCrossListDragRowInfo();
|
|
7147
7153
|
const refElem = ref();
|
|
7148
7154
|
const refHeaderElem = ref();
|
|
@@ -9105,8 +9111,8 @@ var VxeListComponent = defineVxeComponent({
|
|
|
9105
9111
|
resizeObserver.disconnect();
|
|
9106
9112
|
}
|
|
9107
9113
|
globalEvents.off($xeList, 'resize');
|
|
9108
|
-
XEUtils.assign(reactData, createReactData$
|
|
9109
|
-
XEUtils.assign(internalData, createInternalData$
|
|
9114
|
+
XEUtils.assign(reactData, createReactData$m());
|
|
9115
|
+
XEUtils.assign(internalData, createInternalData$l());
|
|
9110
9116
|
});
|
|
9111
9117
|
$xeList.renderVN = renderVN;
|
|
9112
9118
|
return $xeList;
|
|
@@ -11897,7 +11903,7 @@ const Input = VxeInput;
|
|
|
11897
11903
|
function getNodeUniqueId$1() {
|
|
11898
11904
|
return XEUtils.uniqueId('node_');
|
|
11899
11905
|
}
|
|
11900
|
-
function createReactData$
|
|
11906
|
+
function createReactData$l() {
|
|
11901
11907
|
return {
|
|
11902
11908
|
initialized: false,
|
|
11903
11909
|
searchValue: '',
|
|
@@ -11920,7 +11926,7 @@ function createReactData$k() {
|
|
|
11920
11926
|
lazyOptFlag: 1
|
|
11921
11927
|
};
|
|
11922
11928
|
}
|
|
11923
|
-
function createInternalData$
|
|
11929
|
+
function createInternalData$k() {
|
|
11924
11930
|
return {
|
|
11925
11931
|
// hpTimeout: undefined,
|
|
11926
11932
|
listVirtualYOpts: {
|
|
@@ -12048,8 +12054,8 @@ var VxeCascaderComponent = defineVxeComponent({
|
|
|
12048
12054
|
const refInpSearch = ref();
|
|
12049
12055
|
const refChunkWrapper = ref();
|
|
12050
12056
|
const refOptionPanel = ref();
|
|
12051
|
-
const reactData = reactive(createReactData$
|
|
12052
|
-
const internalData = createInternalData$
|
|
12057
|
+
const reactData = reactive(createReactData$l());
|
|
12058
|
+
const internalData = createInternalData$k();
|
|
12053
12059
|
const refMaps = {
|
|
12054
12060
|
refElem
|
|
12055
12061
|
};
|
|
@@ -13659,8 +13665,8 @@ var VxeCascaderComponent = defineVxeComponent({
|
|
|
13659
13665
|
globalEvents.off($xeCascader, 'mousedown');
|
|
13660
13666
|
globalEvents.off($xeCascader, 'blur');
|
|
13661
13667
|
globalEvents.off($xeCascader, 'resize');
|
|
13662
|
-
XEUtils.assign(reactData, createReactData$
|
|
13663
|
-
XEUtils.assign(internalData, createInternalData$
|
|
13668
|
+
XEUtils.assign(reactData, createReactData$l());
|
|
13669
|
+
XEUtils.assign(internalData, createInternalData$k());
|
|
13664
13670
|
});
|
|
13665
13671
|
provide('$xeCascader', $xeCascader);
|
|
13666
13672
|
$xeCascader.renderVN = renderVN;
|
|
@@ -14064,10 +14070,10 @@ dynamicApp.use(VxeCheckboxButton);
|
|
|
14064
14070
|
VxeUI.component(VxeCheckboxButtonComponent);
|
|
14065
14071
|
const CheckboxButton = VxeCheckboxButton;
|
|
14066
14072
|
|
|
14067
|
-
function createReactData$
|
|
14073
|
+
function createReactData$k() {
|
|
14068
14074
|
return {};
|
|
14069
14075
|
}
|
|
14070
|
-
function createInternalData$
|
|
14076
|
+
function createInternalData$j() {
|
|
14071
14077
|
return {
|
|
14072
14078
|
// isLoaded: false
|
|
14073
14079
|
};
|
|
@@ -14111,8 +14117,8 @@ var VxeCheckboxGroupComponent = defineVxeComponent({
|
|
|
14111
14117
|
const $xeForm = inject('$xeForm', null);
|
|
14112
14118
|
const formItemInfo = inject('xeFormItemInfo', null);
|
|
14113
14119
|
const xID = XEUtils.uniqueId();
|
|
14114
|
-
const reactData = reactive(createReactData$
|
|
14115
|
-
const internalData = createInternalData$
|
|
14120
|
+
const reactData = reactive(createReactData$k());
|
|
14121
|
+
const internalData = createInternalData$j();
|
|
14116
14122
|
const computeIsReadonly = computed(() => {
|
|
14117
14123
|
const { readonly } = props;
|
|
14118
14124
|
if (readonly === null) {
|
|
@@ -14285,8 +14291,8 @@ var VxeCheckboxGroupComponent = defineVxeComponent({
|
|
|
14285
14291
|
});
|
|
14286
14292
|
});
|
|
14287
14293
|
onUnmounted(() => {
|
|
14288
|
-
XEUtils.assign(reactData, createReactData$
|
|
14289
|
-
XEUtils.assign(internalData, createInternalData$
|
|
14294
|
+
XEUtils.assign(reactData, createReactData$k());
|
|
14295
|
+
XEUtils.assign(internalData, createInternalData$j());
|
|
14290
14296
|
});
|
|
14291
14297
|
provide('$xeCheckboxGroup', $xeCheckboxGroup);
|
|
14292
14298
|
$xeCheckboxGroup.renderVN = renderVN;
|
|
@@ -14419,7 +14425,7 @@ dynamicApp.use(VxeCol);
|
|
|
14419
14425
|
VxeUI.component(VxeColComponent);
|
|
14420
14426
|
const Col = VxeCol;
|
|
14421
14427
|
|
|
14422
|
-
function createReactData$
|
|
14428
|
+
function createReactData$j() {
|
|
14423
14429
|
return {
|
|
14424
14430
|
staticPanes: [],
|
|
14425
14431
|
cachePaneMaps: {},
|
|
@@ -14427,7 +14433,7 @@ function createReactData$i() {
|
|
|
14427
14433
|
openKeyFlag: 0
|
|
14428
14434
|
};
|
|
14429
14435
|
}
|
|
14430
|
-
function createInternalData$
|
|
14436
|
+
function createInternalData$i() {
|
|
14431
14437
|
return {
|
|
14432
14438
|
// esTime: null,
|
|
14433
14439
|
activeKeyMaps: {},
|
|
@@ -14464,8 +14470,8 @@ var VxeCollapseComponent = defineVxeComponent({
|
|
|
14464
14470
|
const xID = XEUtils.uniqueId();
|
|
14465
14471
|
const { computeSize } = useSize(props);
|
|
14466
14472
|
const refElem = ref();
|
|
14467
|
-
const reactData = reactive(createReactData$
|
|
14468
|
-
const internalData = createInternalData$
|
|
14473
|
+
const reactData = reactive(createReactData$j());
|
|
14474
|
+
const internalData = createInternalData$i();
|
|
14469
14475
|
const refMaps = {
|
|
14470
14476
|
refElem
|
|
14471
14477
|
};
|
|
@@ -14744,8 +14750,8 @@ var VxeCollapseComponent = defineVxeComponent({
|
|
|
14744
14750
|
if (esTime) {
|
|
14745
14751
|
clearTimeout(esTime);
|
|
14746
14752
|
}
|
|
14747
|
-
XEUtils.assign(reactData, createReactData$
|
|
14748
|
-
XEUtils.assign(internalData, createInternalData$
|
|
14753
|
+
XEUtils.assign(reactData, createReactData$j());
|
|
14754
|
+
XEUtils.assign(internalData, createInternalData$i());
|
|
14749
14755
|
});
|
|
14750
14756
|
provide('$xeCollapse', $xeCollapse);
|
|
14751
14757
|
$xeCollapse.renderVN = renderVN;
|
|
@@ -17367,13 +17373,19 @@ var VxeColorPickerComponent = defineVxeComponent({
|
|
|
17367
17373
|
if (formReadonly) {
|
|
17368
17374
|
return h('div', {
|
|
17369
17375
|
ref: refElem,
|
|
17370
|
-
class: ['vxe-color-picker--readonly', className
|
|
17376
|
+
class: ['vxe-color-picker--readonly', className, {
|
|
17377
|
+
[`size--${vSize}`]: vSize
|
|
17378
|
+
}]
|
|
17371
17379
|
}, [
|
|
17372
17380
|
h('div', {
|
|
17373
|
-
class: 'vxe-color-picker--readonly-color',
|
|
17374
|
-
|
|
17375
|
-
|
|
17376
|
-
|
|
17381
|
+
class: ['vxe-color-picker--readonly-color', {
|
|
17382
|
+
'is--empty': !modelValue
|
|
17383
|
+
}],
|
|
17384
|
+
style: modelValue
|
|
17385
|
+
? {
|
|
17386
|
+
backgroundColor: modelValue
|
|
17387
|
+
}
|
|
17388
|
+
: undefined
|
|
17377
17389
|
})
|
|
17378
17390
|
]);
|
|
17379
17391
|
}
|
|
@@ -17500,12 +17512,12 @@ VxeUI.color = {
|
|
|
17500
17512
|
};
|
|
17501
17513
|
const ColorPicker = VxeColorPicker;
|
|
17502
17514
|
|
|
17503
|
-
function createInternalData$
|
|
17515
|
+
function createInternalData$h() {
|
|
17504
17516
|
return {
|
|
17505
17517
|
// leaveTime: null
|
|
17506
17518
|
};
|
|
17507
17519
|
}
|
|
17508
|
-
function createReactData$
|
|
17520
|
+
function createReactData$i() {
|
|
17509
17521
|
return {
|
|
17510
17522
|
visible: false,
|
|
17511
17523
|
activeOption: null,
|
|
@@ -17560,8 +17572,8 @@ var VxeContextMenuComponent = defineVxeComponent({
|
|
|
17560
17572
|
const xID = XEUtils.uniqueId();
|
|
17561
17573
|
const refElem = ref();
|
|
17562
17574
|
const { computeSize } = useSize(props);
|
|
17563
|
-
const internalData = createInternalData$
|
|
17564
|
-
const reactData = reactive(createReactData$
|
|
17575
|
+
const internalData = createInternalData$h();
|
|
17576
|
+
const reactData = reactive(createReactData$i());
|
|
17565
17577
|
const refMaps = {
|
|
17566
17578
|
refElem
|
|
17567
17579
|
};
|
|
@@ -18116,8 +18128,8 @@ var VxeContextMenuComponent = defineVxeComponent({
|
|
|
18116
18128
|
globalEvents.off($xeContextMenu, 'keydown');
|
|
18117
18129
|
globalEvents.off($xeContextMenu, 'mousedown');
|
|
18118
18130
|
globalEvents.off($xeContextMenu, 'blur');
|
|
18119
|
-
XEUtils.assign(reactData, createReactData$
|
|
18120
|
-
XEUtils.assign(internalData, createInternalData$
|
|
18131
|
+
XEUtils.assign(reactData, createReactData$i());
|
|
18132
|
+
XEUtils.assign(internalData, createInternalData$h());
|
|
18121
18133
|
});
|
|
18122
18134
|
$xeContextMenu.renderVN = renderVN;
|
|
18123
18135
|
return $xeContextMenu;
|
|
@@ -20435,7 +20447,7 @@ const parseInputKayMaps = {};
|
|
|
20435
20447
|
inputMaskedKeys.forEach(key => {
|
|
20436
20448
|
parseInputKayMaps[key] = true;
|
|
20437
20449
|
});
|
|
20438
|
-
function createReactData$
|
|
20450
|
+
function createReactData$h() {
|
|
20439
20451
|
return {
|
|
20440
20452
|
initialized: false,
|
|
20441
20453
|
panelIndex: 0,
|
|
@@ -20448,7 +20460,7 @@ function createReactData$g() {
|
|
|
20448
20460
|
labelFlag: 0
|
|
20449
20461
|
};
|
|
20450
20462
|
}
|
|
20451
|
-
function createInternalData$
|
|
20463
|
+
function createInternalData$g() {
|
|
20452
20464
|
return {
|
|
20453
20465
|
// hpTimeout: undefined,
|
|
20454
20466
|
// fsTimeout: undefined,
|
|
@@ -20593,8 +20605,8 @@ var VxeDatePickerComponent = defineVxeComponent({
|
|
|
20593
20605
|
const formItemInfo = inject('xeFormItemInfo', null);
|
|
20594
20606
|
const xID = XEUtils.uniqueId();
|
|
20595
20607
|
const { computeSize } = useSize(props);
|
|
20596
|
-
const reactData = reactive(createReactData$
|
|
20597
|
-
const internalData = createInternalData$
|
|
20608
|
+
const reactData = reactive(createReactData$h());
|
|
20609
|
+
const internalData = createInternalData$g();
|
|
20598
20610
|
const refElem = ref();
|
|
20599
20611
|
const refInputTarget = ref();
|
|
20600
20612
|
const refInputPanel = ref();
|
|
@@ -22030,8 +22042,8 @@ var VxeDatePickerComponent = defineVxeComponent({
|
|
|
22030
22042
|
globalEvents.off($xeDatePicker, 'keydown');
|
|
22031
22043
|
globalEvents.off($xeDatePicker, 'blur');
|
|
22032
22044
|
globalEvents.off($xeDatePicker, 'resize');
|
|
22033
|
-
XEUtils.assign(reactData, createReactData$
|
|
22034
|
-
XEUtils.assign(internalData, createInternalData$
|
|
22045
|
+
XEUtils.assign(reactData, createReactData$h());
|
|
22046
|
+
XEUtils.assign(internalData, createInternalData$g());
|
|
22035
22047
|
});
|
|
22036
22048
|
provide('$xeDatePicker', $xeDatePicker);
|
|
22037
22049
|
$xeDatePicker.renderVN = renderVN;
|
|
@@ -22052,7 +22064,7 @@ VxeUI.component(VxeDatePickerComponent);
|
|
|
22052
22064
|
const DatePicker = VxeDatePicker;
|
|
22053
22065
|
|
|
22054
22066
|
const { errLog: errLog$e } = createComponentLog('date-range-picker');
|
|
22055
|
-
function createReactData$
|
|
22067
|
+
function createReactData$g() {
|
|
22056
22068
|
return {
|
|
22057
22069
|
initialized: false,
|
|
22058
22070
|
panelIndex: 0,
|
|
@@ -22067,7 +22079,7 @@ function createReactData$f() {
|
|
|
22067
22079
|
paneEndVal: []
|
|
22068
22080
|
};
|
|
22069
22081
|
}
|
|
22070
|
-
function createInternalData$
|
|
22082
|
+
function createInternalData$f() {
|
|
22071
22083
|
return {
|
|
22072
22084
|
// selectStatus: false
|
|
22073
22085
|
// hpTimeout: undefined
|
|
@@ -22214,8 +22226,8 @@ var VxeDateRangePickerComponent = defineVxeComponent({
|
|
|
22214
22226
|
const formItemInfo = inject('xeFormItemInfo', null);
|
|
22215
22227
|
const xID = XEUtils.uniqueId();
|
|
22216
22228
|
const { computeSize } = useSize(props);
|
|
22217
|
-
const reactData = reactive(createReactData$
|
|
22218
|
-
const internalData = createInternalData$
|
|
22229
|
+
const reactData = reactive(createReactData$g());
|
|
22230
|
+
const internalData = createInternalData$f();
|
|
22219
22231
|
const refElem = ref();
|
|
22220
22232
|
const refInputTarget = ref();
|
|
22221
22233
|
const refInputPanel = ref();
|
|
@@ -23541,8 +23553,8 @@ var VxeDateRangePickerComponent = defineVxeComponent({
|
|
|
23541
23553
|
globalEvents.off($xeDateRangePicker, 'mousedown');
|
|
23542
23554
|
globalEvents.off($xeDateRangePicker, 'blur');
|
|
23543
23555
|
globalEvents.off($xeDateRangePicker, 'resize');
|
|
23544
|
-
XEUtils.assign(reactData, createReactData$
|
|
23545
|
-
XEUtils.assign(internalData, createInternalData$
|
|
23556
|
+
XEUtils.assign(reactData, createReactData$g());
|
|
23557
|
+
XEUtils.assign(internalData, createInternalData$f());
|
|
23546
23558
|
});
|
|
23547
23559
|
provide('$xeDateRangePicker', $xeDateRangePicker);
|
|
23548
23560
|
$xeDateRangePicker.renderVN = renderVN;
|
|
@@ -23562,6 +23574,8 @@ dynamicApp.use(VxeDateRangePicker);
|
|
|
23562
23574
|
VxeUI.component(VxeDateRangePickerComponent);
|
|
23563
23575
|
const DateRangePicker = VxeDateRangePicker;
|
|
23564
23576
|
|
|
23577
|
+
const allActiveDrawers = [];
|
|
23578
|
+
|
|
23565
23579
|
const VxeLoading = Object.assign({}, VxeLoadingComponent, {
|
|
23566
23580
|
install(app) {
|
|
23567
23581
|
app.component(VxeLoadingComponent.name, VxeLoadingComponent);
|
|
@@ -23588,7 +23602,6 @@ VxeUI.component(VxeLoadingComponent);
|
|
|
23588
23602
|
VxeUI.loading = LoadingController;
|
|
23589
23603
|
const Loading = VxeLoading;
|
|
23590
23604
|
|
|
23591
|
-
const allActiveDrawers = [];
|
|
23592
23605
|
var VxeDrawerComponent = defineVxeComponent({
|
|
23593
23606
|
name: 'VxeDrawer',
|
|
23594
23607
|
props: {
|
|
@@ -23671,12 +23684,34 @@ var VxeDrawerComponent = defineVxeComponent({
|
|
|
23671
23684
|
default: () => getConfig$3().drawer.showTitleOverflow
|
|
23672
23685
|
},
|
|
23673
23686
|
preload: Boolean,
|
|
23674
|
-
width:
|
|
23675
|
-
|
|
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
|
+
},
|
|
23676
23703
|
resize: {
|
|
23677
23704
|
type: Boolean,
|
|
23678
23705
|
default: () => getConfig$3().drawer.resize
|
|
23679
23706
|
},
|
|
23707
|
+
border: {
|
|
23708
|
+
type: Boolean,
|
|
23709
|
+
default: () => getConfig$3().drawer.border
|
|
23710
|
+
},
|
|
23711
|
+
showTitleBackground: {
|
|
23712
|
+
type: Boolean,
|
|
23713
|
+
default: () => getConfig$3().drawer.showTitleBackground
|
|
23714
|
+
},
|
|
23680
23715
|
zIndex: Number,
|
|
23681
23716
|
transfer: {
|
|
23682
23717
|
type: Boolean,
|
|
@@ -23686,6 +23721,10 @@ var VxeDrawerComponent = defineVxeComponent({
|
|
|
23686
23721
|
type: [String, Function],
|
|
23687
23722
|
default: () => getConfig$3().drawer.appendTo
|
|
23688
23723
|
},
|
|
23724
|
+
isWithinAppendTo: {
|
|
23725
|
+
type: Boolean,
|
|
23726
|
+
default: () => getConfig$3().drawer.isWithinAppendTo
|
|
23727
|
+
},
|
|
23689
23728
|
padding: {
|
|
23690
23729
|
type: Boolean,
|
|
23691
23730
|
default: () => getConfig$3().drawer.padding
|
|
@@ -23770,11 +23809,12 @@ var VxeDrawerComponent = defineVxeComponent({
|
|
|
23770
23809
|
return boxElem;
|
|
23771
23810
|
};
|
|
23772
23811
|
const recalculate = () => {
|
|
23773
|
-
const { width, height } = props;
|
|
23812
|
+
const { position, width, height } = props;
|
|
23774
23813
|
const boxElem = getBox();
|
|
23775
23814
|
if (boxElem) {
|
|
23776
|
-
|
|
23777
|
-
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);
|
|
23778
23818
|
}
|
|
23779
23819
|
return nextTick();
|
|
23780
23820
|
};
|
|
@@ -23800,6 +23840,10 @@ var VxeDrawerComponent = defineVxeComponent({
|
|
|
23800
23840
|
if (visible) {
|
|
23801
23841
|
Promise.resolve(beforeHideMethod ? beforeHideMethod(params) : null).then((rest) => {
|
|
23802
23842
|
if (!XEUtils.isError(rest)) {
|
|
23843
|
+
const el = refElem.value;
|
|
23844
|
+
if (el) {
|
|
23845
|
+
el.setAttribute('data-effect', 'y');
|
|
23846
|
+
}
|
|
23803
23847
|
reactData.contentVisible = false;
|
|
23804
23848
|
removeActiveQueue();
|
|
23805
23849
|
dispatchEvent('before-hide', params, null);
|
|
@@ -23808,6 +23852,12 @@ var VxeDrawerComponent = defineVxeComponent({
|
|
|
23808
23852
|
emit('update:modelValue', false);
|
|
23809
23853
|
dispatchEvent('hide', params, null);
|
|
23810
23854
|
}, 200);
|
|
23855
|
+
setTimeout(() => {
|
|
23856
|
+
const el = refElem.value;
|
|
23857
|
+
if (el) {
|
|
23858
|
+
el.removeAttribute('data-effect');
|
|
23859
|
+
}
|
|
23860
|
+
}, 350);
|
|
23811
23861
|
}
|
|
23812
23862
|
}).catch(e => e);
|
|
23813
23863
|
}
|
|
@@ -23845,6 +23895,12 @@ var VxeDrawerComponent = defineVxeComponent({
|
|
|
23845
23895
|
reactData.contentVisible = false;
|
|
23846
23896
|
updateZindex();
|
|
23847
23897
|
allActiveDrawers.push($xeDrawer);
|
|
23898
|
+
nextTick(() => {
|
|
23899
|
+
const el = refElem.value;
|
|
23900
|
+
if (el) {
|
|
23901
|
+
el.setAttribute('data-effect', 'y');
|
|
23902
|
+
}
|
|
23903
|
+
});
|
|
23848
23904
|
setTimeout(() => {
|
|
23849
23905
|
recalculate();
|
|
23850
23906
|
reactData.contentVisible = true;
|
|
@@ -23863,6 +23919,12 @@ var VxeDrawerComponent = defineVxeComponent({
|
|
|
23863
23919
|
dispatchEvent('show', params, null);
|
|
23864
23920
|
});
|
|
23865
23921
|
}, 10);
|
|
23922
|
+
setTimeout(() => {
|
|
23923
|
+
const el = refElem.value;
|
|
23924
|
+
if (el) {
|
|
23925
|
+
el.removeAttribute('data-effect');
|
|
23926
|
+
}
|
|
23927
|
+
}, 350);
|
|
23866
23928
|
}
|
|
23867
23929
|
return nextTick();
|
|
23868
23930
|
};
|
|
@@ -23908,12 +23970,19 @@ var VxeDrawerComponent = defineVxeComponent({
|
|
|
23908
23970
|
};
|
|
23909
23971
|
const dragEvent = (evnt) => {
|
|
23910
23972
|
evnt.preventDefault();
|
|
23911
|
-
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);
|
|
23912
23981
|
const marginSize = 0;
|
|
23913
23982
|
const targetElem = evnt.target;
|
|
23914
23983
|
const type = targetElem.getAttribute('type');
|
|
23915
|
-
const minWidth =
|
|
23916
|
-
const minHeight =
|
|
23984
|
+
const minWidth = XEUtils.toNumber(props.minWidth);
|
|
23985
|
+
const minHeight = XEUtils.toNumber(props.minHeight);
|
|
23917
23986
|
const maxWidth = visibleWidth;
|
|
23918
23987
|
const maxHeight = visibleHeight;
|
|
23919
23988
|
const boxElem = getBox();
|
|
@@ -24108,7 +24177,7 @@ var VxeDrawerComponent = defineVxeComponent({
|
|
|
24108
24177
|
return renderEmptyElement($xeDrawer);
|
|
24109
24178
|
};
|
|
24110
24179
|
const renderVN = () => {
|
|
24111
|
-
const { 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;
|
|
24112
24181
|
const { initialized, contentVisible, visible } = reactData;
|
|
24113
24182
|
const asideSlot = slots.aside || propSlots.aside;
|
|
24114
24183
|
const vSize = computeSize.value;
|
|
@@ -24120,9 +24189,11 @@ var VxeDrawerComponent = defineVxeComponent({
|
|
|
24120
24189
|
}, [
|
|
24121
24190
|
h('div', {
|
|
24122
24191
|
ref: refElem,
|
|
24123
|
-
class: ['vxe-drawer--wrapper', `pos--${position}`, className || '', {
|
|
24192
|
+
class: ['vxe-drawer--wrapper', `pos--${position}`, isWithinAppendTo ? 'ctx--within' : 'ctx--free', className || '', {
|
|
24124
24193
|
[`size--${vSize}`]: vSize,
|
|
24125
24194
|
'is--padding': padding,
|
|
24195
|
+
'is--border': border,
|
|
24196
|
+
'is--title-bg': showTitleBackground,
|
|
24126
24197
|
'lock--scroll': lockScroll,
|
|
24127
24198
|
'lock--view': lockView,
|
|
24128
24199
|
'is--resize': resize,
|
|
@@ -24170,8 +24241,17 @@ var VxeDrawerComponent = defineVxeComponent({
|
|
|
24170
24241
|
])
|
|
24171
24242
|
]);
|
|
24172
24243
|
};
|
|
24173
|
-
|
|
24174
|
-
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);
|
|
24175
24255
|
watch(() => props.modelValue, (value) => {
|
|
24176
24256
|
if (value) {
|
|
24177
24257
|
openDrawer();
|
|
@@ -25742,7 +25822,7 @@ function checkRuleStatus(rule, data, val) {
|
|
|
25742
25822
|
}
|
|
25743
25823
|
return true;
|
|
25744
25824
|
}
|
|
25745
|
-
function createReactData$
|
|
25825
|
+
function createReactData$f() {
|
|
25746
25826
|
return {
|
|
25747
25827
|
collapseAll: false,
|
|
25748
25828
|
staticItems: [],
|
|
@@ -25750,7 +25830,7 @@ function createReactData$e() {
|
|
|
25750
25830
|
itemWidth: 0
|
|
25751
25831
|
};
|
|
25752
25832
|
}
|
|
25753
|
-
function createInternalData$
|
|
25833
|
+
function createInternalData$e() {
|
|
25754
25834
|
return {
|
|
25755
25835
|
meTimeout: undefined,
|
|
25756
25836
|
stTimeout: undefined,
|
|
@@ -25859,8 +25939,8 @@ var VxeFormComponent = defineVxeComponent({
|
|
|
25859
25939
|
const $xeGrid = inject('$xeGrid', null);
|
|
25860
25940
|
const xID = XEUtils.uniqueId();
|
|
25861
25941
|
const { computeSize } = useSize(props);
|
|
25862
|
-
const reactData = reactive(createReactData$
|
|
25863
|
-
const internalData = createInternalData$
|
|
25942
|
+
const reactData = reactive(createReactData$f());
|
|
25943
|
+
const internalData = createInternalData$e();
|
|
25864
25944
|
const refElem = ref();
|
|
25865
25945
|
const refTooltip = ref();
|
|
25866
25946
|
let formMethods = {};
|
|
@@ -26569,8 +26649,8 @@ var VxeFormComponent = defineVxeComponent({
|
|
|
26569
26649
|
});
|
|
26570
26650
|
onUnmounted(() => {
|
|
26571
26651
|
globalEvents.off($xeForm, 'resize');
|
|
26572
|
-
XEUtils.assign(reactData, createReactData$
|
|
26573
|
-
XEUtils.assign(internalData, createInternalData$
|
|
26652
|
+
XEUtils.assign(reactData, createReactData$f());
|
|
26653
|
+
XEUtils.assign(internalData, createInternalData$e());
|
|
26574
26654
|
});
|
|
26575
26655
|
reactData.collapseAll = !!props.collapseStatus;
|
|
26576
26656
|
if (props.items) {
|
|
@@ -26697,7 +26777,7 @@ dynamicApp.use(VxeFormItem);
|
|
|
26697
26777
|
VxeUI.component(VxeFormItemComponent);
|
|
26698
26778
|
const FormItem = VxeFormItem;
|
|
26699
26779
|
|
|
26700
|
-
function createReactData$
|
|
26780
|
+
function createReactData$e() {
|
|
26701
26781
|
return {
|
|
26702
26782
|
initialized: false,
|
|
26703
26783
|
selectIcon: '',
|
|
@@ -26711,7 +26791,7 @@ function createReactData$d() {
|
|
|
26711
26791
|
iconList: []
|
|
26712
26792
|
};
|
|
26713
26793
|
}
|
|
26714
|
-
function createInternalData$
|
|
26794
|
+
function createInternalData$d() {
|
|
26715
26795
|
return {
|
|
26716
26796
|
fullList: []
|
|
26717
26797
|
// hpTimeout: undefined
|
|
@@ -26773,8 +26853,8 @@ var VxeIconPickerComponent = defineVxeComponent({
|
|
|
26773
26853
|
const formItemInfo = inject('xeFormItemInfo', null);
|
|
26774
26854
|
const xID = XEUtils.uniqueId();
|
|
26775
26855
|
const { computeSize } = useSize(props);
|
|
26776
|
-
const reactData = reactive(createReactData$
|
|
26777
|
-
const internalData = createInternalData$
|
|
26856
|
+
const reactData = reactive(createReactData$e());
|
|
26857
|
+
const internalData = createInternalData$d();
|
|
26778
26858
|
const refElem = ref();
|
|
26779
26859
|
const refInput = ref();
|
|
26780
26860
|
const refOptionPanel = ref();
|
|
@@ -27374,8 +27454,8 @@ var VxeIconPickerComponent = defineVxeComponent({
|
|
|
27374
27454
|
globalEvents.off($xeIconPicker, 'mousedown');
|
|
27375
27455
|
globalEvents.off($xeIconPicker, 'keydown');
|
|
27376
27456
|
globalEvents.off($xeIconPicker, 'blur');
|
|
27377
|
-
XEUtils.assign(reactData, createReactData$
|
|
27378
|
-
XEUtils.assign(internalData, createInternalData$
|
|
27457
|
+
XEUtils.assign(reactData, createReactData$e());
|
|
27458
|
+
XEUtils.assign(internalData, createInternalData$d());
|
|
27379
27459
|
});
|
|
27380
27460
|
provide('$xeIconPicker', $xeIconPicker);
|
|
27381
27461
|
$xeIconPicker.renderVN = renderVN;
|
|
@@ -28078,13 +28158,13 @@ const openPreviewImage = (options) => {
|
|
|
28078
28158
|
return Promise.resolve();
|
|
28079
28159
|
};
|
|
28080
28160
|
|
|
28081
|
-
function createInternalData$
|
|
28161
|
+
function createInternalData$c() {
|
|
28082
28162
|
return {
|
|
28083
28163
|
// dgTime: 0,
|
|
28084
28164
|
// mdTime: 0
|
|
28085
28165
|
};
|
|
28086
28166
|
}
|
|
28087
|
-
function createReactData$
|
|
28167
|
+
function createReactData$d() {
|
|
28088
28168
|
return {};
|
|
28089
28169
|
}
|
|
28090
28170
|
var VxeImageComponent = defineVxeComponent({
|
|
@@ -28143,8 +28223,8 @@ var VxeImageComponent = defineVxeComponent({
|
|
|
28143
28223
|
const $xeImageGroup = inject('$xeImageGroup', null);
|
|
28144
28224
|
const refElem = ref();
|
|
28145
28225
|
const { computeSize } = useSize(props);
|
|
28146
|
-
const internalData = createInternalData$
|
|
28147
|
-
const reactData = reactive(createReactData$
|
|
28226
|
+
const internalData = createInternalData$c();
|
|
28227
|
+
const reactData = reactive(createReactData$d());
|
|
28148
28228
|
const refMaps = {
|
|
28149
28229
|
refElem
|
|
28150
28230
|
};
|
|
@@ -28330,8 +28410,8 @@ var VxeImageComponent = defineVxeComponent({
|
|
|
28330
28410
|
]);
|
|
28331
28411
|
};
|
|
28332
28412
|
onBeforeUnmount(() => {
|
|
28333
|
-
XEUtils.assign(reactData, createReactData$
|
|
28334
|
-
XEUtils.assign(internalData, createInternalData$
|
|
28413
|
+
XEUtils.assign(reactData, createReactData$d());
|
|
28414
|
+
XEUtils.assign(internalData, createInternalData$c());
|
|
28335
28415
|
});
|
|
28336
28416
|
$xeImage.renderVN = renderVN;
|
|
28337
28417
|
return $xeImage;
|
|
@@ -28604,10 +28684,10 @@ dynamicApp.use(VxeLayoutAside);
|
|
|
28604
28684
|
VxeUI.component(VxeLayoutAsideComponent);
|
|
28605
28685
|
const LayoutAside = VxeLayoutAside;
|
|
28606
28686
|
|
|
28607
|
-
function createInternalData$
|
|
28687
|
+
function createInternalData$b() {
|
|
28608
28688
|
return {};
|
|
28609
28689
|
}
|
|
28610
|
-
function createReactData$
|
|
28690
|
+
function createReactData$c() {
|
|
28611
28691
|
return {};
|
|
28612
28692
|
}
|
|
28613
28693
|
var VxeLayoutBodyComponent = defineVxeComponent({
|
|
@@ -28632,8 +28712,8 @@ var VxeLayoutBodyComponent = defineVxeComponent({
|
|
|
28632
28712
|
const backtopId = `vxe_layout_body_backtop_${xID}`;
|
|
28633
28713
|
const refElem = ref();
|
|
28634
28714
|
const { computeSize } = useSize(props);
|
|
28635
|
-
const internalData = createInternalData$
|
|
28636
|
-
const reactData = reactive(createReactData$
|
|
28715
|
+
const internalData = createInternalData$b();
|
|
28716
|
+
const reactData = reactive(createReactData$c());
|
|
28637
28717
|
const refMaps = {
|
|
28638
28718
|
refElem
|
|
28639
28719
|
};
|
|
@@ -29050,7 +29130,7 @@ const Link = VxeLink;
|
|
|
29050
29130
|
|
|
29051
29131
|
const { errLog: errLog$a } = createComponentLog('menu');
|
|
29052
29132
|
const { menus: menus$1, getConfig: getConfig$1, getIcon: getIcon$1 } = VxeUI;
|
|
29053
|
-
function createInternalData$
|
|
29133
|
+
function createInternalData$a() {
|
|
29054
29134
|
return {
|
|
29055
29135
|
lastActiveTime: 0,
|
|
29056
29136
|
menuInitMaps: {},
|
|
@@ -29059,7 +29139,7 @@ function createInternalData$9() {
|
|
|
29059
29139
|
menuEffectMaps: {}
|
|
29060
29140
|
};
|
|
29061
29141
|
}
|
|
29062
|
-
function createReactData$
|
|
29142
|
+
function createReactData$b() {
|
|
29063
29143
|
return {
|
|
29064
29144
|
initialized: false,
|
|
29065
29145
|
isEnterCollapse: false,
|
|
@@ -29122,8 +29202,8 @@ var VxeMenuComponent = defineVxeComponent({
|
|
|
29122
29202
|
const refElem = ref();
|
|
29123
29203
|
const refCollapseElem = ref();
|
|
29124
29204
|
const { computeSize } = useSize(props);
|
|
29125
|
-
const reactData = reactive(createReactData$
|
|
29126
|
-
const internalData = createInternalData$
|
|
29205
|
+
const reactData = reactive(createReactData$b());
|
|
29206
|
+
const internalData = createInternalData$a();
|
|
29127
29207
|
const refMaps = {
|
|
29128
29208
|
refElem
|
|
29129
29209
|
};
|
|
@@ -29747,8 +29827,8 @@ var VxeMenuComponent = defineVxeComponent({
|
|
|
29747
29827
|
});
|
|
29748
29828
|
onBeforeUnmount(() => {
|
|
29749
29829
|
globalEvents.off($xeMenu, 'resize');
|
|
29750
|
-
XEUtils.assign(reactData, createReactData$
|
|
29751
|
-
XEUtils.assign(internalData, createInternalData$
|
|
29830
|
+
XEUtils.assign(reactData, createReactData$b());
|
|
29831
|
+
XEUtils.assign(internalData, createInternalData$a());
|
|
29752
29832
|
});
|
|
29753
29833
|
reactData.initialized = !!props.collapsed;
|
|
29754
29834
|
reactData.activeName = props.modelValue;
|
|
@@ -29771,8 +29851,30 @@ dynamicApp.use(VxeMenu);
|
|
|
29771
29851
|
VxeUI.component(VxeMenuComponent);
|
|
29772
29852
|
const Menu = VxeMenu;
|
|
29773
29853
|
|
|
29774
|
-
const { warnLog: warnLog$a, errLog: errLog$9 } = createComponentLog('modal');
|
|
29775
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
|
+
}
|
|
29776
29878
|
const msgQueue = [];
|
|
29777
29879
|
const notifyQueue = [];
|
|
29778
29880
|
const lockScrollAttrKey = 'data-vxe-lock-scroll';
|
|
@@ -29850,6 +29952,14 @@ var VxeModalComponent = defineVxeComponent({
|
|
|
29850
29952
|
default: () => getConfig$3().modal.confirmClosable
|
|
29851
29953
|
},
|
|
29852
29954
|
resize: Boolean,
|
|
29955
|
+
border: {
|
|
29956
|
+
type: Boolean,
|
|
29957
|
+
default: () => getConfig$3().modal.border
|
|
29958
|
+
},
|
|
29959
|
+
showTitleBackground: {
|
|
29960
|
+
type: Boolean,
|
|
29961
|
+
default: () => getConfig$3().modal.showTitleBackground
|
|
29962
|
+
},
|
|
29853
29963
|
showHeader: {
|
|
29854
29964
|
type: Boolean,
|
|
29855
29965
|
default: () => getConfig$3().modal.showHeader
|
|
@@ -29979,22 +30089,8 @@ var VxeModalComponent = defineVxeComponent({
|
|
|
29979
30089
|
const $xeTable = inject('$xeTable', null);
|
|
29980
30090
|
const $xeForm = inject('$xeForm', null);
|
|
29981
30091
|
const { computeSize } = useSize(props);
|
|
29982
|
-
const reactData = reactive(
|
|
29983
|
-
|
|
29984
|
-
visible: false,
|
|
29985
|
-
contentVisible: false,
|
|
29986
|
-
modalTop: 0,
|
|
29987
|
-
modalZindex: 0,
|
|
29988
|
-
prevZoomStatus: '',
|
|
29989
|
-
zoomStatus: '',
|
|
29990
|
-
revertLocat: null,
|
|
29991
|
-
prevLocat: null,
|
|
29992
|
-
firstOpen: true,
|
|
29993
|
-
resizeFlag: 1
|
|
29994
|
-
});
|
|
29995
|
-
const internalData = {
|
|
29996
|
-
msgTimeout: undefined
|
|
29997
|
-
};
|
|
30092
|
+
const reactData = reactive(createReactData$a());
|
|
30093
|
+
const internalData = createInternalData$9();
|
|
29998
30094
|
const refElem = ref();
|
|
29999
30095
|
const refModalBox = ref();
|
|
30000
30096
|
const refHeaderElem = ref();
|
|
@@ -30082,13 +30178,12 @@ var VxeModalComponent = defineVxeComponent({
|
|
|
30082
30178
|
const updatePosition = () => {
|
|
30083
30179
|
return nextTick().then(() => {
|
|
30084
30180
|
const { position, isWithinAppendTo } = props;
|
|
30085
|
-
const btnTransfer = computeBtnTransfer.value;
|
|
30086
30181
|
const el = refElem.value;
|
|
30087
30182
|
const boxElem = getBox();
|
|
30088
30183
|
if (!boxElem) {
|
|
30089
30184
|
return;
|
|
30090
30185
|
}
|
|
30091
|
-
const parentWrapperEl = getPopupWrapperElement(isWithinAppendTo
|
|
30186
|
+
const parentWrapperEl = getPopupWrapperElement(isWithinAppendTo ? el : document.body);
|
|
30092
30187
|
if (!parentWrapperEl) {
|
|
30093
30188
|
return;
|
|
30094
30189
|
}
|
|
@@ -30154,6 +30249,10 @@ var VxeModalComponent = defineVxeComponent({
|
|
|
30154
30249
|
if (visible) {
|
|
30155
30250
|
Promise.resolve(beforeHideFn ? beforeHideFn(params) : null).then((rest) => {
|
|
30156
30251
|
if (!XEUtils.isError(rest)) {
|
|
30252
|
+
const el = refElem.value;
|
|
30253
|
+
if (el) {
|
|
30254
|
+
el.setAttribute('data-effect', 'y');
|
|
30255
|
+
}
|
|
30157
30256
|
if (isMsg) {
|
|
30158
30257
|
removeMsgQueue();
|
|
30159
30258
|
}
|
|
@@ -30169,6 +30268,12 @@ var VxeModalComponent = defineVxeComponent({
|
|
|
30169
30268
|
dispatchEvent('hide', params, null);
|
|
30170
30269
|
}, 200);
|
|
30171
30270
|
removeBodyLockScroll();
|
|
30271
|
+
setTimeout(() => {
|
|
30272
|
+
const el = refElem.value;
|
|
30273
|
+
if (el) {
|
|
30274
|
+
el.removeAttribute('data-effect');
|
|
30275
|
+
}
|
|
30276
|
+
}, 350);
|
|
30172
30277
|
}
|
|
30173
30278
|
}).catch(e => e);
|
|
30174
30279
|
}
|
|
@@ -30274,7 +30379,6 @@ var VxeModalComponent = defineVxeComponent({
|
|
|
30274
30379
|
};
|
|
30275
30380
|
const handleMinimize = () => {
|
|
30276
30381
|
const { isWithinAppendTo } = props;
|
|
30277
|
-
const btnTransfer = computeBtnTransfer.value;
|
|
30278
30382
|
const zoomOpts = computeZoomOpts.value;
|
|
30279
30383
|
const { minimizeLayout, minimizeMaxSize, minimizeHorizontalOffset, minimizeVerticalOffset, minimizeOffsetMethod } = zoomOpts;
|
|
30280
30384
|
const isHorizontalLayout = minimizeLayout === 'horizontal';
|
|
@@ -30321,7 +30425,7 @@ var VxeModalComponent = defineVxeComponent({
|
|
|
30321
30425
|
status: false
|
|
30322
30426
|
};
|
|
30323
30427
|
}
|
|
30324
|
-
const parentWrapperEl = getPopupWrapperElement(isWithinAppendTo
|
|
30428
|
+
const parentWrapperEl = getPopupWrapperElement(isWithinAppendTo ? el : document.body);
|
|
30325
30429
|
if (!parentWrapperEl) {
|
|
30326
30430
|
return {
|
|
30327
30431
|
status: false
|
|
@@ -30384,7 +30488,6 @@ var VxeModalComponent = defineVxeComponent({
|
|
|
30384
30488
|
};
|
|
30385
30489
|
const handleMaximize = () => {
|
|
30386
30490
|
const { isWithinAppendTo } = props;
|
|
30387
|
-
const btnTransfer = computeBtnTransfer.value;
|
|
30388
30491
|
const prevZoomStatus = reactData.zoomStatus;
|
|
30389
30492
|
reactData.prevZoomStatus = prevZoomStatus;
|
|
30390
30493
|
reactData.zoomStatus = 'maximize';
|
|
@@ -30394,7 +30497,7 @@ var VxeModalComponent = defineVxeComponent({
|
|
|
30394
30497
|
// 如果当前处于复原状态
|
|
30395
30498
|
if (!prevZoomStatus) {
|
|
30396
30499
|
const el = refElem.value;
|
|
30397
|
-
const parentWrapperEl = getPopupWrapperElement(isWithinAppendTo
|
|
30500
|
+
const parentWrapperEl = getPopupWrapperElement(isWithinAppendTo ? el : document.body);
|
|
30398
30501
|
if (!parentWrapperEl) {
|
|
30399
30502
|
return {
|
|
30400
30503
|
status: false
|
|
@@ -30469,6 +30572,7 @@ var VxeModalComponent = defineVxeComponent({
|
|
|
30469
30572
|
}
|
|
30470
30573
|
if (!visible) {
|
|
30471
30574
|
addBodyLockScroll();
|
|
30575
|
+
internalData.isMoveStatus = false;
|
|
30472
30576
|
reactData.visible = true;
|
|
30473
30577
|
reactData.contentVisible = false;
|
|
30474
30578
|
updateZindex();
|
|
@@ -30500,6 +30604,10 @@ var VxeModalComponent = defineVxeComponent({
|
|
|
30500
30604
|
else {
|
|
30501
30605
|
nextTick(() => {
|
|
30502
30606
|
const { firstOpen } = reactData;
|
|
30607
|
+
const el = refElem.value;
|
|
30608
|
+
if (el) {
|
|
30609
|
+
el.setAttribute('data-effect', 'y');
|
|
30610
|
+
}
|
|
30503
30611
|
if (firstOpen) {
|
|
30504
30612
|
reactData.firstOpen = false;
|
|
30505
30613
|
if (hasPosStorage()) {
|
|
@@ -30526,6 +30634,12 @@ var VxeModalComponent = defineVxeComponent({
|
|
|
30526
30634
|
}
|
|
30527
30635
|
}
|
|
30528
30636
|
});
|
|
30637
|
+
setTimeout(() => {
|
|
30638
|
+
const el = refElem.value;
|
|
30639
|
+
if (el) {
|
|
30640
|
+
el.removeAttribute('data-effect');
|
|
30641
|
+
}
|
|
30642
|
+
}, 350);
|
|
30529
30643
|
}
|
|
30530
30644
|
}
|
|
30531
30645
|
return nextTick();
|
|
@@ -30573,6 +30687,11 @@ var VxeModalComponent = defineVxeComponent({
|
|
|
30573
30687
|
}
|
|
30574
30688
|
}
|
|
30575
30689
|
};
|
|
30690
|
+
const handleGlobalResizeEvent = () => {
|
|
30691
|
+
if (!internalData.isMoveStatus) {
|
|
30692
|
+
updatePosition();
|
|
30693
|
+
}
|
|
30694
|
+
};
|
|
30576
30695
|
const isMinimized = () => {
|
|
30577
30696
|
return reactData.zoomStatus === 'minimize';
|
|
30578
30697
|
};
|
|
@@ -30675,9 +30794,8 @@ var VxeModalComponent = defineVxeComponent({
|
|
|
30675
30794
|
}
|
|
30676
30795
|
};
|
|
30677
30796
|
const mousedownEvent = (evnt) => {
|
|
30678
|
-
const {
|
|
30797
|
+
const { storage, isWithinAppendTo } = props;
|
|
30679
30798
|
const { zoomStatus } = reactData;
|
|
30680
|
-
const btnTransfer = computeBtnTransfer.value;
|
|
30681
30799
|
const marginSize = XEUtils.toNumber(props.marginSize);
|
|
30682
30800
|
const boxElem = getBox();
|
|
30683
30801
|
if (!boxElem) {
|
|
@@ -30686,12 +30804,12 @@ var VxeModalComponent = defineVxeComponent({
|
|
|
30686
30804
|
if (zoomStatus !== 'maximize' && evnt.button === 0 && !getEventTargetNode(evnt, boxElem, 'trigger--btn').flag) {
|
|
30687
30805
|
evnt.preventDefault();
|
|
30688
30806
|
const el = refElem.value;
|
|
30689
|
-
const parentWrapperEl = getPopupWrapperElement(isWithinAppendTo
|
|
30807
|
+
const parentWrapperEl = getPopupWrapperElement(isWithinAppendTo ? el : document.body);
|
|
30690
30808
|
if (!parentWrapperEl) {
|
|
30691
30809
|
return;
|
|
30692
30810
|
}
|
|
30693
|
-
const visibleWidth = parentWrapperEl.clientWidth
|
|
30694
|
-
const visibleHeight = parentWrapperEl.clientHeight
|
|
30811
|
+
const visibleWidth = parentWrapperEl.clientWidth;
|
|
30812
|
+
const visibleHeight = parentWrapperEl.clientHeight;
|
|
30695
30813
|
const disX = evnt.clientX - boxElem.offsetLeft;
|
|
30696
30814
|
const disY = evnt.clientY - boxElem.offsetTop;
|
|
30697
30815
|
document.onmousemove = evnt => {
|
|
@@ -30720,6 +30838,7 @@ var VxeModalComponent = defineVxeComponent({
|
|
|
30720
30838
|
boxElem.style.top = `${top}px`;
|
|
30721
30839
|
boxElem.className = boxElem.className.replace(/\s?is--drag/, '') + ' is--drag';
|
|
30722
30840
|
dispatchEvent('move', { type: 'move' }, evnt);
|
|
30841
|
+
internalData.isMoveStatus = true;
|
|
30723
30842
|
reactData.resizeFlag++;
|
|
30724
30843
|
};
|
|
30725
30844
|
document.onmouseup = () => {
|
|
@@ -30739,15 +30858,14 @@ var VxeModalComponent = defineVxeComponent({
|
|
|
30739
30858
|
};
|
|
30740
30859
|
const dragEvent = (evnt) => {
|
|
30741
30860
|
evnt.preventDefault();
|
|
30742
|
-
const {
|
|
30743
|
-
const btnTransfer = computeBtnTransfer.value;
|
|
30861
|
+
const { storage, isWithinAppendTo } = props;
|
|
30744
30862
|
const el = refElem.value;
|
|
30745
|
-
const parentWrapperEl = getPopupWrapperElement(isWithinAppendTo
|
|
30863
|
+
const parentWrapperEl = getPopupWrapperElement(isWithinAppendTo ? el : document.body);
|
|
30746
30864
|
if (!parentWrapperEl) {
|
|
30747
30865
|
return;
|
|
30748
30866
|
}
|
|
30749
|
-
const visibleWidth = parentWrapperEl.clientWidth
|
|
30750
|
-
const visibleHeight = parentWrapperEl.clientHeight
|
|
30867
|
+
const visibleWidth = parentWrapperEl.clientWidth;
|
|
30868
|
+
const visibleHeight = parentWrapperEl.clientHeight;
|
|
30751
30869
|
const marginSize = XEUtils.toNumber(props.marginSize);
|
|
30752
30870
|
const targetElem = evnt.target;
|
|
30753
30871
|
const type = targetElem.getAttribute('data-type');
|
|
@@ -31112,7 +31230,7 @@ var VxeModalComponent = defineVxeComponent({
|
|
|
31112
31230
|
return renderEmptyElement($xeModal);
|
|
31113
31231
|
};
|
|
31114
31232
|
const renderVN = () => {
|
|
31115
|
-
const { slots: propSlots = {}, className, type, animat, draggable, iconStatus, position, loading, destroyOnClose, status, lockScroll, padding, lockView, mask, resize, appendTo, isWithinAppendTo } = props;
|
|
31233
|
+
const { border, showTitleBackground, slots: propSlots = {}, className, type, animat, draggable, iconStatus, position, loading, destroyOnClose, status, lockScroll, padding, lockView, mask, resize, appendTo, isWithinAppendTo } = props;
|
|
31116
31234
|
const { initialized, modalTop, contentVisible, visible, zoomStatus } = reactData;
|
|
31117
31235
|
const asideSlot = slots.aside || propSlots.aside;
|
|
31118
31236
|
const vSize = computeSize.value;
|
|
@@ -31128,10 +31246,12 @@ var VxeModalComponent = defineVxeComponent({
|
|
|
31128
31246
|
to: getPopupContainer(appendTo),
|
|
31129
31247
|
disabled: btnTransfer ? !initialized : true
|
|
31130
31248
|
}, [
|
|
31131
|
-
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 || '', {
|
|
31132
31250
|
[`size--${vSize}`]: vSize,
|
|
31133
31251
|
[`status--${status}`]: status,
|
|
31134
31252
|
'is--padding': padding,
|
|
31253
|
+
'is--border': border,
|
|
31254
|
+
'is--title-bg': showTitleBackground,
|
|
31135
31255
|
'is--animat': animat,
|
|
31136
31256
|
'lock--scroll': lockScroll,
|
|
31137
31257
|
'lock--view': lockView,
|
|
@@ -31219,12 +31339,16 @@ var VxeModalComponent = defineVxeComponent({
|
|
|
31219
31339
|
if (props.escClosable) {
|
|
31220
31340
|
globalEvents.on($xeModal, 'keydown', handleGlobalKeydownEvent);
|
|
31221
31341
|
}
|
|
31342
|
+
globalEvents.on($xeModal, 'resize', handleGlobalResizeEvent);
|
|
31222
31343
|
});
|
|
31223
31344
|
onUnmounted(() => {
|
|
31224
31345
|
globalEvents.off($xeModal, 'keydown');
|
|
31346
|
+
globalEvents.off($xeModal, 'resize');
|
|
31225
31347
|
removeMsgQueue();
|
|
31226
31348
|
removeActiveQueue();
|
|
31227
31349
|
removeBodyLockScroll();
|
|
31350
|
+
XEUtils.assign(reactData, createReactData$a());
|
|
31351
|
+
XEUtils.assign(internalData, createInternalData$9());
|
|
31228
31352
|
});
|
|
31229
31353
|
provide('$xeModal', $xeModal);
|
|
31230
31354
|
return $xeModal;
|