vxe-pc-ui 4.5.11 → 4.5.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/drawer/src/drawer.js +6 -5
- package/es/icon/style.css +1 -1
- package/es/modal/src/modal.js +6 -5
- package/es/split/src/split.js +30 -6
- package/es/split/style.css +10 -6
- package/es/split/style.min.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/ui/index.js +2 -1
- package/es/ui/src/log.js +1 -1
- package/es/upload/src/upload.js +22 -2
- package/es/vxe-split/style.css +10 -6
- package/es/vxe-split/style.min.css +1 -1
- package/lib/drawer/src/drawer.js +6 -5
- package/lib/drawer/src/drawer.min.js +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +69 -17
- package/lib/index.umd.min.js +1 -1
- package/lib/modal/src/modal.js +6 -5
- package/lib/modal/src/modal.min.js +1 -1
- package/lib/split/src/split.js +29 -3
- package/lib/split/src/split.min.js +1 -1
- package/lib/split/style/style.css +10 -6
- package/lib/split/style/style.min.css +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/ui/index.js +2 -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/upload/src/upload.js +25 -2
- package/lib/upload/src/upload.min.js +1 -1
- package/lib/vxe-split/style/style.css +10 -6
- package/lib/vxe-split/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/drawer/src/drawer.ts +6 -5
- package/packages/modal/src/modal.ts +6 -5
- package/packages/split/src/split.ts +33 -6
- package/packages/ui/index.ts +1 -0
- package/packages/upload/src/upload.ts +23 -2
- package/styles/components/split.scss +28 -20
- package/types/components/drawer.d.ts +1 -0
- package/types/components/modal.d.ts +1 -0
- package/types/components/split.d.ts +5 -0
- package/types/components/table.d.ts +26 -2
- package/types/components/upload.d.ts +2 -0
- /package/es/icon/{iconfont.1743578648080.ttf → iconfont.1744078845757.ttf} +0 -0
- /package/es/icon/{iconfont.1743578648080.woff → iconfont.1744078845757.woff} +0 -0
- /package/es/icon/{iconfont.1743578648080.woff2 → iconfont.1744078845757.woff2} +0 -0
- /package/es/{iconfont.1743578648080.ttf → iconfont.1744078845757.ttf} +0 -0
- /package/es/{iconfont.1743578648080.woff → iconfont.1744078845757.woff} +0 -0
- /package/es/{iconfont.1743578648080.woff2 → iconfont.1744078845757.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1743578648080.ttf → iconfont.1744078845757.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1743578648080.woff → iconfont.1744078845757.woff} +0 -0
- /package/lib/icon/style/{iconfont.1743578648080.woff2 → iconfont.1744078845757.woff2} +0 -0
- /package/lib/{iconfont.1743578648080.ttf → iconfont.1744078845757.ttf} +0 -0
- /package/lib/{iconfont.1743578648080.woff → iconfont.1744078845757.woff} +0 -0
- /package/lib/{iconfont.1743578648080.woff2 → iconfont.1744078845757.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -4186,14 +4186,14 @@ function checkDynamic() {
|
|
|
4186
4186
|
}
|
|
4187
4187
|
;// CONCATENATED MODULE: ./packages/ui/src/log.ts
|
|
4188
4188
|
|
|
4189
|
-
const log_version = `ui v${"4.5.
|
|
4189
|
+
const log_version = `ui v${"4.5.14"}`;
|
|
4190
4190
|
const warnLog = log.create('warn', log_version);
|
|
4191
4191
|
const errLog = log.create('error', log_version);
|
|
4192
4192
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
4193
4193
|
|
|
4194
4194
|
|
|
4195
4195
|
|
|
4196
|
-
const ui_version = "4.5.
|
|
4196
|
+
const ui_version = "4.5.14";
|
|
4197
4197
|
index_esm_VxeUI.uiVersion = ui_version;
|
|
4198
4198
|
index_esm_VxeUI.dynamicApp = dynamicApp;
|
|
4199
4199
|
function config(options) {
|
|
@@ -4461,6 +4461,7 @@ setConfig({
|
|
|
4461
4461
|
}
|
|
4462
4462
|
},
|
|
4463
4463
|
split: {
|
|
4464
|
+
resize: true,
|
|
4464
4465
|
itemConfig: {
|
|
4465
4466
|
minWidth: 40,
|
|
4466
4467
|
minHeight: 40
|
|
@@ -16959,7 +16960,8 @@ const allActiveDrawers = [];
|
|
|
16959
16960
|
initialized: false,
|
|
16960
16961
|
visible: false,
|
|
16961
16962
|
contentVisible: false,
|
|
16962
|
-
drawerZIndex: 0
|
|
16963
|
+
drawerZIndex: 0,
|
|
16964
|
+
resizeFlag: 1
|
|
16963
16965
|
});
|
|
16964
16966
|
const refMaps = {
|
|
16965
16967
|
refElem
|
|
@@ -17184,8 +17186,6 @@ const allActiveDrawers = [];
|
|
|
17184
17186
|
const maxWidth = visibleWidth;
|
|
17185
17187
|
const maxHeight = visibleHeight;
|
|
17186
17188
|
const boxElem = getBox();
|
|
17187
|
-
const domMousemove = document.onmousemove;
|
|
17188
|
-
const domMouseup = document.onmouseup;
|
|
17189
17189
|
const clientWidth = boxElem.clientWidth;
|
|
17190
17190
|
const clientHeight = boxElem.clientHeight;
|
|
17191
17191
|
const disX = evnt.clientX;
|
|
@@ -17241,10 +17241,12 @@ const allActiveDrawers = [];
|
|
|
17241
17241
|
}
|
|
17242
17242
|
boxElem.className = boxElem.className.replace(/\s?is--drag/, '') + ' is--drag';
|
|
17243
17243
|
dispatchEvent('resize', params, evnt);
|
|
17244
|
+
reactData.resizeFlag++;
|
|
17244
17245
|
};
|
|
17245
17246
|
document.onmouseup = () => {
|
|
17246
|
-
document.onmousemove =
|
|
17247
|
-
document.onmouseup =
|
|
17247
|
+
document.onmousemove = null;
|
|
17248
|
+
document.onmouseup = null;
|
|
17249
|
+
reactData.resizeFlag++;
|
|
17248
17250
|
setTimeout(() => {
|
|
17249
17251
|
boxElem.className = boxElem.className.replace(/\s?is--drag/, '');
|
|
17250
17252
|
}, 50);
|
|
@@ -21967,7 +21969,8 @@ const lockScrollCssWidthKey = '--vxe-ui-modal-lock-scroll-view-width';
|
|
|
21967
21969
|
zoomStatus: '',
|
|
21968
21970
|
revertLocat: null,
|
|
21969
21971
|
prevLocat: null,
|
|
21970
|
-
firstOpen: true
|
|
21972
|
+
firstOpen: true,
|
|
21973
|
+
resizeFlag: 1
|
|
21971
21974
|
});
|
|
21972
21975
|
const internalData = {
|
|
21973
21976
|
msgTimeout: undefined
|
|
@@ -22693,8 +22696,6 @@ const lockScrollCssWidthKey = '--vxe-ui-modal-lock-scroll-view-width';
|
|
|
22693
22696
|
}
|
|
22694
22697
|
if (zoomStatus !== 'maximize' && evnt.button === 0 && !getEventTargetNode(evnt, boxElem, 'trigger--btn').flag) {
|
|
22695
22698
|
evnt.preventDefault();
|
|
22696
|
-
const domMousemove = document.onmousemove;
|
|
22697
|
-
const domMouseup = document.onmouseup;
|
|
22698
22699
|
const disX = evnt.clientX - boxElem.offsetLeft;
|
|
22699
22700
|
const disY = evnt.clientY - boxElem.offsetTop;
|
|
22700
22701
|
const {
|
|
@@ -22729,15 +22730,17 @@ const lockScrollCssWidthKey = '--vxe-ui-modal-lock-scroll-view-width';
|
|
|
22729
22730
|
dispatchEvent('move', {
|
|
22730
22731
|
type: 'move'
|
|
22731
22732
|
}, evnt);
|
|
22733
|
+
reactData.resizeFlag++;
|
|
22732
22734
|
};
|
|
22733
22735
|
document.onmouseup = () => {
|
|
22734
|
-
document.onmousemove =
|
|
22735
|
-
document.onmouseup =
|
|
22736
|
+
document.onmousemove = null;
|
|
22737
|
+
document.onmouseup = null;
|
|
22736
22738
|
if (storage) {
|
|
22737
22739
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
22738
22740
|
savePosStorage();
|
|
22739
22741
|
});
|
|
22740
22742
|
}
|
|
22743
|
+
reactData.resizeFlag++;
|
|
22741
22744
|
setTimeout(() => {
|
|
22742
22745
|
boxElem.className = boxElem.className.replace(/\s?is--drag/, '');
|
|
22743
22746
|
}, 50);
|
|
@@ -34480,6 +34483,10 @@ const saveLocalFile = options => {
|
|
|
34480
34483
|
type: Boolean,
|
|
34481
34484
|
default: () => getConfig().upload.showPreview
|
|
34482
34485
|
},
|
|
34486
|
+
showTip: {
|
|
34487
|
+
type: Boolean,
|
|
34488
|
+
default: () => null
|
|
34489
|
+
},
|
|
34483
34490
|
tipText: String,
|
|
34484
34491
|
hintText: String,
|
|
34485
34492
|
previewMethod: Function,
|
|
@@ -34607,6 +34614,23 @@ const saveLocalFile = options => {
|
|
|
34607
34614
|
}
|
|
34608
34615
|
return '';
|
|
34609
34616
|
});
|
|
34617
|
+
const computedShowTipText = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
34618
|
+
const {
|
|
34619
|
+
showTip,
|
|
34620
|
+
tipText
|
|
34621
|
+
} = props;
|
|
34622
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(showTip)) {
|
|
34623
|
+
return showTip;
|
|
34624
|
+
}
|
|
34625
|
+
const defShowTip = getConfig().upload.showTip;
|
|
34626
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(defShowTip)) {
|
|
34627
|
+
return defShowTip;
|
|
34628
|
+
}
|
|
34629
|
+
if (tipText) {
|
|
34630
|
+
return true;
|
|
34631
|
+
}
|
|
34632
|
+
return false;
|
|
34633
|
+
});
|
|
34610
34634
|
const computedDefTipText = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
34611
34635
|
const {
|
|
34612
34636
|
limitSize,
|
|
@@ -35577,6 +35601,7 @@ const saveLocalFile = options => {
|
|
|
35577
35601
|
} = props;
|
|
35578
35602
|
const isDisabled = computeIsDisabled.value;
|
|
35579
35603
|
const formReadonly = computeFormReadonly.value;
|
|
35604
|
+
const showTipText = computedShowTipText.value;
|
|
35580
35605
|
const defTipText = computedDefTipText.value;
|
|
35581
35606
|
const overCount = computeOverCount.value;
|
|
35582
35607
|
const defaultSlot = slots.default;
|
|
@@ -35596,7 +35621,7 @@ const saveLocalFile = options => {
|
|
|
35596
35621
|
content: isMoreView || showButtonText ? buttonText ? `${buttonText}` : i18n_getI18n('vxe.upload.fileBtnText') : '',
|
|
35597
35622
|
icon: showButtonIcon ? buttonIcon || getIcon().UPLOAD_FILE_ADD : '',
|
|
35598
35623
|
disabled: isDisabled
|
|
35599
|
-
})]), defTipText || tipSlot ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
35624
|
+
})]), showTipText && (defTipText || tipSlot) ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
35600
35625
|
class: 'vxe-upload--file-action-tip'
|
|
35601
35626
|
}, tipSlot ? getSlotVNs(tipSlot({
|
|
35602
35627
|
$upload: $xeUpload
|
|
@@ -35756,6 +35781,7 @@ const saveLocalFile = options => {
|
|
|
35756
35781
|
autoHiddenButton
|
|
35757
35782
|
} = props;
|
|
35758
35783
|
const formReadonly = computeFormReadonly.value;
|
|
35784
|
+
const showTipText = computedShowTipText.value;
|
|
35759
35785
|
const defTipText = computedDefTipText.value;
|
|
35760
35786
|
const overCount = computeOverCount.value;
|
|
35761
35787
|
const imgStyle = computeImgStyle.value;
|
|
@@ -35781,7 +35807,7 @@ const saveLocalFile = options => {
|
|
|
35781
35807
|
class: buttonIcon || getIcon().UPLOAD_IMAGE_ADD
|
|
35782
35808
|
})]) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)(), isMoreView || showButtonText ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
35783
35809
|
class: 'vxe-upload--image-action-content'
|
|
35784
|
-
}, buttonText ? `${buttonText}` : i18n_getI18n('vxe.upload.imgBtnText')) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)(), defTipText || tipSlot ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
35810
|
+
}, buttonText ? `${buttonText}` : i18n_getI18n('vxe.upload.imgBtnText')) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)(), showTipText && (defTipText || tipSlot) ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
35785
35811
|
class: 'vxe-upload--image-action-hint'
|
|
35786
35812
|
}, tipSlot ? getSlotVNs(tipSlot({
|
|
35787
35813
|
$upload: $xeUpload
|
|
@@ -45135,6 +45161,10 @@ const Select = VxeSelect;
|
|
|
45135
45161
|
type: Boolean,
|
|
45136
45162
|
default: () => getConfig().split.padding
|
|
45137
45163
|
},
|
|
45164
|
+
resize: {
|
|
45165
|
+
type: Boolean,
|
|
45166
|
+
default: () => getConfig().split.resize
|
|
45167
|
+
},
|
|
45138
45168
|
items: Array,
|
|
45139
45169
|
itemConfig: Object,
|
|
45140
45170
|
barConfig: Object,
|
|
@@ -45166,6 +45196,9 @@ const Select = VxeSelect;
|
|
|
45166
45196
|
const actionOpts = computeActionOpts.value;
|
|
45167
45197
|
return actionOpts.direction === 'next';
|
|
45168
45198
|
});
|
|
45199
|
+
const computeVisibleItems = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
45200
|
+
return reactData.itemList.filter(item => item.isVisible);
|
|
45201
|
+
});
|
|
45169
45202
|
const computeBarStyle = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
45170
45203
|
const barOpts = computeBarOpts.value;
|
|
45171
45204
|
const {
|
|
@@ -45377,13 +45410,17 @@ const Select = VxeSelect;
|
|
|
45377
45410
|
});
|
|
45378
45411
|
};
|
|
45379
45412
|
const dragEvent = evnt => {
|
|
45380
|
-
evnt.preventDefault();
|
|
45381
45413
|
const {
|
|
45414
|
+
resize,
|
|
45382
45415
|
vertical
|
|
45383
45416
|
} = props;
|
|
45384
45417
|
const {
|
|
45385
45418
|
itemList
|
|
45386
45419
|
} = reactData;
|
|
45420
|
+
if (!resize) {
|
|
45421
|
+
return;
|
|
45422
|
+
}
|
|
45423
|
+
evnt.preventDefault();
|
|
45387
45424
|
const barEl = evnt.currentTarget;
|
|
45388
45425
|
const handleEl = barEl.parentElement;
|
|
45389
45426
|
const el = refElem.value;
|
|
@@ -45636,11 +45673,13 @@ const Select = VxeSelect;
|
|
|
45636
45673
|
const {
|
|
45637
45674
|
border,
|
|
45638
45675
|
padding,
|
|
45676
|
+
resize,
|
|
45639
45677
|
vertical
|
|
45640
45678
|
} = props;
|
|
45641
45679
|
const {
|
|
45642
45680
|
itemList
|
|
45643
45681
|
} = reactData;
|
|
45682
|
+
const visibleItems = computeVisibleItems.value;
|
|
45644
45683
|
const isFoldNext = computeIsFoldNext.value;
|
|
45645
45684
|
const itemVNs = [];
|
|
45646
45685
|
itemList.forEach((item, index) => {
|
|
@@ -45661,18 +45700,20 @@ const Select = VxeSelect;
|
|
|
45661
45700
|
const stys = {};
|
|
45662
45701
|
const itemWidth = isVisible ? foldWidth || resizeWidth || renderWidth : 0;
|
|
45663
45702
|
const itemHeight = isVisible ? foldHeight || resizeHeight || renderHeight : 0;
|
|
45703
|
+
// 当只剩下一个可视区自动占用 100%
|
|
45664
45704
|
if (vertical) {
|
|
45665
45705
|
if (itemHeight) {
|
|
45666
|
-
stys.height = toCssUnit(itemHeight);
|
|
45706
|
+
stys.height = visibleItems.length === 1 ? '100%' : toCssUnit(itemHeight);
|
|
45667
45707
|
}
|
|
45668
45708
|
} else {
|
|
45669
45709
|
if (itemWidth) {
|
|
45670
|
-
stys.width = toCssUnit(itemWidth);
|
|
45710
|
+
stys.width = visibleItems.length === 1 ? '100%' : toCssUnit(itemWidth);
|
|
45671
45711
|
}
|
|
45672
45712
|
}
|
|
45673
45713
|
itemVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
45674
45714
|
itemid: id,
|
|
45675
45715
|
class: ['vxe-split-pane', vertical ? 'is--vertical' : 'is--horizontal', {
|
|
45716
|
+
'is--resize': resize,
|
|
45676
45717
|
'is--padding': padding,
|
|
45677
45718
|
'is--border': border,
|
|
45678
45719
|
'is--height': itemHeight,
|
|
@@ -45737,13 +45778,24 @@ const Select = VxeSelect;
|
|
|
45737
45778
|
reactData.itemList = val;
|
|
45738
45779
|
recalculate();
|
|
45739
45780
|
});
|
|
45781
|
+
let resizeObserver;
|
|
45740
45782
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
|
|
45741
45783
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
45742
45784
|
recalculate();
|
|
45743
45785
|
});
|
|
45786
|
+
const el = refElem.value;
|
|
45787
|
+
if (el) {
|
|
45788
|
+
resizeObserver = globalResize.create(() => {
|
|
45789
|
+
recalculate();
|
|
45790
|
+
});
|
|
45791
|
+
resizeObserver.observe(el);
|
|
45792
|
+
}
|
|
45744
45793
|
globalEvents.on($xeSplit, 'resize', handleGlobalResizeEvent);
|
|
45745
45794
|
});
|
|
45746
45795
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onUnmounted)(() => {
|
|
45796
|
+
if (resizeObserver) {
|
|
45797
|
+
resizeObserver.disconnect();
|
|
45798
|
+
}
|
|
45747
45799
|
globalEvents.off($xeSplit, 'resize');
|
|
45748
45800
|
});
|
|
45749
45801
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onActivated)(() => {
|