vue-amazing-ui 2.6.1 → 2.7.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 (401) hide show
  1. package/README.md +3 -1
  2. package/README.zh-CN.md +3 -1
  3. package/dist/index.iife.js +88 -95
  4. package/dist/index.js +8687 -7770
  5. package/dist/index.umd.cjs +114 -121
  6. package/dist/style.css +1 -1
  7. package/es/alert/index.d.ts +1 -1
  8. package/es/auto-complete/index.d.ts +1 -1
  9. package/es/avatar/index.d.ts +1 -1
  10. package/es/back-top/BackTop.css +1 -1
  11. package/es/back-top/BackTop.d.ts +3 -2
  12. package/es/back-top/BackTop.vue.js +2 -2
  13. package/es/back-top/index.d.ts +4 -4
  14. package/es/badge/index.d.ts +1 -1
  15. package/es/breadcrumb/index.d.ts +1 -1
  16. package/es/button/index.d.ts +1 -1
  17. package/es/calendar/Calendar.css +1 -1
  18. package/es/calendar/Calendar.d.ts +8 -6
  19. package/es/calendar/Calendar.vue.js +4 -4
  20. package/es/calendar/index.d.ts +10 -10
  21. package/es/card/Card.css +1 -1
  22. package/es/card/Card.d.ts +3 -2
  23. package/es/card/Card.vue.js +2 -2
  24. package/es/card/index.d.ts +4 -4
  25. package/es/carousel/Carousel.css +1 -1
  26. package/es/carousel/Carousel.d.ts +3 -2
  27. package/es/carousel/Carousel.vue.js +1 -1
  28. package/es/carousel/index.d.ts +4 -4
  29. package/es/cascader/Cascader.css +1 -1
  30. package/es/cascader/Cascader.d.ts +5 -4
  31. package/es/cascader/Cascader.vue.js +4 -4
  32. package/es/cascader/index.d.ts +7 -7
  33. package/es/checkbox/index.d.ts +1 -1
  34. package/es/collapse/Collapse.css +1 -1
  35. package/es/collapse/Collapse.d.ts +8 -7
  36. package/es/collapse/Collapse.vue.js +2 -2
  37. package/es/collapse/index.d.ts +8 -8
  38. package/es/color-picker/ColorPicker.css +1 -1
  39. package/es/color-picker/ColorPicker.d.ts +7 -6
  40. package/es/color-picker/ColorPicker.vue.js +1 -1
  41. package/es/color-picker/index.d.ts +4 -4
  42. package/es/components.d.ts +73 -71
  43. package/es/components.js +139 -125
  44. package/es/config-provider/index.d.ts +1 -1
  45. package/es/config-provider/index.js +4 -4
  46. package/es/countdown/index.d.ts +1 -1
  47. package/es/date-picker/index.d.ts +1 -1
  48. package/es/descriptions/index.d.ts +1 -1
  49. package/es/dialog/Dialog.css +1 -1
  50. package/es/dialog/Dialog.d.ts +138 -31
  51. package/es/dialog/Dialog.vue.js +1 -1
  52. package/es/dialog/Dialog.vue2.js +596 -291
  53. package/es/dialog/DialogProvider.d.ts +17 -0
  54. package/es/dialog/DialogProvider.vue.js +27 -0
  55. package/es/dialog/DialogProvider.vue2.js +4 -0
  56. package/es/dialog/index.d.ts +126 -44
  57. package/es/dialog/index.js +6 -4
  58. package/es/dialog/useDialog.d.ts +8 -0
  59. package/es/dialog/useDialog.js +12 -0
  60. package/es/discrete/createDiscreteApi.d.ts +25 -0
  61. package/es/discrete/createDiscreteApi.js +74 -0
  62. package/es/discrete/index.d.ts +2 -0
  63. package/es/divider/index.d.ts +1 -1
  64. package/es/drawer/Drawer.css +1 -1
  65. package/es/drawer/Drawer.d.ts +3 -2
  66. package/es/drawer/Drawer.vue.js +1 -1
  67. package/es/drawer/Drawer.vue2.js +61 -56
  68. package/es/drawer/index.d.ts +4 -4
  69. package/es/ellipsis/Ellipsis.d.ts +4 -4
  70. package/es/ellipsis/index.d.ts +1 -1
  71. package/es/empty/index.d.ts +1 -1
  72. package/es/flex/index.d.ts +1 -1
  73. package/es/float-button/FloatButton.css +1 -1
  74. package/es/float-button/FloatButton.d.ts +6 -4
  75. package/es/float-button/FloatButton.vue.js +2 -2
  76. package/es/float-button/index.d.ts +7 -7
  77. package/es/gradient-text/index.d.ts +1 -1
  78. package/es/grid/index.d.ts +1 -1
  79. package/es/highlight/index.d.ts +1 -1
  80. package/es/image/Image.css +1 -1
  81. package/es/image/Image.d.ts +9 -7
  82. package/es/image/Image.vue.js +3 -3
  83. package/es/image/Image.vue2.js +47 -47
  84. package/es/image/index.d.ts +13 -13
  85. package/es/index.d.ts +1 -1
  86. package/es/index.js +187 -171
  87. package/es/input/index.d.ts +1 -1
  88. package/es/input-number/index.d.ts +1 -1
  89. package/es/input-search/InputSearch.css +1 -1
  90. package/es/input-search/InputSearch.d.ts +3 -2
  91. package/es/input-search/InputSearch.vue.js +2 -2
  92. package/es/input-search/index.d.ts +4 -4
  93. package/es/list/list/List.css +1 -1
  94. package/es/list/list/List.d.ts +9 -6
  95. package/es/list/list/List.vue.js +1 -1
  96. package/es/list/list/index.d.ts +9 -9
  97. package/es/list/list-item/ListItem.css +1 -1
  98. package/es/list/list-item/ListItem.d.ts +3 -2
  99. package/es/list/list-item/ListItem.vue.js +2 -2
  100. package/es/list/list-item/index.d.ts +3 -3
  101. package/es/loading-bar/index.d.ts +1 -1
  102. package/es/message/Message.css +1 -1
  103. package/es/message/Message.d.ts +32 -30
  104. package/es/message/Message.vue.js +3 -3
  105. package/es/message/Message.vue2.js +144 -141
  106. package/es/message/MessageProvider.d.ts +17 -0
  107. package/es/message/MessageProvider.vue.js +32 -0
  108. package/es/message/MessageProvider.vue2.js +4 -0
  109. package/es/message/index.d.ts +51 -42
  110. package/es/message/index.js +5 -3
  111. package/es/message/useMessage.d.ts +13 -0
  112. package/es/message/useMessage.js +12 -0
  113. package/es/modal/Modal.css +1 -1
  114. package/es/modal/Modal.d.ts +134 -49
  115. package/es/modal/Modal.vue.js +2 -2
  116. package/es/modal/Modal.vue2.js +581 -346
  117. package/es/modal/ModalProvider.d.ts +17 -0
  118. package/es/modal/ModalProvider.vue.js +33 -0
  119. package/es/modal/ModalProvider.vue2.js +4 -0
  120. package/es/modal/ModalRenderHost.d.ts +11 -0
  121. package/es/modal/ModalRenderHost.js +16 -0
  122. package/es/modal/index.d.ts +136 -57
  123. package/es/modal/index.js +6 -4
  124. package/es/modal/useModal.d.ts +14 -0
  125. package/es/modal/useModal.js +12 -0
  126. package/es/notification/Notification.css +1 -1
  127. package/es/notification/Notification.d.ts +41 -27
  128. package/es/notification/Notification.vue.js +2 -2
  129. package/es/notification/Notification.vue2.js +294 -154
  130. package/es/notification/NotificationProvider.d.ts +17 -0
  131. package/es/notification/NotificationProvider.vue.js +32 -0
  132. package/es/notification/NotificationProvider.vue2.js +4 -0
  133. package/es/notification/index.d.ts +51 -36
  134. package/es/notification/index.js +4 -2
  135. package/es/notification/useNotification.d.ts +13 -0
  136. package/es/notification/useNotification.js +14 -0
  137. package/es/number-animation/index.d.ts +1 -1
  138. package/es/pagination/Pagination.css +1 -1
  139. package/es/pagination/Pagination.d.ts +6 -4
  140. package/es/pagination/Pagination.vue.js +1 -1
  141. package/es/pagination/index.d.ts +7 -7
  142. package/es/popconfirm/Popconfirm.css +1 -1
  143. package/es/popconfirm/Popconfirm.d.ts +10 -9
  144. package/es/popconfirm/Popconfirm.vue.js +3 -3
  145. package/es/popconfirm/index.d.ts +10 -10
  146. package/es/popover/index.d.ts +1 -1
  147. package/es/progress/index.d.ts +1 -1
  148. package/es/qr-code/index.d.ts +1 -1
  149. package/es/radio/index.d.ts +1 -1
  150. package/es/rate/Rate.css +1 -1
  151. package/es/rate/Rate.d.ts +3 -2
  152. package/es/rate/Rate.vue.js +2 -2
  153. package/es/rate/index.d.ts +4 -4
  154. package/es/result/index.d.ts +1 -1
  155. package/es/scrollbar/index.d.ts +1 -1
  156. package/es/segmented/index.d.ts +1 -1
  157. package/es/select/Select.css +1 -1
  158. package/es/select/Select.d.ts +5 -4
  159. package/es/select/Select.vue.js +1 -1
  160. package/es/select/index.d.ts +7 -7
  161. package/es/skeleton/index.d.ts +1 -1
  162. package/es/slider/index.d.ts +1 -1
  163. package/es/space/index.d.ts +1 -1
  164. package/es/spin/index.d.ts +1 -1
  165. package/es/statistic/Statistic.css +1 -1
  166. package/es/statistic/Statistic.d.ts +2 -2
  167. package/es/statistic/Statistic.vue.js +2 -2
  168. package/es/statistic/index.d.ts +4 -4
  169. package/es/steps/index.d.ts +1 -1
  170. package/es/swiper/index.d.ts +1 -1
  171. package/es/switch/index.d.ts +1 -1
  172. package/es/table/Table.css +1 -1
  173. package/es/table/Table.d.ts +51 -125
  174. package/es/table/Table.vue.js +3 -3
  175. package/es/table/Table.vue2.js +378 -367
  176. package/es/table/index.d.ts +4 -768
  177. package/es/tabs/index.d.ts +1 -1
  178. package/es/tag/Tag.css +1 -1
  179. package/es/tag/Tag.d.ts +3 -2
  180. package/es/tag/Tag.vue.js +1 -1
  181. package/es/tag/index.d.ts +4 -4
  182. package/es/text-scroll/TextScroll.css +1 -1
  183. package/es/text-scroll/TextScroll.d.ts +3 -2
  184. package/es/text-scroll/TextScroll.vue.js +2 -2
  185. package/es/text-scroll/index.d.ts +4 -4
  186. package/es/textarea/index.d.ts +1 -1
  187. package/es/timeline/index.d.ts +1 -1
  188. package/es/tooltip/index.d.ts +1 -1
  189. package/es/upload/Upload.css +1 -1
  190. package/es/upload/Upload.d.ts +51 -141
  191. package/es/upload/Upload.vue.js +3 -3
  192. package/es/upload/Upload.vue2.js +110 -139
  193. package/es/upload/index.d.ts +44 -97
  194. package/es/utils/dom.d.ts +1 -0
  195. package/es/utils/dom.js +60 -43
  196. package/es/utils/resolver.d.ts +1 -1
  197. package/es/utils/resolver.js +39 -23
  198. package/es/video/index.d.ts +1 -1
  199. package/es/waterfall/Waterfall.css +1 -1
  200. package/es/waterfall/Waterfall.d.ts +3 -2
  201. package/es/waterfall/Waterfall.vue.js +2 -2
  202. package/es/waterfall/index.d.ts +4 -4
  203. package/es/watermark/index.d.ts +1 -1
  204. package/lib/alert/index.d.ts +1 -1
  205. package/lib/auto-complete/index.d.ts +1 -1
  206. package/lib/avatar/index.d.ts +1 -1
  207. package/lib/back-top/BackTop.css +1 -1
  208. package/lib/back-top/BackTop.d.ts +3 -2
  209. package/lib/back-top/BackTop.vue.cjs +1 -1
  210. package/lib/back-top/index.d.ts +4 -4
  211. package/lib/badge/index.d.ts +1 -1
  212. package/lib/breadcrumb/index.d.ts +1 -1
  213. package/lib/button/index.d.ts +1 -1
  214. package/lib/calendar/Calendar.css +1 -1
  215. package/lib/calendar/Calendar.d.ts +8 -6
  216. package/lib/calendar/Calendar.vue.cjs +1 -1
  217. package/lib/calendar/index.d.ts +10 -10
  218. package/lib/card/Card.css +1 -1
  219. package/lib/card/Card.d.ts +3 -2
  220. package/lib/card/Card.vue.cjs +1 -1
  221. package/lib/card/index.d.ts +4 -4
  222. package/lib/carousel/Carousel.css +1 -1
  223. package/lib/carousel/Carousel.d.ts +3 -2
  224. package/lib/carousel/Carousel.vue.cjs +1 -1
  225. package/lib/carousel/index.d.ts +4 -4
  226. package/lib/cascader/Cascader.css +1 -1
  227. package/lib/cascader/Cascader.d.ts +5 -4
  228. package/lib/cascader/Cascader.vue.cjs +1 -1
  229. package/lib/cascader/index.d.ts +7 -7
  230. package/lib/checkbox/index.d.ts +1 -1
  231. package/lib/collapse/Collapse.css +1 -1
  232. package/lib/collapse/Collapse.d.ts +8 -7
  233. package/lib/collapse/Collapse.vue.cjs +1 -1
  234. package/lib/collapse/index.d.ts +8 -8
  235. package/lib/color-picker/ColorPicker.css +1 -1
  236. package/lib/color-picker/ColorPicker.d.ts +7 -6
  237. package/lib/color-picker/ColorPicker.vue.cjs +1 -1
  238. package/lib/color-picker/index.d.ts +4 -4
  239. package/lib/components.cjs +1 -1
  240. package/lib/components.d.ts +73 -71
  241. package/lib/config-provider/index.cjs +1 -1
  242. package/lib/config-provider/index.d.ts +1 -1
  243. package/lib/countdown/index.d.ts +1 -1
  244. package/lib/date-picker/index.d.ts +1 -1
  245. package/lib/descriptions/index.d.ts +1 -1
  246. package/lib/dialog/Dialog.css +1 -1
  247. package/lib/dialog/Dialog.d.ts +138 -31
  248. package/lib/dialog/Dialog.vue.cjs +1 -1
  249. package/lib/dialog/Dialog.vue2.cjs +1 -1
  250. package/lib/dialog/DialogProvider.d.ts +17 -0
  251. package/lib/dialog/DialogProvider.vue.cjs +1 -0
  252. package/lib/dialog/DialogProvider.vue2.cjs +1 -0
  253. package/lib/dialog/index.cjs +1 -1
  254. package/lib/dialog/index.d.ts +126 -44
  255. package/lib/dialog/useDialog.cjs +1 -0
  256. package/lib/dialog/useDialog.d.ts +8 -0
  257. package/lib/discrete/createDiscreteApi.cjs +1 -0
  258. package/lib/discrete/createDiscreteApi.d.ts +25 -0
  259. package/lib/discrete/index.d.ts +2 -0
  260. package/lib/divider/index.d.ts +1 -1
  261. package/lib/drawer/Drawer.css +1 -1
  262. package/lib/drawer/Drawer.d.ts +3 -2
  263. package/lib/drawer/Drawer.vue.cjs +1 -1
  264. package/lib/drawer/Drawer.vue2.cjs +1 -1
  265. package/lib/drawer/index.d.ts +4 -4
  266. package/lib/ellipsis/Ellipsis.d.ts +4 -4
  267. package/lib/ellipsis/index.d.ts +1 -1
  268. package/lib/empty/index.d.ts +1 -1
  269. package/lib/flex/index.d.ts +1 -1
  270. package/lib/float-button/FloatButton.css +1 -1
  271. package/lib/float-button/FloatButton.d.ts +6 -4
  272. package/lib/float-button/FloatButton.vue.cjs +1 -1
  273. package/lib/float-button/index.d.ts +7 -7
  274. package/lib/gradient-text/index.d.ts +1 -1
  275. package/lib/grid/index.d.ts +1 -1
  276. package/lib/highlight/index.d.ts +1 -1
  277. package/lib/image/Image.css +1 -1
  278. package/lib/image/Image.d.ts +9 -7
  279. package/lib/image/Image.vue.cjs +1 -1
  280. package/lib/image/Image.vue2.cjs +1 -1
  281. package/lib/image/index.d.ts +13 -13
  282. package/lib/index.cjs +1 -1
  283. package/lib/index.d.ts +1 -1
  284. package/lib/input/index.d.ts +1 -1
  285. package/lib/input-number/index.d.ts +1 -1
  286. package/lib/input-search/InputSearch.css +1 -1
  287. package/lib/input-search/InputSearch.d.ts +3 -2
  288. package/lib/input-search/InputSearch.vue.cjs +1 -1
  289. package/lib/input-search/index.d.ts +4 -4
  290. package/lib/list/list/List.css +1 -1
  291. package/lib/list/list/List.d.ts +9 -6
  292. package/lib/list/list/List.vue.cjs +1 -1
  293. package/lib/list/list/index.d.ts +9 -9
  294. package/lib/list/list-item/ListItem.css +1 -1
  295. package/lib/list/list-item/ListItem.d.ts +3 -2
  296. package/lib/list/list-item/ListItem.vue.cjs +1 -1
  297. package/lib/list/list-item/index.d.ts +3 -3
  298. package/lib/loading-bar/index.d.ts +1 -1
  299. package/lib/message/Message.css +1 -1
  300. package/lib/message/Message.d.ts +32 -30
  301. package/lib/message/Message.vue.cjs +1 -1
  302. package/lib/message/Message.vue2.cjs +4 -4
  303. package/lib/message/MessageProvider.d.ts +17 -0
  304. package/lib/message/MessageProvider.vue.cjs +1 -0
  305. package/lib/message/MessageProvider.vue2.cjs +1 -0
  306. package/lib/message/index.cjs +1 -1
  307. package/lib/message/index.d.ts +51 -42
  308. package/lib/message/useMessage.cjs +1 -0
  309. package/lib/message/useMessage.d.ts +13 -0
  310. package/lib/modal/Modal.css +1 -1
  311. package/lib/modal/Modal.d.ts +134 -49
  312. package/lib/modal/Modal.vue.cjs +1 -1
  313. package/lib/modal/Modal.vue2.cjs +1 -8
  314. package/lib/modal/ModalProvider.d.ts +17 -0
  315. package/lib/modal/ModalProvider.vue.cjs +1 -0
  316. package/lib/modal/ModalProvider.vue2.cjs +1 -0
  317. package/lib/modal/ModalRenderHost.cjs +1 -0
  318. package/lib/modal/ModalRenderHost.d.ts +11 -0
  319. package/lib/modal/index.cjs +1 -1
  320. package/lib/modal/index.d.ts +136 -57
  321. package/lib/modal/useModal.cjs +1 -0
  322. package/lib/modal/useModal.d.ts +14 -0
  323. package/lib/notification/Notification.css +1 -1
  324. package/lib/notification/Notification.d.ts +41 -27
  325. package/lib/notification/Notification.vue.cjs +1 -1
  326. package/lib/notification/Notification.vue2.cjs +3 -3
  327. package/lib/notification/NotificationProvider.d.ts +17 -0
  328. package/lib/notification/NotificationProvider.vue.cjs +1 -0
  329. package/lib/notification/NotificationProvider.vue2.cjs +1 -0
  330. package/lib/notification/index.cjs +1 -1
  331. package/lib/notification/index.d.ts +51 -36
  332. package/lib/notification/useNotification.cjs +1 -0
  333. package/lib/notification/useNotification.d.ts +13 -0
  334. package/lib/number-animation/index.d.ts +1 -1
  335. package/lib/pagination/Pagination.css +1 -1
  336. package/lib/pagination/Pagination.d.ts +6 -4
  337. package/lib/pagination/Pagination.vue.cjs +1 -1
  338. package/lib/pagination/index.d.ts +7 -7
  339. package/lib/popconfirm/Popconfirm.css +1 -1
  340. package/lib/popconfirm/Popconfirm.d.ts +10 -9
  341. package/lib/popconfirm/Popconfirm.vue.cjs +1 -1
  342. package/lib/popconfirm/index.d.ts +10 -10
  343. package/lib/popover/index.d.ts +1 -1
  344. package/lib/progress/index.d.ts +1 -1
  345. package/lib/qr-code/index.d.ts +1 -1
  346. package/lib/radio/index.d.ts +1 -1
  347. package/lib/rate/Rate.css +1 -1
  348. package/lib/rate/Rate.d.ts +3 -2
  349. package/lib/rate/Rate.vue.cjs +1 -1
  350. package/lib/rate/index.d.ts +4 -4
  351. package/lib/result/index.d.ts +1 -1
  352. package/lib/scrollbar/index.d.ts +1 -1
  353. package/lib/segmented/index.d.ts +1 -1
  354. package/lib/select/Select.css +1 -1
  355. package/lib/select/Select.d.ts +5 -4
  356. package/lib/select/Select.vue.cjs +1 -1
  357. package/lib/select/index.d.ts +7 -7
  358. package/lib/skeleton/index.d.ts +1 -1
  359. package/lib/slider/index.d.ts +1 -1
  360. package/lib/space/index.d.ts +1 -1
  361. package/lib/spin/index.d.ts +1 -1
  362. package/lib/statistic/Statistic.css +1 -1
  363. package/lib/statistic/Statistic.d.ts +2 -2
  364. package/lib/statistic/Statistic.vue.cjs +1 -1
  365. package/lib/statistic/index.d.ts +4 -4
  366. package/lib/steps/index.d.ts +1 -1
  367. package/lib/swiper/index.d.ts +1 -1
  368. package/lib/switch/index.d.ts +1 -1
  369. package/lib/table/Table.css +1 -1
  370. package/lib/table/Table.d.ts +51 -125
  371. package/lib/table/Table.vue.cjs +1 -1
  372. package/lib/table/Table.vue2.cjs +1 -1
  373. package/lib/table/index.d.ts +4 -768
  374. package/lib/tabs/index.d.ts +1 -1
  375. package/lib/tag/Tag.css +1 -1
  376. package/lib/tag/Tag.d.ts +3 -2
  377. package/lib/tag/Tag.vue.cjs +1 -1
  378. package/lib/tag/index.d.ts +4 -4
  379. package/lib/text-scroll/TextScroll.css +1 -1
  380. package/lib/text-scroll/TextScroll.d.ts +3 -2
  381. package/lib/text-scroll/TextScroll.vue.cjs +1 -1
  382. package/lib/text-scroll/index.d.ts +4 -4
  383. package/lib/textarea/index.d.ts +1 -1
  384. package/lib/timeline/index.d.ts +1 -1
  385. package/lib/tooltip/index.d.ts +1 -1
  386. package/lib/upload/Upload.css +1 -1
  387. package/lib/upload/Upload.d.ts +51 -141
  388. package/lib/upload/Upload.vue.cjs +1 -1
  389. package/lib/upload/Upload.vue2.cjs +1 -1
  390. package/lib/upload/index.d.ts +44 -97
  391. package/lib/utils/dom.cjs +1 -1
  392. package/lib/utils/dom.d.ts +1 -0
  393. package/lib/utils/resolver.cjs +1 -1
  394. package/lib/utils/resolver.d.ts +1 -1
  395. package/lib/video/index.d.ts +1 -1
  396. package/lib/waterfall/Waterfall.css +1 -1
  397. package/lib/waterfall/Waterfall.d.ts +3 -2
  398. package/lib/waterfall/Waterfall.vue.cjs +1 -1
  399. package/lib/waterfall/index.d.ts +4 -4
  400. package/lib/watermark/index.d.ts +1 -1
  401. package/package.json +10 -4
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 `23` utility functions, with continuous exploration and updates ongoing...
20
+ - Currently, it includes `68` basic UI components and `24` 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.
@@ -184,6 +184,7 @@ import {
184
184
  getColorPalettes,
185
185
  getAlphaColor,
186
186
  getScrollParent,
187
+ lockScroll,
187
188
  useScrollParent,
188
189
  useFloatingPosition
189
190
  } from 'vue-amazing-ui'
