vxe-pc-ui 4.20.11 → 4.20.13

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 (74) hide show
  1. package/dist/all.esm.js +43 -12
  2. package/dist/style.css +1 -1
  3. package/dist/style.min.css +1 -1
  4. package/es/icon/style.css +1 -1
  5. package/es/list/src/list.js +7 -1
  6. package/es/scrollbar/src/scrollbar.js +6 -1
  7. package/es/scrollbar/style.css +25 -12
  8. package/es/scrollbar/style.min.css +1 -1
  9. package/es/select/src/select.js +7 -1
  10. package/es/style.css +1 -1
  11. package/es/style.min.css +1 -1
  12. package/es/tabs/src/tabs.js +14 -6
  13. package/es/tree/src/tree.js +7 -1
  14. package/es/ui/index.js +1 -1
  15. package/es/ui/src/log.js +1 -1
  16. package/es/vxe-scrollbar/style.css +25 -12
  17. package/es/vxe-scrollbar/style.min.css +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 +46 -18
  21. package/lib/index.umd.min.js +1 -1
  22. package/lib/list/src/list.js +7 -2
  23. package/lib/list/src/list.min.js +1 -1
  24. package/lib/scrollbar/src/scrollbar.js +7 -2
  25. package/lib/scrollbar/src/scrollbar.min.js +1 -1
  26. package/lib/scrollbar/style/style.css +25 -12
  27. package/lib/scrollbar/style/style.min.css +1 -1
  28. package/lib/select/src/select.js +7 -2
  29. package/lib/select/src/select.min.js +1 -1
  30. package/lib/style.css +1 -1
  31. package/lib/style.min.css +1 -1
  32. package/lib/tabs/src/tabs.js +14 -6
  33. package/lib/tabs/src/tabs.min.js +1 -1
  34. package/lib/tree/src/tree.js +7 -2
  35. package/lib/tree/src/tree.min.js +1 -1
  36. package/lib/ui/index.js +1 -1
  37. package/lib/ui/index.min.js +1 -1
  38. package/lib/ui/src/log.js +1 -1
  39. package/lib/ui/src/log.min.js +1 -1
  40. package/lib/vxe-scrollbar/style/style.css +25 -12
  41. package/lib/vxe-scrollbar/style/style.min.css +1 -1
  42. package/package.json +3 -3
  43. package/packages/list/src/list.ts +7 -1
  44. package/packages/scrollbar/src/scrollbar.ts +6 -1
  45. package/packages/select/src/select.ts +7 -1
  46. package/packages/tabs/src/tabs.ts +14 -6
  47. package/packages/tree/src/tree.ts +7 -1
  48. package/styles/components/scrollbar.scss +30 -12
  49. package/styles/theme/base.scss +4 -0
  50. package/types/components/card.d.ts +1 -1
  51. package/types/components/drawer.d.ts +1 -1
  52. package/types/components/icon-picker.d.ts +1 -1
  53. package/types/components/layout-aside.d.ts +2 -2
  54. package/types/components/layout-body.d.ts +1 -1
  55. package/types/components/list.d.ts +1 -1
  56. package/types/components/menu.d.ts +10 -1
  57. package/types/components/modal.d.ts +1 -1
  58. package/types/components/scrollbar.d.ts +5 -0
  59. package/types/components/select.d.ts +1 -1
  60. package/types/components/table.d.ts +4 -0
  61. package/types/components/tooltip.d.ts +1 -1
  62. package/types/components/tree.d.ts +1 -1
  63. /package/es/icon/{iconfont.1792226845944.ttf → iconfont.1792480474156.ttf} +0 -0
  64. /package/es/icon/{iconfont.1792226845944.woff → iconfont.1792480474156.woff} +0 -0
  65. /package/es/icon/{iconfont.1792226845944.woff2 → iconfont.1792480474156.woff2} +0 -0
  66. /package/es/{iconfont.1792226845944.ttf → iconfont.1792480474156.ttf} +0 -0
  67. /package/es/{iconfont.1792226845944.woff → iconfont.1792480474156.woff} +0 -0
  68. /package/es/{iconfont.1792226845944.woff2 → iconfont.1792480474156.woff2} +0 -0
  69. /package/lib/icon/style/{iconfont.1792226845944.ttf → iconfont.1792480474156.ttf} +0 -0
  70. /package/lib/icon/style/{iconfont.1792226845944.woff → iconfont.1792480474156.woff} +0 -0
  71. /package/lib/icon/style/{iconfont.1792226845944.woff2 → iconfont.1792480474156.woff2} +0 -0
  72. /package/lib/{iconfont.1792226845944.ttf → iconfont.1792480474156.ttf} +0 -0
  73. /package/lib/{iconfont.1792226845944.woff → iconfont.1792480474156.woff} +0 -0
  74. /package/lib/{iconfont.1792226845944.woff2 → iconfont.1792480474156.woff2} +0 -0
