vxe-pc-ui 4.5.10 → 4.5.12
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 +14 -12
- 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/vxe-split/style.css +14 -12
- 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 +46 -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 +14 -12
- 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/vxe-split/style/style.css +14 -12
- package/lib/vxe-split/style/style.min.css +1 -1
- package/package.json +2 -2
- 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/styles/components/split.scss +32 -26
- 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-plugins/extend-cell-area.d.ts +1 -1
- package/types/components/table.d.ts +52 -7
- /package/es/icon/{iconfont.1743479114824.ttf → iconfont.1743671976691.ttf} +0 -0
- /package/es/icon/{iconfont.1743479114824.woff → iconfont.1743671976691.woff} +0 -0
- /package/es/icon/{iconfont.1743479114824.woff2 → iconfont.1743671976691.woff2} +0 -0
- /package/es/{iconfont.1743479114824.ttf → iconfont.1743671976691.ttf} +0 -0
- /package/es/{iconfont.1743479114824.woff → iconfont.1743671976691.woff} +0 -0
- /package/es/{iconfont.1743479114824.woff2 → iconfont.1743671976691.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1743479114824.ttf → iconfont.1743671976691.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1743479114824.woff → iconfont.1743671976691.woff} +0 -0
- /package/lib/icon/style/{iconfont.1743479114824.woff2 → iconfont.1743671976691.woff2} +0 -0
- /package/lib/{iconfont.1743479114824.ttf → iconfont.1743671976691.ttf} +0 -0
- /package/lib/{iconfont.1743479114824.woff → iconfont.1743671976691.woff} +0 -0
- /package/lib/{iconfont.1743479114824.woff2 → iconfont.1743671976691.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -2346,7 +2346,7 @@ if (typeof window !== 'undefined') {
|
|
|
2346
2346
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
2347
2347
|
var es_array_push = __webpack_require__(4114);
|
|
2348
2348
|
;// CONCATENATED MODULE: ./node_modules/@vxe-ui/core/es/src/core.js
|
|
2349
|
-
const coreVersion = "4.0.
|
|
2349
|
+
const coreVersion = "4.0.39";
|
|
2350
2350
|
const VxeCore = {
|
|
2351
2351
|
coreVersion,
|
|
2352
2352
|
uiVersion: '',
|
|
@@ -2902,7 +2902,7 @@ function createLog(type, name) {
|
|
|
2902
2902
|
return msg;
|
|
2903
2903
|
};
|
|
2904
2904
|
}
|
|
2905
|
-
const version = "4.0.
|
|
2905
|
+
const version = "4.0.39";
|
|
2906
2906
|
const log = {
|
|
2907
2907
|
create: createLog,
|
|
2908
2908
|
warn: createLog('warn', `v${version}`),
|
|
@@ -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.12"}`;
|
|
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.12";
|
|
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);
|
|
@@ -45135,6 +45138,10 @@ const Select = VxeSelect;
|
|
|
45135
45138
|
type: Boolean,
|
|
45136
45139
|
default: () => getConfig().split.padding
|
|
45137
45140
|
},
|
|
45141
|
+
resize: {
|
|
45142
|
+
type: Boolean,
|
|
45143
|
+
default: () => getConfig().split.resize
|
|
45144
|
+
},
|
|
45138
45145
|
items: Array,
|
|
45139
45146
|
itemConfig: Object,
|
|
45140
45147
|
barConfig: Object,
|
|
@@ -45166,6 +45173,9 @@ const Select = VxeSelect;
|
|
|
45166
45173
|
const actionOpts = computeActionOpts.value;
|
|
45167
45174
|
return actionOpts.direction === 'next';
|
|
45168
45175
|
});
|
|
45176
|
+
const computeVisibleItems = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
45177
|
+
return reactData.itemList.filter(item => item.isVisible);
|
|
45178
|
+
});
|
|
45169
45179
|
const computeBarStyle = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
45170
45180
|
const barOpts = computeBarOpts.value;
|
|
45171
45181
|
const {
|
|
@@ -45377,13 +45387,17 @@ const Select = VxeSelect;
|
|
|
45377
45387
|
});
|
|
45378
45388
|
};
|
|
45379
45389
|
const dragEvent = evnt => {
|
|
45380
|
-
evnt.preventDefault();
|
|
45381
45390
|
const {
|
|
45391
|
+
resize,
|
|
45382
45392
|
vertical
|
|
45383
45393
|
} = props;
|
|
45384
45394
|
const {
|
|
45385
45395
|
itemList
|
|
45386
45396
|
} = reactData;
|
|
45397
|
+
if (!resize) {
|
|
45398
|
+
return;
|
|
45399
|
+
}
|
|
45400
|
+
evnt.preventDefault();
|
|
45387
45401
|
const barEl = evnt.currentTarget;
|
|
45388
45402
|
const handleEl = barEl.parentElement;
|
|
45389
45403
|
const el = refElem.value;
|
|
@@ -45636,11 +45650,13 @@ const Select = VxeSelect;
|
|
|
45636
45650
|
const {
|
|
45637
45651
|
border,
|
|
45638
45652
|
padding,
|
|
45653
|
+
resize,
|
|
45639
45654
|
vertical
|
|
45640
45655
|
} = props;
|
|
45641
45656
|
const {
|
|
45642
45657
|
itemList
|
|
45643
45658
|
} = reactData;
|
|
45659
|
+
const visibleItems = computeVisibleItems.value;
|
|
45644
45660
|
const isFoldNext = computeIsFoldNext.value;
|
|
45645
45661
|
const itemVNs = [];
|
|
45646
45662
|
itemList.forEach((item, index) => {
|
|
@@ -45661,18 +45677,20 @@ const Select = VxeSelect;
|
|
|
45661
45677
|
const stys = {};
|
|
45662
45678
|
const itemWidth = isVisible ? foldWidth || resizeWidth || renderWidth : 0;
|
|
45663
45679
|
const itemHeight = isVisible ? foldHeight || resizeHeight || renderHeight : 0;
|
|
45680
|
+
// 当只剩下一个可视区自动占用 100%
|
|
45664
45681
|
if (vertical) {
|
|
45665
45682
|
if (itemHeight) {
|
|
45666
|
-
stys.height = toCssUnit(itemHeight);
|
|
45683
|
+
stys.height = visibleItems.length === 1 ? '100%' : toCssUnit(itemHeight);
|
|
45667
45684
|
}
|
|
45668
45685
|
} else {
|
|
45669
45686
|
if (itemWidth) {
|
|
45670
|
-
stys.width = toCssUnit(itemWidth);
|
|
45687
|
+
stys.width = visibleItems.length === 1 ? '100%' : toCssUnit(itemWidth);
|
|
45671
45688
|
}
|
|
45672
45689
|
}
|
|
45673
45690
|
itemVNs.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
45674
45691
|
itemid: id,
|
|
45675
45692
|
class: ['vxe-split-pane', vertical ? 'is--vertical' : 'is--horizontal', {
|
|
45693
|
+
'is--resize': resize,
|
|
45676
45694
|
'is--padding': padding,
|
|
45677
45695
|
'is--border': border,
|
|
45678
45696
|
'is--height': itemHeight,
|
|
@@ -45737,13 +45755,24 @@ const Select = VxeSelect;
|
|
|
45737
45755
|
reactData.itemList = val;
|
|
45738
45756
|
recalculate();
|
|
45739
45757
|
});
|
|
45758
|
+
let resizeObserver;
|
|
45740
45759
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
|
|
45741
45760
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
45742
45761
|
recalculate();
|
|
45743
45762
|
});
|
|
45763
|
+
const el = refElem.value;
|
|
45764
|
+
if (el) {
|
|
45765
|
+
resizeObserver = globalResize.create(() => {
|
|
45766
|
+
recalculate();
|
|
45767
|
+
});
|
|
45768
|
+
resizeObserver.observe(el);
|
|
45769
|
+
}
|
|
45744
45770
|
globalEvents.on($xeSplit, 'resize', handleGlobalResizeEvent);
|
|
45745
45771
|
});
|
|
45746
45772
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onUnmounted)(() => {
|
|
45773
|
+
if (resizeObserver) {
|
|
45774
|
+
resizeObserver.disconnect();
|
|
45775
|
+
}
|
|
45747
45776
|
globalEvents.off($xeSplit, 'resize');
|
|
45748
45777
|
});
|
|
45749
45778
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onActivated)(() => {
|