yc-design-vue 1.7.6 → 1.7.8

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 (1055) hide show
  1. package/es/Alert/index.js +4 -3
  2. package/es/Alert/index.vue.js +100 -5
  3. package/es/Alert/index.vue3.js +5 -0
  4. package/es/Anchor/Anchor.vue.js +71 -5
  5. package/es/Anchor/Anchor.vue3.js +5 -0
  6. package/es/Anchor/AnchorLink.vue.js +75 -5
  7. package/es/Anchor/AnchorLink.vue3.js +5 -0
  8. package/es/Anchor/hooks/useContext.js +3 -2
  9. package/es/Anchor/index.css +1 -1
  10. package/es/Anchor/index.js +9 -7
  11. package/es/Avatar/Avatar.vue.js +113 -5
  12. package/es/Avatar/Avatar.vue3.js +5 -0
  13. package/es/Avatar/AvatarGroup.vue.js +93 -5
  14. package/es/Avatar/AvatarGroup.vue3.js +5 -0
  15. package/es/Avatar/index.css +1 -1
  16. package/es/Avatar/index.js +9 -7
  17. package/es/BackTop/index.js +4 -3
  18. package/es/BackTop/index.vue.js +80 -5
  19. package/es/BackTop/index.vue3.js +5 -0
  20. package/es/Badge/index.js +4 -3
  21. package/es/Badge/index.vue.js +90 -5
  22. package/es/Badge/index.vue3.js +5 -0
  23. package/es/Breadcrumb/Breadcrumb.vue.js +118 -5
  24. package/es/Breadcrumb/Breadcrumb.vue3.js +5 -0
  25. package/es/Breadcrumb/BreadcrumbItem.vue.js +75 -5
  26. package/es/Breadcrumb/BreadcrumbItem.vue3.js +5 -0
  27. package/es/Breadcrumb/BreadcrumbMore.vue.js +5 -4
  28. package/es/Breadcrumb/BreadcrumbSeparator.vue.js +42 -5
  29. package/es/Breadcrumb/BreadcrumbSeparator.vue3.js +5 -0
  30. package/es/Breadcrumb/index.css +1 -1
  31. package/es/Breadcrumb/index.js +9 -7
  32. package/es/Button/Button.vue.js +108 -5
  33. package/es/Button/Button.vue3.js +5 -0
  34. package/es/Button/index.js +7 -6
  35. package/es/Calendar/Calendar.vue.js +209 -5
  36. package/es/Calendar/Calendar.vue3.js +5 -0
  37. package/es/Calendar/CalendarMonth.vue.js +114 -5
  38. package/es/Calendar/CalendarMonth.vue3.js +5 -0
  39. package/es/Calendar/CalendarYear.vue.js +95 -5
  40. package/es/Calendar/CalendarYear.vue3.js +5 -0
  41. package/es/Calendar/index.js +4 -3
  42. package/es/Card/Card.vue.js +121 -5
  43. package/es/Card/Card.vue3.js +5 -0
  44. package/es/Card/CardGrid.vue.js +25 -5
  45. package/es/Card/CardGrid.vue3.js +5 -0
  46. package/es/Card/CardMeta.vue.js +68 -5
  47. package/es/Card/CardMeta.vue3.js +5 -0
  48. package/es/Card/index.css +1 -1
  49. package/es/Card/index.js +14 -11
  50. package/es/Carousel/Carousel.vue.js +131 -5
  51. package/es/Carousel/Carousel.vue3.js +5 -0
  52. package/es/Carousel/CarouselArrow.vue.js +53 -5
  53. package/es/Carousel/CarouselArrow.vue3.js +5 -0
  54. package/es/Carousel/CarouselIndicator.vue.js +55 -5
  55. package/es/Carousel/CarouselIndicator.vue3.js +5 -0
  56. package/es/Carousel/CarouselItem.vue.js +53 -5
  57. package/es/Carousel/CarouselItem.vue3.js +5 -0
  58. package/es/Carousel/hooks/useContext.js +3 -2
  59. package/es/Carousel/index.js +9 -7
  60. package/es/Cascader/Cascader.vue.js +288 -5
  61. package/es/Cascader/Cascader.vue3.js +5 -0
  62. package/es/Cascader/CascaderIcon.vue.js +65 -5
  63. package/es/Cascader/CascaderIcon.vue3.js +5 -0
  64. package/es/Cascader/CascaderOption.vue.js +205 -5
  65. package/es/Cascader/CascaderOption.vue3.js +5 -0
  66. package/es/Cascader/CascaderPanel.vue.js +62 -5
  67. package/es/Cascader/CascaderPanel.vue3.js +5 -0
  68. package/es/Cascader/CascaderSearchPanel.vue.js +43 -5
  69. package/es/Cascader/CascaderSearchPanel.vue3.js +5 -0
  70. package/es/Cascader/index.css +1 -1
  71. package/es/Cascader/index.js +4 -3
  72. package/es/Checkbox/Checkbox.vue.js +114 -5
  73. package/es/Checkbox/Checkbox.vue3.js +5 -0
  74. package/es/Checkbox/CheckboxGroup.vue.js +3 -2
  75. package/es/Checkbox/index.js +7 -6
  76. package/es/Collapse/Collapse.vue.js +36 -5
  77. package/es/Collapse/Collapse.vue3.js +5 -0
  78. package/es/Collapse/CollapseItem.vue.js +130 -5
  79. package/es/Collapse/CollapseItem.vue3.js +5 -0
  80. package/es/Collapse/index.css +1 -1
  81. package/es/Collapse/index.js +9 -7
  82. package/es/ColorPicker/ColorControl.vue.js +110 -5
  83. package/es/ColorPicker/ColorControl.vue3.js +5 -0
  84. package/es/ColorPicker/ColorInput.vue.js +159 -6
  85. package/es/ColorPicker/ColorInput.vue3.js +5 -0
  86. package/es/ColorPicker/ColorList.vue.js +45 -5
  87. package/es/ColorPicker/ColorList.vue3.js +5 -0
  88. package/es/ColorPicker/ColorPalette.vue.js +98 -5
  89. package/es/ColorPicker/ColorPalette.vue3.js +5 -0
  90. package/es/ColorPicker/ColorPanel.vue.js +145 -4
  91. package/es/ColorPicker/ColorPanel.vue3.js +5 -0
  92. package/es/ColorPicker/ColorPicker.vue.js +86 -5
  93. package/es/ColorPicker/ColorPicker.vue3.js +5 -0
  94. package/es/ColorPicker/index.css +1 -1
  95. package/es/ColorPicker/index.js +4 -3
  96. package/es/Comment/index.js +4 -3
  97. package/es/Comment/index.vue.js +108 -5
  98. package/es/Comment/index.vue3.js +5 -0
  99. package/es/Descriptions/Descriptions.vue.js +9 -7
  100. package/es/Descriptions/ReuseItem.vue.js +60 -5
  101. package/es/Descriptions/ReuseItem.vue3.js +5 -0
  102. package/es/Descriptions/ReuseTd.vue.js +54 -5
  103. package/es/Descriptions/ReuseTd.vue3.js +5 -0
  104. package/es/Divider/index.js +4 -3
  105. package/es/Divider/index.vue.js +52 -5
  106. package/es/Divider/index.vue3.js +5 -0
  107. package/es/Drawer/Drawer.vue.js +202 -5
  108. package/es/Drawer/Drawer.vue3.js +5 -0
  109. package/es/Drawer/DrawerService.vue.js +3 -2
  110. package/es/Drawer/index.js +7 -6
  111. package/es/Dropdown/Dgroup.vue.js +31 -5
  112. package/es/Dropdown/Dgroup.vue3.js +5 -0
  113. package/es/Dropdown/Doption.vue.js +63 -5
  114. package/es/Dropdown/Doption.vue3.js +5 -0
  115. package/es/Dropdown/Dsubmenu.vue.js +154 -5
  116. package/es/Dropdown/Dsubmenu.vue3.js +5 -0
  117. package/es/Dropdown/index.js +18 -15
  118. package/es/Empty/index.js +4 -3
  119. package/es/Empty/index.vue.js +46 -5
  120. package/es/Empty/index.vue3.js +5 -0
  121. package/es/Grid/Grid.vue.js +39 -5
  122. package/es/Grid/Grid.vue3.js +5 -0
  123. package/es/Grid/GridRow.vue.js +46 -5
  124. package/es/Grid/GridRow.vue3.js +5 -0
  125. package/es/Grid/index.js +15 -13
  126. package/es/Image/Image.vue.js +182 -5
  127. package/es/Image/Image.vue3.js +5 -0
  128. package/es/Image/ImagePreview.vue.js +212 -5
  129. package/es/Image/ImagePreview.vue3.js +5 -0
  130. package/es/Image/ImagePreviewAction.vue.js +49 -5
  131. package/es/Image/ImagePreviewAction.vue3.js +5 -0
  132. package/es/Image/ImagePreviewArrow.vue.js +25 -5
  133. package/es/Image/ImagePreviewArrow.vue3.js +5 -0
  134. package/es/Image/ImagePreviewGroup.vue.js +7 -5
  135. package/es/Image/ImagePreviewToolbar.vue.js +73 -5
  136. package/es/Image/ImagePreviewToolbar.vue3.js +5 -0
  137. package/es/Image/hooks/useContext.js +3 -2
  138. package/es/Image/index.js +17 -14
  139. package/es/Input/Input.vue.js +232 -5
  140. package/es/Input/Input.vue3.js +5 -0
  141. package/es/Input/InputSuffix.vue.js +50 -5
  142. package/es/Input/InputSuffix.vue3.js +5 -0
  143. package/es/Input/index.js +4 -3
  144. package/es/InputNumber/InputNumber.vue.js +269 -5
  145. package/es/InputNumber/InputNumber.vue3.js +5 -0
  146. package/es/InputNumber/InputOperaBtn.vue.js +56 -5
  147. package/es/InputNumber/InputOperaBtn.vue3.js +5 -0
  148. package/es/InputNumber/index.css +1 -1
  149. package/es/InputNumber/index.js +4 -3
  150. package/es/InputTag/index.css +1 -1
  151. package/es/InputTag/index.js +4 -3
  152. package/es/InputTag/index.vue.js +322 -5
  153. package/es/InputTag/index.vue3.js +5 -0
  154. package/es/Layout/Layout.vue.js +44 -5
  155. package/es/Layout/Layout.vue3.js +5 -0
  156. package/es/Layout/LayoutContent.vue.js +16 -5
  157. package/es/Layout/LayoutContent.vue3.js +5 -0
  158. package/es/Layout/LayoutFooter.vue.js +16 -5
  159. package/es/Layout/LayoutFooter.vue3.js +5 -0
  160. package/es/Layout/LayoutHeader.vue.js +16 -5
  161. package/es/Layout/LayoutHeader.vue3.js +5 -0
  162. package/es/Layout/LayoutSider.vue.js +130 -5
  163. package/es/Layout/LayoutSider.vue3.js +5 -0
  164. package/es/Layout/index.js +24 -19
  165. package/es/Link/index.js +4 -3
  166. package/es/Link/index.vue.js +69 -5
  167. package/es/Link/index.vue3.js +5 -0
  168. package/es/List/List.vue.js +207 -5
  169. package/es/List/List.vue3.js +5 -0
  170. package/es/List/ListItem.vue.js +56 -5
  171. package/es/List/ListItem.vue3.js +5 -0
  172. package/es/List/ListItemMeta.vue.js +47 -5
  173. package/es/List/ListItemMeta.vue3.js +5 -0
  174. package/es/List/index.css +1 -1
  175. package/es/List/index.js +14 -11
  176. package/es/Menu/Menu.vue.js +97 -5
  177. package/es/Menu/Menu.vue3.js +5 -0
  178. package/es/Menu/MenuEllipsis.vue.js +92 -5
  179. package/es/Menu/MenuEllipsis.vue3.js +5 -0
  180. package/es/Menu/MenuItem.vue.js +230 -5
  181. package/es/Menu/MenuItem.vue3.js +5 -0
  182. package/es/Menu/MenuItemGroup.vue.js +40 -5
  183. package/es/Menu/MenuItemGroup.vue3.js +5 -0
  184. package/es/Menu/MenuPopOption.vue.js +6 -4
  185. package/es/Menu/SubMenu.vue.js +79 -5
  186. package/es/Menu/SubMenu.vue3.js +5 -0
  187. package/es/Menu/hooks/useContext.js +7 -5
  188. package/es/Menu/index.css +1 -1
  189. package/es/Menu/index.js +19 -15
  190. package/es/Message/Message.vue.js +99 -5
  191. package/es/Message/Message.vue3.js +5 -0
  192. package/es/Message/MessageList.vue.js +30 -5
  193. package/es/Message/MessageList.vue3.js +5 -0
  194. package/es/Message/index.js +7 -5
  195. package/es/Modal/Modal.vue.js +255 -5
  196. package/es/Modal/Modal.vue3.js +5 -0
  197. package/es/Modal/ModalService.vue.js +3 -2
  198. package/es/Modal/index.js +6 -5
  199. package/es/Notification/Notification.vue.js +126 -5
  200. package/es/Notification/Notification.vue3.js +5 -0
  201. package/es/Notification/NotificationList.vue.js +34 -5
  202. package/es/Notification/NotificationList.vue3.js +5 -0
  203. package/es/Notification/index.js +7 -5
  204. package/es/OverflowList/index.css +1 -1
  205. package/es/OverflowList/index.js +4 -3
  206. package/es/OverflowList/index.vue.js +120 -5
  207. package/es/OverflowList/index.vue3.js +5 -0
  208. package/es/PageHeader/index.css +1 -1
  209. package/es/PageHeader/index.js +4 -3
  210. package/es/PageHeader/index.vue.js +95 -5
  211. package/es/PageHeader/index.vue3.js +5 -0
  212. package/es/Pagination/Pagination.vue.js +190 -5
  213. package/es/Pagination/Pagination.vue3.js +5 -0
  214. package/es/Pagination/PaginationItem.vue.js +83 -5
  215. package/es/Pagination/PaginationItem.vue3.js +5 -0
  216. package/es/Pagination/index.css +1 -1
  217. package/es/Pagination/index.js +4 -3
  218. package/es/Progress/Progress.vue.js +131 -5
  219. package/es/Progress/Progress.vue3.js +5 -0
  220. package/es/Progress/ProgressCircle.vue.js +147 -5
  221. package/es/Progress/ProgressCircle.vue3.js +5 -0
  222. package/es/Progress/ProgressLine.vue.js +97 -5
  223. package/es/Progress/ProgressLine.vue3.js +5 -0
  224. package/es/Progress/index.js +4 -3
  225. package/es/Radio/Radio.vue.js +122 -5
  226. package/es/Radio/Radio.vue3.js +5 -0
  227. package/es/Radio/RadioGroup.vue.js +3 -2
  228. package/es/Radio/index.js +7 -6
  229. package/es/Rate/index.js +4 -3
  230. package/es/Rate/index.vue.js +146 -5
  231. package/es/Rate/index.vue3.js +5 -0
  232. package/es/ResizeBox/index.js +4 -3
  233. package/es/ResizeBox/index.vue.js +159 -5
  234. package/es/ResizeBox/index.vue3.js +5 -0
  235. package/es/Result/index.js +4 -3
  236. package/es/Result/index.vue.js +72 -5
  237. package/es/Result/index.vue3.js +5 -0
  238. package/es/Scrollbar/Scrollbar.vue.js +224 -5
  239. package/es/Scrollbar/Scrollbar.vue3.js +5 -0
  240. package/es/Scrollbar/ScrollbarTrack.vue.js +112 -5
  241. package/es/Scrollbar/ScrollbarTrack.vue3.js +5 -0
  242. package/es/Scrollbar/index.css +1 -1
  243. package/es/Scrollbar/index.js +4 -3
  244. package/es/Select/Optgroup.vue.js +24 -5
  245. package/es/Select/Optgroup.vue3.js +5 -0
  246. package/es/Select/Option.vue.js +138 -5
  247. package/es/Select/Option.vue3.js +5 -0
  248. package/es/Select/Select.vue.js +302 -5
  249. package/es/Select/Select.vue3.js +5 -0
  250. package/es/Select/SelectIcon.vue.js +65 -5
  251. package/es/Select/SelectIcon.vue3.js +5 -0
  252. package/es/Select/SelectRealList.vue.js +95 -5
  253. package/es/Select/SelectRealList.vue3.js +5 -0
  254. package/es/Select/SelectView.vue.js +99 -5
  255. package/es/Select/SelectView.vue3.js +5 -0
  256. package/es/Select/SelectVirtualList.vue.js +60 -5
  257. package/es/Select/SelectVirtualList.vue3.js +5 -0
  258. package/es/Select/index.css +1 -1
  259. package/es/Select/index.js +14 -11
  260. package/es/Skeleton/SkeletonLine.vue.js +43 -5
  261. package/es/Skeleton/SkeletonLine.vue3.js +5 -0
  262. package/es/Skeleton/SkeletonShape.vue.js +29 -5
  263. package/es/Skeleton/SkeletonShape.vue3.js +5 -0
  264. package/es/Skeleton/index.css +1 -1
  265. package/es/Skeleton/index.js +10 -8
  266. package/es/Slider/Slider.vue.js +146 -5
  267. package/es/Slider/Slider.vue3.js +5 -0
  268. package/es/Slider/SliderBtn.vue.js +96 -5
  269. package/es/Slider/SliderBtn.vue3.js +5 -0
  270. package/es/Slider/SliderInput.vue.js +54 -5
  271. package/es/Slider/SliderInput.vue3.js +5 -0
  272. package/es/Slider/SliderTicks.vue.js +64 -5
  273. package/es/Slider/SliderTicks.vue3.js +5 -0
  274. package/es/Slider/index.css +1 -1
  275. package/es/Slider/index.js +4 -3
  276. package/es/Space/index.js +4 -3
  277. package/es/Space/index.vue.js +94 -5
  278. package/es/Space/index.vue3.js +5 -0
  279. package/es/Spin/index.js +4 -3
  280. package/es/Spin/index.vue.js +87 -5
  281. package/es/Spin/index.vue3.js +5 -0
  282. package/es/Split/index.js +4 -3
  283. package/es/Split/index.vue.js +144 -5
  284. package/es/Split/index.vue3.js +5 -0
  285. package/es/Statistic/Countdown.vue.js +3 -2
  286. package/es/Statistic/Statistic.vue.js +153 -5
  287. package/es/Statistic/Statistic.vue3.js +5 -0
  288. package/es/Statistic/index.js +7 -6
  289. package/es/Steps/Step.vue.js +113 -5
  290. package/es/Steps/Step.vue3.js +5 -0
  291. package/es/Steps/Steps.vue.js +41 -5
  292. package/es/Steps/Steps.vue3.js +5 -0
  293. package/es/Steps/index.js +9 -7
  294. package/es/Switch/index.js +4 -3
  295. package/es/Switch/index.vue.js +152 -5
  296. package/es/Switch/index.vue3.js +5 -0
  297. package/es/Tabs/TabButton.vue.js +36 -5
  298. package/es/Tabs/TabButton.vue3.js +5 -0
  299. package/es/Tabs/Tabs.vue.js +209 -5
  300. package/es/Tabs/Tabs.vue3.js +5 -0
  301. package/es/Tabs/TabsNavInk.vue.js +60 -5
  302. package/es/Tabs/TabsNavInk.vue3.js +5 -0
  303. package/es/Tabs/TabsTab.vue.js +90 -5
  304. package/es/Tabs/TabsTab.vue3.js +5 -0
  305. package/es/Tabs/index.js +6 -5
  306. package/es/Tag/index.js +4 -3
  307. package/es/Tag/index.vue.js +112 -5
  308. package/es/Tag/index.vue3.js +5 -0
  309. package/es/Textarea/index.js +4 -3
  310. package/es/Textarea/index.vue.js +163 -5
  311. package/es/Textarea/index.vue3.js +5 -0
  312. package/es/TimePicker/TimePicker.vue.js +214 -5
  313. package/es/TimePicker/TimePicker.vue3.js +5 -0
  314. package/es/TimePicker/TimePickerPanel.vue.js +215 -5
  315. package/es/TimePicker/TimePickerPanel.vue3.js +5 -0
  316. package/es/TimePicker/index.js +4 -3
  317. package/es/Timeline/Timeline.vue.js +52 -5
  318. package/es/Timeline/Timeline.vue3.js +5 -0
  319. package/es/Timeline/TimelineItem.vue.js +87 -5
  320. package/es/Timeline/TimelineItem.vue3.js +5 -0
  321. package/es/Timeline/TimelineItemPending.vue.js +3 -2
  322. package/es/Timeline/hooks/useContext.js +3 -2
  323. package/es/Timeline/index.css +1 -1
  324. package/es/Timeline/index.js +9 -7
  325. package/es/Transfer/Transfer.vue.js +104 -5
  326. package/es/Transfer/Transfer.vue3.js +5 -0
  327. package/es/Transfer/TransferPanel.vue.js +251 -5
  328. package/es/Transfer/TransferPanel.vue3.js +5 -0
  329. package/es/Transfer/index.css +1 -1
  330. package/es/Transfer/index.js +4 -3
  331. package/es/Trigger/index.js +4 -3
  332. package/es/Trigger/index.vue.js +186 -5
  333. package/es/Trigger/index.vue3.js +5 -0
  334. package/es/Typography/TypographyBase.vue.js +202 -5
  335. package/es/Typography/TypographyBase.vue3.js +5 -0
  336. package/es/Typography/TypographyParagraph.vue.js +49 -5
  337. package/es/Typography/TypographyParagraph.vue3.js +5 -0
  338. package/es/Typography/TypographyText.vue.js +3 -2
  339. package/es/Typography/TypographyTitle.vue.js +50 -5
  340. package/es/Typography/TypographyTitle.vue3.js +5 -0
  341. package/es/Typography/index.css +1 -1
  342. package/es/Typography/index.js +10 -8
  343. package/es/VerificationCode/index.css +1 -1
  344. package/es/VerificationCode/index.js +4 -3
  345. package/es/VerificationCode/index.vue.js +125 -5
  346. package/es/VerificationCode/index.vue3.js +5 -0
  347. package/es/Watermark/index.js +4 -3
  348. package/es/Watermark/index.vue.js +274 -5
  349. package/es/Watermark/index.vue3.js +5 -0
  350. package/es/_shared/components/ExpandTransition.vue2.js +47 -5
  351. package/es/_shared/components/ExpandTransition.vue3.js +2 -46
  352. package/es/_shared/components/Icon.vue2.js +1 -3
  353. package/es/_shared/components/Icon.vue3.js +1 -1
  354. package/es/_shared/components/IconButton.vue.js +44 -0
  355. package/es/_shared/components/IconButton.vue3.js +2 -41
  356. package/es/_shared/icons/IconArrowDown.vue.js +3 -2
  357. package/es/_shared/icons/IconArrowRight.vue.js +3 -2
  358. package/es/_shared/icons/IconCheck.vue.js +3 -2
  359. package/es/_shared/icons/IconCheckboxChecked.vue.js +3 -2
  360. package/es/_shared/icons/IconClose.vue.js +3 -2
  361. package/es/_shared/icons/IconCopy.vue.js +1 -16
  362. package/es/_shared/icons/IconCopy.vue2.js +17 -1
  363. package/es/_shared/icons/IconDelete.vue2.js +3 -2
  364. package/es/_shared/icons/IconDragDot.vue.js +3 -2
  365. package/es/_shared/icons/IconEdit.vue.js +1 -16
  366. package/es/_shared/icons/IconEdit.vue2.js +17 -1
  367. package/es/_shared/icons/IconEmpty.vue.js +3 -2
  368. package/es/_shared/icons/IconError.vue.js +3 -2
  369. package/es/_shared/icons/IconExclamation.vue2.js +3 -2
  370. package/es/_shared/icons/IconEyeClose.vue2.js +3 -2
  371. package/es/_shared/icons/IconEyeOpen.vue2.js +3 -2
  372. package/es/_shared/icons/IconFaceSmile.vue.js +3 -2
  373. package/es/_shared/icons/IconFullScreen.vue2.js +3 -2
  374. package/es/_shared/icons/IconImageClose.vue.js +3 -2
  375. package/es/_shared/icons/IconInfo.vue.js +3 -2
  376. package/es/_shared/icons/IconInfoLine.vue.js +3 -2
  377. package/es/_shared/icons/IconLink.vue.js +3 -2
  378. package/es/_shared/icons/IconLoading.vue.js +3 -2
  379. package/es/_shared/icons/IconMenuFold.vue.js +3 -2
  380. package/es/_shared/icons/IconMenuUnfold.vue.js +3 -2
  381. package/es/_shared/icons/IconMinus.vue2.js +3 -2
  382. package/es/_shared/icons/IconMore.vue.js +3 -2
  383. package/es/_shared/icons/IconOriginSize.vue2.js +3 -2
  384. package/es/_shared/icons/IconPlus.vue.js +3 -2
  385. package/es/_shared/icons/IconRight.vue.js +3 -2
  386. package/es/_shared/icons/IconRotateLeft.vue2.js +3 -2
  387. package/es/_shared/icons/IconRotateRight.vue2.js +3 -2
  388. package/es/_shared/icons/IconSearch.vue2.js +3 -2
  389. package/es/_shared/icons/IconSeparator.vue2.js +3 -2
  390. package/es/_shared/icons/IconStar.vue.js +3 -2
  391. package/es/_shared/icons/IconSuccess.vue.js +3 -2
  392. package/es/_shared/icons/IconTime.vue.js +3 -2
  393. package/es/_shared/icons/IconToTop.vue.js +3 -2
  394. package/es/_shared/icons/IconWarning.vue.js +3 -2
  395. package/es/_shared/icons/IconZoomIn.vue2.js +3 -2
  396. package/es/_shared/icons/IconZoomOut.vue2.js +3 -2
  397. package/es/index.js +153 -123
  398. package/es/shared.css +1 -1
  399. package/es/style.css +1 -1
  400. package/lib/Alert/index.js +1 -1
  401. package/lib/Alert/index.vue.js +1 -1
  402. package/lib/Alert/index.vue3.js +1 -0
  403. package/lib/Anchor/Anchor.vue.js +1 -1
  404. package/lib/Anchor/Anchor.vue3.js +1 -0
  405. package/lib/Anchor/AnchorLink.vue.js +1 -1
  406. package/lib/Anchor/AnchorLink.vue3.js +1 -0
  407. package/lib/Anchor/hooks/useContext.js +1 -1
  408. package/lib/Anchor/index.css +1 -1
  409. package/lib/Anchor/index.js +1 -1
  410. package/lib/Avatar/Avatar.vue.js +1 -1
  411. package/lib/Avatar/Avatar.vue3.js +1 -0
  412. package/lib/Avatar/AvatarGroup.vue.js +1 -1
  413. package/lib/Avatar/AvatarGroup.vue3.js +1 -0
  414. package/lib/Avatar/index.css +1 -1
  415. package/lib/Avatar/index.js +1 -1
  416. package/lib/BackTop/index.js +1 -1
  417. package/lib/BackTop/index.vue.js +1 -1
  418. package/lib/BackTop/index.vue3.js +1 -0
  419. package/lib/Badge/index.js +1 -1
  420. package/lib/Badge/index.vue.js +1 -1
  421. package/lib/Badge/index.vue3.js +1 -0
  422. package/lib/Breadcrumb/Breadcrumb.vue.js +1 -1
  423. package/lib/Breadcrumb/Breadcrumb.vue3.js +1 -0
  424. package/lib/Breadcrumb/BreadcrumbItem.vue.js +1 -1
  425. package/lib/Breadcrumb/BreadcrumbItem.vue3.js +1 -0
  426. package/lib/Breadcrumb/BreadcrumbMore.vue.js +1 -1
  427. package/lib/Breadcrumb/BreadcrumbSeparator.vue.js +1 -1
  428. package/lib/Breadcrumb/BreadcrumbSeparator.vue3.js +1 -0
  429. package/lib/Breadcrumb/index.css +1 -1
  430. package/lib/Breadcrumb/index.js +1 -1
  431. package/lib/Button/Button.vue.js +1 -1
  432. package/lib/Button/Button.vue3.js +1 -0
  433. package/lib/Button/index.js +1 -1
  434. package/lib/Calendar/Calendar.vue.js +1 -1
  435. package/lib/Calendar/Calendar.vue3.js +1 -0
  436. package/lib/Calendar/CalendarMonth.vue.js +1 -1
  437. package/lib/Calendar/CalendarMonth.vue3.js +1 -0
  438. package/lib/Calendar/CalendarYear.vue.js +1 -1
  439. package/lib/Calendar/CalendarYear.vue3.js +1 -0
  440. package/lib/Calendar/index.js +1 -1
  441. package/lib/Card/Card.vue.js +1 -1
  442. package/lib/Card/Card.vue3.js +1 -0
  443. package/lib/Card/CardGrid.vue.js +1 -1
  444. package/lib/Card/CardGrid.vue3.js +1 -0
  445. package/lib/Card/CardMeta.vue.js +1 -1
  446. package/lib/Card/CardMeta.vue3.js +1 -0
  447. package/lib/Card/index.css +1 -1
  448. package/lib/Card/index.js +1 -1
  449. package/lib/Carousel/Carousel.vue.js +1 -1
  450. package/lib/Carousel/Carousel.vue3.js +1 -0
  451. package/lib/Carousel/CarouselArrow.vue.js +1 -1
  452. package/lib/Carousel/CarouselArrow.vue3.js +1 -0
  453. package/lib/Carousel/CarouselIndicator.vue.js +1 -1
  454. package/lib/Carousel/CarouselIndicator.vue3.js +1 -0
  455. package/lib/Carousel/CarouselItem.vue.js +1 -1
  456. package/lib/Carousel/CarouselItem.vue3.js +1 -0
  457. package/lib/Carousel/hooks/useContext.js +1 -1
  458. package/lib/Carousel/index.js +1 -1
  459. package/lib/Cascader/Cascader.vue.js +1 -1
  460. package/lib/Cascader/Cascader.vue3.js +1 -0
  461. package/lib/Cascader/CascaderIcon.vue.js +1 -1
  462. package/lib/Cascader/CascaderIcon.vue3.js +1 -0
  463. package/lib/Cascader/CascaderOption.vue.js +1 -1
  464. package/lib/Cascader/CascaderOption.vue3.js +1 -0
  465. package/lib/Cascader/CascaderPanel.vue.js +1 -1
  466. package/lib/Cascader/CascaderPanel.vue3.js +1 -0
  467. package/lib/Cascader/CascaderSearchPanel.vue.js +1 -1
  468. package/lib/Cascader/CascaderSearchPanel.vue3.js +1 -0
  469. package/lib/Cascader/index.css +1 -1
  470. package/lib/Cascader/index.js +1 -1
  471. package/lib/Checkbox/Checkbox.vue.js +1 -1
  472. package/lib/Checkbox/Checkbox.vue3.js +1 -0
  473. package/lib/Checkbox/CheckboxGroup.vue.js +1 -1
  474. package/lib/Checkbox/index.js +1 -1
  475. package/lib/Collapse/Collapse.vue.js +1 -1
  476. package/lib/Collapse/Collapse.vue3.js +1 -0
  477. package/lib/Collapse/CollapseItem.vue.js +1 -1
  478. package/lib/Collapse/CollapseItem.vue3.js +1 -0
  479. package/lib/Collapse/index.css +1 -1
  480. package/lib/Collapse/index.js +1 -1
  481. package/lib/ColorPicker/ColorControl.vue.js +1 -1
  482. package/lib/ColorPicker/ColorControl.vue3.js +1 -0
  483. package/lib/ColorPicker/ColorInput.vue.js +1 -1
  484. package/lib/ColorPicker/ColorInput.vue3.js +1 -0
  485. package/lib/ColorPicker/ColorList.vue.js +1 -1
  486. package/lib/ColorPicker/ColorList.vue3.js +1 -0
  487. package/lib/ColorPicker/ColorPalette.vue.js +1 -1
  488. package/lib/ColorPicker/ColorPalette.vue3.js +1 -0
  489. package/lib/ColorPicker/ColorPanel.vue.js +1 -1
  490. package/lib/ColorPicker/ColorPanel.vue3.js +1 -0
  491. package/lib/ColorPicker/ColorPicker.vue.js +1 -1
  492. package/lib/ColorPicker/ColorPicker.vue3.js +1 -0
  493. package/lib/ColorPicker/index.css +1 -1
  494. package/lib/ColorPicker/index.js +1 -1
  495. package/lib/Comment/index.js +1 -1
  496. package/lib/Comment/index.vue.js +1 -1
  497. package/lib/Comment/index.vue3.js +1 -0
  498. package/lib/Descriptions/Descriptions.vue.js +1 -1
  499. package/lib/Descriptions/ReuseItem.vue.js +1 -1
  500. package/lib/Descriptions/ReuseItem.vue3.js +1 -0
  501. package/lib/Descriptions/ReuseTd.vue.js +1 -1
  502. package/lib/Descriptions/ReuseTd.vue3.js +1 -0
  503. package/lib/Divider/index.js +1 -1
  504. package/lib/Divider/index.vue.js +1 -1
  505. package/lib/Divider/index.vue3.js +1 -0
  506. package/lib/Drawer/Drawer.vue.js +1 -1
  507. package/lib/Drawer/Drawer.vue3.js +1 -0
  508. package/lib/Drawer/DrawerService.vue.js +1 -1
  509. package/lib/Drawer/index.js +1 -1
  510. package/lib/Dropdown/Dgroup.vue.js +1 -1
  511. package/lib/Dropdown/Dgroup.vue3.js +1 -0
  512. package/lib/Dropdown/Doption.vue.js +1 -1
  513. package/lib/Dropdown/Doption.vue3.js +1 -0
  514. package/lib/Dropdown/Dsubmenu.vue.js +1 -1
  515. package/lib/Dropdown/Dsubmenu.vue3.js +1 -0
  516. package/lib/Dropdown/index.js +1 -1
  517. package/lib/Empty/index.js +1 -1
  518. package/lib/Empty/index.vue.js +1 -1
  519. package/lib/Empty/index.vue3.js +1 -0
  520. package/lib/Grid/Grid.vue.js +1 -1
  521. package/lib/Grid/Grid.vue3.js +1 -0
  522. package/lib/Grid/GridRow.vue.js +1 -1
  523. package/lib/Grid/GridRow.vue3.js +1 -0
  524. package/lib/Grid/index.js +1 -1
  525. package/lib/Image/Image.vue.js +1 -1
  526. package/lib/Image/Image.vue3.js +1 -0
  527. package/lib/Image/ImagePreview.vue.js +1 -1
  528. package/lib/Image/ImagePreview.vue3.js +1 -0
  529. package/lib/Image/ImagePreviewAction.vue.js +1 -1
  530. package/lib/Image/ImagePreviewAction.vue3.js +1 -0
  531. package/lib/Image/ImagePreviewArrow.vue.js +1 -1
  532. package/lib/Image/ImagePreviewArrow.vue3.js +1 -0
  533. package/lib/Image/ImagePreviewGroup.vue.js +1 -1
  534. package/lib/Image/ImagePreviewToolbar.vue.js +1 -1
  535. package/lib/Image/ImagePreviewToolbar.vue3.js +1 -0
  536. package/lib/Image/hooks/useContext.js +1 -1
  537. package/lib/Image/index.js +1 -1
  538. package/lib/Input/Input.vue.js +1 -1
  539. package/lib/Input/Input.vue3.js +1 -0
  540. package/lib/Input/InputSuffix.vue.js +1 -1
  541. package/lib/Input/InputSuffix.vue3.js +1 -0
  542. package/lib/Input/index.js +1 -1
  543. package/lib/InputNumber/InputNumber.vue.js +1 -1
  544. package/lib/InputNumber/InputNumber.vue3.js +1 -0
  545. package/lib/InputNumber/InputOperaBtn.vue.js +1 -1
  546. package/lib/InputNumber/InputOperaBtn.vue3.js +1 -0
  547. package/lib/InputNumber/index.css +1 -1
  548. package/lib/InputNumber/index.js +1 -1
  549. package/lib/InputTag/index.css +1 -1
  550. package/lib/InputTag/index.js +1 -1
  551. package/lib/InputTag/index.vue.js +1 -1
  552. package/lib/InputTag/index.vue3.js +1 -0
  553. package/lib/Layout/Layout.vue.js +1 -1
  554. package/lib/Layout/Layout.vue3.js +1 -0
  555. package/lib/Layout/LayoutContent.vue.js +1 -1
  556. package/lib/Layout/LayoutContent.vue3.js +1 -0
  557. package/lib/Layout/LayoutFooter.vue.js +1 -1
  558. package/lib/Layout/LayoutFooter.vue3.js +1 -0
  559. package/lib/Layout/LayoutHeader.vue.js +1 -1
  560. package/lib/Layout/LayoutHeader.vue3.js +1 -0
  561. package/lib/Layout/LayoutSider.vue.js +1 -1
  562. package/lib/Layout/LayoutSider.vue3.js +1 -0
  563. package/lib/Layout/index.js +1 -1
  564. package/lib/Link/index.js +1 -1
  565. package/lib/Link/index.vue.js +1 -1
  566. package/lib/Link/index.vue3.js +1 -0
  567. package/lib/List/List.vue.js +1 -1
  568. package/lib/List/List.vue3.js +1 -0
  569. package/lib/List/ListItem.vue.js +1 -1
  570. package/lib/List/ListItem.vue3.js +1 -0
  571. package/lib/List/ListItemMeta.vue.js +1 -1
  572. package/lib/List/ListItemMeta.vue3.js +1 -0
  573. package/lib/List/index.css +1 -1
  574. package/lib/List/index.js +1 -1
  575. package/lib/Menu/Menu.vue.js +1 -1
  576. package/lib/Menu/Menu.vue3.js +1 -0
  577. package/lib/Menu/MenuEllipsis.vue.js +1 -1
  578. package/lib/Menu/MenuEllipsis.vue3.js +1 -0
  579. package/lib/Menu/MenuItem.vue.js +1 -1
  580. package/lib/Menu/MenuItem.vue3.js +1 -0
  581. package/lib/Menu/MenuItemGroup.vue.js +1 -1
  582. package/lib/Menu/MenuItemGroup.vue3.js +1 -0
  583. package/lib/Menu/MenuPopOption.vue.js +1 -1
  584. package/lib/Menu/SubMenu.vue.js +1 -1
  585. package/lib/Menu/SubMenu.vue3.js +1 -0
  586. package/lib/Menu/hooks/useContext.js +1 -1
  587. package/lib/Menu/index.css +1 -1
  588. package/lib/Menu/index.js +1 -1
  589. package/lib/Message/Message.vue.js +1 -1
  590. package/lib/Message/Message.vue3.js +1 -0
  591. package/lib/Message/MessageList.vue.js +1 -1
  592. package/lib/Message/MessageList.vue3.js +1 -0
  593. package/lib/Message/index.js +1 -1
  594. package/lib/Modal/Modal.vue.js +1 -1
  595. package/lib/Modal/Modal.vue3.js +1 -0
  596. package/lib/Modal/ModalService.vue.js +1 -1
  597. package/lib/Modal/index.js +1 -1
  598. package/lib/Notification/Notification.vue.js +1 -1
  599. package/lib/Notification/Notification.vue3.js +1 -0
  600. package/lib/Notification/NotificationList.vue.js +1 -1
  601. package/lib/Notification/NotificationList.vue3.js +1 -0
  602. package/lib/Notification/index.js +1 -1
  603. package/lib/OverflowList/index.css +1 -1
  604. package/lib/OverflowList/index.js +1 -1
  605. package/lib/OverflowList/index.vue.js +1 -1
  606. package/lib/OverflowList/index.vue3.js +1 -0
  607. package/lib/PageHeader/index.css +1 -1
  608. package/lib/PageHeader/index.js +1 -1
  609. package/lib/PageHeader/index.vue.js +1 -1
  610. package/lib/PageHeader/index.vue3.js +1 -0
  611. package/lib/Pagination/Pagination.vue.js +1 -1
  612. package/lib/Pagination/Pagination.vue3.js +1 -0
  613. package/lib/Pagination/PaginationItem.vue.js +1 -1
  614. package/lib/Pagination/PaginationItem.vue3.js +1 -0
  615. package/lib/Pagination/index.css +1 -1
  616. package/lib/Pagination/index.js +1 -1
  617. package/lib/Progress/Progress.vue.js +1 -1
  618. package/lib/Progress/Progress.vue3.js +1 -0
  619. package/lib/Progress/ProgressCircle.vue.js +1 -1
  620. package/lib/Progress/ProgressCircle.vue3.js +1 -0
  621. package/lib/Progress/ProgressLine.vue.js +1 -1
  622. package/lib/Progress/ProgressLine.vue3.js +1 -0
  623. package/lib/Progress/index.js +1 -1
  624. package/lib/Radio/Radio.vue.js +1 -1
  625. package/lib/Radio/Radio.vue3.js +1 -0
  626. package/lib/Radio/RadioGroup.vue.js +1 -1
  627. package/lib/Radio/index.js +1 -1
  628. package/lib/Rate/index.js +1 -1
  629. package/lib/Rate/index.vue.js +1 -1
  630. package/lib/Rate/index.vue3.js +1 -0
  631. package/lib/ResizeBox/index.js +1 -1
  632. package/lib/ResizeBox/index.vue.js +1 -1
  633. package/lib/ResizeBox/index.vue3.js +1 -0
  634. package/lib/Result/index.js +1 -1
  635. package/lib/Result/index.vue.js +1 -1
  636. package/lib/Result/index.vue3.js +1 -0
  637. package/lib/Scrollbar/Scrollbar.vue.js +1 -1
  638. package/lib/Scrollbar/Scrollbar.vue3.js +1 -0
  639. package/lib/Scrollbar/ScrollbarTrack.vue.js +1 -1
  640. package/lib/Scrollbar/ScrollbarTrack.vue3.js +1 -0
  641. package/lib/Scrollbar/index.css +1 -1
  642. package/lib/Scrollbar/index.js +1 -1
  643. package/lib/Select/Optgroup.vue.js +1 -1
  644. package/lib/Select/Optgroup.vue3.js +1 -0
  645. package/lib/Select/Option.vue.js +1 -1
  646. package/lib/Select/Option.vue3.js +1 -0
  647. package/lib/Select/Select.vue.js +1 -1
  648. package/lib/Select/Select.vue3.js +1 -0
  649. package/lib/Select/SelectIcon.vue.js +1 -1
  650. package/lib/Select/SelectIcon.vue3.js +1 -0
  651. package/lib/Select/SelectRealList.vue.js +1 -1
  652. package/lib/Select/SelectRealList.vue3.js +1 -0
  653. package/lib/Select/SelectView.vue.js +1 -1
  654. package/lib/Select/SelectView.vue3.js +1 -0
  655. package/lib/Select/SelectVirtualList.vue.js +1 -1
  656. package/lib/Select/SelectVirtualList.vue3.js +1 -0
  657. package/lib/Select/index.css +1 -1
  658. package/lib/Select/index.js +1 -1
  659. package/lib/Skeleton/SkeletonLine.vue.js +1 -1
  660. package/lib/Skeleton/SkeletonLine.vue3.js +1 -0
  661. package/lib/Skeleton/SkeletonShape.vue.js +1 -1
  662. package/lib/Skeleton/SkeletonShape.vue3.js +1 -0
  663. package/lib/Skeleton/index.css +1 -1
  664. package/lib/Skeleton/index.js +1 -1
  665. package/lib/Slider/Slider.vue.js +1 -1
  666. package/lib/Slider/Slider.vue3.js +1 -0
  667. package/lib/Slider/SliderBtn.vue.js +1 -1
  668. package/lib/Slider/SliderBtn.vue3.js +1 -0
  669. package/lib/Slider/SliderInput.vue.js +1 -1
  670. package/lib/Slider/SliderInput.vue3.js +1 -0
  671. package/lib/Slider/SliderTicks.vue.js +1 -1
  672. package/lib/Slider/SliderTicks.vue3.js +1 -0
  673. package/lib/Slider/index.css +1 -1
  674. package/lib/Slider/index.js +1 -1
  675. package/lib/Space/index.js +1 -1
  676. package/lib/Space/index.vue.js +1 -1
  677. package/lib/Space/index.vue3.js +1 -0
  678. package/lib/Spin/index.js +1 -1
  679. package/lib/Spin/index.vue.js +1 -1
  680. package/lib/Spin/index.vue3.js +1 -0
  681. package/lib/Split/index.js +1 -1
  682. package/lib/Split/index.vue.js +1 -1
  683. package/lib/Split/index.vue3.js +1 -0
  684. package/lib/Statistic/Countdown.vue.js +1 -1
  685. package/lib/Statistic/Statistic.vue.js +1 -1
  686. package/lib/Statistic/Statistic.vue3.js +1 -0
  687. package/lib/Statistic/index.js +1 -1
  688. package/lib/Steps/Step.vue.js +1 -1
  689. package/lib/Steps/Step.vue3.js +1 -0
  690. package/lib/Steps/Steps.vue.js +1 -1
  691. package/lib/Steps/Steps.vue3.js +1 -0
  692. package/lib/Steps/index.js +1 -1
  693. package/lib/Switch/index.js +1 -1
  694. package/lib/Switch/index.vue.js +1 -1
  695. package/lib/Switch/index.vue3.js +1 -0
  696. package/lib/Tabs/TabButton.vue.js +1 -1
  697. package/lib/Tabs/TabButton.vue3.js +1 -0
  698. package/lib/Tabs/Tabs.vue.js +1 -1
  699. package/lib/Tabs/Tabs.vue3.js +1 -0
  700. package/lib/Tabs/TabsNavInk.vue.js +1 -1
  701. package/lib/Tabs/TabsNavInk.vue3.js +1 -0
  702. package/lib/Tabs/TabsTab.vue.js +1 -1
  703. package/lib/Tabs/TabsTab.vue3.js +1 -0
  704. package/lib/Tabs/index.js +1 -1
  705. package/lib/Tag/index.js +1 -1
  706. package/lib/Tag/index.vue.js +1 -1
  707. package/lib/Tag/index.vue3.js +1 -0
  708. package/lib/Textarea/index.js +1 -1
  709. package/lib/Textarea/index.vue.js +1 -1
  710. package/lib/Textarea/index.vue3.js +1 -0
  711. package/lib/TimePicker/TimePicker.vue.js +1 -1
  712. package/lib/TimePicker/TimePicker.vue3.js +1 -0
  713. package/lib/TimePicker/TimePickerPanel.vue.js +1 -1
  714. package/lib/TimePicker/TimePickerPanel.vue3.js +1 -0
  715. package/lib/TimePicker/index.js +1 -1
  716. package/lib/Timeline/Timeline.vue.js +1 -1
  717. package/lib/Timeline/Timeline.vue3.js +1 -0
  718. package/lib/Timeline/TimelineItem.vue.js +1 -1
  719. package/lib/Timeline/TimelineItem.vue3.js +1 -0
  720. package/lib/Timeline/TimelineItemPending.vue.js +1 -1
  721. package/lib/Timeline/hooks/useContext.js +1 -1
  722. package/lib/Timeline/index.css +1 -1
  723. package/lib/Timeline/index.js +1 -1
  724. package/lib/Transfer/Transfer.vue.js +1 -1
  725. package/lib/Transfer/Transfer.vue3.js +1 -0
  726. package/lib/Transfer/TransferPanel.vue.js +1 -1
  727. package/lib/Transfer/TransferPanel.vue3.js +1 -0
  728. package/lib/Transfer/index.css +1 -1
  729. package/lib/Transfer/index.js +1 -1
  730. package/lib/Trigger/index.js +1 -1
  731. package/lib/Trigger/index.vue.js +1 -1
  732. package/lib/Trigger/index.vue3.js +1 -0
  733. package/lib/Typography/TypographyBase.vue.js +1 -1
  734. package/lib/Typography/TypographyBase.vue3.js +1 -0
  735. package/lib/Typography/TypographyParagraph.vue.js +1 -1
  736. package/lib/Typography/TypographyParagraph.vue3.js +1 -0
  737. package/lib/Typography/TypographyText.vue.js +1 -1
  738. package/lib/Typography/TypographyTitle.vue.js +1 -1
  739. package/lib/Typography/TypographyTitle.vue3.js +1 -0
  740. package/lib/Typography/index.css +1 -1
  741. package/lib/Typography/index.js +1 -1
  742. package/lib/VerificationCode/index.css +1 -1
  743. package/lib/VerificationCode/index.js +1 -1
  744. package/lib/VerificationCode/index.vue.js +1 -1
  745. package/lib/VerificationCode/index.vue3.js +1 -0
  746. package/lib/Watermark/index.js +1 -1
  747. package/lib/Watermark/index.vue.js +1 -1
  748. package/lib/Watermark/index.vue3.js +1 -0
  749. package/lib/_shared/components/ExpandTransition.vue2.js +1 -1
  750. package/lib/_shared/components/ExpandTransition.vue3.js +1 -1
  751. package/lib/_shared/components/Icon.vue2.js +1 -1
  752. package/lib/_shared/components/Icon.vue3.js +1 -1
  753. package/lib/_shared/components/IconButton.vue.js +1 -0
  754. package/lib/_shared/components/IconButton.vue3.js +1 -1
  755. package/lib/_shared/icons/IconArrowDown.vue.js +1 -1
  756. package/lib/_shared/icons/IconArrowRight.vue.js +1 -1
  757. package/lib/_shared/icons/IconCheck.vue.js +1 -1
  758. package/lib/_shared/icons/IconCheckboxChecked.vue.js +1 -1
  759. package/lib/_shared/icons/IconClose.vue.js +1 -1
  760. package/lib/_shared/icons/IconCopy.vue.js +1 -1
  761. package/lib/_shared/icons/IconCopy.vue2.js +1 -1
  762. package/lib/_shared/icons/IconDelete.vue2.js +1 -1
  763. package/lib/_shared/icons/IconDragDot.vue.js +1 -1
  764. package/lib/_shared/icons/IconEdit.vue.js +1 -1
  765. package/lib/_shared/icons/IconEdit.vue2.js +1 -1
  766. package/lib/_shared/icons/IconEmpty.vue.js +1 -1
  767. package/lib/_shared/icons/IconError.vue.js +1 -1
  768. package/lib/_shared/icons/IconExclamation.vue2.js +1 -1
  769. package/lib/_shared/icons/IconEyeClose.vue2.js +1 -1
  770. package/lib/_shared/icons/IconEyeOpen.vue2.js +1 -1
  771. package/lib/_shared/icons/IconFaceSmile.vue.js +1 -1
  772. package/lib/_shared/icons/IconFullScreen.vue2.js +1 -1
  773. package/lib/_shared/icons/IconImageClose.vue.js +1 -1
  774. package/lib/_shared/icons/IconInfo.vue.js +1 -1
  775. package/lib/_shared/icons/IconInfoLine.vue.js +1 -1
  776. package/lib/_shared/icons/IconLink.vue.js +1 -1
  777. package/lib/_shared/icons/IconLoading.vue.js +1 -1
  778. package/lib/_shared/icons/IconMenuFold.vue.js +1 -1
  779. package/lib/_shared/icons/IconMenuUnfold.vue.js +1 -1
  780. package/lib/_shared/icons/IconMinus.vue2.js +1 -1
  781. package/lib/_shared/icons/IconMore.vue.js +1 -1
  782. package/lib/_shared/icons/IconOriginSize.vue2.js +1 -1
  783. package/lib/_shared/icons/IconPlus.vue.js +1 -1
  784. package/lib/_shared/icons/IconRight.vue.js +1 -1
  785. package/lib/_shared/icons/IconRotateLeft.vue2.js +1 -1
  786. package/lib/_shared/icons/IconRotateRight.vue2.js +1 -1
  787. package/lib/_shared/icons/IconSearch.vue2.js +1 -1
  788. package/lib/_shared/icons/IconSeparator.vue2.js +1 -1
  789. package/lib/_shared/icons/IconStar.vue.js +1 -1
  790. package/lib/_shared/icons/IconSuccess.vue.js +1 -1
  791. package/lib/_shared/icons/IconTime.vue.js +1 -1
  792. package/lib/_shared/icons/IconToTop.vue.js +1 -1
  793. package/lib/_shared/icons/IconWarning.vue.js +1 -1
  794. package/lib/_shared/icons/IconZoomIn.vue2.js +1 -1
  795. package/lib/_shared/icons/IconZoomOut.vue2.js +1 -1
  796. package/lib/index.js +1 -1
  797. package/lib/shared.css +1 -1
  798. package/lib/style.css +1 -1
  799. package/package.json +1 -1
  800. package/es/Alert/index.vue2.js +0 -101
  801. package/es/Anchor/Anchor.vue2.js +0 -73
  802. package/es/Anchor/AnchorLink.vue2.js +0 -77
  803. package/es/Avatar/Avatar.vue2.js +0 -115
  804. package/es/Avatar/AvatarGroup.vue2.js +0 -95
  805. package/es/BackTop/index.vue2.js +0 -82
  806. package/es/Badge/index.vue2.js +0 -92
  807. package/es/Breadcrumb/Breadcrumb.vue2.js +0 -118
  808. package/es/Breadcrumb/BreadcrumbItem.vue2.js +0 -76
  809. package/es/Breadcrumb/BreadcrumbSeparator.vue2.js +0 -44
  810. package/es/Button/Button.vue2.js +0 -110
  811. package/es/Calendar/Calendar.vue2.js +0 -208
  812. package/es/Calendar/CalendarMonth.vue2.js +0 -116
  813. package/es/Calendar/CalendarYear.vue2.js +0 -96
  814. package/es/Card/Card.vue2.js +0 -121
  815. package/es/Card/CardGrid.vue2.js +0 -27
  816. package/es/Card/CardMeta.vue2.js +0 -70
  817. package/es/Carousel/Carousel.vue2.js +0 -131
  818. package/es/Carousel/CarouselArrow.vue2.js +0 -55
  819. package/es/Carousel/CarouselIndicator.vue2.js +0 -57
  820. package/es/Carousel/CarouselItem.vue2.js +0 -55
  821. package/es/Cascader/Cascader.vue2.js +0 -287
  822. package/es/Cascader/CascaderIcon.vue2.js +0 -66
  823. package/es/Cascader/CascaderOption.vue2.js +0 -207
  824. package/es/Cascader/CascaderPanel.vue2.js +0 -63
  825. package/es/Cascader/CascaderSearchPanel.vue2.js +0 -44
  826. package/es/Checkbox/Checkbox.vue2.js +0 -115
  827. package/es/Collapse/Collapse.vue2.js +0 -38
  828. package/es/Collapse/CollapseItem.vue2.js +0 -130
  829. package/es/ColorPicker/ColorControl.vue2.js +0 -112
  830. package/es/ColorPicker/ColorInput.vue2.js +0 -161
  831. package/es/ColorPicker/ColorList.vue2.js +0 -47
  832. package/es/ColorPicker/ColorPalette.vue2.js +0 -100
  833. package/es/ColorPicker/ColorPanel.vue2.js +0 -144
  834. package/es/ColorPicker/ColorPicker.vue2.js +0 -87
  835. package/es/Comment/index.vue2.js +0 -110
  836. package/es/Descriptions/ReuseItem.vue2.js +0 -62
  837. package/es/Descriptions/ReuseTd.vue2.js +0 -56
  838. package/es/Divider/index.vue2.js +0 -54
  839. package/es/Drawer/Drawer.vue2.js +0 -203
  840. package/es/Dropdown/Dgroup.vue2.js +0 -33
  841. package/es/Dropdown/Doption.vue2.js +0 -65
  842. package/es/Dropdown/Dsubmenu.vue2.js +0 -155
  843. package/es/Empty/index.vue2.js +0 -48
  844. package/es/Grid/Grid.vue2.js +0 -41
  845. package/es/Grid/GridRow.vue2.js +0 -48
  846. package/es/Image/Image.vue2.js +0 -183
  847. package/es/Image/ImagePreview.vue2.js +0 -213
  848. package/es/Image/ImagePreviewAction.vue2.js +0 -51
  849. package/es/Image/ImagePreviewArrow.vue2.js +0 -27
  850. package/es/Image/ImagePreviewToolbar.vue2.js +0 -74
  851. package/es/Input/Input.vue2.js +0 -232
  852. package/es/Input/InputSuffix.vue2.js +0 -51
  853. package/es/InputNumber/InputNumber.vue2.js +0 -270
  854. package/es/InputNumber/InputOperaBtn.vue2.js +0 -58
  855. package/es/InputTag/index.vue2.js +0 -323
  856. package/es/Layout/Layout.vue2.js +0 -45
  857. package/es/Layout/LayoutContent.vue2.js +0 -18
  858. package/es/Layout/LayoutFooter.vue2.js +0 -18
  859. package/es/Layout/LayoutHeader.vue2.js +0 -18
  860. package/es/Layout/LayoutSider.vue2.js +0 -132
  861. package/es/Link/index.vue2.js +0 -71
  862. package/es/List/List.vue2.js +0 -208
  863. package/es/List/ListItem.vue2.js +0 -58
  864. package/es/List/ListItemMeta.vue2.js +0 -49
  865. package/es/Menu/Menu.vue2.js +0 -98
  866. package/es/Menu/MenuEllipsis.vue2.js +0 -94
  867. package/es/Menu/MenuItem.vue2.js +0 -232
  868. package/es/Menu/MenuItemGroup.vue2.js +0 -42
  869. package/es/Menu/SubMenu.vue2.js +0 -79
  870. package/es/Message/Message.vue2.js +0 -100
  871. package/es/Message/MessageList.vue2.js +0 -31
  872. package/es/Modal/Modal.vue2.js +0 -256
  873. package/es/Notification/Notification.vue2.js +0 -127
  874. package/es/Notification/NotificationList.vue2.js +0 -35
  875. package/es/OverflowList/index.vue2.js +0 -122
  876. package/es/PageHeader/index.vue2.js +0 -96
  877. package/es/Pagination/Pagination.vue2.js +0 -191
  878. package/es/Pagination/PaginationItem.vue2.js +0 -85
  879. package/es/Progress/Progress.vue2.js +0 -131
  880. package/es/Progress/ProgressCircle.vue2.js +0 -149
  881. package/es/Progress/ProgressLine.vue2.js +0 -99
  882. package/es/Radio/Radio.vue2.js +0 -123
  883. package/es/Rate/index.vue2.js +0 -148
  884. package/es/ResizeBox/index.vue2.js +0 -161
  885. package/es/Result/index.vue2.js +0 -74
  886. package/es/Scrollbar/Scrollbar.vue2.js +0 -225
  887. package/es/Scrollbar/ScrollbarTrack.vue2.js +0 -114
  888. package/es/Select/Optgroup.vue2.js +0 -26
  889. package/es/Select/Option.vue2.js +0 -140
  890. package/es/Select/Select.vue2.js +0 -302
  891. package/es/Select/SelectIcon.vue2.js +0 -66
  892. package/es/Select/SelectRealList.vue2.js +0 -95
  893. package/es/Select/SelectView.vue2.js +0 -99
  894. package/es/Select/SelectVirtualList.vue2.js +0 -61
  895. package/es/Skeleton/SkeletonLine.vue2.js +0 -45
  896. package/es/Skeleton/SkeletonShape.vue2.js +0 -31
  897. package/es/Slider/Slider.vue2.js +0 -145
  898. package/es/Slider/SliderBtn.vue2.js +0 -98
  899. package/es/Slider/SliderInput.vue2.js +0 -56
  900. package/es/Slider/SliderTicks.vue2.js +0 -66
  901. package/es/Space/index.vue2.js +0 -96
  902. package/es/Spin/index.vue2.js +0 -89
  903. package/es/Split/index.vue2.js +0 -146
  904. package/es/Statistic/Statistic.vue2.js +0 -155
  905. package/es/Steps/Step.vue2.js +0 -115
  906. package/es/Steps/Steps.vue2.js +0 -43
  907. package/es/Switch/index.vue2.js +0 -154
  908. package/es/Tabs/TabButton.vue2.js +0 -37
  909. package/es/Tabs/Tabs.vue2.js +0 -208
  910. package/es/Tabs/TabsNavInk.vue2.js +0 -62
  911. package/es/Tabs/TabsTab.vue2.js +0 -91
  912. package/es/Tag/index.vue2.js +0 -113
  913. package/es/Textarea/index.vue2.js +0 -164
  914. package/es/TimePicker/TimePicker.vue2.js +0 -214
  915. package/es/TimePicker/TimePickerPanel.vue2.js +0 -217
  916. package/es/Timeline/Timeline.vue2.js +0 -54
  917. package/es/Timeline/TimelineItem.vue2.js +0 -89
  918. package/es/Transfer/Transfer.vue2.js +0 -105
  919. package/es/Transfer/TransferPanel.vue2.js +0 -252
  920. package/es/Trigger/index.vue2.js +0 -188
  921. package/es/Typography/TypographyBase.vue2.js +0 -204
  922. package/es/Typography/TypographyParagraph.vue2.js +0 -50
  923. package/es/Typography/TypographyTitle.vue2.js +0 -51
  924. package/es/VerificationCode/index.vue2.js +0 -127
  925. package/es/Watermark/index.vue2.js +0 -276
  926. package/es/_shared/components/IconButton.vue2.js +0 -7
  927. package/es/_virtual/_plugin-vue_export-helper.js +0 -10
  928. package/lib/Alert/index.vue2.js +0 -1
  929. package/lib/Anchor/Anchor.vue2.js +0 -1
  930. package/lib/Anchor/AnchorLink.vue2.js +0 -1
  931. package/lib/Avatar/Avatar.vue2.js +0 -1
  932. package/lib/Avatar/AvatarGroup.vue2.js +0 -1
  933. package/lib/BackTop/index.vue2.js +0 -1
  934. package/lib/Badge/index.vue2.js +0 -1
  935. package/lib/Breadcrumb/Breadcrumb.vue2.js +0 -1
  936. package/lib/Breadcrumb/BreadcrumbItem.vue2.js +0 -1
  937. package/lib/Breadcrumb/BreadcrumbSeparator.vue2.js +0 -1
  938. package/lib/Button/Button.vue2.js +0 -1
  939. package/lib/Calendar/Calendar.vue2.js +0 -1
  940. package/lib/Calendar/CalendarMonth.vue2.js +0 -1
  941. package/lib/Calendar/CalendarYear.vue2.js +0 -1
  942. package/lib/Card/Card.vue2.js +0 -1
  943. package/lib/Card/CardGrid.vue2.js +0 -1
  944. package/lib/Card/CardMeta.vue2.js +0 -1
  945. package/lib/Carousel/Carousel.vue2.js +0 -1
  946. package/lib/Carousel/CarouselArrow.vue2.js +0 -1
  947. package/lib/Carousel/CarouselIndicator.vue2.js +0 -1
  948. package/lib/Carousel/CarouselItem.vue2.js +0 -1
  949. package/lib/Cascader/Cascader.vue2.js +0 -1
  950. package/lib/Cascader/CascaderIcon.vue2.js +0 -1
  951. package/lib/Cascader/CascaderOption.vue2.js +0 -1
  952. package/lib/Cascader/CascaderPanel.vue2.js +0 -1
  953. package/lib/Cascader/CascaderSearchPanel.vue2.js +0 -1
  954. package/lib/Checkbox/Checkbox.vue2.js +0 -1
  955. package/lib/Collapse/Collapse.vue2.js +0 -1
  956. package/lib/Collapse/CollapseItem.vue2.js +0 -1
  957. package/lib/ColorPicker/ColorControl.vue2.js +0 -1
  958. package/lib/ColorPicker/ColorInput.vue2.js +0 -1
  959. package/lib/ColorPicker/ColorList.vue2.js +0 -1
  960. package/lib/ColorPicker/ColorPalette.vue2.js +0 -1
  961. package/lib/ColorPicker/ColorPanel.vue2.js +0 -1
  962. package/lib/ColorPicker/ColorPicker.vue2.js +0 -1
  963. package/lib/Comment/index.vue2.js +0 -1
  964. package/lib/Descriptions/ReuseItem.vue2.js +0 -1
  965. package/lib/Descriptions/ReuseTd.vue2.js +0 -1
  966. package/lib/Divider/index.vue2.js +0 -1
  967. package/lib/Drawer/Drawer.vue2.js +0 -1
  968. package/lib/Dropdown/Dgroup.vue2.js +0 -1
  969. package/lib/Dropdown/Doption.vue2.js +0 -1
  970. package/lib/Dropdown/Dsubmenu.vue2.js +0 -1
  971. package/lib/Empty/index.vue2.js +0 -1
  972. package/lib/Grid/Grid.vue2.js +0 -1
  973. package/lib/Grid/GridRow.vue2.js +0 -1
  974. package/lib/Image/Image.vue2.js +0 -1
  975. package/lib/Image/ImagePreview.vue2.js +0 -1
  976. package/lib/Image/ImagePreviewAction.vue2.js +0 -1
  977. package/lib/Image/ImagePreviewArrow.vue2.js +0 -1
  978. package/lib/Image/ImagePreviewToolbar.vue2.js +0 -1
  979. package/lib/Input/Input.vue2.js +0 -1
  980. package/lib/Input/InputSuffix.vue2.js +0 -1
  981. package/lib/InputNumber/InputNumber.vue2.js +0 -1
  982. package/lib/InputNumber/InputOperaBtn.vue2.js +0 -1
  983. package/lib/InputTag/index.vue2.js +0 -1
  984. package/lib/Layout/Layout.vue2.js +0 -1
  985. package/lib/Layout/LayoutContent.vue2.js +0 -1
  986. package/lib/Layout/LayoutFooter.vue2.js +0 -1
  987. package/lib/Layout/LayoutHeader.vue2.js +0 -1
  988. package/lib/Layout/LayoutSider.vue2.js +0 -1
  989. package/lib/Link/index.vue2.js +0 -1
  990. package/lib/List/List.vue2.js +0 -1
  991. package/lib/List/ListItem.vue2.js +0 -1
  992. package/lib/List/ListItemMeta.vue2.js +0 -1
  993. package/lib/Menu/Menu.vue2.js +0 -1
  994. package/lib/Menu/MenuEllipsis.vue2.js +0 -1
  995. package/lib/Menu/MenuItem.vue2.js +0 -1
  996. package/lib/Menu/MenuItemGroup.vue2.js +0 -1
  997. package/lib/Menu/SubMenu.vue2.js +0 -1
  998. package/lib/Message/Message.vue2.js +0 -1
  999. package/lib/Message/MessageList.vue2.js +0 -1
  1000. package/lib/Modal/Modal.vue2.js +0 -1
  1001. package/lib/Notification/Notification.vue2.js +0 -1
  1002. package/lib/Notification/NotificationList.vue2.js +0 -1
  1003. package/lib/OverflowList/index.vue2.js +0 -1
  1004. package/lib/PageHeader/index.vue2.js +0 -1
  1005. package/lib/Pagination/Pagination.vue2.js +0 -1
  1006. package/lib/Pagination/PaginationItem.vue2.js +0 -1
  1007. package/lib/Progress/Progress.vue2.js +0 -1
  1008. package/lib/Progress/ProgressCircle.vue2.js +0 -1
  1009. package/lib/Progress/ProgressLine.vue2.js +0 -1
  1010. package/lib/Radio/Radio.vue2.js +0 -1
  1011. package/lib/Rate/index.vue2.js +0 -1
  1012. package/lib/ResizeBox/index.vue2.js +0 -1
  1013. package/lib/Result/index.vue2.js +0 -1
  1014. package/lib/Scrollbar/Scrollbar.vue2.js +0 -1
  1015. package/lib/Scrollbar/ScrollbarTrack.vue2.js +0 -1
  1016. package/lib/Select/Optgroup.vue2.js +0 -1
  1017. package/lib/Select/Option.vue2.js +0 -1
  1018. package/lib/Select/Select.vue2.js +0 -1
  1019. package/lib/Select/SelectIcon.vue2.js +0 -1
  1020. package/lib/Select/SelectRealList.vue2.js +0 -1
  1021. package/lib/Select/SelectView.vue2.js +0 -1
  1022. package/lib/Select/SelectVirtualList.vue2.js +0 -1
  1023. package/lib/Skeleton/SkeletonLine.vue2.js +0 -1
  1024. package/lib/Skeleton/SkeletonShape.vue2.js +0 -1
  1025. package/lib/Slider/Slider.vue2.js +0 -1
  1026. package/lib/Slider/SliderBtn.vue2.js +0 -1
  1027. package/lib/Slider/SliderInput.vue2.js +0 -1
  1028. package/lib/Slider/SliderTicks.vue2.js +0 -1
  1029. package/lib/Space/index.vue2.js +0 -1
  1030. package/lib/Spin/index.vue2.js +0 -1
  1031. package/lib/Split/index.vue2.js +0 -1
  1032. package/lib/Statistic/Statistic.vue2.js +0 -1
  1033. package/lib/Steps/Step.vue2.js +0 -1
  1034. package/lib/Steps/Steps.vue2.js +0 -1
  1035. package/lib/Switch/index.vue2.js +0 -1
  1036. package/lib/Tabs/TabButton.vue2.js +0 -1
  1037. package/lib/Tabs/Tabs.vue2.js +0 -1
  1038. package/lib/Tabs/TabsNavInk.vue2.js +0 -1
  1039. package/lib/Tabs/TabsTab.vue2.js +0 -1
  1040. package/lib/Tag/index.vue2.js +0 -1
  1041. package/lib/Textarea/index.vue2.js +0 -1
  1042. package/lib/TimePicker/TimePicker.vue2.js +0 -1
  1043. package/lib/TimePicker/TimePickerPanel.vue2.js +0 -1
  1044. package/lib/Timeline/Timeline.vue2.js +0 -1
  1045. package/lib/Timeline/TimelineItem.vue2.js +0 -1
  1046. package/lib/Transfer/Transfer.vue2.js +0 -1
  1047. package/lib/Transfer/TransferPanel.vue2.js +0 -1
  1048. package/lib/Trigger/index.vue2.js +0 -1
  1049. package/lib/Typography/TypographyBase.vue2.js +0 -1
  1050. package/lib/Typography/TypographyParagraph.vue2.js +0 -1
  1051. package/lib/Typography/TypographyTitle.vue2.js +0 -1
  1052. package/lib/VerificationCode/index.vue2.js +0 -1
  1053. package/lib/Watermark/index.vue2.js +0 -1
  1054. package/lib/_shared/components/IconButton.vue2.js +0 -1
  1055. package/lib/_virtual/_plugin-vue_export-helper.js +0 -1
