vxe-pc-ui 4.19.3 → 4.19.5
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 +39 -22
- package/dist/style.css +1 -1
- package/dist/style.min.css +1 -1
- package/es/form/src/form.js +2 -2
- package/es/icon/style.css +1 -1
- package/es/modal/src/modal.js +18 -18
- package/es/scrollbar/src/scrollbar.js +18 -1
- package/es/scrollbar/style.css +42 -3
- package/es/scrollbar/style.min.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-scrollbar/style.css +42 -3
- package/es/vxe-scrollbar/style.min.css +1 -1
- package/lib/form/src/form.js +2 -2
- package/lib/form/src/form.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 +40 -22
- package/lib/index.umd.min.js +1 -1
- package/lib/modal/src/modal.js +18 -16
- package/lib/modal/src/modal.min.js +1 -1
- package/lib/scrollbar/src/scrollbar.js +18 -2
- package/lib/scrollbar/src/scrollbar.min.js +1 -1
- package/lib/scrollbar/style/style.css +42 -3
- package/lib/scrollbar/style/style.min.css +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/ui/index.js +1 -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-scrollbar/style/style.css +42 -3
- package/lib/vxe-scrollbar/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/form/src/form.ts +2 -2
- package/packages/modal/src/modal.ts +18 -18
- package/packages/scrollbar/src/scrollbar.ts +20 -1
- package/styles/components/scrollbar.scss +70 -4
- package/styles/theme/dark.scss +3 -3
- package/styles/variable.scss +3 -3
- package/types/components/scrollbar.d.ts +13 -0
- /package/es/icon/{iconfont.1791602925489.ttf → iconfont.1791695434923.ttf} +0 -0
- /package/es/icon/{iconfont.1791602925489.woff → iconfont.1791695434923.woff} +0 -0
- /package/es/icon/{iconfont.1791602925489.woff2 → iconfont.1791695434923.woff2} +0 -0
- /package/es/{iconfont.1791602925489.ttf → iconfont.1791695434923.ttf} +0 -0
- /package/es/{iconfont.1791602925489.woff → iconfont.1791695434923.woff} +0 -0
- /package/es/{iconfont.1791602925489.woff2 → iconfont.1791695434923.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1791602925489.ttf → iconfont.1791695434923.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1791602925489.woff → iconfont.1791695434923.woff} +0 -0
- /package/lib/icon/style/{iconfont.1791602925489.woff2 → iconfont.1791695434923.woff2} +0 -0
- /package/lib/{iconfont.1791602925489.ttf → iconfont.1791695434923.ttf} +0 -0
- /package/lib/{iconfont.1791602925489.woff → iconfont.1791695434923.woff} +0 -0
- /package/lib/{iconfont.1791602925489.woff2 → iconfont.1791695434923.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -4745,7 +4745,7 @@ function checkDynamic() {
|
|
|
4745
4745
|
const {
|
|
4746
4746
|
log: log_log
|
|
4747
4747
|
} = VxeUI;
|
|
4748
|
-
const uiVersion = `ui v${"4.19.
|
|
4748
|
+
const uiVersion = `ui v${"4.19.5"}`;
|
|
4749
4749
|
function createComponentLog(name) {
|
|
4750
4750
|
const tableVersion = VxeUI.tableVersion ? `table v${VxeUI.tableVersion}` : '';
|
|
4751
4751
|
const ganttVersion = VxeUI.ganttVersion ? `gantt v${VxeUI.ganttVersion}` : '';
|
|
@@ -4763,7 +4763,7 @@ const errLog = log_log.create('error', uiVersion);
|
|
|
4763
4763
|
|
|
4764
4764
|
|
|
4765
4765
|
|
|
4766
|
-
const ui_version = "4.19.
|
|
4766
|
+
const ui_version = "4.19.5";
|
|
4767
4767
|
VxeUI.uiVersion = ui_version;
|
|
4768
4768
|
VxeUI.dynamicApp = dynamicApp;
|
|
4769
4769
|
function config(options) {
|
|
@@ -34116,7 +34116,7 @@ function form_createInternalData() {
|
|
|
34116
34116
|
} = internalData;
|
|
34117
34117
|
clearValidate();
|
|
34118
34118
|
if (readonly) {
|
|
34119
|
-
return
|
|
34119
|
+
return Promise.resolve();
|
|
34120
34120
|
}
|
|
34121
34121
|
return beginValidate(fullItemList, '', callback).then(params => {
|
|
34122
34122
|
recalculate();
|
|
@@ -34128,7 +34128,7 @@ function form_createInternalData() {
|
|
|
34128
34128
|
readonly
|
|
34129
34129
|
} = props;
|
|
34130
34130
|
if (readonly) {
|
|
34131
|
-
return
|
|
34131
|
+
return Promise.resolve();
|
|
34132
34132
|
}
|
|
34133
34133
|
let fields = [];
|
|
34134
34134
|
if (fieldOrItem) {
|
|
@@ -36648,6 +36648,10 @@ function scrollbar_createInternalData() {
|
|
|
36648
36648
|
type: Boolean,
|
|
36649
36649
|
default: () => scrollbar_getConfig().scrollbar.native
|
|
36650
36650
|
},
|
|
36651
|
+
padding: {
|
|
36652
|
+
type: Boolean,
|
|
36653
|
+
default: () => scrollbar_getConfig().scrollbar.padding
|
|
36654
|
+
},
|
|
36651
36655
|
xConfig: Object,
|
|
36652
36656
|
yConfig: Object,
|
|
36653
36657
|
className: {
|
|
@@ -36729,7 +36733,8 @@ function scrollbar_createInternalData() {
|
|
|
36729
36733
|
const computeWrapperClss = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
36730
36734
|
const {
|
|
36731
36735
|
native,
|
|
36732
|
-
className
|
|
36736
|
+
className,
|
|
36737
|
+
padding
|
|
36733
36738
|
} = props;
|
|
36734
36739
|
const {
|
|
36735
36740
|
yThumbHeight,
|
|
@@ -36737,7 +36742,10 @@ function scrollbar_createInternalData() {
|
|
|
36737
36742
|
} = reactData;
|
|
36738
36743
|
const xOpts = computeXOpts.value;
|
|
36739
36744
|
const yOpts = computeYOpts.value;
|
|
36740
|
-
|
|
36745
|
+
const xToTop = computeXToTop.value;
|
|
36746
|
+
const yToLeft = computeYToLeft.value;
|
|
36747
|
+
return scrollbar_domUtils.buildClass(['vxe-scrollbar', `ov-x--${xOpts.visible || 'visible'}`, `ov-y--${yOpts.visible || 'visible'}`, `sx-pos--${xToTop ? 'top' : 'bottom'}`, `sy-pos--${yToLeft ? 'left' : 'right'}`, native ? 'is--native' : 'is--virtual', className], {
|
|
36748
|
+
'is--padding': padding,
|
|
36741
36749
|
'ov-x--auto-hide': xOpts.autoHide,
|
|
36742
36750
|
'ov-y--auto-hide': yOpts.autoHide,
|
|
36743
36751
|
'overflow-y': yThumbHeight,
|
|
@@ -36762,6 +36770,14 @@ function scrollbar_createInternalData() {
|
|
|
36762
36770
|
const computeYOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
36763
36771
|
return Object.assign({}, scrollbar_getConfig().scrollbar.yConfig, props.yConfig);
|
|
36764
36772
|
});
|
|
36773
|
+
const computeXToTop = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
36774
|
+
const xOpts = computeXOpts.value;
|
|
36775
|
+
return xOpts.position === 'top';
|
|
36776
|
+
});
|
|
36777
|
+
const computeYToLeft = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
36778
|
+
const yOpts = computeYOpts.value;
|
|
36779
|
+
return yOpts.position === 'left';
|
|
36780
|
+
});
|
|
36765
36781
|
const refMaps = {
|
|
36766
36782
|
refElem
|
|
36767
36783
|
};
|
|
@@ -39157,8 +39173,8 @@ const lockScrollCssWidthKey = '--vxe-ui-modal-lock-scroll-view-width';
|
|
|
39157
39173
|
if (boxElem) {
|
|
39158
39174
|
boxElem.style.width = width ? toCssUnit(width) : '';
|
|
39159
39175
|
boxElem.style.height = height ? toCssUnit(height) : '';
|
|
39160
|
-
boxElem.style.minWidth = !isMsg && !isMinimizeStatus && minWidth ? toCssUnit(minWidth) : '';
|
|
39161
|
-
boxElem.style.minHeight = !isMsg && !isMinimizeStatus && minHeight ? toCssUnit(minHeight) : '';
|
|
39176
|
+
boxElem.style.minWidth = !isMsg && !isMinimizeStatus && minWidth ? isScale(minWidth) ? minWidth : toCssUnit(minWidth) : '';
|
|
39177
|
+
boxElem.style.minHeight = !isMsg && !isMinimizeStatus && minHeight ? isScale(minHeight) ? minHeight : toCssUnit(minHeight) : '';
|
|
39162
39178
|
}
|
|
39163
39179
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
|
|
39164
39180
|
};
|
|
@@ -39947,6 +39963,8 @@ const lockScrollCssWidthKey = '--vxe-ui-modal-lock-scroll-view-width';
|
|
|
39947
39963
|
const dragEvent = evnt => {
|
|
39948
39964
|
evnt.preventDefault();
|
|
39949
39965
|
const {
|
|
39966
|
+
minWidth,
|
|
39967
|
+
minHeight,
|
|
39950
39968
|
storage,
|
|
39951
39969
|
isWithinAppendTo
|
|
39952
39970
|
} = props;
|
|
@@ -39960,8 +39978,8 @@ const lockScrollCssWidthKey = '--vxe-ui-modal-lock-scroll-view-width';
|
|
|
39960
39978
|
const marginSize = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(props.marginSize);
|
|
39961
39979
|
const targetElem = evnt.target;
|
|
39962
39980
|
const type = targetElem.getAttribute('data-type');
|
|
39963
|
-
const
|
|
39964
|
-
const
|
|
39981
|
+
const dragMinWidth = isScale(minWidth) ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(minWidth) * visibleWidth / 100 : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(minWidth);
|
|
39982
|
+
const dragMinHeight = isScale(minHeight) ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(minHeight) * visibleHeight / 100 : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(minHeight);
|
|
39965
39983
|
const maxWidth = visibleWidth;
|
|
39966
39984
|
const maxHeight = visibleHeight;
|
|
39967
39985
|
const boxElem = getBox();
|
|
@@ -39985,7 +40003,7 @@ const lockScrollCssWidthKey = '--vxe-ui-modal-lock-scroll-view-width';
|
|
|
39985
40003
|
dragLeft = disX - evnt.clientX;
|
|
39986
40004
|
width = dragLeft + clientWidth;
|
|
39987
40005
|
if (offsetLeft - dragLeft > marginSize) {
|
|
39988
|
-
if (width >
|
|
40006
|
+
if (width > dragMinWidth) {
|
|
39989
40007
|
boxElem.style.width = `${width < maxWidth ? width : maxWidth}px`;
|
|
39990
40008
|
boxElem.style.left = `${offsetLeft - dragLeft}px`;
|
|
39991
40009
|
}
|
|
@@ -39997,13 +40015,13 @@ const lockScrollCssWidthKey = '--vxe-ui-modal-lock-scroll-view-width';
|
|
|
39997
40015
|
width = dragLeft + clientWidth;
|
|
39998
40016
|
height = dragTop + clientHeight;
|
|
39999
40017
|
if (offsetLeft - dragLeft > marginSize) {
|
|
40000
|
-
if (width >
|
|
40018
|
+
if (width > dragMinWidth) {
|
|
40001
40019
|
boxElem.style.width = `${width < maxWidth ? width : maxWidth}px`;
|
|
40002
40020
|
boxElem.style.left = `${offsetLeft - dragLeft}px`;
|
|
40003
40021
|
}
|
|
40004
40022
|
}
|
|
40005
40023
|
if (offsetTop - dragTop > marginSize) {
|
|
40006
|
-
if (height >
|
|
40024
|
+
if (height > dragMinHeight) {
|
|
40007
40025
|
boxElem.style.height = `${height < maxHeight ? height : maxHeight}px`;
|
|
40008
40026
|
boxElem.style.top = `${offsetTop - dragTop}px`;
|
|
40009
40027
|
}
|
|
@@ -40015,13 +40033,13 @@ const lockScrollCssWidthKey = '--vxe-ui-modal-lock-scroll-view-width';
|
|
|
40015
40033
|
width = dragLeft + clientWidth;
|
|
40016
40034
|
height = dragTop + clientHeight;
|
|
40017
40035
|
if (offsetLeft - dragLeft > marginSize) {
|
|
40018
|
-
if (width >
|
|
40036
|
+
if (width > dragMinWidth) {
|
|
40019
40037
|
boxElem.style.width = `${width < maxWidth ? width : maxWidth}px`;
|
|
40020
40038
|
boxElem.style.left = `${offsetLeft - dragLeft}px`;
|
|
40021
40039
|
}
|
|
40022
40040
|
}
|
|
40023
40041
|
if (offsetTop + height + marginSize < visibleHeight) {
|
|
40024
|
-
if (height >
|
|
40042
|
+
if (height > dragMinHeight) {
|
|
40025
40043
|
boxElem.style.height = `${height < maxHeight ? height : maxHeight}px`;
|
|
40026
40044
|
}
|
|
40027
40045
|
}
|
|
@@ -40030,7 +40048,7 @@ const lockScrollCssWidthKey = '--vxe-ui-modal-lock-scroll-view-width';
|
|
|
40030
40048
|
dragTop = disY - evnt.clientY;
|
|
40031
40049
|
height = clientHeight + dragTop;
|
|
40032
40050
|
if (offsetTop - dragTop > marginSize) {
|
|
40033
|
-
if (height >
|
|
40051
|
+
if (height > dragMinHeight) {
|
|
40034
40052
|
boxElem.style.height = `${height < maxHeight ? height : maxHeight}px`;
|
|
40035
40053
|
boxElem.style.top = `${offsetTop - dragTop}px`;
|
|
40036
40054
|
}
|
|
@@ -40040,7 +40058,7 @@ const lockScrollCssWidthKey = '--vxe-ui-modal-lock-scroll-view-width';
|
|
|
40040
40058
|
dragLeft = evnt.clientX - disX;
|
|
40041
40059
|
width = dragLeft + clientWidth;
|
|
40042
40060
|
if (offsetLeft + width + marginSize < visibleWidth) {
|
|
40043
|
-
if (width >
|
|
40061
|
+
if (width > dragMinWidth) {
|
|
40044
40062
|
boxElem.style.width = `${width < maxWidth ? width : maxWidth}px`;
|
|
40045
40063
|
}
|
|
40046
40064
|
}
|
|
@@ -40051,12 +40069,12 @@ const lockScrollCssWidthKey = '--vxe-ui-modal-lock-scroll-view-width';
|
|
|
40051
40069
|
width = dragLeft + clientWidth;
|
|
40052
40070
|
height = dragTop + clientHeight;
|
|
40053
40071
|
if (offsetLeft + width + marginSize < visibleWidth) {
|
|
40054
|
-
if (width >
|
|
40072
|
+
if (width > dragMinWidth) {
|
|
40055
40073
|
boxElem.style.width = `${width < maxWidth ? width : maxWidth}px`;
|
|
40056
40074
|
}
|
|
40057
40075
|
}
|
|
40058
40076
|
if (offsetTop - dragTop > marginSize) {
|
|
40059
|
-
if (height >
|
|
40077
|
+
if (height > dragMinHeight) {
|
|
40060
40078
|
boxElem.style.height = `${height < maxHeight ? height : maxHeight}px`;
|
|
40061
40079
|
boxElem.style.top = `${offsetTop - dragTop}px`;
|
|
40062
40080
|
}
|
|
@@ -40068,12 +40086,12 @@ const lockScrollCssWidthKey = '--vxe-ui-modal-lock-scroll-view-width';
|
|
|
40068
40086
|
width = dragLeft + clientWidth;
|
|
40069
40087
|
height = dragTop + clientHeight;
|
|
40070
40088
|
if (offsetLeft + width + marginSize < visibleWidth) {
|
|
40071
|
-
if (width >
|
|
40089
|
+
if (width > dragMinWidth) {
|
|
40072
40090
|
boxElem.style.width = `${width < maxWidth ? width : maxWidth}px`;
|
|
40073
40091
|
}
|
|
40074
40092
|
}
|
|
40075
40093
|
if (offsetTop + height + marginSize < visibleHeight) {
|
|
40076
|
-
if (height >
|
|
40094
|
+
if (height > dragMinHeight) {
|
|
40077
40095
|
boxElem.style.height = `${height < maxHeight ? height : maxHeight}px`;
|
|
40078
40096
|
}
|
|
40079
40097
|
}
|
|
@@ -40082,7 +40100,7 @@ const lockScrollCssWidthKey = '--vxe-ui-modal-lock-scroll-view-width';
|
|
|
40082
40100
|
dragTop = evnt.clientY - disY;
|
|
40083
40101
|
height = dragTop + clientHeight;
|
|
40084
40102
|
if (offsetTop + height + marginSize < visibleHeight) {
|
|
40085
|
-
if (height >
|
|
40103
|
+
if (height > dragMinHeight) {
|
|
40086
40104
|
boxElem.style.height = `${height < maxHeight ? height : maxHeight}px`;
|
|
40087
40105
|
}
|
|
40088
40106
|
}
|