package/lib/index.umd.js CHANGED
@@ -3372,7 +3372,7 @@ if (typeof window !== 'undefined') {
3372
3372
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
3373
3373
  var es_array_push = __webpack_require__(4114);
3374
3374
  ;// ./node_modules/@vxe-ui/core/es/src/core.js
3375
- const coreVersion = "4.4.37";
3375
+ const coreVersion = "4.4.38";
3376
3376
  const VxeCore = {
3377
3377
  coreVersion,
3378
3378
  uiVersion: '',
@@ -4000,7 +4000,7 @@ function createLog(type, name) {
4000
4000
  return msg;
4001
4001
  };
4002
4002
  }
4003
- const version = "4.4.37";
4003
+ const version = "4.4.38";
4004
4004
  const log = {
4005
4005
  create: createLog,
4006
4006
  warn: createLog('warn', `v${version}`),
@@ -5334,7 +5334,7 @@ function checkDynamic() {
5334
5334
  const {
5335
5335
  log: log_log
5336
5336
  } = VxeUI;
5337
- const uiVersion = `ui v${"4.20.11"}`;
5337
+ const uiVersion = `ui v${"4.20.13"}`;
5338
5338
  function createComponentLog(name) {
5339
5339
  const tableVersion = VxeUI.tableVersion ? `table v${VxeUI.tableVersion}` : '';
5340
5340
  const ganttVersion = VxeUI.ganttVersion ? `gantt v${VxeUI.ganttVersion}` : '';
@@ -5352,7 +5352,7 @@ const errLog = log_log.create('error', uiVersion);
5352
5352
 
5353
5353
 
5354
5354
 
5355
- const ui_version = "4.20.11";
5355
+ const ui_version = "4.20.13";
5356
5356
  VxeUI.uiVersion = ui_version;
5357
5357
  VxeUI.dynamicApp = dynamicApp;
5358
5358
  function config(options) {
@@ -8277,6 +8277,10 @@ function createInternalData() {
8277
8277
  type: Boolean,
8278
8278
  default: () => scrollbar_getConfig().scrollbar.native
8279
8279
  },
8280
+ fluentOverlay: {
8281
+ type: Boolean,
8282
+ default: () => scrollbar_getConfig().scrollbar.fluentOverlay
8283
+ },
8280
8284
  padding: {
8281
8285
  type: Boolean,
8282
8286
  default: () => scrollbar_getConfig().scrollbar.padding
@@ -8421,7 +8425,8 @@ function createInternalData() {
8421
8425
  native,
8422
8426
  theme,
8423
8427
  className,
8424
- padding
8428
+ padding,
8429
+ fluentOverlay
8425
8430
  } = props;
8426
8431
  const {
8427
8432
  yThumbHeight,
@@ -8434,7 +8439,7 @@ function createInternalData() {
8434
8439
  const yVisible = computeYVisible.value;
8435
8440
  const xAutoHide = computeXAutoHide.value;
8436
8441
  const yAutoHide = computeYAutoHide.value;
8437
- return scrollbar_domUtils.buildClass(['vxe-scrollbar', vSize ? `size--${vSize}` : '', theme ? `theme--${theme}` : '', `ov-x--${xVisible === false ? 'hidden' : 'visible'}`, `ov-y--${yVisible === false ? 'hidden' : 'visible'}`, `sx-pos--${xToTop ? 'top' : 'bottom'}`, `sy-pos--${yToLeft ? 'left' : 'right'}`, native ? 'is--native' : 'is--virtual', className], {
8442
+ return scrollbar_domUtils.buildClass(['vxe-scrollbar', vSize ? `size--${vSize}` : '', theme ? `theme--${theme}` : '', fluentOverlay ? 'is--fluent-overlay' : 'is--default-mode', `ov-x--${xVisible === false ? 'hidden' : 'visible'}`, `ov-y--${yVisible === false ? 'hidden' : 'visible'}`, `sx-pos--${xToTop ? 'top' : 'bottom'}`, `sy-pos--${yToLeft ? 'left' : 'right'}`, native ? 'is--native' : 'is--virtual', className], {
8438
8443
  'is--padding': padding,
8439
8444
  'ov-x--auto-hide': xAutoHide,
8440
8445
  'ov-y--auto-hide': yAutoHide,
@@ -14012,11 +14017,12 @@ let crossListDragRowObj = null;
14012
14017
  yThumbHeight,
14013
14018
  xThumbWidth
14014
14019
  } = reactData;
14020
+ const scrollbarOpts = computeScrollbarOpts.value;
14015
14021
  const scrollbarXToTop = computeScrollbarXToTop.value;
14016
14022
  const scrollbarYToLeft = computeScrollbarYToLeft.value;
14017
14023
  const scrollXVisible = computeScrollXVisible.value;
14018
14024
  const scrollYVisible = computeScrollYVisible.value;
14019
- return list_domUtils.buildClass(['vxe-scrollbar is--virtual', `ov-x--${scrollXVisible === false ? 'hidden' : 'visible'}`, `ov-y--${scrollYVisible === false ? 'hidden' : 'visible'}`, `sx-pos--${scrollbarXToTop ? 'top' : 'bottom'}`, `sy-pos--${scrollbarYToLeft ? 'left' : 'right'}`], {
14025
+ return list_domUtils.buildClass(['vxe-scrollbar is--virtual', scrollbarOpts.fluentOverlay ? 'is--fluent-overlay' : 'is--default-mode', `ov-x--${scrollXVisible === false ? 'hidden' : 'visible'}`, `ov-y--${scrollYVisible === false ? 'hidden' : 'visible'}`, `sx-pos--${scrollbarXToTop ? 'top' : 'bottom'}`, `sy-pos--${scrollbarYToLeft ? 'left' : 'right'}`], {
14020
14026
  'overflow-y': yThumbHeight,
14021
14027
  'overflow-x': xThumbWidth
14022
14028
  });
@@ -15806,13 +15812,17 @@ let crossListDragRowObj = null;
15806
15812
  if (isVScrollbar) {
15807
15813
  if (!scrollObserver) {
15808
15814
  const el = refElem.value;
15809
- const viewInnerEl = refVirtualSpaceElem.value;
15815
+ const viewSpaceEl = refVirtualSpaceElem.value;
15816
+ const viewInnerEl = refVirtualBody.value;
15810
15817
  const scrollObserver = list_globalResize.create(() => {
15811
15818
  reScrollFlag.value++;
15812
15819
  });
15813
15820
  if (el) {
15814
15821
  scrollObserver.observe(el);
15815
15822
  }
15823
+ if (viewSpaceEl) {
15824
+ scrollObserver.observe(viewSpaceEl);
15825
+ }
15816
15826
  if (viewInnerEl) {
15817
15827
  scrollObserver.observe(viewInnerEl);
15818
15828
  }
@@ -42626,11 +42636,12 @@ function select_createInternalData() {
42626
42636
  yThumbHeight,
42627
42637
  xThumbWidth
42628
42638
  } = reactData;
42639
+ const scrollbarOpts = computeScrollbarOpts.value;
42629
42640
  const scrollbarXToTop = computeScrollbarXToTop.value;
42630
42641
  const scrollbarYToLeft = computeScrollbarYToLeft.value;
42631
42642
  const scrollXVisible = computeScrollXVisible.value;
42632
42643
  const scrollYVisible = computeScrollYVisible.value;
42633
- return select_domUtils.buildClass(['vxe-scrollbar is--virtual', `ov-x--${scrollXVisible === false ? 'hidden' : 'visible'}`, `ov-y--${scrollYVisible === false ? 'hidden' : 'visible'}`, `sx-pos--${scrollbarXToTop ? 'top' : 'bottom'}`, `sy-pos--${scrollbarYToLeft ? 'left' : 'right'}`], {
42644
+ return select_domUtils.buildClass(['vxe-scrollbar is--virtual', scrollbarOpts.fluentOverlay ? 'is--fluent-overlay' : 'is--default-mode', `ov-x--${scrollXVisible === false ? 'hidden' : 'visible'}`, `ov-y--${scrollYVisible === false ? 'hidden' : 'visible'}`, `sx-pos--${scrollbarXToTop ? 'top' : 'bottom'}`, `sy-pos--${scrollbarYToLeft ? 'left' : 'right'}`], {
42634
42645
  'overflow-y': yThumbHeight,
42635
42646
  'overflow-x': xThumbWidth
42636
42647
  });
@@ -43776,13 +43787,17 @@ function select_createInternalData() {
43776
43787
  if (isVScrollbar) {
43777
43788
  if (!scrollObserver) {
43778
43789
  const el = refElem.value;
43779
- const viewInnerEl = refVirtualSpaceElem.value;
43790
+ const viewSpaceEl = refVirtualSpaceElem.value;
43791
+ const viewInnerEl = refVirtualBody.value;
43780
43792
  const scrollObserver = select_globalResize.create(() => {
43781
43793
  reScrollFlag.value++;
43782
43794
  });
43783
43795
  if (el) {
43784
43796
  scrollObserver.observe(el);
43785
43797
  }
43798
+ if (viewSpaceEl) {
43799
+ scrollObserver.observe(viewSpaceEl);
43800
+ }
43786
43801
  if (viewInnerEl) {
43787
43802
  scrollObserver.observe(viewInnerEl);
43788
43803
  }
@@ -51732,7 +51747,7 @@ const scrollbarOffsetSize = 20;
51732
51747
  if (index > -1) {
51733
51748
  const tabEl = children[index];
51734
51749
  if (tabEl) {
51735
- const tabHeight = tabEl.clientHeight;
51750
+ let tabHeight = tabEl.clientHeight;
51736
51751
  const tabWidth = tabEl.clientWidth;
51737
51752
  if (tabType === 'card') {
51738
51753
  lintWidth = tabWidth;
@@ -51743,8 +51758,12 @@ const scrollbarOffsetSize = 20;
51743
51758
  lintHeight = tabHeight;
51744
51759
  lintTop = tabEl.offsetTop - 1;
51745
51760
  } else {
51746
- lintHeight = Math.max(4, Math.floor(tabHeight * 0.6));
51747
- lintTop = tabEl.offsetTop + Math.floor((tabHeight - lintHeight) / 2);
51761
+ const tabStyle = getComputedStyle(tabEl);
51762
+ const paddingTop = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(tabStyle.paddingTop);
51763
+ const paddingBottom = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(tabStyle.paddingBottom);
51764
+ tabHeight -= paddingTop + paddingBottom;
51765
+ lintHeight = Math.max(4, tabHeight);
51766
+ lintTop = tabEl.offsetTop + paddingTop + Math.floor((tabHeight - lintHeight) / 2);
51748
51767
  }
51749
51768
  }
51750
51769
  }
@@ -51753,7 +51772,7 @@ const scrollbarOffsetSize = 20;
51753
51772
  if (index > -1) {
51754
51773
  const tabEl = children[index];
51755
51774
  if (tabEl) {
51756
- const tabWidth = tabEl.clientWidth;
51775
+ let tabWidth = tabEl.clientWidth;
51757
51776
  if (tabType === 'card') {
51758
51777
  lintWidth = tabWidth + 1;
51759
51778
  lintLeft = tabEl.offsetLeft;
@@ -51761,8 +51780,12 @@ const scrollbarOffsetSize = 20;
51761
51780
  lintWidth = tabWidth;
51762
51781
  lintLeft = tabEl.offsetLeft - 1;
51763
51782
  } else {
51764
- lintWidth = Math.max(4, Math.floor(tabWidth * 0.6));
51765
- lintLeft = tabEl.offsetLeft + Math.floor((tabWidth - lintWidth) / 2);
51783
+ const tabStyle = getComputedStyle(tabEl);
51784
+ const paddingLeft = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(tabStyle.paddingLeft);
51785
+ const paddingRight = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(tabStyle.paddingRight);
51786
+ tabWidth -= paddingLeft + paddingRight;
51787
+ lintWidth = Math.max(4, tabWidth);
51788
+ lintLeft = tabEl.offsetLeft + paddingLeft + Math.floor((tabWidth - lintWidth) / 2);
51766
51789
  }
51767
51790
  }
51768
51791
  }
@@ -54423,11 +54446,12 @@ let crossTreeDragNodeObj = null;
54423
54446
  yThumbHeight,
54424
54447
  xThumbWidth
54425
54448
  } = reactData;
54449
+ const scrollbarOpts = computeScrollbarOpts.value;
54426
54450
  const scrollbarXToTop = computeScrollbarXToTop.value;
54427
54451
  const scrollbarYToLeft = computeScrollbarYToLeft.value;
54428
54452
  const scrollXVisible = computeScrollXVisible.value;
54429
54453
  const scrollYVisible = computeScrollYVisible.value;
54430
- return domUtils.buildClass(['vxe-scrollbar is--virtual', `ov-x--${scrollXVisible === false ? 'hidden' : 'visible'}`, `ov-y--${scrollYVisible === false ? 'hidden' : 'visible'}`, `sx-pos--${scrollbarXToTop ? 'top' : 'bottom'}`, `sy-pos--${scrollbarYToLeft ? 'left' : 'right'}`], {
54454
+ return domUtils.buildClass(['vxe-scrollbar is--virtual', scrollbarOpts.fluentOverlay ? 'is--fluent-overlay' : 'is--default-mode', `ov-x--${scrollXVisible === false ? 'hidden' : 'visible'}`, `ov-y--${scrollYVisible === false ? 'hidden' : 'visible'}`, `sx-pos--${scrollbarXToTop ? 'top' : 'bottom'}`, `sy-pos--${scrollbarYToLeft ? 'left' : 'right'}`], {
54431
54455
  'overflow-y': yThumbHeight,
54432
54456
  'overflow-x': xThumbWidth
54433
54457
  });
@@ -57481,13 +57505,17 @@ let crossTreeDragNodeObj = null;
57481
57505
  if (isVScrollbar) {
57482
57506
  if (!scrollObserver) {
57483
57507
  const el = refElem.value;
57484
- const viewInnerEl = refVirtualSpaceElem.value;
57508
+ const viewSpaceEl = refVirtualSpaceElem.value;
57509
+ const viewInnerEl = refVirtualBody.value;
57485
57510
  const scrollObserver = globalResize.create(() => {
57486
57511
  reScrollFlag.value++;
57487
57512
  });
57488
57513
  if (el) {
57489
57514
  scrollObserver.observe(el);
57490
57515
  }
57516
+ if (viewSpaceEl) {
57517
+ scrollObserver.observe(viewSpaceEl);
57518
+ }
57491
57519
  if (viewInnerEl) {
57492
57520
  scrollObserver.observe(viewInnerEl);
57493
57521
  }