@@ -1,7 +1,192 @@
1
- import _sfc_main from "./Pagination.vue2.js";
2
- /* empty css */
3
- import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
4
- const _Pagination = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-77c4d3a0"]]);
1
+ import { defineComponent, ref, watch, createElementBlock, createCommentVNode, unref, openBlock, normalizeClass, createElementVNode, renderSlot, createTextVNode, toDisplayString, createVNode, createBlock, withCtx, Fragment, renderList, isRef, mergeProps } from "vue";
2
+ import "../node_modules/tinycolor2/esm/tinycolor.js";
3
+ import { sleep } from "../_shared/utils/dom.js";
4
+ import { isNumber } from "../_shared/utils/is.js";
5
+ import "../_shared/utils/time.js";
6
+ import "../Empty/index.js";
7
+ /* empty css */
8
+ import useContext from "./hooks/useContext.js";
9
+ import _sfc_main$1 from "./PaginationItem.vue.js";
10
+ /* empty css */
11
+ import Select from "../Select/index.js";
12
+ import InputNumber from "../InputNumber/index.js";
13
+ const _hoisted_1 = {
14
+ key: 0,
15
+ class: "yc-pagination-total"
16
+ };
17
+ const _hoisted_2 = {
18
+ key: 1,
19
+ class: "yc-pagination-jumper yc-pagination-jumper-simple"
20
+ };
21
+ const _hoisted_3 = { class: "yc-pagination-jumper-total-page" };
22
+ const _hoisted_4 = {
23
+ key: 1,
24
+ class: "yc-pagination-options"
25
+ };
26
+ const _hoisted_5 = {
27
+ key: 2,
28
+ class: "yc-pagination-jumper"
29
+ };
30
+ const _sfc_main = /* @__PURE__ */ defineComponent({
31
+ ...{
32
+ name: "Pagination"
33
+ },
34
+ __name: "Pagination",
35
+ props: {
36
+ total: {},
37
+ current: { default: void 0 },
38
+ defaultCurrent: { default: 1 },
39
+ pageSize: { default: void 0 },
40
+ defaultPageSize: { default: 10 },
41
+ disabled: { type: Boolean, default: false },
42
+ hideOnSinglePage: { type: Boolean, default: false },
43
+ simple: { type: Boolean, default: false },
44
+ showTotal: { type: Boolean, default: false },
45
+ showMore: { type: Boolean, default: false },
46
+ showJumper: { type: Boolean, default: false },
47
+ showPageSize: { type: Boolean, default: false },
48
+ pageSizeOptions: { default: () => [10, 20, 30, 40, 50] },
49
+ pageSizeProps: { default: () => {
50
+ return {};
51
+ } },
52
+ size: { default: void 0 },
53
+ pageItemStyle: { default: () => {
54
+ return {};
55
+ } },
56
+ activePageItemStyle: { default: () => {
57
+ return {};
58
+ } },
59
+ baseSize: { default: 6 },
60
+ bufferSize: { default: 2 },
61
+ autoAdjust: { type: Boolean, default: true }
62
+ },
63
+ emits: ["update:current", "update:pageSize", "change", "page-size-change"],
64
+ setup(__props, { emit: __emit }) {
65
+ const props = __props;
66
+ const emits = __emit;
67
+ const {
68
+ computedCurrent,
69
+ pages,
70
+ pagesArray,
71
+ computedPageSize,
72
+ size,
73
+ total,
74
+ sizeOptions
75
+ } = useContext().provide(props, emits);
76
+ const tempCurrent = ref(computedCurrent.value);
77
+ watch(
78
+ () => computedCurrent.value,
79
+ () => {
80
+ if (tempCurrent.value == computedCurrent.value) return;
81
+ tempCurrent.value = computedCurrent.value;
82
+ }
83
+ );
84
+ const handleBlur = async (e) => {
85
+ if (`${tempCurrent.value}`.length) {
86
+ computedCurrent.value = tempCurrent.value;
87
+ }
88
+ await sleep(0);
89
+ const target = e.target;
90
+ if (+target.value != computedCurrent.value) {
91
+ target.value = String(computedCurrent.value);
92
+ }
93
+ };
94
+ return (_ctx, _cache) => {
95
+ return !_ctx.hideOnSinglePage || _ctx.hideOnSinglePage && unref(pages) <= 1 ? (openBlock(), createElementBlock("div", {
96
+ key: 0,
97
+ class: normalizeClass(["yc-pagination", `yc-pagination-size-${unref(size)}`])
98
+ }, [
99
+ _ctx.showTotal ? (openBlock(), createElementBlock("span", _hoisted_1, [
100
+ renderSlot(_ctx.$slots, "total", { total: unref(total) }, () => [
101
+ createTextVNode(" 共 " + toDisplayString(unref(total)) + " 条 ", 1)
102
+ ])
103
+ ])) : createCommentVNode("", true),
104
+ createElementVNode("ul", {
105
+ class: normalizeClass([_ctx.simple ? "yc-pagination-simple" : "yc-pagination-list"])
106
+ }, [
107
+ createVNode(_sfc_main$1, {
108
+ type: "pre",
109
+ class: "yc-pagination-item-previous"
110
+ }, {
111
+ default: withCtx(() => [
112
+ _ctx.$slots["page-item-step"] ? renderSlot(_ctx.$slots, "page-item-step", {
113
+ key: 0,
114
+ type: "previous"
115
+ }) : createCommentVNode("", true)
116
+ ]),
117
+ _: 3
118
+ }),
119
+ !_ctx.simple ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(unref(pagesArray), (i) => {
120
+ return openBlock(), createBlock(_sfc_main$1, {
121
+ type: unref(isNumber)(i) ? "item" : i,
122
+ key: i,
123
+ page: unref(isNumber)(i) ? i : -1
124
+ }, {
125
+ default: withCtx(() => [
126
+ unref(isNumber)(i) ? renderSlot(_ctx.$slots, "page-item", {
127
+ key: 0,
128
+ page: i
129
+ }, () => [
130
+ createTextVNode(toDisplayString(i), 1)
131
+ ]) : _ctx.$slots["page-item-ellipsis"] ? renderSlot(_ctx.$slots, "page-item-ellipsis", { key: 1 }) : createCommentVNode("", true)
132
+ ]),
133
+ _: 2
134
+ }, 1032, ["type", "page"]);
135
+ }), 128)) : (openBlock(), createElementBlock("span", _hoisted_2, [
136
+ createVNode(unref(InputNumber), {
137
+ modelValue: unref(computedCurrent),
138
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(computedCurrent) ? computedCurrent.value = $event : null),
139
+ "hide-button": "",
140
+ size: unref(size),
141
+ disabled: _ctx.disabled
142
+ }, null, 8, ["modelValue", "size", "disabled"]),
143
+ _cache[4] || (_cache[4] = createElementVNode("span", { class: "yc-pagination-jumper-separator" }, "/", -1)),
144
+ createElementVNode("span", _hoisted_3, toDisplayString(unref(pages)), 1)
145
+ ])),
146
+ _ctx.showMore && !_ctx.simple ? (openBlock(), createBlock(_sfc_main$1, {
147
+ key: 2,
148
+ type: "more-right",
149
+ class: "'yc-pagination-item-ellipsis'"
150
+ })) : createCommentVNode("", true),
151
+ createVNode(_sfc_main$1, {
152
+ type: "next",
153
+ class: "yc-pagination-item-next"
154
+ }, {
155
+ default: withCtx(() => [
156
+ _ctx.$slots["page-item-step"] ? renderSlot(_ctx.$slots, "page-item-step", {
157
+ key: 0,
158
+ type: "next"
159
+ }) : createCommentVNode("", true)
160
+ ]),
161
+ _: 3
162
+ })
163
+ ], 2),
164
+ _ctx.showPageSize ? (openBlock(), createElementBlock("span", _hoisted_4, [
165
+ createVNode(unref(Select), mergeProps({
166
+ modelValue: unref(computedPageSize),
167
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(computedPageSize) ? computedPageSize.value = $event : null),
168
+ options: unref(sizeOptions),
169
+ size: unref(size)
170
+ }, _ctx.pageSizeProps, { disabled: _ctx.disabled }), null, 16, ["modelValue", "options", "size", "disabled"])
171
+ ])) : createCommentVNode("", true),
172
+ _ctx.showJumper ? (openBlock(), createElementBlock("span", _hoisted_5, [
173
+ _cache[5] || (_cache[5] = createElementVNode("span", { class: "yc-pagination-jumper-text-goto" }, " 前往 ", -1)),
174
+ createVNode(unref(InputNumber), {
175
+ modelValue: tempCurrent.value,
176
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => tempCurrent.value = $event),
177
+ "hide-button": "",
178
+ size: unref(size),
179
+ disabled: _ctx.disabled,
180
+ min: 1,
181
+ max: unref(pages),
182
+ onFocus: _cache[3] || (_cache[3] = ($event) => tempCurrent.value = unref(computedCurrent)),
183
+ onBlur: handleBlur
184
+ }, null, 8, ["modelValue", "size", "disabled", "max"])
185
+ ])) : createCommentVNode("", true)
186
+ ], 2)) : createCommentVNode("", true);
187
+ };
188
+ }
189
+ });
5
190
  export {
6
- _Pagination as default
191
+ _sfc_main as default
7
192
  };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from "./Pagination.vue.js";
