vue-amazing-ui 2.5.2 → 2.6.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 (456) hide show
  1. package/README.md +14 -4
  2. package/README.zh-CN.md +14 -4
  3. package/dist/css.d.ts +2 -0
  4. package/dist/index.iife.js +81 -80
  5. package/dist/index.js +5420 -5479
  6. package/dist/index.umd.cjs +79 -78
  7. package/dist/style.css +1 -1
  8. package/es/alert/Alert.vue2.js +1 -1
  9. package/es/auto-complete/AutoComplete.css +1 -0
  10. package/es/{autocomplete → auto-complete}/AutoComplete.d.ts +12 -10
  11. package/es/{autocomplete → auto-complete}/AutoComplete.vue.js +2 -2
  12. package/es/auto-complete/AutoComplete.vue2.js +469 -0
  13. package/es/{autocomplete → auto-complete}/index.d.ts +18 -15
  14. package/es/avatar/Avatar.d.ts +2 -2
  15. package/es/avatar/Avatar.vue2.js +1 -1
  16. package/es/avatar/index.d.ts +6 -6
  17. package/es/back-top/BackTop.css +1 -0
  18. package/es/back-top/BackTop.vue.js +7 -0
  19. package/es/{backtop → back-top}/BackTop.vue2.js +81 -90
  20. package/es/badge/Badge.vue2.js +1 -1
  21. package/es/button/Button.d.ts +1 -1
  22. package/es/button/Button.vue2.js +1 -1
  23. package/es/button/index.d.ts +3 -3
  24. package/es/calendar/Calendar.d.ts +2 -2
  25. package/es/calendar/Calendar.vue2.js +1 -1
  26. package/es/calendar/index.d.ts +5 -5
  27. package/es/card/Card.d.ts +1 -1
  28. package/es/card/Card.vue2.js +1 -1
  29. package/es/card/index.d.ts +3 -3
  30. package/es/carousel/Carousel.vue2.js +14 -12
  31. package/es/cascader/Cascader.d.ts +2 -2
  32. package/es/cascader/index.d.ts +6 -6
  33. package/es/checkbox/Checkbox.vue2.js +1 -1
  34. package/es/collapse/Collapse.vue2.js +1 -1
  35. package/es/{colorpicker → color-picker}/ColorPicker.css +1 -1
  36. package/es/{colorpicker → color-picker}/ColorPicker.vue.js +2 -2
  37. package/es/{colorpicker → color-picker}/ColorPicker.vue2.js +1 -1
  38. package/es/components.d.ts +26 -26
  39. package/es/components.js +15 -15
  40. package/{lib/configprovider → es/config-provider}/ConfigProvider.d.ts +3 -0
  41. package/es/{configprovider → config-provider}/ConfigProvider.vue.js +25 -40
  42. package/es/countdown/Countdown.vue2.js +1 -1
  43. package/{lib/datepicker → es/date-picker}/DatePicker.css +1 -1
  44. package/es/{datepicker → date-picker}/DatePicker.vue.js +2 -2
  45. package/es/{datepicker → date-picker}/DatePicker.vue2.js +1 -1
  46. package/es/descriptions/descriptions/Descriptions.d.ts +1 -1
  47. package/es/descriptions/descriptions/Descriptions.vue2.js +4 -3
  48. package/es/descriptions/descriptions/index.d.ts +3 -3
  49. package/es/descriptions/{descriptionsitem → descriptions-item}/DescriptionsItem.css +1 -1
  50. package/es/descriptions/{descriptionsitem → descriptions-item}/DescriptionsItem.vue.js +2 -2
  51. package/es/descriptions/index.d.ts +2 -2
  52. package/es/dialog/Dialog.vue2.js +1 -1
  53. package/es/divider/Divider.vue2.js +1 -1
  54. package/es/drawer/Drawer.vue2.js +1 -1
  55. package/es/ellipsis/Ellipsis.vue2.js +1 -1
  56. package/es/empty/Empty.vue2.js +1 -1
  57. package/es/float-button/FloatButton.css +1 -0
  58. package/es/{floatbutton → float-button}/FloatButton.vue.js +2 -2
  59. package/es/{floatbutton → float-button}/FloatButton.vue2.js +1 -1
  60. package/es/{gradienttext → gradient-text}/GradientText.css +1 -1
  61. package/es/{gradienttext → gradient-text}/GradientText.vue.js +2 -2
  62. package/es/grid/col/Col.vue2.js +1 -1
  63. package/es/grid/row/Row.vue2.js +1 -1
  64. package/es/image/Image.css +1 -1
  65. package/es/image/Image.d.ts +5 -0
  66. package/es/image/Image.vue.js +2 -2
  67. package/es/image/Image.vue2.js +79 -71
  68. package/es/index.d.ts +2 -1
  69. package/es/index.js +178 -166
  70. package/es/input/Input.vue2.js +1 -1
  71. package/es/input-number/InputNumber.css +1 -0
  72. package/es/{inputnumber → input-number}/InputNumber.vue.js +2 -2
  73. package/es/{inputnumber → input-number}/InputNumber.vue2.js +4 -3
  74. package/es/input-search/InputSearch.css +1 -0
  75. package/es/{inputsearch → input-search}/InputSearch.vue.js +2 -2
  76. package/es/{inputsearch → input-search}/InputSearch.vue2.js +1 -1
  77. package/es/list/index.d.ts +2 -2
  78. package/es/list/list/List.d.ts +1 -1
  79. package/es/list/list/List.vue2.js +1 -1
  80. package/es/list/list/index.d.ts +3 -3
  81. package/es/list/list-item/ListItem.css +1 -0
  82. package/es/list/{listitem → list-item}/ListItem.vue.js +2 -2
  83. package/es/list/{listitem → list-item}/ListItem.vue2.js +1 -1
  84. package/es/loading-bar/LoadingBar.css +1 -0
  85. package/es/{loadingbar → loading-bar}/LoadingBar.vue.js +1 -1
  86. package/es/{loadingbar → loading-bar}/LoadingBar.vue2.js +1 -1
  87. package/es/message/Message.vue2.js +12 -11
  88. package/es/modal/Modal.vue2.js +1 -1
  89. package/es/notification/Notification.vue2.js +20 -19
  90. package/es/{numberanimation → number-animation}/NumberAnimation.vue.js +5 -5
  91. package/es/pagination/Pagination.vue2.js +1 -1
  92. package/es/popconfirm/Popconfirm.vue2.js +1 -1
  93. package/es/popover/Popover.vue2.js +1 -1
  94. package/es/progress/Progress.vue2.js +1 -1
  95. package/es/qr-code/QRCode.css +1 -0
  96. package/es/qr-code/QRCode.vue.js +7 -0
  97. package/es/radio/Radio.vue2.js +1 -1
  98. package/es/result/Result.vue2.js +1 -1
  99. package/es/scrollbar/Scrollbar.vue2.js +4 -3
  100. package/es/segmented/Segmented.vue2.js +1 -1
  101. package/es/select/Select.css +1 -1
  102. package/es/select/Select.d.ts +2 -2
  103. package/es/select/Select.vue.js +1 -1
  104. package/es/select/Select.vue2.js +174 -221
  105. package/es/select/index.d.ts +6 -6
  106. package/es/skeleton/Skeleton.d.ts +1 -1
  107. package/es/skeleton/index.d.ts +3 -3
  108. package/es/slider/Slider.vue2.js +81 -80
  109. package/es/spin/Spin.vue2.js +1 -1
  110. package/es/statistic/Statistic.vue2.js +13 -12
  111. package/es/steps/Steps.vue2.js +1 -1
  112. package/es/swiper/Swiper.vue2.js +9 -9
  113. package/es/switch/Switch.vue2.js +1 -1
  114. package/es/table/Table.d.ts +2 -2
  115. package/es/table/Table.vue2.js +31 -30
  116. package/es/table/index.d.ts +6 -6
  117. package/es/tabs/Tabs.vue2.js +4 -3
  118. package/es/tag/Tag.vue2.js +1 -1
  119. package/es/{textscroll → text-scroll}/TextScroll.css +1 -1
  120. package/es/{textscroll → text-scroll}/TextScroll.vue.js +2 -2
  121. package/es/{textscroll → text-scroll}/TextScroll.vue2.js +28 -26
  122. package/es/textarea/Textarea.vue2.js +1 -1
  123. package/es/timeline/Timeline.d.ts +1 -1
  124. package/es/timeline/index.d.ts +3 -3
  125. package/es/tooltip/Tooltip.css +1 -1
  126. package/es/tooltip/Tooltip.d.ts +1 -2
  127. package/es/tooltip/Tooltip.vue.js +1 -1
  128. package/es/tooltip/Tooltip.vue2.js +184 -223
  129. package/es/upload/Upload.d.ts +10 -0
  130. package/es/upload/Upload.vue2.js +1 -1
  131. package/es/upload/index.d.ts +5 -0
  132. package/es/utils/color.d.ts +2 -0
  133. package/es/utils/color.js +23 -0
  134. package/es/utils/dom.d.ts +9 -0
  135. package/es/utils/dom.js +69 -0
  136. package/es/utils/format.d.ts +2 -0
  137. package/es/utils/format.js +63 -0
  138. package/es/utils/function.d.ts +7 -0
  139. package/es/utils/function.js +44 -0
  140. package/es/utils/hooks.d.ts +20 -0
  141. package/es/utils/hooks.js +88 -0
  142. package/es/utils/index.d.ts +8 -54
  143. package/es/utils/math.d.ts +1 -0
  144. package/es/utils/math.js +12 -0
  145. package/es/utils/observers.d.ts +31 -0
  146. package/es/utils/observers.js +127 -0
  147. package/es/utils/position.d.ts +6 -0
  148. package/es/utils/position.js +26 -0
  149. package/es/utils/resolver.js +31 -40
  150. package/es/utils/vendor-styles.d.ts +7 -0
  151. package/es/utils/vendor-styles.js +30 -0
  152. package/es/vendor-styles/swiper/modules/effect-cards.css +10 -0
  153. package/es/vendor-styles/swiper/modules/effect-creative.css +7 -0
  154. package/es/vendor-styles/swiper/modules/effect-cube.css +70 -0
  155. package/es/vendor-styles/swiper/modules/effect-fade.css +20 -0
  156. package/es/vendor-styles/swiper/modules/effect-flip.css +30 -0
  157. package/es/vendor-styles/swiper/modules/navigation.css +129 -0
  158. package/es/vendor-styles/swiper/modules/pagination.css +185 -0
  159. package/es/vendor-styles/swiper/swiper.css +251 -0
  160. package/es/vendor-styles/vue-datepicker/main.css +1 -0
  161. package/es/waterfall/Waterfall.vue2.js +1 -1
  162. package/es/watermark/Watermark.vue.js +1 -1
  163. package/lib/alert/Alert.vue2.cjs +1 -1
  164. package/lib/auto-complete/AutoComplete.css +1 -0
  165. package/lib/{autocomplete → auto-complete}/AutoComplete.d.ts +12 -10
  166. package/lib/{autocomplete → auto-complete}/AutoComplete.vue.cjs +1 -1
  167. package/lib/auto-complete/AutoComplete.vue2.cjs +7 -0
  168. package/lib/{autocomplete → auto-complete}/index.d.ts +18 -15
  169. package/lib/avatar/Avatar.d.ts +2 -2
  170. package/lib/avatar/Avatar.vue2.cjs +1 -1
  171. package/lib/avatar/index.d.ts +6 -6
  172. package/lib/back-top/BackTop.css +1 -0
  173. package/lib/{backtop → back-top}/BackTop.vue.cjs +1 -1
  174. package/lib/back-top/BackTop.vue2.cjs +22 -0
  175. package/lib/badge/Badge.vue2.cjs +1 -1
  176. package/lib/button/Button.d.ts +1 -1
  177. package/lib/button/Button.vue2.cjs +2 -2
  178. package/lib/button/index.d.ts +3 -3
  179. package/lib/calendar/Calendar.d.ts +2 -2
  180. package/lib/calendar/Calendar.vue2.cjs +1 -1
  181. package/lib/calendar/index.d.ts +5 -5
  182. package/lib/card/Card.d.ts +1 -1
  183. package/lib/card/Card.vue2.cjs +1 -1
  184. package/lib/card/index.d.ts +3 -3
  185. package/lib/carousel/Carousel.vue2.cjs +4 -4
  186. package/lib/cascader/Cascader.d.ts +2 -2
  187. package/lib/cascader/index.d.ts +6 -6
  188. package/lib/checkbox/Checkbox.vue2.cjs +1 -1
  189. package/lib/collapse/Collapse.vue2.cjs +1 -1
  190. package/lib/{colorpicker → color-picker}/ColorPicker.css +1 -1
  191. package/lib/{colorpicker → color-picker}/ColorPicker.vue.cjs +1 -1
  192. package/lib/{colorpicker → color-picker}/ColorPicker.vue2.cjs +3 -3
  193. package/lib/components.cjs +1 -1
  194. package/lib/components.d.ts +26 -26
  195. package/{es/configprovider → lib/config-provider}/ConfigProvider.d.ts +3 -0
  196. package/lib/config-provider/ConfigProvider.vue.cjs +1 -0
  197. package/lib/countdown/Countdown.vue2.cjs +1 -1
  198. package/{es/datepicker → lib/date-picker}/DatePicker.css +1 -1
  199. package/lib/{datepicker → date-picker}/DatePicker.vue.cjs +1 -1
  200. package/lib/{datepicker → date-picker}/DatePicker.vue2.cjs +4 -4
  201. package/lib/descriptions/descriptions/Descriptions.d.ts +1 -1
  202. package/lib/descriptions/descriptions/Descriptions.vue2.cjs +1 -1
  203. package/lib/descriptions/descriptions/index.d.ts +3 -3
  204. package/lib/descriptions/{descriptionsitem → descriptions-item}/DescriptionsItem.css +1 -1
  205. package/lib/descriptions/{descriptionsitem → descriptions-item}/DescriptionsItem.vue.cjs +1 -1
  206. package/lib/descriptions/index.d.ts +2 -2
  207. package/lib/dialog/Dialog.vue2.cjs +1 -1
  208. package/lib/divider/Divider.vue2.cjs +1 -1
  209. package/lib/drawer/Drawer.vue2.cjs +1 -1
  210. package/lib/ellipsis/Ellipsis.vue2.cjs +1 -1
  211. package/lib/empty/Empty.vue2.cjs +1 -1
  212. package/lib/float-button/FloatButton.css +1 -0
  213. package/lib/{floatbutton → float-button}/FloatButton.vue.cjs +1 -1
  214. package/lib/{floatbutton → float-button}/FloatButton.vue2.cjs +2 -2
  215. package/lib/{gradienttext → gradient-text}/GradientText.css +1 -1
  216. package/lib/{gradienttext → gradient-text}/GradientText.vue.cjs +1 -1
  217. package/lib/grid/col/Col.vue2.cjs +1 -1
  218. package/lib/grid/row/Row.vue2.cjs +1 -1
  219. package/lib/image/Image.css +1 -1
  220. package/lib/image/Image.d.ts +5 -0
  221. package/lib/image/Image.vue.cjs +1 -1
  222. package/lib/image/Image.vue2.cjs +1 -1
  223. package/lib/index.cjs +1 -1
  224. package/lib/index.d.ts +2 -1
  225. package/lib/input/Input.vue2.cjs +3 -3
  226. package/lib/input-number/InputNumber.css +1 -0
  227. package/lib/{inputnumber → input-number}/InputNumber.vue.cjs +1 -1
  228. package/lib/input-number/InputNumber.vue2.cjs +7 -0
  229. package/lib/input-search/InputSearch.css +1 -0
  230. package/lib/{inputsearch → input-search}/InputSearch.vue.cjs +1 -1
  231. package/lib/{inputsearch → input-search}/InputSearch.vue2.cjs +1 -1
  232. package/lib/list/index.d.ts +2 -2
  233. package/lib/list/list/List.d.ts +1 -1
  234. package/lib/list/list/List.vue2.cjs +1 -1
  235. package/lib/list/list/index.d.ts +3 -3
  236. package/lib/list/list-item/ListItem.css +1 -0
  237. package/lib/list/{listitem → list-item}/ListItem.vue.cjs +1 -1
  238. package/lib/list/{listitem → list-item}/ListItem.vue2.cjs +1 -1
  239. package/lib/loading-bar/LoadingBar.css +1 -0
  240. package/lib/{loadingbar → loading-bar}/LoadingBar.vue.cjs +1 -1
  241. package/lib/{loadingbar → loading-bar}/LoadingBar.vue2.cjs +1 -1
  242. package/lib/message/Message.vue2.cjs +2 -2
  243. package/lib/modal/Modal.vue2.cjs +2 -2
  244. package/lib/notification/Notification.vue2.cjs +2 -2
  245. package/lib/number-animation/NumberAnimation.vue.cjs +1 -0
  246. package/lib/pagination/Pagination.vue2.cjs +1 -1
  247. package/lib/popconfirm/Popconfirm.vue2.cjs +2 -2
  248. package/lib/popover/Popover.vue2.cjs +1 -1
  249. package/lib/progress/Progress.vue2.cjs +1 -1
  250. package/lib/qr-code/QRCode.css +1 -0
  251. package/lib/{qrcode → qr-code}/QRCode.vue.cjs +1 -1
  252. package/lib/radio/Radio.vue2.cjs +3 -3
  253. package/lib/result/Result.vue2.cjs +1 -1
  254. package/lib/scrollbar/Scrollbar.vue2.cjs +2 -2
  255. package/lib/segmented/Segmented.vue2.cjs +1 -1
  256. package/lib/select/Select.css +1 -1
  257. package/lib/select/Select.d.ts +2 -2
  258. package/lib/select/Select.vue.cjs +1 -1
  259. package/lib/select/Select.vue2.cjs +7 -7
  260. package/lib/select/index.d.ts +6 -6
  261. package/lib/skeleton/Skeleton.d.ts +1 -1
  262. package/lib/skeleton/index.d.ts +3 -3
  263. package/lib/slider/Slider.vue2.cjs +2 -2
  264. package/lib/spin/Spin.vue2.cjs +3 -3
  265. package/lib/statistic/Statistic.vue2.cjs +1 -1
  266. package/lib/steps/Steps.vue2.cjs +1 -1
  267. package/lib/swiper/Swiper.vue2.cjs +1 -1
  268. package/lib/switch/Switch.vue2.cjs +1 -1
  269. package/lib/table/Table.d.ts +2 -2
  270. package/lib/table/Table.vue2.cjs +1 -1
  271. package/lib/table/index.d.ts +6 -6
  272. package/lib/tabs/Tabs.vue2.cjs +1 -1
  273. package/lib/tag/Tag.vue2.cjs +1 -1
  274. package/lib/{textscroll → text-scroll}/TextScroll.css +1 -1
  275. package/lib/{textscroll → text-scroll}/TextScroll.vue.cjs +1 -1
  276. package/lib/{textscroll → text-scroll}/TextScroll.vue2.cjs +3 -3
  277. package/lib/textarea/Textarea.vue2.cjs +2 -2
  278. package/lib/timeline/Timeline.d.ts +1 -1
  279. package/lib/timeline/index.d.ts +3 -3
  280. package/lib/tooltip/Tooltip.css +1 -1
  281. package/lib/tooltip/Tooltip.d.ts +1 -2
  282. package/lib/tooltip/Tooltip.vue.cjs +1 -1
  283. package/lib/tooltip/Tooltip.vue2.cjs +1 -1
  284. package/lib/upload/Upload.d.ts +10 -0
  285. package/lib/upload/Upload.vue2.cjs +1 -1
  286. package/lib/upload/index.d.ts +5 -0
  287. package/lib/utils/color.cjs +1 -0
  288. package/lib/utils/color.d.ts +2 -0
  289. package/lib/utils/dom.cjs +1 -0
  290. package/lib/utils/dom.d.ts +9 -0
  291. package/lib/utils/format.cjs +1 -0
  292. package/lib/utils/format.d.ts +2 -0
  293. package/lib/utils/function.cjs +1 -0
  294. package/lib/utils/function.d.ts +7 -0
  295. package/lib/utils/hooks.cjs +1 -0
  296. package/lib/utils/hooks.d.ts +20 -0
  297. package/lib/utils/index.d.ts +8 -54
  298. package/lib/utils/math.cjs +1 -0
  299. package/lib/utils/math.d.ts +1 -0
  300. package/lib/utils/observers.cjs +1 -0
  301. package/lib/utils/observers.d.ts +31 -0
  302. package/lib/utils/position.cjs +1 -0
  303. package/lib/utils/position.d.ts +6 -0
  304. package/lib/utils/resolver.cjs +1 -1
  305. package/lib/utils/vendor-styles.cjs +1 -0
  306. package/lib/utils/vendor-styles.d.ts +7 -0
  307. package/lib/vendor-styles/swiper/modules/effect-cards.css +10 -0
  308. package/lib/vendor-styles/swiper/modules/effect-creative.css +7 -0
  309. package/lib/vendor-styles/swiper/modules/effect-cube.css +70 -0
  310. package/lib/vendor-styles/swiper/modules/effect-fade.css +20 -0
  311. package/lib/vendor-styles/swiper/modules/effect-flip.css +30 -0
  312. package/lib/vendor-styles/swiper/modules/navigation.css +129 -0
  313. package/lib/vendor-styles/swiper/modules/pagination.css +185 -0
  314. package/lib/vendor-styles/swiper/swiper.css +251 -0
  315. package/lib/vendor-styles/vue-datepicker/main.css +1 -0
  316. package/lib/waterfall/Waterfall.vue2.cjs +3 -3
  317. package/lib/watermark/Watermark.vue.cjs +1 -1
  318. package/package.json +7 -4
  319. package/es/autocomplete/AutoComplete.css +0 -1
  320. package/es/autocomplete/AutoComplete.vue2.js +0 -519
  321. package/es/backtop/BackTop.css +0 -1
  322. package/es/backtop/BackTop.vue.js +0 -7
  323. package/es/floatbutton/FloatButton.css +0 -1
  324. package/es/inputnumber/InputNumber.css +0 -1
  325. package/es/inputsearch/InputSearch.css +0 -1
  326. package/es/list/listitem/ListItem.css +0 -1
  327. package/es/loadingbar/LoadingBar.css +0 -1
  328. package/es/node_modules/.pnpm/@vuepic_vue-datepicker@12.1.0_vue@3.5.29_typescript@5.9.3_/node_modules/@vuepic/vue-datepicker/dist/main.css +0 -1
  329. package/es/node_modules/.pnpm/swiper@12.1.2/node_modules/swiper/modules/effect-cards.css +0 -1
  330. package/es/node_modules/.pnpm/swiper@12.1.2/node_modules/swiper/modules/effect-creative.css +0 -1
  331. package/es/node_modules/.pnpm/swiper@12.1.2/node_modules/swiper/modules/effect-cube.css +0 -1
  332. package/es/node_modules/.pnpm/swiper@12.1.2/node_modules/swiper/modules/effect-fade.css +0 -1
  333. package/es/node_modules/.pnpm/swiper@12.1.2/node_modules/swiper/modules/effect-flip.css +0 -1
  334. package/es/node_modules/.pnpm/swiper@12.1.2/node_modules/swiper/modules/navigation.css +0 -1
  335. package/es/node_modules/.pnpm/swiper@12.1.2/node_modules/swiper/modules/pagination.css +0 -1
  336. package/es/node_modules/.pnpm/swiper@12.1.2/node_modules/swiper/swiper.css +0 -1
  337. package/es/qrcode/QRCode.css +0 -1
  338. package/es/qrcode/QRCode.vue.js +0 -7
  339. package/es/utils/index.js +0 -345
  340. package/lib/autocomplete/AutoComplete.css +0 -1
  341. package/lib/autocomplete/AutoComplete.vue2.cjs +0 -6
  342. package/lib/backtop/BackTop.css +0 -1
  343. package/lib/backtop/BackTop.vue2.cjs +0 -22
  344. package/lib/configprovider/ConfigProvider.vue.cjs +0 -1
  345. package/lib/floatbutton/FloatButton.css +0 -1
  346. package/lib/inputnumber/InputNumber.css +0 -1
  347. package/lib/inputnumber/InputNumber.vue2.cjs +0 -7
  348. package/lib/inputsearch/InputSearch.css +0 -1
  349. package/lib/list/listitem/ListItem.css +0 -1
  350. package/lib/loadingbar/LoadingBar.css +0 -1
  351. package/lib/node_modules/.pnpm/@vuepic_vue-datepicker@12.1.0_vue@3.5.29_typescript@5.9.3_/node_modules/@vuepic/vue-datepicker/dist/main.css +0 -1
  352. package/lib/node_modules/.pnpm/swiper@12.1.2/node_modules/swiper/modules/effect-cards.css +0 -1
  353. package/lib/node_modules/.pnpm/swiper@12.1.2/node_modules/swiper/modules/effect-creative.css +0 -1
  354. package/lib/node_modules/.pnpm/swiper@12.1.2/node_modules/swiper/modules/effect-cube.css +0 -1
  355. package/lib/node_modules/.pnpm/swiper@12.1.2/node_modules/swiper/modules/effect-fade.css +0 -1
  356. package/lib/node_modules/.pnpm/swiper@12.1.2/node_modules/swiper/modules/effect-flip.css +0 -1
  357. package/lib/node_modules/.pnpm/swiper@12.1.2/node_modules/swiper/modules/navigation.css +0 -1
  358. package/lib/node_modules/.pnpm/swiper@12.1.2/node_modules/swiper/modules/pagination.css +0 -1
  359. package/lib/node_modules/.pnpm/swiper@12.1.2/node_modules/swiper/swiper.css +0 -1
  360. package/lib/numberanimation/NumberAnimation.vue.cjs +0 -1
  361. package/lib/qrcode/QRCode.css +0 -1
  362. package/lib/utils/index.cjs +0 -1
  363. package/es/{autocomplete → auto-complete}/index.js +0 -0
  364. package/es/{backtop → back-top}/BackTop.d.ts +0 -0
  365. package/es/{backtop → back-top}/index.d.ts +0 -0
  366. package/es/{backtop → back-top}/index.js +0 -0
  367. package/es/{colorpicker → color-picker}/ColorPicker.d.ts +1 -1
  368. package/es/{colorpicker → color-picker}/index.d.ts +3 -3
  369. package/es/{colorpicker → color-picker}/index.js +0 -0
  370. package/es/{configprovider → config-provider}/ConfigProvider.vue2.js +0 -0
  371. package/es/{configprovider → config-provider}/index.d.ts +0 -0
  372. package/es/{configprovider → config-provider}/index.js +0 -0
  373. package/es/{datepicker → date-picker}/DatePicker.d.ts +0 -0
  374. package/es/{datepicker → date-picker}/index.d.ts +0 -0
  375. package/es/{datepicker → date-picker}/index.js +0 -0
  376. package/es/descriptions/{descriptionsitem → descriptions-item}/DescriptionsItem.d.ts +0 -0
  377. package/es/descriptions/{descriptionsitem → descriptions-item}/DescriptionsItem.vue2.js +0 -0
  378. package/es/descriptions/{descriptionsitem → descriptions-item}/index.d.ts +0 -0
  379. package/es/descriptions/{descriptionsitem → descriptions-item}/index.js +0 -0
  380. package/es/{floatbutton → float-button}/FloatButton.d.ts +1 -1
  381. package/{lib/floatbutton → es/float-button}/index.d.ts +3 -3
  382. package/es/{floatbutton → float-button}/index.js +0 -0
  383. package/es/{gradienttext → gradient-text}/GradientText.d.ts +0 -0
  384. package/es/{gradienttext → gradient-text}/GradientText.vue2.js +0 -0
  385. package/es/{gradienttext → gradient-text}/index.d.ts +0 -0
  386. package/es/{gradienttext → gradient-text}/index.js +0 -0
  387. package/es/{inputnumber → input-number}/InputNumber.d.ts +0 -0
  388. package/es/{inputnumber → input-number}/index.d.ts +0 -0
  389. package/es/{inputnumber → input-number}/index.js +0 -0
  390. package/es/{inputsearch → input-search}/InputSearch.d.ts +3 -3
  391. package/{lib/inputsearch → es/input-search}/index.d.ts +8 -8
  392. package/es/{inputsearch → input-search}/index.js +0 -0
  393. package/es/list/{listitem → list-item}/ListItem.d.ts +0 -0
  394. package/es/list/{listitem → list-item}/index.d.ts +0 -0
  395. package/es/list/{listitem → list-item}/index.js +0 -0
  396. package/es/{loadingbar → loading-bar}/LoadingBar.d.ts +0 -0
  397. package/es/{loadingbar → loading-bar}/index.d.ts +0 -0
  398. package/es/{loadingbar → loading-bar}/index.js +0 -0
  399. package/es/{numberanimation → number-animation}/NumberAnimation.d.ts +0 -0
  400. package/es/{numberanimation → number-animation}/NumberAnimation.vue2.js +0 -0
  401. package/es/{numberanimation → number-animation}/index.d.ts +0 -0
  402. package/es/{numberanimation → number-animation}/index.js +0 -0
  403. package/es/{qrcode → qr-code}/QRCode.d.ts +0 -0
  404. package/es/{qrcode → qr-code}/QRCode.vue2.js +0 -0
  405. package/es/{qrcode → qr-code}/index.d.ts +0 -0
  406. package/es/{qrcode → qr-code}/index.js +0 -0
  407. package/es/{textscroll → text-scroll}/TextScroll.d.ts +0 -0
  408. package/es/{textscroll → text-scroll}/index.d.ts +0 -0
  409. package/es/{textscroll → text-scroll}/index.js +0 -0
  410. package/lib/{autocomplete → auto-complete}/index.cjs +0 -0
  411. package/lib/{backtop → back-top}/BackTop.d.ts +0 -0
  412. package/lib/{backtop → back-top}/index.cjs +0 -0
  413. package/lib/{backtop → back-top}/index.d.ts +0 -0
  414. package/lib/{colorpicker → color-picker}/ColorPicker.d.ts +1 -1
  415. package/lib/{colorpicker → color-picker}/index.cjs +0 -0
  416. package/lib/{colorpicker → color-picker}/index.d.ts +3 -3
  417. package/lib/{configprovider → config-provider}/ConfigProvider.vue2.cjs +0 -0
  418. package/lib/{configprovider → config-provider}/index.cjs +0 -0
  419. package/lib/{configprovider → config-provider}/index.d.ts +0 -0
  420. package/lib/{datepicker → date-picker}/DatePicker.d.ts +0 -0
  421. package/lib/{datepicker → date-picker}/index.cjs +0 -0
  422. package/lib/{datepicker → date-picker}/index.d.ts +0 -0
  423. package/lib/descriptions/{descriptionsitem → descriptions-item}/DescriptionsItem.d.ts +0 -0
  424. package/lib/descriptions/{descriptionsitem → descriptions-item}/DescriptionsItem.vue2.cjs +0 -0
  425. package/lib/descriptions/{descriptionsitem → descriptions-item}/index.cjs +0 -0
  426. package/lib/descriptions/{descriptionsitem → descriptions-item}/index.d.ts +0 -0
  427. package/lib/{floatbutton → float-button}/FloatButton.d.ts +1 -1
  428. package/lib/{floatbutton → float-button}/index.cjs +0 -0
  429. package/{es/floatbutton → lib/float-button}/index.d.ts +3 -3
  430. package/lib/{gradienttext → gradient-text}/GradientText.d.ts +0 -0
  431. package/lib/{gradienttext → gradient-text}/GradientText.vue2.cjs +0 -0
  432. package/lib/{gradienttext → gradient-text}/index.cjs +0 -0
  433. package/lib/{gradienttext → gradient-text}/index.d.ts +0 -0
  434. package/lib/{inputnumber → input-number}/InputNumber.d.ts +0 -0
  435. package/lib/{inputnumber → input-number}/index.cjs +0 -0
  436. package/lib/{inputnumber → input-number}/index.d.ts +0 -0
  437. package/lib/{inputsearch → input-search}/InputSearch.d.ts +3 -3
  438. package/lib/{inputsearch → input-search}/index.cjs +0 -0
  439. package/{es/inputsearch → lib/input-search}/index.d.ts +8 -8
  440. /package/lib/list/{listitem → list-item}/ListItem.d.ts +0 -0
  441. /package/lib/list/{listitem → list-item}/index.cjs +0 -0
  442. /package/lib/list/{listitem → list-item}/index.d.ts +0 -0
  443. /package/lib/{loadingbar → loading-bar}/LoadingBar.d.ts +0 -0
  444. /package/lib/{loadingbar → loading-bar}/index.cjs +0 -0
  445. /package/lib/{loadingbar → loading-bar}/index.d.ts +0 -0
  446. /package/lib/{numberanimation → number-animation}/NumberAnimation.d.ts +0 -0
  447. /package/lib/{numberanimation → number-animation}/NumberAnimation.vue2.cjs +0 -0
  448. /package/lib/{numberanimation → number-animation}/index.cjs +0 -0
  449. /package/lib/{numberanimation → number-animation}/index.d.ts +0 -0
  450. /package/lib/{qrcode → qr-code}/QRCode.d.ts +0 -0
  451. /package/lib/{qrcode → qr-code}/QRCode.vue2.cjs +0 -0
  452. /package/lib/{qrcode → qr-code}/index.cjs +0 -0
  453. /package/lib/{qrcode → qr-code}/index.d.ts +0 -0
  454. /package/lib/{textscroll → text-scroll}/TextScroll.d.ts +0 -0
  455. /package/lib/{textscroll → text-scroll}/index.cjs +0 -0
  456. /package/lib/{textscroll → text-scroll}/index.d.ts +0 -0
