vxe-pc-ui 3.19.3 → 3.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 (52) hide show
  1. package/es/form/src/form.js +2 -2
  2. package/es/icon/style.css +1 -1
  3. package/es/modal/src/modal.js +18 -18
  4. package/es/scrollbar/src/scrollbar.js +20 -1
  5. package/es/scrollbar/style.css +42 -3
  6. package/es/scrollbar/style.min.css +1 -1
  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/es/vxe-scrollbar/style.css +42 -3
  12. package/es/vxe-scrollbar/style.min.css +1 -1
  13. package/lib/form/src/form.js +2 -2
  14. package/lib/form/src/form.min.js +1 -1
  15. package/lib/icon/style/style.css +1 -1
  16. package/lib/icon/style/style.min.css +1 -1
  17. package/lib/index.umd.js +45 -23
  18. package/lib/index.umd.min.js +1 -1
  19. package/lib/modal/src/modal.js +19 -17
  20. package/lib/modal/src/modal.min.js +1 -1
  21. package/lib/scrollbar/src/scrollbar.js +22 -2
  22. package/lib/scrollbar/src/scrollbar.min.js +1 -1
  23. package/lib/scrollbar/style/style.css +42 -3
  24. package/lib/scrollbar/style/style.min.css +1 -1
  25. package/lib/style.css +1 -1
  26. package/lib/style.min.css +1 -1
  27. package/lib/ui/index.js +1 -1
  28. package/lib/ui/index.min.js +1 -1
  29. package/lib/ui/src/log.js +1 -1
  30. package/lib/ui/src/log.min.js +1 -1
  31. package/lib/vxe-scrollbar/style/style.css +42 -3
  32. package/lib/vxe-scrollbar/style/style.min.css +1 -1
  33. package/package.json +1 -1
  34. package/packages/form/src/form.ts +2 -2
  35. package/packages/modal/src/modal.ts +18 -18
  36. package/packages/scrollbar/src/scrollbar.ts +22 -1
  37. package/styles/components/scrollbar.scss +70 -4
  38. package/styles/theme/dark.scss +3 -3
  39. package/styles/variable.scss +3 -3
  40. package/types/components/scrollbar.d.ts +13 -0
  41. /package/es/icon/{iconfont.1791602910236.ttf → iconfont.1791695426253.ttf} +0 -0
  42. /package/es/icon/{iconfont.1791602910236.woff → iconfont.1791695426253.woff} +0 -0
  43. /package/es/icon/{iconfont.1791602910236.woff2 → iconfont.1791695426253.woff2} +0 -0
  44. /package/es/{iconfont.1791602910236.ttf → iconfont.1791695426253.ttf} +0 -0
  45. /package/es/{iconfont.1791602910236.woff → iconfont.1791695426253.woff} +0 -0
  46. /package/es/{iconfont.1791602910236.woff2 → iconfont.1791695426253.woff2} +0 -0
  47. /package/lib/icon/style/{iconfont.1791602910236.ttf → iconfont.1791695426253.ttf} +0 -0
  48. /package/lib/icon/style/{iconfont.1791602910236.woff → iconfont.1791695426253.woff} +0 -0
  49. /package/lib/icon/style/{iconfont.1791602910236.woff2 → iconfont.1791695426253.woff2} +0 -0
  50. /package/lib/{iconfont.1791602910236.ttf → iconfont.1791695426253.ttf} +0 -0
  51. /package/lib/{iconfont.1791602910236.woff → iconfont.1791695426253.woff} +0 -0
  52. /package/lib/{iconfont.1791602910236.woff2 → iconfont.1791695426253.woff2} +0 -0
package/lib/index.umd.js CHANGED
@@ -13347,7 +13347,7 @@ var es_array_filter = __webpack_require__(2008);
13347
13347
 
13348
13348
 
13349
13349
  var log_log = VxeUI.log;