2
+ /* empty css */
3
+ export {
4
+ _sfc_main as default
5
+ };
@@ -1,7 +1,85 @@
1
- import _sfc_main from "./PaginationItem.vue2.js";
2
- /* empty css */
3
- import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
4
- const PaginationItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-db2c3eef"]]);
1
+ import { defineComponent, toRefs, computed, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref, renderSlot, createBlock, createCommentVNode } from "vue";
2
+ import "../node_modules/tinycolor2/esm/tinycolor.js";
3
+ import "../_shared/utils/dom.js";
4
+ import "../_shared/utils/time.js";
5
+ import "../Empty/index.js";
6
+ /* empty css */
7
+ import _sfc_main$1 from "../_shared/icons/IconArrowRight.vue.js";
8
+ import _sfc_main$2 from "../_shared/icons/IconMore.vue.js";
9
+ import useContext from "./hooks/useContext.js";
10
+ const _sfc_main = /* @__PURE__ */ defineComponent({
11
+ __name: "PaginationItem",
12
+ props: {
13
+ type: {},
14
+ page: { default: 1 }
15
+ },
16
+ setup(__props) {
17
+ const props = __props;
18
+ const { type, page } = toRefs(props);
19
+ const {
20
+ computedCurrent,
21
+ pages,
22
+ pageItemStyle,
23
+ activePageItemStyle,
24
+ bufferSize,
25
+ disabled: _disabled
26
+ } = useContext().inject();
27
+ const active = computed(() => {
28
+ return type.value == "item" ? computedCurrent.value == page.value : false;
29
+ });
30
+ const disabled = computed(() => {
31
+ if (["item", "more-right", "more-left"].includes(type.value)) {
32
+ return _disabled.value;
33
+ } else if (type.value == "pre") {
34
+ return computedCurrent.value <= 1 || _disabled.value;
35
+ } else {
36
+ return computedCurrent.value >= pages.value || _disabled.value;
37
+ }
38
+ });
39
+ const handleClick = () => {
40
+ let i = 0;
41
+ if (type.value == "item") {
42
+ i = page.value;
43
+ } else if (type.value == "pre") {
44
+ i = computedCurrent.value - 1;
45
+ } else if (type.value == "next") {
46
+ i = computedCurrent.value + 1;
47
+ } else {
48
+ const addSize = 2 * bufferSize.value + 1;
49
+ i = type.value == "more-left" ? computedCurrent.value - addSize : computedCurrent.value + addSize;
50
+ i = type.value == "more-left" && i <= 1 ? 1 : i;
51
+ i = type.value == "more-right" && i >= pages.value ? pages.value : i;
52
+ }
53
+ if (disabled.value || type.value == "item" && i == computedCurrent.value || type.value == "pre" && i < 1 || type.value == "next" && i > pages.value) {
54
+ return;
55
+ }
56
+ computedCurrent.value = i;
57
+ };
58
+ return (_ctx, _cache) => {
59
+ return openBlock(), createElementBlock("li", {
60
+ class: normalizeClass([
61
+ "yc-pagination-item",
62
+ {
63
+ "yc-pagination-item-disabled": disabled.value,
64
+ "yc-pagination-item-active": active.value
65
+ }
66
+ ]),
67
+ style: normalizeStyle({
68
+ ...unref(pageItemStyle),
69
+ ...active.value ? unref(activePageItemStyle) : {}
70
+ }),
71
+ onClick: handleClick
72
+ }, [
73
+ renderSlot(_ctx.$slots, "default", {}, () => [
74
+ ["pre", "next"].includes(unref(type)) ? (openBlock(), createBlock(unref(_sfc_main$1), {
75
+ key: 0,
76
+ rotate: unref(type) == "pre" ? 180 : 0
77
+ }, null, 8, ["rotate"])) : unref(type).includes("more") ? (openBlock(), createBlock(unref(_sfc_main$2), { key: 1 })) : createCommentVNode("", true)
78
+ ])
79
+ ], 6);
80
+ };
81
+ }
82
+ });
5
83
  export {
6
- PaginationItem as default
84
+ _sfc_main as default
7
85
  };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from "./PaginationItem.vue.js";
