vxe-pc-ui 4.19.3 → 4.19.4
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 +21 -21
- 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/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/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 +22 -20
- 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/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/package.json +1 -1
- package/packages/form/src/form.ts +2 -2
- package/packages/modal/src/modal.ts +18 -18
- package/styles/theme/dark.scss +3 -3
- package/styles/variable.scss +3 -3
- /package/es/icon/{iconfont.1791602925489.ttf → iconfont.1791616163416.ttf} +0 -0
- /package/es/icon/{iconfont.1791602925489.woff → iconfont.1791616163416.woff} +0 -0
- /package/es/icon/{iconfont.1791602925489.woff2 → iconfont.1791616163416.woff2} +0 -0
- /package/es/{iconfont.1791602925489.ttf → iconfont.1791616163416.ttf} +0 -0
- /package/es/{iconfont.1791602925489.woff → iconfont.1791616163416.woff} +0 -0
- /package/es/{iconfont.1791602925489.woff2 → iconfont.1791616163416.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1791602925489.ttf → iconfont.1791616163416.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1791602925489.woff → iconfont.1791616163416.woff} +0 -0
- /package/lib/icon/style/{iconfont.1791602925489.woff2 → iconfont.1791616163416.woff2} +0 -0
- /package/lib/{iconfont.1791602925489.ttf → iconfont.1791616163416.ttf} +0 -0
- /package/lib/{iconfont.1791602925489.woff → iconfont.1791616163416.woff} +0 -0
- /package/lib/{iconfont.1791602925489.woff2 → iconfont.1791616163416.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.19.
|
|
104
|
+
const uiVersion = `ui v${"4.19.4"}`;
|
|
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.19.
|
|
118
|
+
const version = "4.19.4";
|
|
119
119
|
VxeUI.uiVersion = version;
|
|
120
120
|
VxeUI.dynamicApp = dynamicApp;
|
|
121
121
|
function config(options) {
|
|
@@ -26550,7 +26550,7 @@ var VxeFormComponent = defineVxeComponent({
|
|
|
26550
26550
|
const { fullItemList } = internalData;
|
|
26551
26551
|
clearValidate();
|
|
26552
26552
|
if (readonly) {
|
|
26553
|
-
return
|
|
26553
|
+
return Promise.resolve();
|
|
26554
26554
|
}
|
|
26555
26555
|
return beginValidate(fullItemList, '', callback).then((params) => {
|
|
26556
26556
|
recalculate();
|
|
@@ -26560,7 +26560,7 @@ var VxeFormComponent = defineVxeComponent({
|
|
|
26560
26560
|
const validateField = (fieldOrItem, callback) => {
|
|
26561
26561
|
const { readonly } = props;
|
|
26562
26562
|
if (readonly) {
|
|
26563
|
-
return
|
|
26563
|
+
return Promise.resolve();
|
|
26564
26564
|
}
|
|
26565
26565
|
let fields = [];
|
|
26566
26566
|
if (fieldOrItem) {
|
|
@@ -31067,8 +31067,8 @@ var VxeModalComponent = defineVxeComponent({
|
|
|
31067
31067
|
if (boxElem) {
|
|
31068
31068
|
boxElem.style.width = width ? toCssUnit(width) : '';
|
|
31069
31069
|
boxElem.style.height = height ? toCssUnit(height) : '';
|
|
31070
|
-
boxElem.style.minWidth = !isMsg && !isMinimizeStatus && minWidth ? toCssUnit(minWidth) : '';
|
|
31071
|
-
boxElem.style.minHeight = !isMsg && !isMinimizeStatus && minHeight ? toCssUnit(minHeight) : '';
|
|
31070
|
+
boxElem.style.minWidth = !isMsg && !isMinimizeStatus && minWidth ? (isScale(minWidth) ? minWidth : toCssUnit(minWidth)) : '';
|
|
31071
|
+
boxElem.style.minHeight = !isMsg && !isMinimizeStatus && minHeight ? (isScale(minHeight) ? minHeight : toCssUnit(minHeight)) : '';
|
|
31072
31072
|
}
|
|
31073
31073
|
return nextTick();
|
|
31074
31074
|
};
|
|
@@ -31776,7 +31776,7 @@ var VxeModalComponent = defineVxeComponent({
|
|
|
31776
31776
|
};
|
|
31777
31777
|
const dragEvent = (evnt) => {
|
|
31778
31778
|
evnt.preventDefault();
|
|
31779
|
-
const { storage, isWithinAppendTo } = props;
|
|
31779
|
+
const { minWidth, minHeight, storage, isWithinAppendTo } = props;
|
|
31780
31780
|
const el = refElem.value;
|
|
31781
31781
|
const parentWrapperEl = getPopupWrapperElement(isWithinAppendTo ? el : document.body);
|
|
31782
31782
|
if (!parentWrapperEl) {
|
|
@@ -31787,8 +31787,8 @@ var VxeModalComponent = defineVxeComponent({
|
|
|
31787
31787
|
const marginSize = XEUtils.toNumber(props.marginSize);
|
|
31788
31788
|
const targetElem = evnt.target;
|
|
31789
31789
|
const type = targetElem.getAttribute('data-type');
|
|
31790
|
-
const
|
|
31791
|
-
const
|
|
31790
|
+
const dragMinWidth = isScale(minWidth) ? (XEUtils.toNumber(minWidth) * visibleWidth / 100) : XEUtils.toNumber(minWidth);
|
|
31791
|
+
const dragMinHeight = isScale(minHeight) ? (XEUtils.toNumber(minHeight) * visibleHeight / 100) : XEUtils.toNumber(minHeight);
|
|
31792
31792
|
const maxWidth = visibleWidth;
|
|
31793
31793
|
const maxHeight = visibleHeight;
|
|
31794
31794
|
const boxElem = getBox();
|
|
@@ -31810,7 +31810,7 @@ var VxeModalComponent = defineVxeComponent({
|
|
|
31810
31810
|
dragLeft = disX - evnt.clientX;
|
|
31811
31811
|
width = dragLeft + clientWidth;
|
|
31812
31812
|
if (offsetLeft - dragLeft > marginSize) {
|
|
31813
|
-
if (width >
|
|
31813
|
+
if (width > dragMinWidth) {
|
|
31814
31814
|
boxElem.style.width = `${width < maxWidth ? width : maxWidth}px`;
|
|
31815
31815
|
boxElem.style.left = `${offsetLeft - dragLeft}px`;
|
|
31816
31816
|
}
|
|
@@ -31822,13 +31822,13 @@ var VxeModalComponent = defineVxeComponent({
|
|
|
31822
31822
|
width = dragLeft + clientWidth;
|
|
31823
31823
|
height = dragTop + clientHeight;
|
|
31824
31824
|
if (offsetLeft - dragLeft > marginSize) {
|
|
31825
|
-
if (width >
|
|
31825
|
+
if (width > dragMinWidth) {
|
|
31826
31826
|
boxElem.style.width = `${width < maxWidth ? width : maxWidth}px`;
|
|
31827
31827
|
boxElem.style.left = `${offsetLeft - dragLeft}px`;
|
|
31828
31828
|
}
|
|
31829
31829
|
}
|
|
31830
31830
|
if (offsetTop - dragTop > marginSize) {
|
|
31831
|
-
if (height >
|
|
31831
|
+
if (height > dragMinHeight) {
|
|
31832
31832
|
boxElem.style.height = `${height < maxHeight ? height : maxHeight}px`;
|
|
31833
31833
|
boxElem.style.top = `${offsetTop - dragTop}px`;
|
|
31834
31834
|
}
|
|
@@ -31840,13 +31840,13 @@ var VxeModalComponent = defineVxeComponent({
|
|
|
31840
31840
|
width = dragLeft + clientWidth;
|
|
31841
31841
|
height = dragTop + clientHeight;
|
|
31842
31842
|
if (offsetLeft - dragLeft > marginSize) {
|
|
31843
|
-
if (width >
|
|
31843
|
+
if (width > dragMinWidth) {
|
|
31844
31844
|
boxElem.style.width = `${width < maxWidth ? width : maxWidth}px`;
|
|
31845
31845
|
boxElem.style.left = `${offsetLeft - dragLeft}px`;
|
|
31846
31846
|
}
|
|
31847
31847
|
}
|
|
31848
31848
|
if (offsetTop + height + marginSize < visibleHeight) {
|
|
31849
|
-
if (height >
|
|
31849
|
+
if (height > dragMinHeight) {
|
|
31850
31850
|
boxElem.style.height = `${height < maxHeight ? height : maxHeight}px`;
|
|
31851
31851
|
}
|
|
31852
31852
|
}
|
|
@@ -31855,7 +31855,7 @@ var VxeModalComponent = defineVxeComponent({
|
|
|
31855
31855
|
dragTop = disY - evnt.clientY;
|
|
31856
31856
|
height = clientHeight + dragTop;
|
|
31857
31857
|
if (offsetTop - dragTop > marginSize) {
|
|
31858
|
-
if (height >
|
|
31858
|
+
if (height > dragMinHeight) {
|
|
31859
31859
|
boxElem.style.height = `${height < maxHeight ? height : maxHeight}px`;
|
|
31860
31860
|
boxElem.style.top = `${offsetTop - dragTop}px`;
|
|
31861
31861
|
}
|
|
@@ -31865,7 +31865,7 @@ var VxeModalComponent = defineVxeComponent({
|
|
|
31865
31865
|
dragLeft = evnt.clientX - disX;
|
|
31866
31866
|
width = dragLeft + clientWidth;
|
|
31867
31867
|
if (offsetLeft + width + marginSize < visibleWidth) {
|
|
31868
|
-
if (width >
|
|
31868
|
+
if (width > dragMinWidth) {
|
|
31869
31869
|
boxElem.style.width = `${width < maxWidth ? width : maxWidth}px`;
|
|
31870
31870
|
}
|
|
31871
31871
|
}
|
|
@@ -31876,12 +31876,12 @@ var VxeModalComponent = defineVxeComponent({
|
|
|
31876
31876
|
width = dragLeft + clientWidth;
|
|
31877
31877
|
height = dragTop + clientHeight;
|
|
31878
31878
|
if (offsetLeft + width + marginSize < visibleWidth) {
|
|
31879
|
-
if (width >
|
|
31879
|
+
if (width > dragMinWidth) {
|
|
31880
31880
|
boxElem.style.width = `${width < maxWidth ? width : maxWidth}px`;
|
|
31881
31881
|
}
|
|
31882
31882
|
}
|
|
31883
31883
|
if (offsetTop - dragTop > marginSize) {
|
|
31884
|
-
if (height >
|
|
31884
|
+
if (height > dragMinHeight) {
|
|
31885
31885
|
boxElem.style.height = `${height < maxHeight ? height : maxHeight}px`;
|
|
31886
31886
|
boxElem.style.top = `${offsetTop - dragTop}px`;
|
|
31887
31887
|
}
|
|
@@ -31893,12 +31893,12 @@ var VxeModalComponent = defineVxeComponent({
|
|
|
31893
31893
|
width = dragLeft + clientWidth;
|
|
31894
31894
|
height = dragTop + clientHeight;
|
|
31895
31895
|
if (offsetLeft + width + marginSize < visibleWidth) {
|
|
31896
|
-
if (width >
|
|
31896
|
+
if (width > dragMinWidth) {
|
|
31897
31897
|
boxElem.style.width = `${width < maxWidth ? width : maxWidth}px`;
|
|
31898
31898
|
}
|
|
31899
31899
|
}
|
|
31900
31900
|
if (offsetTop + height + marginSize < visibleHeight) {
|
|
31901
|
-
if (height >
|
|
31901
|
+
if (height > dragMinHeight) {
|
|
31902
31902
|
boxElem.style.height = `${height < maxHeight ? height : maxHeight}px`;
|
|
31903
31903
|
}
|
|
31904
31904
|
}
|
|
@@ -31907,7 +31907,7 @@ var VxeModalComponent = defineVxeComponent({
|
|
|
31907
31907
|
dragTop = evnt.clientY - disY;
|
|
31908
31908
|
height = dragTop + clientHeight;
|
|
31909
31909
|
if (offsetTop + height + marginSize < visibleHeight) {
|
|
31910
|
-
if (height >
|
|
31910
|
+
if (height > dragMinHeight) {
|
|
31911
31911
|
boxElem.style.height = `${height < maxHeight ? height : maxHeight}px`;
|
|
31912
31912
|
}
|
|
31913
31913
|
}
|