13350
- var uiVersion = "ui v".concat("3.19.3");
13350
+ var uiVersion = "ui v".concat("3.19.5");
13351
13351
  function createComponentLog(name) {
13352
13352
  var tableVersion = VxeUI.tableVersion ? "table v".concat(VxeUI.tableVersion) : '';
13353
13353
  var ganttVersion = VxeUI.ganttVersion ? "gantt v".concat(VxeUI.ganttVersion) : '';
@@ -13367,7 +13367,7 @@ var errLog = log_log.create('error', uiVersion);
13367
13367
 
13368
13368
 
13369
13369
 
13370
- var ui_version = "3.19.3";
13370
+ var ui_version = "3.19.5";
13371
13371
  VxeUI.uiVersion = ui_version;
13372
13372
  VxeUI.dynamicApp = dynamicApp;
13373
13373
  function config(options) {
@@ -44765,7 +44765,7 @@ function form_createInternalData() {
44765
44765
  var fullItemList = internalData.fullItemList;
44766
44766
  $xeForm.clearValidate();
44767
44767
  if (readonly) {
44768
- return $xeForm.$nextTick();
44768
+ return Promise.resolve();
44769
44769
  }
44770
44770
  return $xeForm.beginValidate(fullItemList, '', callback).then(function (params) {
44771
44771
  $xeForm.recalculate();
@@ -44777,7 +44777,7 @@ function form_createInternalData() {
44777
44777
  var props = $xeForm;
44778
44778
  var readonly = props.readonly;
44779
44779
  if (readonly) {
44780
- return $xeForm.$nextTick();
44780
+ return Promise.resolve();
44781
44781
  }
44782
44782
  var fields = [];
44783
44783
  if (fieldOrItem) {
@@ -47717,6 +47717,12 @@ function scrollbar_createInternalData() {
47717
47717
  return scrollbar_getConfig().scrollbar.native;
47718
47718
  }
47719
47719
  },
47720
+ padding: {
47721
+ type: Boolean,
47722
+ default: function _default() {
47723
+ return scrollbar_getConfig().scrollbar.padding;
47724
+ }
47725
+ },
47720
47726
  xConfig: Object,
47721
47727
  yConfig: Object,
47722
47728
  className: {
@@ -47804,12 +47810,16 @@ function scrollbar_createInternalData() {
47804
47810
  var props = $xeScrollbar;
47805
47811
  var reactData = $xeScrollbar.reactData;
47806
47812
  var native = props.native,
47807
- className = props.className;
47813
+ className = props.className,
47814
+ padding = props.padding;
47808
47815
  var yThumbHeight = reactData.yThumbHeight,
47809
47816
  xThumbWidth = reactData.xThumbWidth;
47810
47817
  var xOpts = $xeScrollbar.computeXOpts;
47811
47818
  var yOpts = $xeScrollbar.computeYOpts;
47812
- return scrollbar_domUtils.buildClass(['vxe-scrollbar', "ov-x--".concat(xOpts.visible || 'visible'), "ov-y--".concat(yOpts.visible || 'visible'), native ? 'is--native' : 'is--virtual', className], {
47819
+ var xToTop = $xeScrollbar.computeXToTop;
47820
+ var yToLeft = $xeScrollbar.computeYToLeft;
47821
+ return scrollbar_domUtils.buildClass(['vxe-scrollbar', "ov-x--".concat(xOpts.visible || 'visible'), "ov-y--".concat(yOpts.visible || 'visible'), "sx-pos--".concat(xToTop ? 'top' : 'bottom'), "sy-pos--".concat(yToLeft ? 'left' : 'right'), native ? 'is--native' : 'is--virtual', className], {
47822
+ 'is--padding': padding,
47813
47823
  'ov-x--auto-hide': xOpts.autoHide,
47814
47824
  'ov-y--auto-hide': yOpts.autoHide,
47815
47825
  'overflow-y': yThumbHeight,
@@ -47837,6 +47847,16 @@ function scrollbar_createInternalData() {
47837
47847
  var $xeScrollbar = this;
47838
47848
  var props = $xeScrollbar;
47839
47849
  return Object.assign({}, scrollbar_getConfig().scrollbar.yConfig, props.yConfig);
47850
+ },
47851
+ computeXToTop: function computeXToTop() {
47852
+ var $xeScrollbar = this;
47853
+ var xOpts = $xeScrollbar.computeXOpts;
47854
+ return xOpts.position === 'top';
47855
+ },
47856
+ computeYToLeft: function computeYToLeft() {
47857
+ var $xeScrollbar = this;
47858
+ var yOpts = $xeScrollbar.computeYOpts;
47859
+ return yOpts.position === 'left';
47840
47860
  }
47841
47861
  },
47842
47862
  methods: {
@@ -50542,8 +50562,8 @@ var lockScrollCssWidthKey = '--vxe-ui-modal-lock-scroll-view-width';
50542
50562
  if (boxElem) {
50543
50563
  boxElem.style.width = width ? toCssUnit(width) : '';
50544
50564
  boxElem.style.height = height ? toCssUnit(height) : '';
50545
- boxElem.style.minWidth = !isMsg && !isMinimizeStatus && minWidth ? toCssUnit(minWidth) : '';
50546
- boxElem.style.minHeight = !isMsg && !isMinimizeStatus && minHeight ? toCssUnit(minHeight) : '';
50565
+ boxElem.style.minWidth = !isMsg && !isMinimizeStatus && minWidth ? isScale(minWidth) ? minWidth : toCssUnit(minWidth) : '';
50566
+ boxElem.style.minHeight = !isMsg && !isMinimizeStatus && minHeight ? isScale(minHeight) ? minHeight : toCssUnit(minHeight) : '';
50547
50567
  }
50548
50568
  return $xeModal.$nextTick();
50549
50569
  },
@@ -51343,7 +51363,9 @@ var lockScrollCssWidthKey = '--vxe-ui-modal-lock-scroll-view-width';
51343
51363
  var props = $xeModal;
51344
51364
  var reactData = $xeModal.reactData;
51345
51365
  evnt.preventDefault();
51346
- var storage = props.storage,
51366
+ var minWidth = props.minWidth,
51367
+ minHeight = props.minHeight,
51368
+ storage = props.storage,
51347
51369
  isWithinAppendTo = props.isWithinAppendTo;
51348
51370
  var el = $xeModal.$refs.refElem;
51349
51371
  var parentWrapperEl = getPopupWrapperElement(isWithinAppendTo ? el : document.body);
@@ -51355,8 +51377,8 @@ var lockScrollCssWidthKey = '--vxe-ui-modal-lock-scroll-view-width';
51355
51377
  var marginSize = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(props.marginSize);
51356
51378
  var targetElem = evnt.target;
51357
51379
  var type = targetElem.getAttribute('data-type');
51358
- var minWidth = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(props.minWidth);
51359
- var minHeight = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(props.minHeight);
51380
+ var 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);
51381
+ var 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);
51360
51382
  var maxWidth = visibleWidth;
51361
51383
  var maxHeight = visibleHeight;
51362
51384
  var boxElem = $xeModal.getBox();
@@ -51380,7 +51402,7 @@ var lockScrollCssWidthKey = '--vxe-ui-modal-lock-scroll-view-width';
51380
51402
  dragLeft = disX - evnt.clientX;
51381
51403
  width = dragLeft + clientWidth;
51382
51404
  if (offsetLeft - dragLeft > marginSize) {
51383
- if (width > minWidth) {
51405
+ if (width > dragMinWidth) {
51384
51406
  boxElem.style.width = "".concat(width < maxWidth ? width : maxWidth, "px");
51385
51407
  boxElem.style.left = "".concat(offsetLeft - dragLeft, "px");
51386
51408
  }
@@ -51392,13 +51414,13 @@ var lockScrollCssWidthKey = '--vxe-ui-modal-lock-scroll-view-width';
51392
51414
  width = dragLeft + clientWidth;
51393
51415
  height = dragTop + clientHeight;
51394
51416
  if (offsetLeft - dragLeft > marginSize) {
51395
- if (width > minWidth) {
51417
+ if (width > dragMinWidth) {
51396
51418
  boxElem.style.width = "".concat(width < maxWidth ? width : maxWidth, "px");
51397
51419
  boxElem.style.left = "".concat(offsetLeft - dragLeft, "px");
51398
51420
  }
51399
51421
  }
51400
51422
  if (offsetTop - dragTop > marginSize) {
51401
- if (height > minHeight) {
51423
+ if (height > dragMinHeight) {
51402
51424
  boxElem.style.height = "".concat(height < maxHeight ? height : maxHeight, "px");
51403
51425
  boxElem.style.top = "".concat(offsetTop - dragTop, "px");
51404
51426
  }
@@ -51410,13 +51432,13 @@ var lockScrollCssWidthKey = '--vxe-ui-modal-lock-scroll-view-width';
51410
51432
  width = dragLeft + clientWidth;
51411
51433
  height = dragTop + clientHeight;
51412
51434
  if (offsetLeft - dragLeft > marginSize) {
51413
- if (width > minWidth) {
51435
+ if (width > dragMinWidth) {
51414
51436
  boxElem.style.width = "".concat(width < maxWidth ? width : maxWidth, "px");
51415
51437
  boxElem.style.left = "".concat(offsetLeft - dragLeft, "px");
51416
51438
  }
51417
51439
  }
51418
51440
  if (offsetTop + height + marginSize < visibleHeight) {
51419
- if (height > minHeight) {
51441
+ if (height > dragMinHeight) {
51420
51442
  boxElem.style.height = "".concat(height < maxHeight ? height : maxHeight, "px");
51421
51443
  }
51422
51444
  }
@@ -51425,7 +51447,7 @@ var lockScrollCssWidthKey = '--vxe-ui-modal-lock-scroll-view-width';
51425
51447
  dragTop = disY - evnt.clientY;
51426
51448
  height = clientHeight + dragTop;
51427
51449
  if (offsetTop - dragTop > marginSize) {
51428
- if (height > minHeight) {
51450
+ if (height > dragMinHeight) {
51429
51451
  boxElem.style.height = "".concat(height < maxHeight ? height : maxHeight, "px");
51430
51452
  boxElem.style.top = "".concat(offsetTop - dragTop, "px");
51431
51453
  }
@@ -51435,7 +51457,7 @@ var lockScrollCssWidthKey = '--vxe-ui-modal-lock-scroll-view-width';
51435
51457
  dragLeft = evnt.clientX - disX;
51436
51458
  width = dragLeft + clientWidth;
51437
51459
  if (offsetLeft + width + marginSize < visibleWidth) {
51438
- if (width > minWidth) {
51460
+ if (width > dragMinWidth) {
51439
51461
  boxElem.style.width = "".concat(width < maxWidth ? width : maxWidth, "px");
51440
51462
  }
51441
51463
  }
@@ -51446,12 +51468,12 @@ var lockScrollCssWidthKey = '--vxe-ui-modal-lock-scroll-view-width';
51446
51468
  width = dragLeft + clientWidth;
51447
51469
  height = dragTop + clientHeight;
51448
51470
  if (offsetLeft + width + marginSize < visibleWidth) {
51449
- if (width > minWidth) {
51471
+ if (width > dragMinWidth) {
51450
51472
  boxElem.style.width = "".concat(width < maxWidth ? width : maxWidth, "px");
51451
51473
  }
51452
51474
  }
51453
51475
  if (offsetTop - dragTop > marginSize) {
51454
- if (height > minHeight) {
51476
+ if (height > dragMinHeight) {
51455
51477
  boxElem.style.height = "".concat(height < maxHeight ? height : maxHeight, "px");
51456
51478
  boxElem.style.top = "".concat(offsetTop - dragTop, "px");
51457
51479
  }
@@ -51463,12 +51485,12 @@ var lockScrollCssWidthKey = '--vxe-ui-modal-lock-scroll-view-width';
51463
51485
  width = dragLeft + clientWidth;
51464
51486
  height = dragTop + clientHeight;
51465
51487
  if (offsetLeft + width + marginSize < visibleWidth) {
51466
- if (width > minWidth) {
51488
+ if (width > dragMinWidth) {
51467
51489
  boxElem.style.width = "".concat(width < maxWidth ? width : maxWidth, "px");
51468
51490
  }
51469
51491
  }
51470
51492
  if (offsetTop + height + marginSize < visibleHeight) {
51471
- if (height > minHeight) {
51493
+ if (height > dragMinHeight) {
51472
51494
  boxElem.style.height = "".concat(height < maxHeight ? height : maxHeight, "px");
51473
51495
  }
51474
51496
  }
@@ -51477,7 +51499,7 @@ var lockScrollCssWidthKey = '--vxe-ui-modal-lock-scroll-view-width';
51477
51499
  dragTop = evnt.clientY - disY;
51478
51500
  height = dragTop + clientHeight;
51479
51501
  if (offsetTop + height + marginSize < visibleHeight) {
51480
- if (height > minHeight) {
51502
+ if (height > dragMinHeight) {
51481
51503
  boxElem.style.height = "".concat(height < maxHeight ? height : maxHeight, "px");
51482
51504
  }
51483
51505
  }