vxe-pc-ui 4.19.4 → 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 (45) hide show
  1. package/dist/all.esm.js +20 -3
  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/scrollbar/src/scrollbar.js +18 -1
  6. package/es/scrollbar/style.css +42 -3
  7. package/es/scrollbar/style.min.css +1 -1
  8. package/es/style.css +1 -1
  9. package/es/style.min.css +1 -1
  10. package/es/ui/index.js +1 -1
  11. package/es/ui/src/log.js +1 -1
  12. package/es/vxe-scrollbar/style.css +42 -3
  13. package/es/vxe-scrollbar/style.min.css +1 -1
  14. package/lib/icon/style/style.css +1 -1
  15. package/lib/icon/style/style.min.css +1 -1
  16. package/lib/index.umd.js +20 -4
  17. package/lib/index.umd.min.js +1 -1
  18. package/lib/scrollbar/src/scrollbar.js +18 -2
  19. package/lib/scrollbar/src/scrollbar.min.js +1 -1
  20. package/lib/scrollbar/style/style.css +42 -3
  21. package/lib/scrollbar/style/style.min.css +1 -1
  22. package/lib/style.css +1 -1
  23. package/lib/style.min.css +1 -1
  24. package/lib/ui/index.js +1 -1
  25. package/lib/ui/index.min.js +1 -1
  26. package/lib/ui/src/log.js +1 -1
  27. package/lib/ui/src/log.min.js +1 -1
  28. package/lib/vxe-scrollbar/style/style.css +42 -3
  29. package/lib/vxe-scrollbar/style/style.min.css +1 -1
  30. package/package.json +1 -1
  31. package/packages/scrollbar/src/scrollbar.ts +20 -1
  32. package/styles/components/scrollbar.scss +70 -4
  33. package/types/components/scrollbar.d.ts +13 -0
  34. /package/es/icon/{iconfont.1791616163416.ttf → iconfont.1791695434923.ttf} +0 -0
  35. /package/es/icon/{iconfont.1791616163416.woff → iconfont.1791695434923.woff} +0 -0
  36. /package/es/icon/{iconfont.1791616163416.woff2 → iconfont.1791695434923.woff2} +0 -0
  37. /package/es/{iconfont.1791616163416.ttf → iconfont.1791695434923.ttf} +0 -0
  38. /package/es/{iconfont.1791616163416.woff → iconfont.1791695434923.woff} +0 -0
  39. /package/es/{iconfont.1791616163416.woff2 → iconfont.1791695434923.woff2} +0 -0
  40. /package/lib/icon/style/{iconfont.1791616163416.ttf → iconfont.1791695434923.ttf} +0 -0
  41. /package/lib/icon/style/{iconfont.1791616163416.woff → iconfont.1791695434923.woff} +0 -0
  42. /package/lib/icon/style/{iconfont.1791616163416.woff2 → iconfont.1791695434923.woff2} +0 -0
  43. /package/lib/{iconfont.1791616163416.ttf → iconfont.1791695434923.ttf} +0 -0
  44. /package/lib/{iconfont.1791616163416.woff → iconfont.1791695434923.woff} +0 -0
  45. /package/lib/{iconfont.1791616163416.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.4"}`;
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.4";
118
+ const version = "4.19.5";
119
119
  VxeUI.uiVersion = version;
120
120
  VxeUI.dynamicApp = dynamicApp;
121
121
  function config(options) {
@@ -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
  };