vxe-pc-ui 4.18.22 → 4.18.23

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 (53) hide show
  1. package/dist/all.esm.js +39 -14
  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 +37 -12
  6. package/es/scrollbar/style.css +2 -2
  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/upload/style.css +5 -3
  13. package/es/upload/style.min.css +1 -1
  14. package/es/vxe-scrollbar/style.css +2 -2
  15. package/es/vxe-scrollbar/style.min.css +1 -1
  16. package/es/vxe-upload/style.css +5 -3
  17. package/es/vxe-upload/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 +34 -10
  21. package/lib/index.umd.min.js +1 -1
  22. package/lib/scrollbar/src/scrollbar.js +32 -8
  23. package/lib/scrollbar/src/scrollbar.min.js +1 -1
  24. package/lib/scrollbar/style/style.css +2 -2
  25. package/lib/scrollbar/style/style.min.css +1 -1
  26. package/lib/style.css +1 -1
  27. package/lib/style.min.css +1 -1
  28. package/lib/ui/index.js +1 -1
  29. package/lib/ui/index.min.js +1 -1
  30. package/lib/ui/src/log.js +1 -1
  31. package/lib/ui/src/log.min.js +1 -1
  32. package/lib/upload/style/style.css +5 -3
  33. package/lib/upload/style/style.min.css +1 -1
  34. package/lib/vxe-scrollbar/style/style.css +2 -2
  35. package/lib/vxe-scrollbar/style/style.min.css +1 -1
  36. package/lib/vxe-upload/style/style.css +5 -3
  37. package/lib/vxe-upload/style/style.min.css +1 -1
  38. package/package.json +1 -1
  39. package/packages/scrollbar/src/scrollbar.ts +37 -12
  40. package/styles/components/scrollbar.scss +2 -2
  41. package/styles/components/upload.scss +5 -3
  42. /package/es/icon/{iconfont.1791471274739.ttf → iconfont.1791517860186.ttf} +0 -0
  43. /package/es/icon/{iconfont.1791471274739.woff → iconfont.1791517860186.woff} +0 -0
  44. /package/es/icon/{iconfont.1791471274739.woff2 → iconfont.1791517860186.woff2} +0 -0
  45. /package/es/{iconfont.1791471274739.ttf → iconfont.1791517860186.ttf} +0 -0
  46. /package/es/{iconfont.1791471274739.woff → iconfont.1791517860186.woff} +0 -0
  47. /package/es/{iconfont.1791471274739.woff2 → iconfont.1791517860186.woff2} +0 -0
  48. /package/lib/icon/style/{iconfont.1791471274739.ttf → iconfont.1791517860186.ttf} +0 -0
  49. /package/lib/icon/style/{iconfont.1791471274739.woff → iconfont.1791517860186.woff} +0 -0
  50. /package/lib/icon/style/{iconfont.1791471274739.woff2 → iconfont.1791517860186.woff2} +0 -0
  51. /package/lib/{iconfont.1791471274739.ttf → iconfont.1791517860186.ttf} +0 -0
  52. /package/lib/{iconfont.1791471274739.woff → iconfont.1791517860186.woff} +0 -0
  53. /package/lib/{iconfont.1791471274739.woff2 → iconfont.1791517860186.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.18.22"}`;
104
+ const uiVersion = `ui v${"4.18.23"}`;
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.18.22";
118
+ const version = "4.18.23";
119
119
  VxeUI.uiVersion = version;
120
120
  VxeUI.dynamicApp = dynamicApp;
121
121
  function config(options) {
@@ -37259,7 +37259,7 @@ var VxeScrollbarComponent = defineVxeComponent({
37259
37259
  const scrollbarPrivateMethods = {};
37260
37260
  Object.assign($xeScrollbar, scrollbarMethods, scrollbarPrivateMethods);
37261
37261
  const renderVN = () => {
37262
- const { native, loading } = props;
37262
+ const { native, loading, autoResize } = props;
37263
37263
  const wrapperStyle = computeWrapperStyle.value;
37264
37264
  const wrapperClss = computeWrapperClss.value;
37265
37265
  const viewClss = computeViewClss.value;
@@ -37275,12 +37275,15 @@ var VxeScrollbarComponent = defineVxeComponent({
37275
37275
  ref: refViewElem,
37276
37276
  class: viewClss,
37277
37277
  onScroll: scrollEvent
37278
- }, [
37279
- h('div', {
37280
- ref: refViewInnerElem,
37281
- class: 'vxe-scrollbar--view-inner'
37282
- }, defaultSlot ? defaultSlot({}) : [])
37283
- ]),
37278
+ }, autoResize
37279
+ ? [
37280
+ h('div', {
37281
+ key: 'vi',
37282
+ ref: refViewInnerElem,
37283
+ class: 'vxe-scrollbar--view-inner'
37284
+ }, defaultSlot ? defaultSlot({}) : [])
37285
+ ]
37286
+ : defaultSlot ? defaultSlot({}) : []),
37284
37287
  native || xOpts.visible === 'hidden'
37285
37288
  ? renderEmptyElement($xeScrollbar)
37286
37289
  : h('div', {
@@ -37322,6 +37325,24 @@ var VxeScrollbarComponent = defineVxeComponent({
37322
37325
  ]);
37323
37326
  };
37324
37327
  const reFlag = ref(0);
37328
+ watch(() => props.height, () => {
37329
+ reFlag.value++;
37330
+ });
37331
+ watch(() => props.width, () => {
37332
+ reFlag.value++;
37333
+ });
37334
+ watch(() => props.minHeight, () => {
37335
+ reFlag.value++;
37336
+ });
37337
+ watch(() => props.minWidth, () => {
37338
+ reFlag.value++;
37339
+ });
37340
+ watch(() => props.maxHeight, () => {
37341
+ reFlag.value++;
37342
+ });
37343
+ watch(() => props.maxWidth, () => {
37344
+ reFlag.value++;
37345
+ });
37325
37346
  watch(() => props.native, () => {
37326
37347
  reFlag.value++;
37327
37348
  });
@@ -37335,19 +37356,23 @@ var VxeScrollbarComponent = defineVxeComponent({
37335
37356
  });
37336
37357
  onMounted(() => {
37337
37358
  const { autoResize } = props;
37359
+ const viewEl = refViewElem.value;
37338
37360
  const viewInnerEl = refViewInnerElem.value;
37339
- if (autoResize && viewInnerEl) {
37361
+ if (autoResize) {
37340
37362
  const resizeObserver = globalResize.create(() => {
37341
37363
  if (props.autoResize) {
37342
37364
  reFlag.value++;
37343
37365
  }
37344
37366
  });
37345
- resizeObserver.observe(viewInnerEl);
37367
+ if (viewEl) {
37368
+ resizeObserver.observe(viewEl);
37369
+ }
37370
+ if (viewInnerEl) {
37371
+ resizeObserver.observe(viewInnerEl);
37372
+ }
37346
37373
  internalData.resizeObserver = resizeObserver;
37347
37374
  }
37348
- nextTick(() => {
37349
- $xeScrollbar.recalculate();
37350
- });
37375
+ reFlag.value++;
37351
37376
  });
37352
37377
  onBeforeUnmount(() => {
37353
37378
  const { resizeObserver } = internalData;