package/README.md CHANGED
@@ -17,7 +17,7 @@
17
17
  ## Features
18
18
 
19
19
  - The component library is implemented with `Vue@3.5.29`+ `TypeScript@5.9.3` + `Vite@7.3.1` + `Less@4.5.1`.
20
- - Currently, it includes `68` basic UI components and `18` utility functions, with continuous exploration and updates ongoing...
20
+ - Currently, it includes `68` basic UI components and `23` utility functions, with continuous exploration and updates ongoing...
21
21
  - Theme Customizable, all you need is to provide a theme color, then all the stuffs will be done by me.
22
22
  - By the way, they are all treeshakable.
23
23
  - All the stuff in Vue Amazing UI is written in TypeScript. It can work with your typescript project seamlessly.
@@ -85,7 +85,7 @@ import 'vue-amazing-ui/es/tag/Tag.css'
85
85
  </template>
86
86
  ```
87
87
 
88
- **Both Global Partial Registration and Local Registration require manually importing the global default styles of the component library ([Automatic On-Demand Import](https://themusecatcher.github.io/vue-amazing-ui/guide/ondemand.html#%E8%87%AA%E5%8A%A8%E6%8C%89%E9%9C%80%E5%BC%95%E5%85%A5-%E5%BC%BA%E7%83%88%E6%8E%A8%E8%8D%90) is recommended).**
88
+ **Both Global Partial Registration and Local Registration require manually importing the global default styles of the component library ([Automatic On-Demand Import](https://themusecatcher.github.io/vue-amazing-ui/guide/import-on-demand.html#%E8%87%AA%E5%8A%A8%E6%8C%89%E9%9C%80%E5%BC%95%E5%85%A5-%E5%BC%BA%E7%83%88%E6%8E%A8%E8%8D%90) is recommended).**
89
89
 
90
90
  ```ts