2
+ /* empty css */
3
+ export {
4
+ _sfc_main as default
5
+ };
@@ -1 +1 @@
1
- .yc-pagination{display:flex;align-items:center;gap:8px}.yc-pagination .yc-pagination-total{height:100%;color:var(--color-text-1);white-space:nowrap}.yc-pagination .yc-pagination-list{display:flex;align-items:center;gap:8px}.yc-pagination .yc-pagination-simple{display:flex;align-items:center}.yc-pagination .yc-pagination-simple .yc-pagination-jumper-simple{gap:0;padding:0 4px}.yc-pagination .yc-pagination-simple .yc-pagination-jumper-simple .yc-pagination-jumper-separator{padding:0 12px}.yc-pagination .yc-pagination-simple .yc-pagination-jumper-simple .yc-pagination-jumper-total-page{padding-right:8px}.yc-pagination .yc-pagination-item{outline:0;cursor:pointer;user-select:none;padding:0 8px;border-radius:2px;background-color:transparent;color:var(--color-text-2);display:flex;justify-content:center;align-items:center;transition:color .2s cubic-bezier(0, 0, 1, 1),background-color .2s cubic-bezier(0, 0, 1, 1)}.yc-pagination .yc-pagination-item:not(.yc-pagination-item-disabled):not(.yc-pagination-item-active):hover{background-color:var(--color-fill-1)}.yc-pagination .yc-pagination-item:not(.yc-pagination-item-disabled):not(.yc-pagination-item-active):hover.yc-pagination-item-previous,.yc-pagination .yc-pagination-item:not(.yc-pagination-item-disabled):not(.yc-pagination-item-active):hover.yc-pagination-item-next{color:rgb(var(--primary-6))}.yc-pagination .yc-pagination-item.yc-pagination-item-disabled{color:var(--color-text-4);cursor:not-allowed;background-color:transparent}.yc-pagination .yc-pagination-item.yc-pagination-item-disabled.yc-pagination-item-active{color:var(--color-primary-light-3);background-color:var(--color-fill-1)}.yc-pagination .yc-pagination-item.yc-pagination-item-active{color:rgb(var(--primary-6));background-color:var(--color-primary-light-1)}.yc-pagination .yc-pagination-options:deep(.yc-select){width:110px}.yc-pagination .yc-pagination-jumper{display:flex;align-items:center;gap:8px}.yc-pagination .yc-pagination-jumper:deep(.yc-input-outer){width:40px}.yc-pagination .yc-pagination-jumper:deep(.yc-input-outer) .yc-input-wrapper{padding-left:2px;padding-right:2px}.yc-pagination .yc-pagination-jumper:deep(.yc-input-outer) .yc-input-wrapper .yc-input{text-align:center}.yc-pagination .yc-pagination-jumper .yc-pagination-jumper-text-goto{color:var(--color-text-3);white-space:nowrap}.yc-pagination-size-mini .yc-pagination-total{font-size:12px;line-height:24px}.yc-pagination-size-mini .yc-pagination-item{min-width:24px;height:24px;font-size:12px;line-height:24px}.yc-pagination-size-mini .yc-pagination-jumper>span{font-size:12px}.yc-pagination-size-mini .yc-pagination-options:deep(.yc-select){width:102px}.yc-pagination-size-small .yc-pagination-total{font-size:14px;line-height:28px}.yc-pagination-size-small .yc-pagination-item{min-width:28px;height:28px;font-size:14px;line-height:28px}.yc-pagination-size-small .yc-pagination-jumper>span{font-size:14px}.yc-pagination-size-medium .yc-pagination-total{font-size:14px;line-height:32px}.yc-pagination-size-medium .yc-pagination-item{min-width:32px;height:32px;font-size:14px;line-height:32px}.yc-pagination-size-medium .yc-pagination-jumper>span{font-size:14px}.yc-pagination-size-large .yc-pagination-total{font-size:14px;line-height:36px}.yc-pagination-size-large .yc-pagination-item{min-width:36px;height:36px;font-size:14px;line-height:36px}.yc-pagination-size-large .yc-pagination-jumper>span{font-size:14px}
1
+ .yc-pagination{display:flex;align-items:center;gap:8px}.yc-pagination .yc-pagination-total{height:100%;color:var(--color-text-1);white-space:nowrap}.yc-pagination .yc-pagination-list{display:flex;align-items:center;gap:8px}.yc-pagination .yc-pagination-simple{display:flex;align-items:center}.yc-pagination .yc-pagination-simple .yc-pagination-jumper-simple{gap:0;padding:0 4px}.yc-pagination .yc-pagination-simple .yc-pagination-jumper-simple .yc-pagination-jumper-separator{padding:0 12px}.yc-pagination .yc-pagination-simple .yc-pagination-jumper-simple .yc-pagination-jumper-total-page{padding-right:8px}.yc-pagination .yc-pagination-item{outline:0;cursor:pointer;user-select:none;padding:0 8px;border-radius:2px;background-color:transparent;color:var(--color-text-2);display:flex;justify-content:center;align-items:center;transition:color .2s cubic-bezier(0, 0, 1, 1),background-color .2s cubic-bezier(0, 0, 1, 1)}.yc-pagination .yc-pagination-item:not(.yc-pagination-item-disabled):not(.yc-pagination-item-active):hover{background-color:var(--color-fill-1)}.yc-pagination .yc-pagination-item:not(.yc-pagination-item-disabled):not(.yc-pagination-item-active):hover.yc-pagination-item-previous,.yc-pagination .yc-pagination-item:not(.yc-pagination-item-disabled):not(.yc-pagination-item-active):hover.yc-pagination-item-next{color:rgb(var(--primary-6))}.yc-pagination .yc-pagination-item.yc-pagination-item-disabled{color:var(--color-text-4);cursor:not-allowed;background-color:transparent}.yc-pagination .yc-pagination-item.yc-pagination-item-disabled.yc-pagination-item-active{color:var(--color-primary-light-3);background-color:var(--color-fill-1)}.yc-pagination .yc-pagination-item.yc-pagination-item-active{color:rgb(var(--primary-6));background-color:var(--color-primary-light-1)}.yc-pagination .yc-pagination-options .yc-select{width:110px}.yc-pagination .yc-pagination-jumper{display:flex;align-items:center;gap:8px}.yc-pagination .yc-pagination-jumper .yc-input-outer{width:40px}.yc-pagination .yc-pagination-jumper .yc-input-outer .yc-input-wrapper{padding-left:2px;padding-right:2px}.yc-pagination .yc-pagination-jumper .yc-input-outer .yc-input-wrapper .yc-input{text-align:center}.yc-pagination .yc-pagination-jumper .yc-pagination-jumper-text-goto{color:var(--color-text-3);white-space:nowrap}.yc-pagination-size-mini .yc-pagination-total{font-size:12px;line-height:24px}.yc-pagination-size-mini .yc-pagination-item{min-width:24px;height:24px;font-size:12px;line-height:24px}.yc-pagination-size-mini .yc-pagination-jumper>span{font-size:12px}.yc-pagination-size-mini .yc-pagination-options .yc-select{width:102px}.yc-pagination-size-small .yc-pagination-total{font-size:14px;line-height:28px}.yc-pagination-size-small .yc-pagination-item{min-width:28px;height:28px;font-size:14px;line-height:28px}.yc-pagination-size-small .yc-pagination-jumper>span{font-size:14px}.yc-pagination-size-medium .yc-pagination-total{font-size:14px;line-height:32px}.yc-pagination-size-medium .yc-pagination-item{min-width:32px;height:32px;font-size:14px;line-height:32px}.yc-pagination-size-medium .yc-pagination-jumper>span{font-size:14px}.yc-pagination-size-large .yc-pagination-total{font-size:14px;line-height:36px}.yc-pagination-size-large .yc-pagination-item{min-width:36px;height:36px;font-size:14px;line-height:36px}.yc-pagination-size-large .yc-pagination-jumper>span{font-size:14px}
@@ -1,7 +1,8 @@
1
- import _Pagination from "./Pagination.vue.js";
2
- const Pagination = Object.assign(_Pagination, {
1
+ import _sfc_main from "./Pagination.vue.js";
2
+ /* empty css */
3
+ const Pagination = Object.assign(_sfc_main, {
3
4
  install: (app) => {
4
- app.component("Yc" + _Pagination.name, _Pagination);
5
+ app.component("Yc" + _sfc_main.name, _sfc_main);
5
6
  }
6
7
  });
7
8
  export {
@@ -1,7 +1,133 @@
1
- import _sfc_main from "./Progress.vue2.js";
2
- /* empty css */
3
- import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
4
- const _Progress = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-25db5a82"]]);
1
+ import { defineComponent, toRefs, computed, createElementBlock, openBlock, normalizeClass, unref, createBlock, createSlots, withCtx, renderSlot, normalizeProps, guardReactiveProps } from "vue";
2
+ import "../node_modules/tinycolor2/esm/tinycolor.js";
3
+ import "../_shared/utils/dom.js";
4
+ import "../_shared/utils/time.js";
5
+ import { getGlobalConfig } from "../_shared/utils/global-config.js";
6
+ import _sfc_main$2 from "./ProgressLine.vue.js";
7
+ /* empty css */
8
+ import _sfc_main$1 from "./ProgressSteps.vue.js";
9
+ /* empty css */
10
+ import _sfc_main$3 from "./ProgressCircle.vue.js";
11
+ /* empty css */
12
+ const _sfc_main = /* @__PURE__ */ defineComponent({
13
+ ...{
14
+ name: "Progress"
15
+ },
16
+ __name: "Progress",
17
+ props: {
18
+ type: { default: "line" },
19
+ size: { default: void 0 },
20
+ percent: { default: 0 },
21
+ steps: { default: 0 },
22
+ animation: { type: Boolean, default: false },
23
+ strokeWidth: {},
24
+ width: {},
25
+ color: {},
26
+ trackColor: {},
27
+ showText: { type: Boolean, default: true },
28
+ status: { default: "normal" }
29
+ },
30
+ setup(__props) {
31
+ const props = __props;
32
+ const {
33
+ steps,
34
+ percent,
35
+ width: _width,
36
+ type: _type,
37
+ status: _status,
38
+ strokeWidth: _strokeWidth
39
+ } = toRefs(props);
40
+ const { size } = getGlobalConfig(props);
41
+ const type = computed(() => steps.value > 0 ? "steps" : _type.value);
42
+ const status = computed(() => {
43
+ return _status.value || (percent.value >= 1 ? "success" : "normal");
44
+ });
45
+ const text = computed(() => `${(percent.value * 100).toFixed(0)}%`);
46
+ const width = computed(() => {
47
+ if (type.value == "steps" || type.value == "line" && size.value != "mini") {
48
+ return _width.value;
49
+ }
50
+ const map = {
51
+ mini: 16,
52
+ small: 48,
53
+ medium: 64,
54
+ large: 80
55
+ };
56
+ return _width.value ?? map[size.value];
57
+ });
58
+ return (_ctx, _cache) => {
59
+ return openBlock(), createElementBlock("div", {
60
+ class: normalizeClass([
61
+ "yc-progress",
62
+ `yc-progress-type-${type.value}`,
63
+ `yc-progress-size-${unref(size)}`,
64
+ `yc-progress-status-${status.value}`
65
+ ])
66
+ }, [
67
+ unref(steps) > 0 ? (openBlock(), createBlock(_sfc_main$1, {
68
+ key: 0,
69
+ percent: unref(percent),
70
+ size: unref(size),
71
+ width: width.value,
72
+ "stroke-width": _ctx.strokeWidth,
73
+ text: text.value,
74
+ "show-text": _ctx.showText,
75
+ color: _ctx.color,
76
+ "track-color": _ctx.trackColor,
77
+ steps: unref(steps)
78
+ }, createSlots({ _: 2 }, [
79
+ _ctx.$slots.text ? {
80
+ name: "text",
81
+ fn: withCtx((scope) => [
82
+ renderSlot(_ctx.$slots, "text", normalizeProps(guardReactiveProps(scope)))
83
+ ]),
84
+ key: "0"
85
+ } : void 0
86
+ ]), 1032, ["percent", "size", "width", "stroke-width", "text", "show-text", "color", "track-color", "steps"])) : type.value === "line" && unref(size) !== "mini" ? (openBlock(), createBlock(_sfc_main$2, {
87
+ key: 1,
88
+ width: width.value,
89
+ size: unref(size),
90
+ "stroke-width": _ctx.strokeWidth,
91
+ color: _ctx.color,
92
+ "track-color": _ctx.trackColor,
93
+ text: text.value,
94
+ "show-text": _ctx.showText,
95
+ percent: unref(percent),
96
+ status: status.value
97
+ }, createSlots({ _: 2 }, [
98
+ _ctx.$slots.text ? {
99
+ name: "text",
100
+ fn: withCtx((scope) => [
101
+ renderSlot(_ctx.$slots, "text", normalizeProps(guardReactiveProps(scope)))
102
+ ]),
103
+ key: "0"
104
+ } : void 0
105
+ ]), 1032, ["width", "size", "stroke-width", "color", "track-color", "text", "show-text", "percent", "status"])) : (openBlock(), createBlock(_sfc_main$3, {
106
+ key: 2,
107
+ type: type.value,
108
+ percent: unref(percent),
109
+ width: width.value,
110
+ "stroke-width": type.value === "line" ? _ctx.strokeWidth || 4 : _ctx.strokeWidth,
111
+ "path-stroke-width": type.value === "line" ? _ctx.strokeWidth || 4 : _ctx.strokeWidth,
112
+ size: unref(size),
113
+ "show-text": _ctx.showText,
114
+ text: text.value,
115
+ color: _ctx.color,
116
+ "track-color": _ctx.trackColor,
117
+ status: status.value
118
+ }, createSlots({ _: 2 }, [
119
+ _ctx.$slots.text ? {
120
+ name: "text",
121
+ fn: withCtx((scope) => [
122
+ renderSlot(_ctx.$slots, "text", normalizeProps(guardReactiveProps(scope)))
123
+ ]),
124
+ key: "0"
125
+ } : void 0
126
+ ]), 1032, ["type", "percent", "width", "stroke-width", "path-stroke-width", "size", "show-text", "text", "color", "track-color", "status"]))
127
+ ], 2);
128
+ };
129
+ }
130
+ });
5
131
  export {
6
- _Progress as default
132
+ _sfc_main as default
7
133
  };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from "./Progress.vue.js";
2
+ /* empty css */
3
+ export {
4
+ _sfc_main as default
5
+ };
@@ -1,7 +1,149 @@
1
- import _sfc_main from "./ProgressCircle.vue2.js";
2
- /* empty css */
3
- import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
4
- const ProgressCircle = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b83e3443"]]);
1
+ import { defineComponent, toRefs, computed, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref, createBlock, createCommentVNode, createElementVNode, Fragment, renderList, renderSlot, createTextVNode, toDisplayString } from "vue";
2
+ import "../node_modules/tinycolor2/esm/tinycolor.js";
3
+ import { valueToPx } from "../_shared/utils/dom.js";
4
+ import { isObject } from "../_shared/utils/is.js";
5
+ import "../_shared/utils/time.js";
6
+ import "../Empty/index.js";
7
+ /* empty css */
8
+ import _sfc_main$1 from "../_shared/icons/IconCheck.vue.js";
9
+ import _sfc_main$2 from "../_shared/icons/IconExclamation.vue2.js";
10
+ import { TYPE_ICON_COLOR_MAP } from "../_shared/constants/index.js";
11
+ const _hoisted_1 = ["aria-valuenow"];
12
+ const _hoisted_2 = ["viewBox"];
13
+ const _hoisted_3 = { key: 0 };
14
+ const _hoisted_4 = ["id"];
15
+ const _hoisted_5 = ["offset", "stop-color"];
16
+ const _hoisted_6 = ["cx", "cy", "r", "stroke-width"];
17
+ const _hoisted_7 = ["cx", "cy", "r", "stroke-width"];
18
+ const _hoisted_8 = {
19
+ key: 2,
20
+ class: /* @__PURE__ */ normalizeClass(`yc-progress-circle-text`)
21
+ };
22
+ const _sfc_main = /* @__PURE__ */ defineComponent({
23
+ __name: "ProgressCircle",
24
+ props: {
25
+ type: {},
26
+ percent: {},
27
+ status: {},
28
+ size: {},
29
+ text: {},
30
+ showText: { type: Boolean },
31
+ width: {},
32
+ strokeWidth: {},
33
+ pathStrokeWidth: {},
34
+ color: {},
35
+ trackColor: {}
36
+ },
37
+ setup(__props) {
38
+ const props = __props;
39
+ const {
40
+ size,
41
+ width,
42
+ color,
43
+ strokeWidth: _strokeWidth,
44
+ pathStrokeWidth: _pathStrokeWidth
45
+ } = toRefs(props);
46
+ let __YC_PROGRESS_SEED = 0;
47
+ const isLinearGradient = computed(() => isObject(color.value));
48
+ const strokeWidth = computed(() => {
49
+ const map = {
50
+ mini: 4,
51
+ small: 3,
52
+ medium: 4,
53
+ large: 4
54
+ };
55
+ return _strokeWidth.value ?? (size.value === "mini" ? width.value / 2 : map[size.value]);
56
+ });
57
+ const pathStrokeWidth = computed(() => {
58
+ if (_pathStrokeWidth.value) return _pathStrokeWidth.value;
59
+ return size.value === "mini" ? strokeWidth.value : Math.max(2, strokeWidth.value - 2);
60
+ });
61
+ const radius = computed(() => (width.value - strokeWidth.value) / 2);
62
+ const perimeter = computed(() => Math.PI * 2 * radius.value);
63
+ const center = computed(() => width.value / 2);
64
+ const linearGradientId = computed(() => {
65
+ __YC_PROGRESS_SEED += 1;
66
+ return `yc-progress-circle-linear-gradient-${__YC_PROGRESS_SEED}`;
67
+ });
68
+ return (_ctx, _cache) => {
69
+ return openBlock(), createElementBlock("div", {
70
+ role: "progressbar",
71
+ "aria-valuemin": "0",
72
+ "aria-valuemax": "100",
73
+ "aria-valuenow": _ctx.percent,
74
+ class: normalizeClass(`yc-progress-circle-wrapper`),
75
+ style: normalizeStyle({ width: unref(valueToPx)(unref(width)), height: unref(valueToPx)(unref(width)) })
76
+ }, [
77
+ _ctx.type === "circle" && unref(size) === "mini" && _ctx.status === "success" ? (openBlock(), createBlock(unref(_sfc_main$1), {
78
+ key: 0,
79
+ style: normalizeStyle({
80
+ fontSize: unref(width) - 2,
81
+ color: unref(color) ?? unref(TYPE_ICON_COLOR_MAP).success
82
+ })
83
+ }, null, 8, ["style"])) : (openBlock(), createElementBlock("svg", {
84
+ key: 1,
85
+ viewBox: `0 0 ${unref(width)} ${unref(width)}`,
86
+ class: normalizeClass(`yc-progress-circle-svg`)
87
+ }, [
88
+ unref(isObject)(unref(color)) ? (openBlock(), createElementBlock("defs", _hoisted_3, [
89
+ createElementVNode("linearGradient", {
90
+ id: linearGradientId.value,
91
+ x1: "0",
92
+ y1: "1",
93
+ x2: "0",
94
+ y2: "0"
95
+ }, [
96
+ (openBlock(true), createElementBlock(Fragment, null, renderList(Object.keys(unref(color)), (key) => {
97
+ return openBlock(), createElementBlock("stop", {
98
+ key,
99
+ offset: key,
100
+ "stop-color": unref(color)[key]
101
+ }, null, 8, _hoisted_5);
102
+ }), 128))
103
+ ], 8, _hoisted_4)
104
+ ])) : createCommentVNode("", true),
105
+ createElementVNode("circle", {
106
+ class: normalizeClass(`yc-progress-circle-bg`),
107
+ fill: "none",
108
+ cx: center.value,
109
+ cy: center.value,
110
+ r: radius.value,
111
+ "stroke-width": pathStrokeWidth.value,
112
+ style: normalizeStyle({
113
+ stroke: _ctx.trackColor
114
+ })
115
+ }, null, 12, _hoisted_6),
116
+ createElementVNode("circle", {
117
+ class: normalizeClass(`yc-progress-circle-bar`),
118
+ fill: "none",
119
+ cx: center.value,
120
+ cy: center.value,
121
+ r: radius.value,
122
+ "stroke-width": strokeWidth.value,
123
+ style: normalizeStyle({
124
+ stroke: isLinearGradient.value ? `url(#${linearGradientId.value})` : unref(color),
125
+ strokeDasharray: perimeter.value,
126
+ strokeDashoffset: (_ctx.percent >= 1 ? 0 : 1 - _ctx.percent) * perimeter.value
127
+ })
128
+ }, null, 12, _hoisted_7)
129
+ ], 8, _hoisted_2)),
130
+ _ctx.showText && unref(size) !== "mini" ? (openBlock(), createElementBlock("div", _hoisted_8, [
131
+ renderSlot(_ctx.$slots, "text", { percent: _ctx.percent }, () => [
132
+ _ctx.status === "danger" ? (openBlock(), createBlock(unref(_sfc_main$2), {
133
+ key: 0,
134
+ color: unref(TYPE_ICON_COLOR_MAP).error
135
+ }, null, 8, ["color"])) : _ctx.status === "success" ? (openBlock(), createBlock(unref(_sfc_main$1), {
136
+ key: 1,
137
+ color: unref(TYPE_ICON_COLOR_MAP).success
138
+ }, null, 8, ["color"])) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
139
+ createTextVNode(toDisplayString(_ctx.text), 1)
140
+ ], 64))
141
+ ])
142
+ ])) : createCommentVNode("", true)
143
+ ], 12, _hoisted_1);
144
+ };
145
+ }
146
+ });
5
147
  export {
6
- ProgressCircle as default
148
+ _sfc_main as default
7
149
  };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from "./ProgressCircle.vue.js";
2
+ /* empty css */
3
+ export {
4
+ _sfc_main as default
5
+ };