vue-amazing-ui 2.7.4 → 2.8.0

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 (119) hide show
  1. package/README.md +1 -1
  2. package/README.zh-CN.md +1 -1
  3. package/dist/index.iife.js +86 -86
  4. package/dist/index.js +7170 -6965
  5. package/dist/index.umd.cjs +91 -91
  6. package/dist/style.css +1 -1
  7. package/es/carousel/Carousel.css +1 -1
  8. package/es/carousel/Carousel.d.ts +68 -13
  9. package/es/carousel/Carousel.vue.js +1 -1
  10. package/es/carousel/Carousel.vue2.js +410 -236
  11. package/es/carousel/index.d.ts +75 -24
  12. package/es/collapse/Collapse.d.ts +1 -1
  13. package/es/collapse/index.d.ts +3 -3
  14. package/es/color-picker/ColorPicker.d.ts +2 -2
  15. package/es/color-picker/index.d.ts +5 -5
  16. package/es/components.d.ts +2 -2
  17. package/es/descriptions/descriptions/Descriptions.css +1 -1
  18. package/es/descriptions/descriptions/Descriptions.d.ts +18 -24
  19. package/es/descriptions/descriptions/Descriptions.vue.js +2 -2
  20. package/es/descriptions/descriptions/Descriptions.vue2.js +191 -166
  21. package/es/descriptions/descriptions/index.d.ts +23 -19
  22. package/es/descriptions/descriptions-item/DescriptionsItem.d.ts +6 -2
  23. package/es/descriptions/descriptions-item/DescriptionsItem.vue.js +17 -5
  24. package/es/descriptions/descriptions-item/DescriptionsItem.vue2.js +1 -52
  25. package/es/descriptions/descriptions-item/index.d.ts +9 -3
  26. package/es/descriptions/descriptions-item/index.js +2 -2
  27. package/es/descriptions/index.d.ts +1 -1
  28. package/es/dialog/Dialog.css +1 -1
  29. package/es/dialog/Dialog.d.ts +1 -1
  30. package/es/dialog/Dialog.vue.js +1 -1
  31. package/es/dialog/Dialog.vue2.js +115 -114
  32. package/es/dialog/index.d.ts +3 -3
  33. package/es/drawer/Drawer.css +1 -1
  34. package/es/drawer/Drawer.d.ts +41 -6
  35. package/es/drawer/Drawer.vue.js +2 -2
  36. package/es/drawer/Drawer.vue2.js +196 -184
  37. package/es/drawer/index.d.ts +64 -11
  38. package/es/image/Image.d.ts +2 -2
  39. package/es/image/index.d.ts +6 -6
  40. package/es/loading-bar/LoadingBar.css +1 -1
  41. package/es/loading-bar/LoadingBar.vue.js +2 -2
  42. package/es/loading-bar/LoadingBar.vue2.js +32 -32
  43. package/es/message/Message.css +1 -1
  44. package/es/message/Message.vue.js +3 -3
  45. package/es/message/Message.vue2.js +70 -69
  46. package/es/modal/Modal.css +1 -1
  47. package/es/modal/Modal.vue.js +2 -2
  48. package/es/modal/Modal.vue2.js +121 -120
  49. package/es/notification/Notification.css +1 -1
  50. package/es/notification/Notification.vue.js +2 -2
  51. package/es/notification/Notification.vue2.js +94 -92
  52. package/es/number-animation/NumberAnimation.d.ts +4 -3
  53. package/es/number-animation/NumberAnimation.vue.js +51 -30
  54. package/es/number-animation/index.d.ts +4 -4
  55. package/es/upload/Upload.d.ts +12 -12
  56. package/es/upload/index.d.ts +10 -10
  57. package/es/utils/dom.js +33 -30
  58. package/es/utils/hooks.d.ts +1 -1
  59. package/es/utils/resolver.js +2 -1
  60. package/es/video/Video.d.ts +1 -1
  61. package/es/video/index.d.ts +3 -3
  62. package/lib/carousel/Carousel.css +1 -1
  63. package/lib/carousel/Carousel.d.ts +68 -13
  64. package/lib/carousel/Carousel.vue.cjs +1 -1
  65. package/lib/carousel/Carousel.vue2.cjs +9 -9
  66. package/lib/carousel/index.d.ts +75 -24
  67. package/lib/collapse/Collapse.d.ts +1 -1
  68. package/lib/collapse/index.d.ts +3 -3
  69. package/lib/color-picker/ColorPicker.d.ts +2 -2
  70. package/lib/color-picker/index.d.ts +5 -5
  71. package/lib/components.d.ts +2 -2
  72. package/lib/descriptions/descriptions/Descriptions.css +1 -1
  73. package/lib/descriptions/descriptions/Descriptions.d.ts +18 -24
  74. package/lib/descriptions/descriptions/Descriptions.vue.cjs +1 -1
  75. package/lib/descriptions/descriptions/Descriptions.vue2.cjs +1 -1
  76. package/lib/descriptions/descriptions/index.d.ts +23 -19
  77. package/lib/descriptions/descriptions-item/DescriptionsItem.d.ts +6 -2
  78. package/lib/descriptions/descriptions-item/DescriptionsItem.vue.cjs +1 -1
  79. package/lib/descriptions/descriptions-item/DescriptionsItem.vue2.cjs +1 -1
  80. package/lib/descriptions/descriptions-item/index.cjs +1 -1
  81. package/lib/descriptions/descriptions-item/index.d.ts +9 -3
  82. package/lib/descriptions/index.d.ts +1 -1
  83. package/lib/dialog/Dialog.css +1 -1
  84. package/lib/dialog/Dialog.d.ts +1 -1
  85. package/lib/dialog/Dialog.vue.cjs +1 -1
  86. package/lib/dialog/Dialog.vue2.cjs +1 -1
  87. package/lib/dialog/index.d.ts +3 -3
  88. package/lib/drawer/Drawer.css +1 -1
  89. package/lib/drawer/Drawer.d.ts +41 -6
  90. package/lib/drawer/Drawer.vue.cjs +1 -1
  91. package/lib/drawer/Drawer.vue2.cjs +1 -1
  92. package/lib/drawer/index.d.ts +64 -11
  93. package/lib/image/Image.d.ts +2 -2
  94. package/lib/image/index.d.ts +6 -6
  95. package/lib/loading-bar/LoadingBar.css +1 -1
  96. package/lib/loading-bar/LoadingBar.vue.cjs +1 -1
  97. package/lib/loading-bar/LoadingBar.vue2.cjs +3 -3
  98. package/lib/message/Message.css +1 -1
  99. package/lib/message/Message.vue.cjs +1 -1
  100. package/lib/message/Message.vue2.cjs +3 -3
  101. package/lib/modal/Modal.css +1 -1
  102. package/lib/modal/Modal.vue.cjs +1 -1
  103. package/lib/modal/Modal.vue2.cjs +1 -1
  104. package/lib/notification/Notification.css +1 -1
  105. package/lib/notification/Notification.vue.cjs +1 -1
  106. package/lib/notification/Notification.vue2.cjs +2 -2
  107. package/lib/number-animation/NumberAnimation.d.ts +4 -3
  108. package/lib/number-animation/NumberAnimation.vue.cjs +1 -1
  109. package/lib/number-animation/index.d.ts +4 -4
  110. package/lib/upload/Upload.d.ts +12 -12
  111. package/lib/upload/index.d.ts +10 -10
  112. package/lib/utils/dom.cjs +1 -1
  113. package/lib/utils/hooks.d.ts +1 -1
  114. package/lib/utils/resolver.cjs +1 -1
  115. package/lib/video/Video.d.ts +1 -1
  116. package/lib/video/index.d.ts +3 -3
  117. package/package.json +2 -2
  118. package/es/descriptions/descriptions-item/DescriptionsItem.css +0 -1
  119. package/lib/descriptions/descriptions-item/DescriptionsItem.css +0 -1