91
91
  import { createApp } from 'vue'
@@ -180,7 +180,12 @@ import {
180
180
  useResizeObserver,
181
181
  useSlotsExist,
182
182
  useInject,
183
- useOptionsSupported
183
+ useOptionsSupported,
184
+ getColorPalettes,
185
+ getAlphaColor,
186
+ getScrollParent,
187
+ useScrollParent,
188
+ useFloatingPosition
184
189
  } from 'vue-amazing-ui'
185
190
  </script>
186
191
  ```
@@ -279,7 +284,7 @@ All sponsors will be listed here, thank you very much for your support and spons
279
284
  | throttle | Throttle function | (fn: Function, delay: number = 300) => Function |
280
285
  | debounce | Debounce function | (fn: Function, delay: number = 300) => Function |
281
286
  | add | Addition function that eliminates precision issues in JavaScript arithmetic | (num1: number, num2: number) => number |
282
- | downloadFile | Function to download a file with a custom filename; if no filename is provided, it extracts the filename from the URL | (url: string, fileName?: string) => void |
287
+ | downloadFile | Function to download a file with a custom filename, with built-in dual download strategies for same-origin `anchor` and cross-origin `iframe`; if no filename is provided, it extracts the filename from the URL | (url: string, fileName?: string, options?: { target?: '_self' &#124; '_blank'; strategy?: 'auto' &#124; 'anchor' &#124; 'iframe' }) => Promise&lt;void&gt; |
283
288
  | toggleDark | Function to toggle dark mode | () => void |
284
289
  | useEventListener | Function to add and remove event listeners using Vue lifecycle hooks | (target: HTMLElement &#124; Window &#124; Document, event: string, callback: Function) => void |
285
290
  | useMutationObserver | Function to observe changes in DOM elements using `MutationObserver` | (target: Ref &#124; Ref[] &#124; HTMLElement &#124; HTMLElement[], callback: MutationCallback, options: object = {}) => { start: \() => void, stop: \() => void } |
@@ -290,3 +295,8 @@ All sponsors will be listed here, thank you very much for your support and spons
290
295
  | 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>>> |
291
296
  | useInject | A function that uses injection to obtain color palettes and shadow color | (key: string) => { colorPalettes: Ref\<string[]>, shadowColor: Ref\<string> } |
292
297
  | useOptionsSupported | Checks if the browser supports the given event listener options | (prop: 'capture' &#124; 'once' &#124; 'passive' &#124; 'signal') => { isSupported: Ref\<boolean> } |
298
+ | getColorPalettes | Function to generate a color palette from a primary color | (primaryColor: string) => string[] |
299
+ | getAlphaColor | Function to get an alpha color, generally used as a shadow color | (frontColor: string, backgroundColor: string = '#ffffff') => string |
300
+ | getScrollParent | Function to find the nearest scrollable parent element upward | (el: HTMLElement &#124; null) => HTMLElement &#124; null |
301
+ | useScrollParent | Composable to query and watch the nearest scrollable parent element and respond to viewport `resize` | (contentRef: Ref\<HTMLElement &#124; null>, onScroll: () => void, options: object = {}) => { scrollTarget: Ref\<HTMLElement &#124; null>, viewportWidth: Ref\<number>, viewportHeight: Ref\<number>, observeScroll: \() => void, cleanup: \() => void } |
302
+ | useFloatingPosition | Composable that provides a unified measurement skeleton for floating components | (contentRef: Ref\<HTMLElement &#124; null>, panelRef: Ref\<HTMLElement &#124; null>) => { positionedContainerRect: Ref\<DOMRect &#124; undefined>, contentRect: Ref\<DOMRect &#124; undefined>, measure: \() => Promise\<void> } |
package/README.zh-CN.md CHANGED
@@ -17,7 +17,7 @@
17
17
  ## 特性
18
18
 
19
19
  - 组件库采用 `Vue@3.5.29`+ `TypeScript@5.9.3` + `Vite@7.3.1` + `Less@4.5.1` 实现
20
- - 目前共包含 `68` 个基础 `UI` 组件以及 `18` 个工具函数,并且持续探索更新中...
20
+ - 目前共包含 `68` 个基础 `UI` 组件以及 `23` 个工具函数,并且持续探索更新中...
21
21
  - 主题可调,你只需提供一个主题色,剩下的都交给我
22
22
  - 顺便一提,它们全都可以 `treeshaking`
23
23
  - `Vue Amazing UI` 全量使用 `TypeScript` 编写,和你的 `TypeScript` 项目无缝衔接
@@ -85,7 +85,7 @@ import 'vue-amazing-ui/es/tag/Tag.css'
85
85
  </template>
86
86
  ```
