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.
Files changed (55) hide show
  1. package/dist/all.esm.js +39 -22
  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/scrollbar/src/scrollbar.js +18 -1
  8. package/es/scrollbar/style.css +42 -3
  9. package/es/scrollbar/style.min.css +1 -1
  10. package/es/style.css +1 -1
  11. package/es/style.min.css +1 -1
  12. package/es/ui/index.js +1 -1
  13. package/es/ui/src/log.js +1 -1
  14. package/es/vxe-scrollbar/style.css +42 -3
  15. package/es/vxe-scrollbar/style.min.css +1 -1
  16. package/lib/form/src/form.js +2 -2
  17. package/lib/form/src/form.min.js +1 -1
  18. package/lib/icon/style/style.css +1 -1
  19. package/lib/icon/style/style.min.css +1 -1
  20. package/lib/index.umd.js +40 -22
  21. package/lib/index.umd.min.js +1 -1
  22. package/lib/modal/src/modal.js +18 -16
  23. package/lib/modal/src/modal.min.js +1 -1
  24. package/lib/scrollbar/src/scrollbar.js +18 -2
  25. package/lib/scrollbar/src/scrollbar.min.js +1 -1
  26. package/lib/scrollbar/style/style.css +42 -3
  27. package/lib/scrollbar/style/style.min.css +1 -1
  28. package/lib/style.css +1 -1
  29. package/lib/style.min.css +1 -1
  30. package/lib/ui/index.js +1 -1
  31. package/lib/ui/index.min.js +1 -1
  32. package/lib/ui/src/log.js +1 -1
  33. package/lib/ui/src/log.min.js +1 -1
  34. package/lib/vxe-scrollbar/style/style.css +42 -3
  35. package/lib/vxe-scrollbar/style/style.min.css +1 -1
  36. package/package.json +1 -1
  37. package/packages/form/src/form.ts +2 -2
  38. package/packages/modal/src/modal.ts +18 -18
  39. package/packages/scrollbar/src/scrollbar.ts +20 -1
  40. package/styles/components/scrollbar.scss +70 -4
  41. package/styles/theme/dark.scss +3 -3
  42. package/styles/variable.scss +3 -3
  43. package/types/components/scrollbar.d.ts +13 -0
  44. /package/es/icon/{iconfont.1791602925489.ttf → iconfont.1791695434923.ttf} +0 -0
  45. /package/es/icon/{iconfont.1791602925489.woff → iconfont.1791695434923.woff} +0 -0
  46. /package/es/icon/{iconfont.1791602925489.woff2 → iconfont.1791695434923.woff2} +0 -0
  47. /package/es/{iconfont.1791602925489.ttf → iconfont.1791695434923.ttf} +0 -0
  48. /package/es/{iconfont.1791602925489.woff → iconfont.1791695434923.woff} +0 -0
  49. /package/es/{iconfont.1791602925489.woff2 → iconfont.1791695434923.woff2} +0 -0
  50. /package/lib/icon/style/{iconfont.1791602925489.ttf → iconfont.1791695434923.ttf} +0 -0
  51. /package/lib/icon/style/{iconfont.1791602925489.woff → iconfont.1791695434923.woff} +0 -0
  52. /package/lib/icon/style/{iconfont.1791602925489.woff2 → iconfont.1791695434923.woff2} +0 -0
  53. /package/lib/{iconfont.1791602925489.ttf → iconfont.1791695434923.ttf} +0 -0
  54. /package/lib/{iconfont.1791602925489.woff → iconfont.1791695434923.woff} +0 -0
  55. /package/lib/{iconfont.1791602925489.woff2 → iconfont.1791695434923.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.3"}`;
104
+ const uiVersion = `ui v${"4.19.5"}`;
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.3";
118
+ const version = "4.19.5";
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 nextTick();
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 nextTick();
26563
+ return Promise.resolve();
26564
26564
  }
26565
26565
  let fields = [];