package/README.md CHANGED
@@ -301,7 +301,7 @@ All sponsors will be listed here, thank you very much for your support and spons
301
301
  | useResizeObserver | Function to observe changes in the dimensions of DOM elements using `ResizeObserver` | (target: Ref | Ref[] | HTMLElement | HTMLElement[], callback: ResizeObserverCallback, options: object = {}) => { start: \() => void, stop: \() => void } |
302
302
  | useSlotsExist | Function to watch for the existence of slots with given names, supporting single slots or an array of slots | <T extends string &#124; string[] = 'default'>(slotsName: T) => T extends string ? ComputedRef\<boolean> : Reactive\<Record\<string, ComputedRef\<boolean>>> |
303
303
  | useInject | A function that uses injection to obtain color palettes and shadow color | (key: string) => { colorPalettes: Ref\<string[]>, shadowColor: Ref\<string> } |
304
- | useOptionsSupported | Checks if the browser supports the given event listener options | (prop: 'capture' &#124; 'once' &#124; 'passive' &#124; 'signal') => { isSupported: Ref\<boolean> } |
304
+ | useOptionsSupported | Checks if the browser supports the given event listener options | (option: 'capture' &#124; 'once' &#124; 'passive' &#124; 'signal') => { isSupported: Ref\<boolean> } |
305
305
  | getColorPalettes | Function to generate a color palette from a primary color | (primaryColor: string) => string[] |
306
306
  | getAlphaColor | Function to get an alpha color, generally used as a shadow color | (frontColor: string, backgroundColor: string = '#ffffff') => string |
307
307
  | getScrollParent | Function to find the nearest scrollable parent element upward | (el: HTMLElement &#124; null) => HTMLElement &#124; null |
package/README.zh-CN.md CHANGED
@@ -301,7 +301,7 @@ pnpm docs:dev
301
301
  | useResizeObserver | 使用 `ResizeObserver` 观察 `DOM` 元素尺寸变化 | (target: Ref &#124; Ref[] &#124; HTMLElement &#124; HTMLElement[], callback: ResizeObserverCallback, options: object = {}) => { start: \() => void, stop: \() => void } |
302
302
  | useSlotsExist | 监听给定名称或名称数组的插槽是否存在,支持监听单个插槽或一组插槽的存在 | <T extends string &#124; string[] = 'default'>(slotsName: T) => T extends string ? ComputedRef\<boolean> : Reactive\<Record\<string, ComputedRef\<boolean>>> |
303
303
  | useInject | 使用依赖注入的函数,用于获取颜色调色板和阴影颜色 | (key: string) => { colorPalettes: Ref\<string[]>, shadowColor: Ref\<string> } |
304
- | useOptionsSupported | 检查浏览器是否支持给定的事件监听器选项 | (prop: 'capture' &#124; 'once' &#124; 'passive' &#124; 'signal') => { isSupported: Ref\<boolean> } |
304
+ | useOptionsSupported | 检查浏览器是否支持给定的事件监听器选项 | (option: 'capture' &#124; 'once' &#124; 'passive' &#124; 'signal') => { isSupported: Ref\<boolean> } |
305
305
  | getColorPalettes | 根据主色生成颜色调色板函数 | (primaryColor: string) => string[] |
306
306
  | getAlphaColor | 获取透明度颜色函数,一般用作阴影色 | (frontColor: string, backgroundColor: string = '#ffffff') => string |
307
307
  | getScrollParent | 向上查找元素最近的可滚动父元素函数 | (el: HTMLElement &#124; null) => HTMLElement &#124; null |