87
87
 
88
- **全局部分注册和局部注册组件,都需手动引入组件库全局默认样式(推荐使用[自动按需引入](https://themusecatcher.github.io/vue-amazing-ui/guide/ondemand.html#%E8%87%AA%E5%8A%A8%E6%8C%89%E9%9C%80%E5%BC%95%E5%85%A5-%E5%BC%BA%E7%83%88%E6%8E%A8%E8%8D%90))**
88
+ **全局部分注册和局部注册组件,都需手动引入组件库全局默认样式(推荐使用[自动按需引入](https://themusecatcher.github.io/vue-amazing-ui/guide/import-on-demand.html#%E8%87%AA%E5%8A%A8%E6%8C%89%E9%9C%80%E5%BC%95%E5%85%A5-%E5%BC%BA%E7%83%88%E6%8E%A8%E8%8D%90))**
89
89
 
90
90
  ```ts
91
91
  import { createApp } from 'vue'
@@ -180,7 +180,12 @@ import {
180
180
  useResizeObserver,
181
181
  useSlotsExist,
182
182
  useInject,
183
- useOptionsSupported
183
+ useOptionsSupported,
184
+ getColorPalettes,
185
+ getAlphaColor,
186
+ getScrollParent,
187
+ useScrollParent,
188
+ useFloatingPosition
184
189
  } from 'vue-amazing-ui'
185
190
  </script>
186
191
  ```
@@ -279,7 +284,7 @@ pnpm docs:dev
279
284
  | throttle | 节流函数 | (fn: Function, delay: number = 300) => Function |
280
285
  | debounce | 防抖函数 | (fn: Function, delay: number = 300) => Function |
281
286
  | add | 消除 `js` 加减精度问题的加法函数 | (num1: number, num2: number) => number |
282
- | downloadFile | 下载文件并自定义文件名,未传 `fileName` 时,从文件地址中自动提取文件名称 | (url: string, fileName?: string) => void |
287
+ | downloadFile | 下载文件并自定义文件名,内置同源 `anchor` 与跨域 `iframe` 双下载策略,未传 `fileName` 时,从文件地址中自动提取文件名称 | (url: string, fileName?: string, options?: { target?: '_self' &#124; '_blank'; strategy?: 'auto' &#124; 'anchor' &#124; 'iframe' }) => Promise&lt;void&gt; |
283
288
  | toggleDark | 一键切换暗黑模式函数 | () => void |
284
289
  | useEventListener | 使用 `Vue` 的生命周期钩子添加和移除事件监听器 | (target: HTMLElement &#124; Window &#124; Document, event: string, callback: Function) => void |
285
290
  | useMutationObserver | 使用 `MutationObserver` 观察 `DOM` 元素的变化 | (target: Ref &#124; Ref[] &#124; HTMLElement &#124; HTMLElement[], callback: MutationCallback, options: object = {}) => { start: \() => void, stop: \() => void } |
@@ -290,3 +295,8 @@ pnpm docs:dev
290
295
  | useSlotsExist | 监听给定名称或名称数组的插槽是否存在,支持监听单个插槽或一组插槽的存在 | <T extends string &#124; string[] = 'default'>(slotsName: T) => T extends string ? ComputedRef\<boolean> : Reactive\<Record\<string, ComputedRef\<boolean>>> |
291
296
  | useInject | 使用依赖注入的函数,用于获取颜色调色板和阴影颜色 | (key: string) => { colorPalettes: Ref\<string[]>, shadowColor: Ref\<string> } |
292
297
  | useOptionsSupported | 检查浏览器是否支持给定的事件监听器选项 | (prop: 'capture' &#124; 'once' &#124; 'passive' &#124; 'signal') => { isSupported: Ref\<boolean> } |
298
+ | getColorPalettes | 根据主色生成颜色调色板函数 | (primaryColor: string) => string[] |
299
+ | getAlphaColor | 获取透明度颜色函数,一般用作阴影色 | (frontColor: string, backgroundColor: string = '#ffffff') => string |
300
+ | getScrollParent | 向上查找元素最近的可滚动父元素函数 | (el: HTMLElement &#124; null) => HTMLElement &#124; null |
301
+ | useScrollParent | 查询并监听最近可滚动父元素,响应视口 `resize` 的组合式函数 | (contentRef: Ref\<HTMLElement &#124; null>, onScroll: () => void, options: object = {}) => { scrollTarget: Ref\<HTMLElement &#124; null>, viewportWidth: Ref\<number>, viewportHeight: Ref\<number>, observeScroll: \() => void, cleanup: \() => void } |
302
+ | useFloatingPosition | 为弹出类组件提供统一测量骨架的组合式函数 | (contentRef: Ref\<HTMLElement &#124; null>, panelRef: Ref\<HTMLElement &#124; null>) => { positionedContainerRect: Ref\<DOMRect &#124; undefined>, contentRect: Ref\<DOMRect &#124; undefined>, measure: \() => Promise\<void> } |
package/dist/css.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ // CSS 副作用导入的类型声明(side-effect import)
2
+ export {}