26566
26566
  if (fieldOrItem) {
@@ -28869,6 +28869,10 @@ var VxeScrollbarComponent = defineVxeComponent({
28869
28869
  type: Boolean,
28870
28870
  default: () => getConfig$2().scrollbar.native
28871
28871
  },
28872
+ padding: {
28873
+ type: Boolean,
28874
+ default: () => getConfig$2().scrollbar.padding
28875
+ },
28872
28876
  xConfig: Object,
28873
28877
  yConfig: Object,
28874
28878
  className: {
@@ -28941,17 +28945,22 @@ var VxeScrollbarComponent = defineVxeComponent({
28941
28945
  return stys;
28942
28946
  });
28943
28947
  const computeWrapperClss = computed(() => {
28944
- const { native, className } = props;
28948
+ const { native, className, padding } = props;
28945
28949
  const { yThumbHeight, xThumbWidth } = reactData;
28946
28950
  const xOpts = computeXOpts.value;
28947
28951
  const yOpts = computeYOpts.value;
28952
+ const xToTop = computeXToTop.value;
28953
+ const yToLeft = computeYToLeft.value;
28948
28954
  return domUtils.buildClass([
28949
28955
  'vxe-scrollbar',
28950
28956
  `ov-x--${xOpts.visible || 'visible'}`,
28951
28957
  `ov-y--${yOpts.visible || 'visible'}`,
28958
+ `sx-pos--${xToTop ? 'top' : 'bottom'}`,
28959
+ `sy-pos--${yToLeft ? 'left' : 'right'}`,
28952
28960
  native ? 'is--native' : 'is--virtual',
28953
28961
  className
28954
28962
  ], {
28963
+ 'is--padding': padding,
28955
28964
  'ov-x--auto-hide': xOpts.autoHide,
28956
28965
  'ov-y--auto-hide': yOpts.autoHide,
28957
28966
  'overflow-y': yThumbHeight,
@@ -28978,6 +28987,14 @@ var VxeScrollbarComponent = defineVxeComponent({
28978
28987
  const computeYOpts = computed(() => {
28979
28988
  return Object.assign({}, getConfig$2().scrollbar.yConfig, props.yConfig);
28980
28989
  });
28990
+ const computeXToTop = computed(() => {
28991
+ const xOpts = computeXOpts.value;
28992
+ return xOpts.position === 'top';
28993
+ });
28994
+ const computeYToLeft = computed(() => {
28995
+ const yOpts = computeYOpts.value;
28996
+ return yOpts.position === 'left';
28997
+ });
28981
28998
  const refMaps = {
28982
28999
  refElem
28983
29000
  };
@@ -31067,8 +31084,8 @@ var VxeModalComponent = defineVxeComponent({
31067
31084
  if (boxElem) {
31068
31085
  boxElem.style.width = width ? toCssUnit(width) : '';
31069
31086
  boxElem.style.height = height ? toCssUnit(height) : '';
31070
- boxElem.style.minWidth = !isMsg && !isMinimizeStatus && minWidth ? toCssUnit(minWidth) : '';
31071
- boxElem.style.minHeight = !isMsg && !isMinimizeStatus && minHeight ? toCssUnit(minHeight) : '';
31087
+ boxElem.style.minWidth = !isMsg && !isMinimizeStatus && minWidth ? (isScale(minWidth) ? minWidth : toCssUnit(minWidth)) : '';
31088
+ boxElem.style.minHeight = !isMsg && !isMinimizeStatus && minHeight ? (isScale(minHeight) ? minHeight : toCssUnit(minHeight)) : '';
31072
31089
  }
31073
31090
  return nextTick();
31074
31091
  };
@@ -31776,7 +31793,7 @@ var VxeModalComponent = defineVxeComponent({
31776
31793
  };
31777
31794
  const dragEvent = (evnt) => {
31778
31795
  evnt.preventDefault();
31779
- const { storage, isWithinAppendTo } = props;
31796
+ const { minWidth, minHeight, storage, isWithinAppendTo } = props;
31780
31797
  const el = refElem.value;
31781
31798
  const parentWrapperEl = getPopupWrapperElement(isWithinAppendTo ? el : document.body);
31782
31799
  if (!parentWrapperEl) {
@@ -31787,8 +31804,8 @@ var VxeModalComponent = defineVxeComponent({
31787
31804
  const marginSize = XEUtils.toNumber(props.marginSize);
31788
31805
  const targetElem = evnt.target;
31789
31806
  const type = targetElem.getAttribute('data-type');
31790
- const minWidth = XEUtils.toNumber(props.minWidth);
31791
- const minHeight = XEUtils.toNumber(props.minHeight);
31807
+ const dragMinWidth = isScale(minWidth) ? (XEUtils.toNumber(minWidth) * visibleWidth / 100) : XEUtils.toNumber(minWidth);
31808
+ const dragMinHeight = isScale(minHeight) ? (XEUtils.toNumber(minHeight) * visibleHeight / 100) : XEUtils.toNumber(minHeight);
31792
31809
  const maxWidth = visibleWidth;
31793
31810
  const maxHeight = visibleHeight;
31794
31811
  const boxElem = getBox();
@@ -31810,7 +31827,7 @@ var VxeModalComponent = defineVxeComponent({
31810
31827
  dragLeft = disX - evnt.clientX;
31811
31828
  width = dragLeft + clientWidth;
31812
31829
  if (offsetLeft - dragLeft > marginSize) {
31813
- if (width > minWidth) {
31830
+ if (width > dragMinWidth) {
31814
31831
  boxElem.style.width = `${width < maxWidth ? width : maxWidth}px`;
31815
31832
  boxElem.style.left = `${offsetLeft - dragLeft}px`;
31816
31833
  }
@@ -31822,13 +31839,13 @@ var VxeModalComponent = defineVxeComponent({
31822
31839
  width = dragLeft + clientWidth;
31823
31840
  height = dragTop + clientHeight;
31824
31841
  if (offsetLeft - dragLeft > marginSize) {
31825
- if (width > minWidth) {
31842
+ if (width > dragMinWidth) {
31826
31843
  boxElem.style.width = `${width < maxWidth ? width : maxWidth}px`;
31827
31844
  boxElem.style.left = `${offsetLeft - dragLeft}px`;
31828
31845
  }
31829
31846
  }
31830
31847
  if (offsetTop - dragTop > marginSize) {
31831
- if (height > minHeight) {
31848
+ if (height > dragMinHeight) {
31832
31849
  boxElem.style.height = `${height < maxHeight ? height : maxHeight}px`;
31833
31850
  boxElem.style.top = `${offsetTop - dragTop}px`;
31834
31851
  }
@@ -31840,13 +31857,13 @@ var VxeModalComponent = defineVxeComponent({
31840
31857
  width = dragLeft + clientWidth;
31841
31858
  height = dragTop + clientHeight;
31842
31859
  if (offsetLeft - dragLeft > marginSize) {
31843
- if (width > minWidth) {
31860
+ if (width > dragMinWidth) {
31844
31861
  boxElem.style.width = `${width < maxWidth ? width : maxWidth}px`;
31845
31862
  boxElem.style.left = `${offsetLeft - dragLeft}px`;
31846
31863
  }
31847
31864
  }
31848
31865
  if (offsetTop + height + marginSize < visibleHeight) {
31849
- if (height > minHeight) {
31866
+ if (height > dragMinHeight) {
31850
31867
  boxElem.style.height = `${height < maxHeight ? height : maxHeight}px`;
31851
31868
  }
31852
31869
  }
@@ -31855,7 +31872,7 @@ var VxeModalComponent = defineVxeComponent({
31855
31872
  dragTop = disY - evnt.clientY;
31856
31873
  height = clientHeight + dragTop;
31857
31874
  if (offsetTop - dragTop > marginSize) {
31858
- if (height > minHeight) {
31875
+ if (height > dragMinHeight) {
31859
31876
  boxElem.style.height = `${height < maxHeight ? height : maxHeight}px`;
31860
31877
  boxElem.style.top = `${offsetTop - dragTop}px`;
31861
31878
  }
@@ -31865,7 +31882,7 @@ var VxeModalComponent = defineVxeComponent({
31865
31882
  dragLeft = evnt.clientX - disX;
31866
31883
  width = dragLeft + clientWidth;
31867
31884
  if (offsetLeft + width + marginSize < visibleWidth) {
31868
- if (width > minWidth) {
31885
+ if (width > dragMinWidth) {
31869
31886
  boxElem.style.width = `${width < maxWidth ? width : maxWidth}px`;
31870
31887
  }
31871
31888
  }
@@ -31876,12 +31893,12 @@ var VxeModalComponent = defineVxeComponent({
31876
31893
  width = dragLeft + clientWidth;
31877
31894
  height = dragTop + clientHeight;
31878
31895
  if (offsetLeft + width + marginSize < visibleWidth) {
31879
- if (width > minWidth) {
31896
+ if (width > dragMinWidth) {
31880
31897
  boxElem.style.width = `${width < maxWidth ? width : maxWidth}px`;
31881
31898
  }
31882
31899
  }
31883
31900
  if (offsetTop - dragTop > marginSize) {
31884
- if (height > minHeight) {
31901
+ if (height > dragMinHeight) {
31885
31902
  boxElem.style.height = `${height < maxHeight ? height : maxHeight}px`;
31886
31903
  boxElem.style.top = `${offsetTop - dragTop}px`;
31887
31904
  }
@@ -31893,12 +31910,12 @@ var VxeModalComponent = defineVxeComponent({
31893
31910
  width = dragLeft + clientWidth;
31894
31911
  height = dragTop + clientHeight;
31895
31912
  if (offsetLeft + width + marginSize < visibleWidth) {
31896
- if (width > minWidth) {
31913
+ if (width > dragMinWidth) {
31897
31914
  boxElem.style.width = `${width < maxWidth ? width : maxWidth}px`;
31898
31915
  }
31899
31916
  }
31900
31917
  if (offsetTop + height + marginSize < visibleHeight) {
31901
- if (height > minHeight) {
31918
+ if (height > dragMinHeight) {
31902
31919
  boxElem.style.height = `${height < maxHeight ? height : maxHeight}px`;
31903
31920
  }
31904
31921
  }
@@ -31907,7 +31924,7 @@ var VxeModalComponent = defineVxeComponent({
31907
31924
  dragTop = evnt.clientY - disY;
31908
31925
  height = dragTop + clientHeight;
31909
31926
  if (offsetTop + height + marginSize < visibleHeight) {
31910
- if (height > minHeight) {
31927
+ if (height > dragMinHeight) {
31911
31928
  boxElem.style.height = `${height < maxHeight ? height : maxHeight}px`;
31912
31929
  }
31913
31930
  }