@@ -298,5 +299,6 @@ All sponsors will be listed here, thank you very much for your support and spons
298
299
  | getColorPalettes | Function to generate a color palette from a primary color | (primaryColor: string) => string[] |
299
300
  | getAlphaColor | Function to get an alpha color, generally used as a shadow color | (frontColor: string, backgroundColor: string = '#ffffff') => string |
300
301
  | getScrollParent | Function to find the nearest scrollable parent element upward | (el: HTMLElement | null) => HTMLElement | null |
302
+ | lockScroll | Function to lock page scrolling and compensate the scrollbar width to prevent horizontal jitter | () => () => void |
301
303
  | 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
304
  | 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` 组件以及 `23` 个工具函数,并且持续探索更新中...
20
+ - 目前共包含 `68` 个基础 `UI` 组件以及 `24` 个工具函数,并且持续探索更新中...
21
21
  - 主题可调,你只需提供一个主题色,剩下的都交给我
22
22
  - 顺便一提,它们全都可以 `treeshaking`
23
23
  - `Vue Amazing UI` 全量使用 `TypeScript` 编写,和你的 `TypeScript` 项目无缝衔接
@@ -184,6 +184,7 @@ import {
184
184
  getColorPalettes,
185
185
  getAlphaColor,
186
186
  getScrollParent,
187
+ lockScroll,
187
188
  useScrollParent,
188
189
  useFloatingPosition
189
190
  } from 'vue-amazing-ui'
@@ -298,5 +299,6 @@ pnpm docs:dev
298
299
  | getColorPalettes | 根据主色生成颜色调色板函数 | (primaryColor: string) => string[] |
299
300
  | getAlphaColor | 获取透明度颜色函数,一般用作阴影色 | (frontColor: string, backgroundColor: string = '#ffffff') => string |
300
301
  | getScrollParent | 向上查找元素最近的可滚动父元素函数 | (el: HTMLElement &#124; null) => HTMLElement &#124; null |
302
+ | lockScroll | 锁定页面滚动并补偿滚动条宽度,防止页面横向抖动函数 | () => () => void |
301
303
  | 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
304
  | useFloatingPosition | 为弹出类组件提供统一测量骨架的组合式函数 | (contentRef: Ref\<HTMLElement &#124; null>, panelRef: Ref\<HTMLElement &#124; null>) => { positionedContainerRect: Ref\<DOMRect &#124; undefined>, contentRect: Ref\<DOMRect &#124; undefined>, measure: \() => Promise\<void> } |