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.
Files changed (41) hide show
  1. package/dist/all.esm.js +21 -21
  2. package/dist/style.css +1 -1
  3. package/dist/style.min.css +1 -1
  4. package/es/form/src/form.js +2 -2
  5. package/es/icon/style.css +1 -1
  6. package/es/modal/src/modal.js +18 -18
  7. package/es/style.css +1 -1
  8. package/es/style.min.css +1 -1
  9. package/es/ui/index.js +1 -1
  10. package/es/ui/src/log.js +1 -1
  11. package/lib/form/src/form.js +2 -2
  12. package/lib/form/src/form.min.js +1 -1
  13. package/lib/icon/style/style.css +1 -1
  14. package/lib/icon/style/style.min.css +1 -1
  15. package/lib/index.umd.js +22 -20
  16. package/lib/index.umd.min.js +1 -1
  17. package/lib/modal/src/modal.js +18 -16
  18. package/lib/modal/src/modal.min.js +1 -1
  19. package/lib/style.css +1 -1
  20. package/lib/style.min.css +1 -1
  21. package/lib/ui/index.js +1 -1
  22. package/lib/ui/index.min.js +1 -1
  23. package/lib/ui/src/log.js +1 -1
  24. package/lib/ui/src/log.min.js +1 -1
  25. package/package.json +1 -1
  26. package/packages/form/src/form.ts +2 -2
  27. package/packages/modal/src/modal.ts +18 -18
  28. package/styles/theme/dark.scss +3 -3
  29. package/styles/variable.scss +3 -3
  30. /package/es/icon/{iconfont.1791602925489.ttf → iconfont.1791616163416.ttf} +0 -0
  31. /package/es/icon/{iconfont.1791602925489.woff → iconfont.1791616163416.woff} +0 -0
  32. /package/es/icon/{iconfont.1791602925489.woff2 → iconfont.1791616163416.woff2} +0 -0
  33. /package/es/{iconfont.1791602925489.ttf → iconfont.1791616163416.ttf} +0 -0
  34. /package/es/{iconfont.1791602925489.woff → iconfont.1791616163416.woff} +0 -0
  35. /package/es/{iconfont.1791602925489.woff2 → iconfont.1791616163416.woff2} +0 -0
  36. /package/lib/icon/style/{iconfont.1791602925489.ttf → iconfont.1791616163416.ttf} +0 -0
  37. /package/lib/icon/style/{iconfont.1791602925489.woff → iconfont.1791616163416.woff} +0 -0
  38. /package/lib/icon/style/{iconfont.1791602925489.woff2 → iconfont.1791616163416.woff2} +0 -0
  39. /package/lib/{iconfont.1791602925489.ttf → iconfont.1791616163416.ttf} +0 -0
  40. /package/lib/{iconfont.1791602925489.woff → iconfont.1791616163416.woff} +0 -0
  41. /package/lib/{iconfont.1791602925489.woff2 → iconfont.1791616163416.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.3"}`;
4748
+ const uiVersion = `ui v${"4.19.4"}`;
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.3";
4766
+ const ui_version = "4.19.4";
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 (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
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 (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
34131
+ return Promise.resolve();
34132
34132
  }
34133
34133
  let fields = [];
34134
34134
  if (fieldOrItem) {
@@ -39157,8 +39157,8 @@ const lockScrollCssWidthKey = '--vxe-ui-modal-lock-scroll-view-width';
39157
39157
  if (boxElem) {
39158
39158
  boxElem.style.width = width ? toCssUnit(width) : '';
39159
39159
  boxElem.style.height = height ? toCssUnit(height) : '';
39160
- boxElem.style.minWidth = !isMsg && !isMinimizeStatus && minWidth ? toCssUnit(minWidth) : '';
39161
- boxElem.style.minHeight = !isMsg && !isMinimizeStatus && minHeight ? toCssUnit(minHeight) : '';
39160
+ boxElem.style.minWidth = !isMsg && !isMinimizeStatus && minWidth ? isScale(minWidth) ? minWidth : toCssUnit(minWidth) : '';
39161
+ boxElem.style.minHeight = !isMsg && !isMinimizeStatus && minHeight ? isScale(minHeight) ? minHeight : toCssUnit(minHeight) : '';
39162
39162
  }
39163
39163
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
39164
39164
  };
@@ -39947,6 +39947,8 @@ const lockScrollCssWidthKey = '--vxe-ui-modal-lock-scroll-view-width';
39947
39947
  const dragEvent = evnt => {
39948
39948
  evnt.preventDefault();
39949
39949
  const {
39950
+ minWidth,
39951
+ minHeight,
39950
39952
  storage,
39951
39953
  isWithinAppendTo
39952
39954
  } = props;
@@ -39960,8 +39962,8 @@ const lockScrollCssWidthKey = '--vxe-ui-modal-lock-scroll-view-width';
39960
39962
  const marginSize = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(props.marginSize);
39961
39963
  const targetElem = evnt.target;
39962
39964
  const type = targetElem.getAttribute('data-type');
39963
- const minWidth = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(props.minWidth);
39964
- const minHeight = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(props.minHeight);
39965
+ 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);
39966
+ 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
39967
  const maxWidth = visibleWidth;
39966
39968
  const maxHeight = visibleHeight;
39967
39969
  const boxElem = getBox();
@@ -39985,7 +39987,7 @@ const lockScrollCssWidthKey = '--vxe-ui-modal-lock-scroll-view-width';
39985
39987
  dragLeft = disX - evnt.clientX;
39986
39988
  width = dragLeft + clientWidth;
39987
39989
  if (offsetLeft - dragLeft > marginSize) {
39988
- if (width > minWidth) {
39990
+ if (width > dragMinWidth) {
39989
39991
  boxElem.style.width = `${width < maxWidth ? width : maxWidth}px`;
39990
39992
  boxElem.style.left = `${offsetLeft - dragLeft}px`;
39991
39993
  }
@@ -39997,13 +39999,13 @@ const lockScrollCssWidthKey = '--vxe-ui-modal-lock-scroll-view-width';
39997
39999
  width = dragLeft + clientWidth;
39998
40000
  height = dragTop + clientHeight;
39999
40001
  if (offsetLeft - dragLeft > marginSize) {
40000
- if (width > minWidth) {
40002
+ if (width > dragMinWidth) {
40001
40003
  boxElem.style.width = `${width < maxWidth ? width : maxWidth}px`;
40002
40004
  boxElem.style.left = `${offsetLeft - dragLeft}px`;
40003
40005
  }
40004
40006
  }
40005
40007
  if (offsetTop - dragTop > marginSize) {
40006
- if (height > minHeight) {
40008
+ if (height > dragMinHeight) {
40007
40009
  boxElem.style.height = `${height < maxHeight ? height : maxHeight}px`;
40008
40010
  boxElem.style.top = `${offsetTop - dragTop}px`;
40009
40011
  }
@@ -40015,13 +40017,13 @@ const lockScrollCssWidthKey = '--vxe-ui-modal-lock-scroll-view-width';
40015
40017
  width = dragLeft + clientWidth;
40016
40018
  height = dragTop + clientHeight;
40017
40019
  if (offsetLeft - dragLeft > marginSize) {
40018
- if (width > minWidth) {
40020
+ if (width > dragMinWidth) {
40019
40021
  boxElem.style.width = `${width < maxWidth ? width : maxWidth}px`;
40020
40022
  boxElem.style.left = `${offsetLeft - dragLeft}px`;
40021
40023
  }
40022
40024
  }
40023
40025
  if (offsetTop + height + marginSize < visibleHeight) {
40024
- if (height > minHeight) {
40026
+ if (height > dragMinHeight) {
40025
40027
  boxElem.style.height = `${height < maxHeight ? height : maxHeight}px`;
40026
40028
  }
40027
40029
  }
@@ -40030,7 +40032,7 @@ const lockScrollCssWidthKey = '--vxe-ui-modal-lock-scroll-view-width';
40030
40032
  dragTop = disY - evnt.clientY;
40031
40033
  height = clientHeight + dragTop;
40032
40034
  if (offsetTop - dragTop > marginSize) {
40033
- if (height > minHeight) {
40035
+ if (height > dragMinHeight) {
40034
40036
  boxElem.style.height = `${height < maxHeight ? height : maxHeight}px`;
40035
40037
  boxElem.style.top = `${offsetTop - dragTop}px`;
40036
40038
  }
@@ -40040,7 +40042,7 @@ const lockScrollCssWidthKey = '--vxe-ui-modal-lock-scroll-view-width';
40040
40042
  dragLeft = evnt.clientX - disX;
40041
40043
  width = dragLeft + clientWidth;
40042
40044
  if (offsetLeft + width + marginSize < visibleWidth) {
40043
- if (width > minWidth) {
40045
+ if (width > dragMinWidth) {
40044
40046
  boxElem.style.width = `${width < maxWidth ? width : maxWidth}px`;
40045
40047
  }
40046
40048
  }
@@ -40051,12 +40053,12 @@ const lockScrollCssWidthKey = '--vxe-ui-modal-lock-scroll-view-width';
40051
40053
  width = dragLeft + clientWidth;
40052
40054
  height = dragTop + clientHeight;
40053
40055
  if (offsetLeft + width + marginSize < visibleWidth) {
40054
- if (width > minWidth) {
40056
+ if (width > dragMinWidth) {
40055
40057
  boxElem.style.width = `${width < maxWidth ? width : maxWidth}px`;
40056
40058
  }
40057
40059
  }
40058
40060
  if (offsetTop - dragTop > marginSize) {
40059
- if (height > minHeight) {
40061
+ if (height > dragMinHeight) {
40060
40062
  boxElem.style.height = `${height < maxHeight ? height : maxHeight}px`;
40061
40063
  boxElem.style.top = `${offsetTop - dragTop}px`;
40062
40064
  }
@@ -40068,12 +40070,12 @@ const lockScrollCssWidthKey = '--vxe-ui-modal-lock-scroll-view-width';
40068
40070
  width = dragLeft + clientWidth;
40069
40071
  height = dragTop + clientHeight;
40070
40072
  if (offsetLeft + width + marginSize < visibleWidth) {
40071
- if (width > minWidth) {
40073
+ if (width > dragMinWidth) {
40072
40074
  boxElem.style.width = `${width < maxWidth ? width : maxWidth}px`;
40073
40075
  }
40074
40076
  }
40075
40077
  if (offsetTop + height + marginSize < visibleHeight) {
40076
- if (height > minHeight) {
40078
+ if (height > dragMinHeight) {
40077
40079
  boxElem.style.height = `${height < maxHeight ? height : maxHeight}px`;
40078
40080
  }
40079
40081
  }
@@ -40082,7 +40084,7 @@ const lockScrollCssWidthKey = '--vxe-ui-modal-lock-scroll-view-width';
40082
40084
  dragTop = evnt.clientY - disY;
40083
40085
  height = dragTop + clientHeight;
40084
40086
  if (offsetTop + height + marginSize < visibleHeight) {
40085
- if (height > minHeight) {
40087
+ if (height > dragMinHeight) {
40086
40088
  boxElem.style.height = `${height < maxHeight ? height : maxHeight}px`;
40087
40089
  }
40088
40090
  }