yc-design-vue 1.8.7 → 1.8.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 (681) hide show
  1. package/es/Affix/index.vue.js +1 -0
  2. package/es/Alert/index.d.ts +3 -3
  3. package/es/Alert/index.vue.d.ts +1 -1
  4. package/es/Alert/index.vue.js +1 -0
  5. package/es/Anchor/Anchor.vue.js +1 -0
  6. package/es/Anchor/AnchorLink.vue.js +1 -0
  7. package/es/Anchor/hooks/useContext.js +1 -0
  8. package/es/AutoComplete/index.d.ts +19 -19
  9. package/es/AutoComplete/index.vue.d.ts +33 -33
  10. package/es/AutoComplete/index.vue.js +1 -0
  11. package/es/Avatar/Avatar.vue.d.ts +2 -2
  12. package/es/Avatar/Avatar.vue.js +1 -0
  13. package/es/Avatar/AvatarGroup.vue.js +1 -0
  14. package/es/Avatar/index.d.ts +5 -5
  15. package/es/BackTop/index.vue.js +1 -0
  16. package/es/Badge/index.vue.js +1 -0
  17. package/es/Breadcrumb/Breadcrumb.vue.js +1 -0
  18. package/es/Breadcrumb/BreadcrumbItem.vue.js +1 -0
  19. package/es/Breadcrumb/BreadcrumbMore.vue.js +1 -0
  20. package/es/Breadcrumb/BreadcrumbSeparator.vue.js +2 -1
  21. package/es/Button/Button.vue.d.ts +3 -3
  22. package/es/Button/ButtonGroup.vue.d.ts +1 -1
  23. package/es/Button/hooks/useContext.js +1 -0
  24. package/es/Button/index.d.ts +12 -12
  25. package/es/Calendar/Calendar.vue.js +2 -1
  26. package/es/Calendar/CalendarMonth.vue.d.ts +1 -1
  27. package/es/Calendar/CalendarMonth.vue.js +1 -1
  28. package/es/Calendar/CalendarYear.vue.js +1 -1
  29. package/es/Card/Card.vue.d.ts +1 -1
  30. package/es/Card/Card.vue.js +1 -0
  31. package/es/Card/CardMeta.vue.d.ts +1 -1
  32. package/es/Card/CardMeta.vue.js +1 -0
  33. package/es/Card/index.d.ts +6 -6
  34. package/es/Carousel/Carousel.vue.js +1 -0
  35. package/es/Carousel/CarouselArrow.vue.js +1 -0
  36. package/es/Carousel/CarouselIndicator.vue.js +1 -0
  37. package/es/Carousel/hooks/useContext.js +1 -0
  38. package/es/Cascader/Cascader.vue.d.ts +17 -17
  39. package/es/Cascader/Cascader.vue.js +1 -0
  40. package/es/Cascader/CascaderIcon.vue.js +1 -0
  41. package/es/Cascader/CascaderOption.vue.js +1 -0
  42. package/es/Cascader/CascaderPanel.vue.js +1 -0
  43. package/es/Cascader/CascaderSearchPanel.vue.js +1 -0
  44. package/es/Cascader/hooks/useContext.js +1 -0
  45. package/es/Cascader/index.d.ts +16 -16
  46. package/es/Checkbox/Checkbox.vue.js +1 -0
  47. package/es/Checkbox/CheckboxGroup.vue.d.ts +1 -1
  48. package/es/Checkbox/hooks/useContext.js +1 -0
  49. package/es/Checkbox/index.d.ts +3 -3
  50. package/es/Collapse/CollapseItem.vue.js +1 -0
  51. package/es/Collapse/hooks/useContext.js +1 -0
  52. package/es/ColorPicker/ColorControl.vue.js +1 -0
  53. package/es/ColorPicker/ColorInput.vue.js +1 -0
  54. package/es/ColorPicker/ColorList.vue.js +7 -1
  55. package/es/ColorPicker/ColorPalette.vue.js +1 -0
  56. package/es/ColorPicker/ColorPanel.vue.js +7 -1
  57. package/es/ColorPicker/hooks/useContext.js +1 -0
  58. package/es/Comment/index.vue.js +1 -0
  59. package/es/ConfigProvider/index.d.ts +3 -3
  60. package/es/ConfigProvider/index.vue.d.ts +1 -1
  61. package/es/ConfigProvider/index.vue.js +4 -12
  62. package/es/ConfigProvider/type.d.ts +3 -2
  63. package/es/Descriptions/ReuseItem.vue.js +1 -0
  64. package/es/Descriptions/ReuseTd.vue.js +1 -0
  65. package/es/Descriptions/hooks/useContext.js +1 -0
  66. package/es/Divider/index.d.ts +3 -3
  67. package/es/Divider/index.vue.d.ts +1 -1
  68. package/es/Divider/index.vue.js +1 -0
  69. package/es/Drawer/Drawer.vue.d.ts +4 -4
  70. package/es/Drawer/Drawer.vue.js +2 -1
  71. package/es/Drawer/DrawerService.vue.d.ts +2 -2
  72. package/es/Drawer/DrawerService.vue.js +1 -0
  73. package/es/Drawer/index.d.ts +11 -11
  74. package/es/Dropdown/Dropdown.vue.js +1 -0
  75. package/es/Dropdown/DropdownButton.vue.d.ts +1 -1
  76. package/es/Dropdown/DropdownButton.vue.js +1 -0
  77. package/es/Dropdown/Dsubmenu.vue.js +1 -0
  78. package/es/Dropdown/hooks/useContext.js +1 -0
  79. package/es/Dropdown/index.d.ts +3 -3
  80. package/es/Empty/index.vue.js +2 -1
  81. package/es/Grid/Grid.vue.js +1 -0
  82. package/es/Grid/GridCol.vue.js +1 -0
  83. package/es/Grid/GridItem.vue.js +1 -0
  84. package/es/Grid/GridRow.vue.js +1 -0
  85. package/es/Grid/hooks/useContext.js +1 -0
  86. package/es/Image/Image.vue.d.ts +2 -2
  87. package/es/Image/Image.vue.js +2 -1
  88. package/es/Image/ImagePreview.vue.js +1 -0
  89. package/es/Image/ImagePreviewArrow.vue.js +1 -0
  90. package/es/Image/ImagePreviewToolbar.vue.js +8 -7
  91. package/es/Image/hooks/useContext.js +1 -0
  92. package/es/Image/index.d.ts +6 -6
  93. package/es/Input/Input.vue.d.ts +3 -3
  94. package/es/Input/Input.vue.js +1 -0
  95. package/es/Input/InputSuffix.vue.js +1 -0
  96. package/es/Input/hooks/useLimitedInput.js +1 -0
  97. package/es/Input/index.d.ts +9 -9
  98. package/es/InputNumber/InputNumber.vue.d.ts +18 -18
  99. package/es/InputNumber/InputNumber.vue.js +1 -0
  100. package/es/InputNumber/InputOperaBtn.vue.js +1 -0
  101. package/es/InputNumber/index.d.ts +19 -19
  102. package/es/InputTag/index.d.ts +6 -6
  103. package/es/InputTag/index.vue.d.ts +2 -2
  104. package/es/InputTag/index.vue.js +1 -0
  105. package/es/Layout/Layout.vue.js +1 -0
  106. package/es/Layout/LayoutSider.vue.js +1 -0
  107. package/es/Layout/hooks/useSiderContext.js +1 -0
  108. package/es/Link/index.d.ts +3 -3
  109. package/es/Link/index.vue.d.ts +1 -1
  110. package/es/Link/index.vue.js +1 -0
  111. package/es/List/List.vue.d.ts +7 -7
  112. package/es/List/List.vue.js +1 -0
  113. package/es/List/ListItemMeta.vue.d.ts +1 -1
  114. package/es/List/hooks/useScrollReach.js +1 -0
  115. package/es/List/index.d.ts +9 -9
  116. package/es/Mention/index.d.ts +22 -22
  117. package/es/Mention/index.vue.d.ts +39 -39
  118. package/es/Mention/index.vue.js +1 -0
  119. package/es/Menu/Menu.vue.js +1 -0
  120. package/es/Menu/MenuEllipsis.vue.js +1 -0
  121. package/es/Menu/MenuItem.vue.js +1 -0
  122. package/es/Menu/MenuItemGroup.vue.js +1 -0
  123. package/es/Menu/SubMenu.vue.js +1 -0
  124. package/es/Menu/hooks/useContext.js +1 -0
  125. package/es/Message/Message.vue.d.ts +1 -1
  126. package/es/Message/Message.vue.js +1 -0
  127. package/es/Message/index.d.ts +3 -3
  128. package/es/Message/index.js +1 -0
  129. package/es/Modal/Modal.vue.d.ts +4 -4
  130. package/es/Modal/Modal.vue.js +2 -1
  131. package/es/Modal/ModalService.vue.d.ts +2 -2
  132. package/es/Modal/ModalService.vue.js +1 -0
  133. package/es/Modal/hooks/useModalClose.js +1 -0
  134. package/es/Modal/hooks/useModalDraggable.js +1 -0
  135. package/es/Modal/hooks/useOnBeforeClose.js +1 -0
  136. package/es/Modal/index.d.ts +11 -11
  137. package/es/Notification/Notification.vue.d.ts +1 -1
  138. package/es/Notification/Notification.vue.js +1 -0
  139. package/es/Notification/index.d.ts +3 -3
  140. package/es/Notification/index.js +1 -0
  141. package/es/OverflowList/index.d.ts +3 -3
  142. package/es/OverflowList/index.vue.d.ts +1 -1
  143. package/es/OverflowList/index.vue.js +1 -0
  144. package/es/PageHeader/index.vue.js +1 -0
  145. package/es/Pagination/Pagination.vue.js +6 -2
  146. package/es/Pagination/PaginationItem.vue.js +1 -0
  147. package/es/Pagination/hooks/useContext.d.ts +1 -256
  148. package/es/Pagination/hooks/useContext.js +2 -1
  149. package/es/Popconfirm/index.d.ts +19 -19
  150. package/es/Popconfirm/index.vue.d.ts +7 -7
  151. package/es/Popconfirm/index.vue.js +2 -1
  152. package/es/Popover/index.vue.js +1 -0
  153. package/es/Progress/Progress.vue.d.ts +1 -1
  154. package/es/Progress/Progress.vue.js +1 -0
  155. package/es/Progress/ProgressCircle.vue.js +1 -0
  156. package/es/Progress/ProgressLine.vue.js +1 -0
  157. package/es/Progress/ProgressSteps.vue.js +1 -0
  158. package/es/Progress/index.d.ts +3 -3
  159. package/es/Radio/Radio.vue.d.ts +1 -1
  160. package/es/Radio/Radio.vue.js +1 -0
  161. package/es/Radio/RadioGroup.vue.d.ts +1 -1
  162. package/es/Radio/hooks/useContext.js +1 -0
  163. package/es/Radio/index.d.ts +6 -6
  164. package/es/Rate/index.vue.js +1 -0
  165. package/es/ResizeBox/index.vue.js +1 -0
  166. package/es/Scrollbar/Scrollbar.vue.d.ts +1 -1
  167. package/es/Scrollbar/Scrollbar.vue.js +1 -0
  168. package/es/Scrollbar/ScrollbarTrack.vue.js +1 -0
  169. package/es/Scrollbar/index.d.ts +3 -3
  170. package/es/Select/Option.vue.js +1 -0
  171. package/es/Select/Select.vue.d.ts +26 -26
  172. package/es/Select/Select.vue.js +1 -0
  173. package/es/Select/SelectIcon.vue.js +1 -0
  174. package/es/Select/SelectRealList.vue.js +1 -0
  175. package/es/Select/SelectView.vue.js +1 -0
  176. package/es/Select/SelectVirtualList.vue.js +1 -0
  177. package/es/Select/hooks/useContext.js +1 -0
  178. package/es/Select/hooks/useSelectOptions.js +1 -0
  179. package/es/Select/index.d.ts +14 -14
  180. package/es/Skeleton/SkeletonLine.vue.js +1 -0
  181. package/es/Skeleton/SkeletonShape.vue.js +1 -0
  182. package/es/Slider/Slider.vue.d.ts +3 -3
  183. package/es/Slider/SliderBtn.vue.js +1 -0
  184. package/es/Slider/hooks/useContext.js +1 -0
  185. package/es/Slider/hooks/useSliderDraggable.js +1 -0
  186. package/es/Slider/index.d.ts +9 -9
  187. package/es/Space/index.d.ts +3 -3
  188. package/es/Space/index.vue.d.ts +1 -1
  189. package/es/Space/index.vue.js +1 -0
  190. package/es/Spin/index.d.ts +3 -3
  191. package/es/Spin/index.vue.d.ts +1 -1
  192. package/es/Spin/index.vue.js +1 -0
  193. package/es/Split/index.d.ts +6 -6
  194. package/es/Split/index.vue.d.ts +2 -2
  195. package/es/Split/index.vue.js +1 -0
  196. package/es/Statistic/Countdown.vue.d.ts +2 -2
  197. package/es/Statistic/Countdown.vue.js +1 -0
  198. package/es/Statistic/Statistic.vue.d.ts +2 -2
  199. package/es/Statistic/Statistic.vue.js +1 -0
  200. package/es/Statistic/index.d.ts +12 -12
  201. package/es/Steps/Step.vue.d.ts +1 -1
  202. package/es/Steps/Step.vue.js +1 -0
  203. package/es/Steps/Steps.vue.d.ts +1 -1
  204. package/es/Steps/hooks/useContext.js +1 -0
  205. package/es/Steps/index.d.ts +6 -6
  206. package/es/Switch/index.d.ts +6 -6
  207. package/es/Switch/index.vue.d.ts +2 -2
  208. package/es/Switch/index.vue.js +1 -0
  209. package/es/Tabs/TabButton.vue.js +1 -0
  210. package/es/Tabs/TabPane.vue.js +1 -0
  211. package/es/Tabs/Tabs.vue.d.ts +3 -3
  212. package/es/Tabs/Tabs.vue.js +1 -0
  213. package/es/Tabs/TabsNavInk.vue.js +1 -0
  214. package/es/Tabs/TabsTab.vue.js +1 -0
  215. package/es/Tabs/hooks/useContext.js +1 -0
  216. package/es/Tabs/hooks/useTabsScroll.js +1 -0
  217. package/es/Tabs/index.d.ts +8 -8
  218. package/es/Tag/index.d.ts +3 -3
  219. package/es/Tag/index.vue.d.ts +1 -1
  220. package/es/Tag/index.vue.js +1 -0
  221. package/es/Textarea/hooks/useTextareaHeight.js +1 -0
  222. package/es/Textarea/index.d.ts +6 -6
  223. package/es/Textarea/index.vue.d.ts +2 -2
  224. package/es/Textarea/index.vue.js +1 -0
  225. package/es/TimePicker/TimePicker.vue.d.ts +3 -3
  226. package/es/TimePicker/TimePicker.vue.js +6 -6
  227. package/es/TimePicker/TimePickerPanel.vue.js +10 -10
  228. package/es/TimePicker/hooks/useContext.d.ts +1 -0
  229. package/es/TimePicker/hooks/useContext.js +11 -2
  230. package/es/TimePicker/index.d.ts +9 -9
  231. package/es/Timeline/TimelineItemPending.vue.js +1 -0
  232. package/es/Timeline/hooks/useContext.js +1 -0
  233. package/es/Tooltip/index.vue.js +1 -0
  234. package/es/Transfer/Transfer.vue.js +1 -0
  235. package/es/Transfer/TransferPanel.vue.js +1 -0
  236. package/es/Transfer/hooks/useContext.js +1 -0
  237. package/es/Trigger/hooks/useContext.js +1 -0
  238. package/es/Trigger/hooks/useTriggerPosition.js +1 -0
  239. package/es/Trigger/hooks/useTriggerVisible.js +1 -0
  240. package/es/Trigger/index.vue.js +1 -0
  241. package/es/Typography/TypographyBase.vue.d.ts +19 -19
  242. package/es/Typography/TypographyBase.vue.js +2 -1
  243. package/es/VerificationCode/index.d.ts +6 -6
  244. package/es/VerificationCode/index.vue.d.ts +2 -2
  245. package/es/VerificationCode/index.vue.js +1 -0
  246. package/es/Watermark/index.d.ts +3 -3
  247. package/es/Watermark/index.vue.d.ts +1 -1
  248. package/es/Watermark/index.vue.js +1 -0
  249. package/es/_shared/components/ExpandTransition.vue2.js +1 -0
  250. package/es/_shared/components/Icon.vue3.js +1 -0
  251. package/es/_shared/components/IconButton.vue.js +1 -0
  252. package/es/_shared/constants/index.js +1 -0
  253. package/es/_shared/icons/IconFullScreen.vue.js +1 -17
  254. package/es/_shared/icons/IconFullScreen.vue2.js +17 -1
  255. package/es/_shared/icons/IconOriginSize.vue.js +1 -23
  256. package/es/_shared/icons/IconOriginSize.vue2.js +23 -1
  257. package/es/_shared/icons/IconRotateLeft.vue.js +1 -17
  258. package/es/_shared/icons/IconRotateLeft.vue2.js +17 -1
  259. package/es/_shared/icons/IconRotateRight.vue.js +1 -17
  260. package/es/_shared/icons/IconRotateRight.vue2.js +17 -1
  261. package/es/_shared/icons/IconSeparator.vue.js +17 -1
  262. package/es/_shared/icons/IconSeparator.vue2.js +1 -17
  263. package/es/_shared/icons/IconZoomIn.vue.js +1 -17
  264. package/es/_shared/icons/IconZoomIn.vue2.js +17 -1
  265. package/es/_shared/icons/IconZoomOut.vue.js +1 -17
  266. package/es/_shared/icons/IconZoomOut.vue2.js +17 -1
  267. package/es/_shared/utils/control.js +1 -0
  268. package/es/_shared/utils/global-config.d.ts +3 -1
  269. package/es/_shared/utils/global-config.js +4 -0
  270. package/es/_shared/utils/index.d.ts +1 -0
  271. package/es/_shared/utils/locale.d.ts +22 -0
  272. package/es/_shared/utils/locale.js +39 -0
  273. package/es/index.d.ts +27 -27
  274. package/es/index.js +0 -2
  275. package/es/lang/ar-eg.js +156 -0
  276. package/es/lang/de-de.js +157 -0
  277. package/es/lang/en-us.js +161 -0
  278. package/es/lang/es-es.js +156 -0
  279. package/es/lang/fr-fr.js +158 -0
  280. package/es/lang/id-id.js +157 -0
  281. package/es/lang/it-it.js +157 -0
  282. package/es/lang/ja-jp.js +204 -0
  283. package/es/lang/km-kh.js +156 -0
  284. package/es/lang/ko-kr.js +156 -0
  285. package/es/lang/ms-my.js +156 -0
  286. package/es/lang/nl-nl.js +204 -0
  287. package/es/lang/pt-pt.js +156 -0
  288. package/es/lang/ru-ru.js +204 -0
  289. package/es/lang/th-th.js +156 -0
  290. package/es/lang/vi-vn.js +156 -0
  291. package/es/lang/zh-cn.js +204 -0
  292. package/es/lang/zh-tw.js +204 -0
  293. package/es/public/lang/zh-cn.js +202 -0
  294. package/lib/Affix/index.vue.js +1 -1
  295. package/lib/Alert/index.d.ts +3 -3
  296. package/lib/Alert/index.vue.d.ts +1 -1
  297. package/lib/Alert/index.vue.js +1 -1
  298. package/lib/Anchor/Anchor.vue.js +1 -1
  299. package/lib/Anchor/AnchorLink.vue.js +1 -1
  300. package/lib/Anchor/hooks/useContext.js +1 -1
  301. package/lib/AutoComplete/index.d.ts +19 -19
  302. package/lib/AutoComplete/index.vue.d.ts +33 -33
  303. package/lib/AutoComplete/index.vue.js +1 -1
  304. package/lib/Avatar/Avatar.vue.d.ts +2 -2
  305. package/lib/Avatar/Avatar.vue.js +1 -1
  306. package/lib/Avatar/AvatarGroup.vue.js +1 -1
  307. package/lib/Avatar/index.d.ts +5 -5
  308. package/lib/BackTop/index.vue.js +1 -1
  309. package/lib/Badge/index.vue.js +1 -1
  310. package/lib/Breadcrumb/Breadcrumb.vue.js +1 -1
  311. package/lib/Breadcrumb/BreadcrumbItem.vue.js +1 -1
  312. package/lib/Breadcrumb/BreadcrumbMore.vue.js +1 -1
  313. package/lib/Breadcrumb/BreadcrumbSeparator.vue.js +1 -1
  314. package/lib/Button/Button.vue.d.ts +3 -3
  315. package/lib/Button/ButtonGroup.vue.d.ts +1 -1
  316. package/lib/Button/hooks/useContext.js +1 -1
  317. package/lib/Button/index.d.ts +12 -12
  318. package/lib/Calendar/Calendar.vue.js +1 -1
  319. package/lib/Calendar/CalendarMonth.vue.d.ts +1 -1
  320. package/lib/Calendar/CalendarMonth.vue.js +1 -1
  321. package/lib/Calendar/CalendarYear.vue.js +1 -1
  322. package/lib/Card/Card.vue.d.ts +1 -1
  323. package/lib/Card/Card.vue.js +1 -1
  324. package/lib/Card/CardMeta.vue.d.ts +1 -1
  325. package/lib/Card/CardMeta.vue.js +1 -1
  326. package/lib/Card/index.d.ts +6 -6
  327. package/lib/Carousel/Carousel.vue.js +1 -1
  328. package/lib/Carousel/CarouselArrow.vue.js +1 -1
  329. package/lib/Carousel/CarouselIndicator.vue.js +1 -1
  330. package/lib/Carousel/hooks/useContext.js +1 -1
  331. package/lib/Cascader/Cascader.vue.d.ts +17 -17
  332. package/lib/Cascader/Cascader.vue.js +1 -1
  333. package/lib/Cascader/CascaderIcon.vue.js +1 -1
  334. package/lib/Cascader/CascaderOption.vue.js +1 -1
  335. package/lib/Cascader/CascaderPanel.vue.js +1 -1
  336. package/lib/Cascader/CascaderSearchPanel.vue.js +1 -1
  337. package/lib/Cascader/hooks/useContext.js +1 -1
  338. package/lib/Cascader/index.d.ts +16 -16
  339. package/lib/Checkbox/Checkbox.vue.js +1 -1
  340. package/lib/Checkbox/CheckboxGroup.vue.d.ts +1 -1
  341. package/lib/Checkbox/hooks/useContext.js +1 -1
  342. package/lib/Checkbox/index.d.ts +3 -3
  343. package/lib/Collapse/CollapseItem.vue.js +1 -1
  344. package/lib/Collapse/hooks/useContext.js +1 -1
  345. package/lib/ColorPicker/ColorControl.vue.js +1 -1
  346. package/lib/ColorPicker/ColorInput.vue.js +1 -1
  347. package/lib/ColorPicker/ColorList.vue.js +1 -1
  348. package/lib/ColorPicker/ColorPalette.vue.js +1 -1
  349. package/lib/ColorPicker/ColorPanel.vue.js +1 -1
  350. package/lib/ColorPicker/hooks/useContext.js +1 -1
  351. package/lib/Comment/index.vue.js +1 -1
  352. package/lib/ConfigProvider/index.d.ts +3 -3
  353. package/lib/ConfigProvider/index.vue.d.ts +1 -1
  354. package/lib/ConfigProvider/index.vue.js +1 -1
  355. package/lib/ConfigProvider/type.d.ts +3 -2
  356. package/lib/Descriptions/ReuseItem.vue.js +1 -1
  357. package/lib/Descriptions/ReuseTd.vue.js +1 -1
  358. package/lib/Descriptions/hooks/useContext.js +1 -1
  359. package/lib/Divider/index.d.ts +3 -3
  360. package/lib/Divider/index.vue.d.ts +1 -1
  361. package/lib/Divider/index.vue.js +1 -1
  362. package/lib/Drawer/Drawer.vue.d.ts +4 -4
  363. package/lib/Drawer/Drawer.vue.js +1 -1
  364. package/lib/Drawer/DrawerService.vue.d.ts +2 -2
  365. package/lib/Drawer/DrawerService.vue.js +1 -1
  366. package/lib/Drawer/index.d.ts +11 -11
  367. package/lib/Dropdown/Dropdown.vue.js +1 -1
  368. package/lib/Dropdown/DropdownButton.vue.d.ts +1 -1
  369. package/lib/Dropdown/DropdownButton.vue.js +1 -1
  370. package/lib/Dropdown/Dsubmenu.vue.js +1 -1
  371. package/lib/Dropdown/hooks/useContext.js +1 -1
  372. package/lib/Dropdown/index.d.ts +3 -3
  373. package/lib/Empty/index.vue.js +1 -1
  374. package/lib/Grid/Grid.vue.js +1 -1
  375. package/lib/Grid/GridCol.vue.js +1 -1
  376. package/lib/Grid/GridItem.vue.js +1 -1
  377. package/lib/Grid/GridRow.vue.js +1 -1
  378. package/lib/Grid/hooks/useContext.js +1 -1
  379. package/lib/Image/Image.vue.d.ts +2 -2
  380. package/lib/Image/Image.vue.js +1 -1
  381. package/lib/Image/ImagePreview.vue.js +1 -1
  382. package/lib/Image/ImagePreviewArrow.vue.js +1 -1
  383. package/lib/Image/ImagePreviewToolbar.vue.js +1 -1
  384. package/lib/Image/hooks/useContext.js +1 -1
  385. package/lib/Image/index.d.ts +6 -6
  386. package/lib/Input/Input.vue.d.ts +3 -3
  387. package/lib/Input/Input.vue.js +1 -1
  388. package/lib/Input/InputSuffix.vue.js +1 -1
  389. package/lib/Input/hooks/useLimitedInput.js +1 -1
  390. package/lib/Input/index.d.ts +9 -9
  391. package/lib/InputNumber/InputNumber.vue.d.ts +18 -18
  392. package/lib/InputNumber/InputNumber.vue.js +1 -1
  393. package/lib/InputNumber/InputOperaBtn.vue.js +1 -1
  394. package/lib/InputNumber/index.d.ts +19 -19
  395. package/lib/InputTag/index.d.ts +6 -6
  396. package/lib/InputTag/index.vue.d.ts +2 -2
  397. package/lib/InputTag/index.vue.js +1 -1
  398. package/lib/Layout/Layout.vue.js +1 -1
  399. package/lib/Layout/LayoutSider.vue.js +1 -1
  400. package/lib/Layout/hooks/useSiderContext.js +1 -1
  401. package/lib/Link/index.d.ts +3 -3
  402. package/lib/Link/index.vue.d.ts +1 -1
  403. package/lib/Link/index.vue.js +1 -1
  404. package/lib/List/List.vue.d.ts +7 -7
  405. package/lib/List/List.vue.js +1 -1
  406. package/lib/List/ListItemMeta.vue.d.ts +1 -1
  407. package/lib/List/hooks/useScrollReach.js +1 -1
  408. package/lib/List/index.d.ts +9 -9
  409. package/lib/Mention/index.d.ts +22 -22
  410. package/lib/Mention/index.vue.d.ts +39 -39
  411. package/lib/Mention/index.vue.js +1 -1
  412. package/lib/Menu/Menu.vue.js +1 -1
  413. package/lib/Menu/MenuEllipsis.vue.js +1 -1
  414. package/lib/Menu/MenuItem.vue.js +1 -1
  415. package/lib/Menu/MenuItemGroup.vue.js +1 -1
  416. package/lib/Menu/SubMenu.vue.js +1 -1
  417. package/lib/Menu/hooks/useContext.js +1 -1
  418. package/lib/Message/Message.vue.d.ts +1 -1
  419. package/lib/Message/Message.vue.js +1 -1
  420. package/lib/Message/index.d.ts +3 -3
  421. package/lib/Message/index.js +1 -1
  422. package/lib/Modal/Modal.vue.d.ts +4 -4
  423. package/lib/Modal/Modal.vue.js +1 -1
  424. package/lib/Modal/ModalService.vue.d.ts +2 -2
  425. package/lib/Modal/ModalService.vue.js +1 -1
  426. package/lib/Modal/hooks/useModalClose.js +1 -1
  427. package/lib/Modal/hooks/useModalDraggable.js +1 -1
  428. package/lib/Modal/hooks/useOnBeforeClose.js +1 -1
  429. package/lib/Modal/index.d.ts +11 -11
  430. package/lib/Notification/Notification.vue.d.ts +1 -1
  431. package/lib/Notification/Notification.vue.js +1 -1
  432. package/lib/Notification/index.d.ts +3 -3
  433. package/lib/Notification/index.js +1 -1
  434. package/lib/OverflowList/index.d.ts +3 -3
  435. package/lib/OverflowList/index.vue.d.ts +1 -1
  436. package/lib/OverflowList/index.vue.js +1 -1
  437. package/lib/PageHeader/index.vue.js +1 -1
  438. package/lib/Pagination/Pagination.vue.js +1 -1
  439. package/lib/Pagination/PaginationItem.vue.js +1 -1
  440. package/lib/Pagination/hooks/useContext.d.ts +1 -256
  441. package/lib/Pagination/hooks/useContext.js +1 -1
  442. package/lib/Popconfirm/index.d.ts +19 -19
  443. package/lib/Popconfirm/index.vue.d.ts +7 -7
  444. package/lib/Popconfirm/index.vue.js +1 -1
  445. package/lib/Popover/index.vue.js +1 -1
  446. package/lib/Progress/Progress.vue.d.ts +1 -1
  447. package/lib/Progress/Progress.vue.js +1 -1
  448. package/lib/Progress/ProgressCircle.vue.js +1 -1
  449. package/lib/Progress/ProgressLine.vue.js +1 -1
  450. package/lib/Progress/ProgressSteps.vue.js +1 -1
  451. package/lib/Progress/index.d.ts +3 -3
  452. package/lib/Radio/Radio.vue.d.ts +1 -1
  453. package/lib/Radio/Radio.vue.js +1 -1
  454. package/lib/Radio/RadioGroup.vue.d.ts +1 -1
  455. package/lib/Radio/hooks/useContext.js +1 -1
  456. package/lib/Radio/index.d.ts +6 -6
  457. package/lib/Rate/index.vue.js +1 -1
  458. package/lib/ResizeBox/index.vue.js +1 -1
  459. package/lib/Scrollbar/Scrollbar.vue.d.ts +1 -1
  460. package/lib/Scrollbar/Scrollbar.vue.js +1 -1
  461. package/lib/Scrollbar/ScrollbarTrack.vue.js +1 -1
  462. package/lib/Scrollbar/index.d.ts +3 -3
  463. package/lib/Select/Option.vue.js +1 -1
  464. package/lib/Select/Select.vue.d.ts +26 -26
  465. package/lib/Select/Select.vue.js +1 -1
  466. package/lib/Select/SelectIcon.vue.js +1 -1
  467. package/lib/Select/SelectRealList.vue.js +1 -1
  468. package/lib/Select/SelectView.vue.js +1 -1
  469. package/lib/Select/SelectVirtualList.vue.js +1 -1
  470. package/lib/Select/hooks/useContext.js +1 -1
  471. package/lib/Select/hooks/useSelectOptions.js +1 -1
  472. package/lib/Select/index.d.ts +14 -14
  473. package/lib/Skeleton/SkeletonLine.vue.js +1 -1
  474. package/lib/Skeleton/SkeletonShape.vue.js +1 -1
  475. package/lib/Slider/Slider.vue.d.ts +3 -3
  476. package/lib/Slider/SliderBtn.vue.js +1 -1
  477. package/lib/Slider/hooks/useContext.js +1 -1
  478. package/lib/Slider/hooks/useSliderDraggable.js +1 -1
  479. package/lib/Slider/index.d.ts +9 -9
  480. package/lib/Space/index.d.ts +3 -3
  481. package/lib/Space/index.vue.d.ts +1 -1
  482. package/lib/Space/index.vue.js +1 -1
  483. package/lib/Spin/index.d.ts +3 -3
  484. package/lib/Spin/index.vue.d.ts +1 -1
  485. package/lib/Spin/index.vue.js +1 -1
  486. package/lib/Split/index.d.ts +6 -6
  487. package/lib/Split/index.vue.d.ts +2 -2
  488. package/lib/Split/index.vue.js +1 -1
  489. package/lib/Statistic/Countdown.vue.d.ts +2 -2
  490. package/lib/Statistic/Countdown.vue.js +1 -1
  491. package/lib/Statistic/Statistic.vue.d.ts +2 -2
  492. package/lib/Statistic/Statistic.vue.js +1 -1
  493. package/lib/Statistic/index.d.ts +12 -12
  494. package/lib/Steps/Step.vue.d.ts +1 -1
  495. package/lib/Steps/Step.vue.js +1 -1
  496. package/lib/Steps/Steps.vue.d.ts +1 -1
  497. package/lib/Steps/hooks/useContext.js +1 -1
  498. package/lib/Steps/index.d.ts +6 -6
  499. package/lib/Switch/index.d.ts +6 -6
  500. package/lib/Switch/index.vue.d.ts +2 -2
  501. package/lib/Switch/index.vue.js +1 -1
  502. package/lib/Tabs/TabButton.vue.js +1 -1
  503. package/lib/Tabs/TabPane.vue.js +1 -1
  504. package/lib/Tabs/Tabs.vue.d.ts +3 -3
  505. package/lib/Tabs/Tabs.vue.js +1 -1
  506. package/lib/Tabs/TabsNavInk.vue.js +1 -1
  507. package/lib/Tabs/TabsTab.vue.js +1 -1
  508. package/lib/Tabs/hooks/useContext.js +1 -1
  509. package/lib/Tabs/hooks/useTabsScroll.js +1 -1
  510. package/lib/Tabs/index.d.ts +8 -8
  511. package/lib/Tag/index.d.ts +3 -3
  512. package/lib/Tag/index.vue.d.ts +1 -1
  513. package/lib/Tag/index.vue.js +1 -1
  514. package/lib/Textarea/hooks/useTextareaHeight.js +1 -1
  515. package/lib/Textarea/index.d.ts +6 -6
  516. package/lib/Textarea/index.vue.d.ts +2 -2
  517. package/lib/Textarea/index.vue.js +1 -1
  518. package/lib/TimePicker/TimePicker.vue.d.ts +3 -3
  519. package/lib/TimePicker/TimePicker.vue.js +1 -1
  520. package/lib/TimePicker/TimePickerPanel.vue.js +1 -1
  521. package/lib/TimePicker/hooks/useContext.d.ts +1 -0
  522. package/lib/TimePicker/hooks/useContext.js +1 -1
  523. package/lib/TimePicker/index.d.ts +9 -9
  524. package/lib/Timeline/TimelineItemPending.vue.js +1 -1
  525. package/lib/Timeline/hooks/useContext.js +1 -1
  526. package/lib/Tooltip/index.vue.js +1 -1
  527. package/lib/Transfer/Transfer.vue.js +1 -1
  528. package/lib/Transfer/TransferPanel.vue.js +1 -1
  529. package/lib/Transfer/hooks/useContext.js +1 -1
  530. package/lib/Trigger/hooks/useContext.js +1 -1
  531. package/lib/Trigger/hooks/useTriggerPosition.js +1 -1
  532. package/lib/Trigger/hooks/useTriggerVisible.js +1 -1
  533. package/lib/Trigger/index.vue.js +1 -1
  534. package/lib/Typography/TypographyBase.vue.d.ts +19 -19
  535. package/lib/Typography/TypographyBase.vue.js +1 -1
  536. package/lib/VerificationCode/index.d.ts +6 -6
  537. package/lib/VerificationCode/index.vue.d.ts +2 -2
  538. package/lib/VerificationCode/index.vue.js +1 -1
  539. package/lib/Watermark/index.d.ts +3 -3
  540. package/lib/Watermark/index.vue.d.ts +1 -1
  541. package/lib/Watermark/index.vue.js +1 -1
  542. package/lib/_shared/components/ExpandTransition.vue2.js +1 -1
  543. package/lib/_shared/components/Icon.vue3.js +1 -1
  544. package/lib/_shared/components/IconButton.vue.js +1 -1
  545. package/lib/_shared/constants/index.js +1 -1
  546. package/lib/_shared/icons/IconFullScreen.vue.js +1 -1
  547. package/lib/_shared/icons/IconFullScreen.vue2.js +1 -1
  548. package/lib/_shared/icons/IconOriginSize.vue.js +1 -1
  549. package/lib/_shared/icons/IconOriginSize.vue2.js +1 -1
  550. package/lib/_shared/icons/IconRotateLeft.vue.js +1 -1
  551. package/lib/_shared/icons/IconRotateLeft.vue2.js +1 -1
  552. package/lib/_shared/icons/IconRotateRight.vue.js +1 -1
  553. package/lib/_shared/icons/IconRotateRight.vue2.js +1 -1
  554. package/lib/_shared/icons/IconSeparator.vue.js +1 -1
  555. package/lib/_shared/icons/IconSeparator.vue2.js +1 -1
  556. package/lib/_shared/icons/IconZoomIn.vue.js +1 -1
  557. package/lib/_shared/icons/IconZoomIn.vue2.js +1 -1
  558. package/lib/_shared/icons/IconZoomOut.vue.js +1 -1
  559. package/lib/_shared/icons/IconZoomOut.vue2.js +1 -1
  560. package/lib/_shared/utils/control.js +1 -1
  561. package/lib/_shared/utils/global-config.d.ts +3 -1
  562. package/lib/_shared/utils/global-config.js +1 -1
  563. package/lib/_shared/utils/index.d.ts +1 -0
  564. package/lib/_shared/utils/locale.d.ts +22 -0
  565. package/lib/_shared/utils/locale.js +1 -0
  566. package/lib/index.d.ts +27 -27
  567. package/lib/index.js +1 -1
  568. package/lib/lang/ar-eg.js +156 -0
  569. package/lib/lang/de-de.js +157 -0
  570. package/lib/lang/en-us.js +161 -0
  571. package/lib/lang/es-es.js +156 -0
  572. package/lib/lang/fr-fr.js +158 -0
  573. package/lib/lang/id-id.js +157 -0
  574. package/lib/lang/it-it.js +157 -0
  575. package/lib/lang/ja-jp.js +204 -0
  576. package/lib/lang/km-kh.js +156 -0
  577. package/lib/lang/ko-kr.js +156 -0
  578. package/lib/lang/ms-my.js +156 -0
  579. package/lib/lang/nl-nl.js +204 -0
  580. package/lib/lang/pt-pt.js +156 -0
  581. package/lib/lang/ru-ru.js +204 -0
  582. package/lib/lang/th-th.js +156 -0
  583. package/lib/lang/vi-vn.js +156 -0
  584. package/lib/lang/zh-cn.js +204 -0
  585. package/lib/lang/zh-tw.js +204 -0
  586. package/lib/public/lang/zh-cn.js +1 -0
  587. package/package.json +2 -4
  588. package/es/_shared/locale/i18n.d.ts +0 -512
  589. package/es/_shared/locale/i18n.js +0 -43
  590. package/es/_shared/locale/lang/ar-eg.json.js +0 -251
  591. package/es/_shared/locale/lang/de-de.json.d.ts +0 -207
  592. package/es/_shared/locale/lang/de-de.json.js +0 -251
  593. package/es/_shared/locale/lang/en-us.json.d.ts +0 -210
  594. package/es/_shared/locale/lang/en-us.json.js +0 -256
  595. package/es/_shared/locale/lang/es-es.json.d.ts +0 -207
  596. package/es/_shared/locale/lang/es-es.json.js +0 -251
  597. package/es/_shared/locale/lang/fr-fr.json.d.ts +0 -207
  598. package/es/_shared/locale/lang/fr-fr.json.js +0 -251
  599. package/es/_shared/locale/lang/id-id.json.d.ts +0 -207
  600. package/es/_shared/locale/lang/id-id.json.js +0 -251
  601. package/es/_shared/locale/lang/it-it.json.d.ts +0 -207
  602. package/es/_shared/locale/lang/it-it.json.js +0 -251
  603. package/es/_shared/locale/lang/ja-jp.json.d.ts +0 -255
  604. package/es/_shared/locale/lang/ja-jp.json.js +0 -301
  605. package/es/_shared/locale/lang/km-kh.json.d.ts +0 -207
  606. package/es/_shared/locale/lang/km-kh.json.js +0 -251
  607. package/es/_shared/locale/lang/ko-kr.json.d.ts +0 -207
  608. package/es/_shared/locale/lang/ko-kr.json.js +0 -251
  609. package/es/_shared/locale/lang/ms-my.json.d.ts +0 -207
  610. package/es/_shared/locale/lang/ms-my.json.js +0 -251
  611. package/es/_shared/locale/lang/nl-nl.json.d.ts +0 -255
  612. package/es/_shared/locale/lang/nl-nl.json.js +0 -301
  613. package/es/_shared/locale/lang/pt-pt.json.d.ts +0 -207
  614. package/es/_shared/locale/lang/pt-pt.json.js +0 -251
  615. package/es/_shared/locale/lang/ru-ru.json.d.ts +0 -255
  616. package/es/_shared/locale/lang/ru-ru.json.js +0 -301
  617. package/es/_shared/locale/lang/th-th.json.d.ts +0 -207
  618. package/es/_shared/locale/lang/th-th.json.js +0 -251
  619. package/es/_shared/locale/lang/vi-vn.json.d.ts +0 -207
  620. package/es/_shared/locale/lang/vi-vn.json.js +0 -251
  621. package/es/_shared/locale/lang/zh-cn.d.ts +0 -253
  622. package/es/_shared/locale/lang/zh-cn.json.d.ts +0 -255
  623. package/es/_shared/locale/lang/zh-cn.json.js +0 -301
  624. package/es/_shared/locale/lang/zh-tw.json.d.ts +0 -255
  625. package/es/_shared/locale/lang/zh-tw.json.js +0 -301
  626. package/es/node_modules/@intlify/core-base/dist/core-base.js +0 -1126
  627. package/es/node_modules/@intlify/message-compiler/dist/message-compiler.js +0 -65
  628. package/es/node_modules/@intlify/shared/dist/shared.js +0 -199
  629. package/es/node_modules/@intlify/vue-i18n-core/dist/vue-i18n-core.js +0 -1375
  630. package/es/node_modules/@vue/devtools-api/lib/esm/const.js +0 -6
  631. package/es/node_modules/@vue/devtools-api/lib/esm/env.js +0 -12
  632. package/es/node_modules/@vue/devtools-api/lib/esm/index.js +0 -26
  633. package/es/node_modules/@vue/devtools-api/lib/esm/proxy.js +0 -103
  634. package/es/node_modules/@vue/devtools-api/lib/esm/time.js +0 -25
  635. package/lib/_shared/locale/i18n.d.ts +0 -512
  636. package/lib/_shared/locale/i18n.js +0 -1
  637. package/lib/_shared/locale/lang/ar-eg.json.js +0 -1
  638. package/lib/_shared/locale/lang/de-de.json.d.ts +0 -207
  639. package/lib/_shared/locale/lang/de-de.json.js +0 -1
  640. package/lib/_shared/locale/lang/en-us.json.d.ts +0 -210
  641. package/lib/_shared/locale/lang/en-us.json.js +0 -1
  642. package/lib/_shared/locale/lang/es-es.json.d.ts +0 -207
  643. package/lib/_shared/locale/lang/es-es.json.js +0 -1
  644. package/lib/_shared/locale/lang/fr-fr.json.d.ts +0 -207
  645. package/lib/_shared/locale/lang/fr-fr.json.js +0 -1
  646. package/lib/_shared/locale/lang/id-id.json.d.ts +0 -207
  647. package/lib/_shared/locale/lang/id-id.json.js +0 -1
  648. package/lib/_shared/locale/lang/it-it.json.d.ts +0 -207
  649. package/lib/_shared/locale/lang/it-it.json.js +0 -1
  650. package/lib/_shared/locale/lang/ja-jp.json.d.ts +0 -255
  651. package/lib/_shared/locale/lang/ja-jp.json.js +0 -1
  652. package/lib/_shared/locale/lang/km-kh.json.d.ts +0 -207
  653. package/lib/_shared/locale/lang/km-kh.json.js +0 -1
  654. package/lib/_shared/locale/lang/ko-kr.json.d.ts +0 -207
  655. package/lib/_shared/locale/lang/ko-kr.json.js +0 -1
  656. package/lib/_shared/locale/lang/ms-my.json.d.ts +0 -207
  657. package/lib/_shared/locale/lang/ms-my.json.js +0 -1
  658. package/lib/_shared/locale/lang/nl-nl.json.d.ts +0 -255
  659. package/lib/_shared/locale/lang/nl-nl.json.js +0 -1
  660. package/lib/_shared/locale/lang/pt-pt.json.d.ts +0 -207
  661. package/lib/_shared/locale/lang/pt-pt.json.js +0 -1
  662. package/lib/_shared/locale/lang/ru-ru.json.d.ts +0 -255
  663. package/lib/_shared/locale/lang/ru-ru.json.js +0 -1
  664. package/lib/_shared/locale/lang/th-th.json.d.ts +0 -207
  665. package/lib/_shared/locale/lang/th-th.json.js +0 -1
  666. package/lib/_shared/locale/lang/vi-vn.json.d.ts +0 -207
  667. package/lib/_shared/locale/lang/vi-vn.json.js +0 -1
  668. package/lib/_shared/locale/lang/zh-cn.d.ts +0 -253
  669. package/lib/_shared/locale/lang/zh-cn.json.d.ts +0 -255
  670. package/lib/_shared/locale/lang/zh-cn.json.js +0 -1
  671. package/lib/_shared/locale/lang/zh-tw.json.d.ts +0 -255
  672. package/lib/_shared/locale/lang/zh-tw.json.js +0 -1
  673. package/lib/node_modules/@intlify/core-base/dist/core-base.js +0 -1
  674. package/lib/node_modules/@intlify/message-compiler/dist/message-compiler.js +0 -6
  675. package/lib/node_modules/@intlify/shared/dist/shared.js +0 -7
  676. package/lib/node_modules/@intlify/vue-i18n-core/dist/vue-i18n-core.js +0 -1
  677. package/lib/node_modules/@vue/devtools-api/lib/esm/const.js +0 -1
  678. package/lib/node_modules/@vue/devtools-api/lib/esm/env.js +0 -1
  679. package/lib/node_modules/@vue/devtools-api/lib/esm/index.js +0 -1
  680. package/lib/node_modules/@vue/devtools-api/lib/esm/proxy.js +0 -1
  681. package/lib/node_modules/@vue/devtools-api/lib/esm/time.js +0 -1
@@ -1,6 +1,5 @@
1
1
  import { defineComponent, toRefs, ref, computed, createBlock, openBlock, resolveDynamicComponent, normalizeClass, unref, withCtx, createElementBlock, createCommentVNode, isRef, renderSlot, createVNode, mergeProps, createElementVNode, createTextVNode, toDisplayString, h } from "vue";
2
2
  import { useClipboard } from "../node_modules/@vueuse/core/index.js";
3
- import { t } from "../_shared/locale/i18n.js";
4
3
  import "../node_modules/tinycolor2/esm/tinycolor.js";
5
4
  import { getDomText, sleep } from "../_shared/utils/dom.js";
6
5
  import "../_shared/utils/time.js";
@@ -9,6 +8,7 @@ import "../Empty/index.js";
9
8
  import _sfc_main$3 from "../_shared/icons/IconCopy.vue2.js";
10
9
  import _sfc_main$1 from "../_shared/icons/IconEdit.vue2.js";
11
10
  import _sfc_main$2 from "../_shared/icons/IconInfo.vue.js";
11
+ import { useI18n } from "../_shared/utils/locale.js";
12
12
  import useControlValue from "../_shared/utils/control.js";
13
13
  import Input from "../Input/index.js";
14
14
  import Tooltip from "../Tooltip/index.js";
@@ -58,6 +58,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
58
58
  underline,
59
59
  bold
60
60
  } = toRefs(props);
61
+ const { t } = useI18n();
61
62
  const { isSupported, copy } = useClipboard();
62
63
  const isCopied = ref(false);
63
64
  const contentRef = ref();
@@ -14,10 +14,10 @@ declare const VerificationCode: {
14
14
  "update:modelValue": (value: string) => any;
15
15
  finish: (value: string) => any;
16
16
  }, import('vue').PublicProps, {
17
- error: boolean;
18
- length: number;
19
17
  size: import('..').Size;
18
+ length: number;
20
19
  disabled: boolean;
20
+ error: boolean;
21
21
  modelValue: string;
22
22
  defaultValue: string;
23
23
  readonly: boolean;
@@ -34,10 +34,10 @@ declare const VerificationCode: {
34
34
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
35
35
  onFinish?: ((value: string) => any) | undefined;
36
36
  }>, {}, {}, {}, {}, {
37
- error: boolean;
38
- length: number;
39
37
  size: import('..').Size;
38
+ length: number;
40
39
  disabled: boolean;
40
+ error: boolean;
41
41
  modelValue: string;
42
42
  defaultValue: string;
43
43
  readonly: boolean;
@@ -56,10 +56,10 @@ declare const VerificationCode: {
56
56
  "update:modelValue": (value: string) => any;
57
57
  finish: (value: string) => any;
58
58
  }, string, {
59
- error: boolean;
60
- length: number;
61
59
  size: import('..').Size;
60
+ length: number;
62
61
  disabled: boolean;
62
+ error: boolean;
63
63
  modelValue: string;
64
64
  defaultValue: string;
65
65
  readonly: boolean;
@@ -10,10 +10,10 @@ declare const _default: import('vue').DefineComponent<VerificationCodeProps, {},
10
10
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
11
11
  onFinish?: ((value: string) => any) | undefined;
12
12
  }>, {
13
- error: boolean;
14
- length: number;
15
13
  size: import('..').Size;
14
+ length: number;
16
15
  disabled: boolean;
16
+ error: boolean;
17
17
  modelValue: string;
18
18
  defaultValue: string;
19
19
  readonly: boolean;
@@ -5,6 +5,7 @@ import { isNumber, isString, isFunction } from "../_shared/utils/is.js";
5
5
  import "../_shared/utils/time.js";
6
6
  import { getSlotFunction } from "../_shared/utils/vue-utils.js";
7
7
  import { getGlobalConfig } from "../_shared/utils/global-config.js";
8
+ import "../_shared/utils/locale.js";
8
9
  import useControlValue from "../_shared/utils/control.js";
9
10
  import { nanoid } from "../node_modules/nanoid/index.browser.js";
10
11
  import Input from "../Input/index.js";
@@ -4,7 +4,6 @@ export type WatermarkInstance = InstanceType<typeof _Watermark>;
4
4
  export * from './type';
5
5
  declare const Watermark: {
6
6
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').WatermarkProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
7
- image: string;
8
7
  zIndex: number;
9
8
  width: number;
10
9
  height: number;
@@ -12,6 +11,7 @@ declare const Watermark: {
12
11
  content: string | string[];
13
12
  alpha: number;
14
13
  rotate: number;
14
+ image: string;
15
15
  offset: number[];
16
16
  font: import('./type').WatermarkFont;
17
17
  gap: number[];
@@ -28,7 +28,6 @@ declare const Watermark: {
28
28
  M: {};
29
29
  Defaults: {};
30
30
  }, Readonly<import('./type').WatermarkProps> & Readonly<{}>, {}, {}, {}, {}, {
31
- image: string;
32
31
  zIndex: number;
33
32
  width: number;
34
33
  height: number;
@@ -36,6 +35,7 @@ declare const Watermark: {
36
35
  content: string | string[];
37
36
  alpha: number;
38
37
  rotate: number;
38
+ image: string;
39
39
  offset: number[];
40
40
  font: import('./type').WatermarkFont;
41
41
  gap: number[];
@@ -47,7 +47,6 @@ declare const Watermark: {
47
47
  __isTeleport?: never;
48
48
  __isSuspense?: never;
49
49
  } & import('vue').ComponentOptionsBase<Readonly<import('./type').WatermarkProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
50
- image: string;
51
50
  zIndex: number;
52
51
  width: number;
53
52
  height: number;
@@ -55,6 +54,7 @@ declare const Watermark: {
55
54
  content: string | string[];
56
55
  alpha: number;
57
56
  rotate: number;
57
+ image: string;
58
58
  offset: number[];
59
59
  font: import('./type').WatermarkFont;
60
60
  gap: number[];
@@ -9,7 +9,6 @@ declare function __VLS_template(): {
9
9
  };
10
10
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
11
  declare const __VLS_component: import('vue').DefineComponent<WatermarkProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<WatermarkProps> & Readonly<{}>, {
12
- image: string;
13
12
  zIndex: number;
14
13
  width: number;
15
14
  height: number;
@@ -17,6 +16,7 @@ declare const __VLS_component: import('vue').DefineComponent<WatermarkProps, {},
17
16
  content: string | string[];
18
17
  alpha: number;
19
18
  rotate: number;
19
+ image: string;
20
20
  offset: number[];
21
21
  font: import('./type').WatermarkFont;
22
22
  gap: number[];
@@ -6,6 +6,7 @@ import { isArray } from "../_shared/utils/is.js";
6
6
  import "../_shared/utils/time.js";
7
7
  import "../Empty/index.js";
8
8
  /* empty css */
9
+ import "../_shared/utils/locale.js";
9
10
  const _sfc_main = /* @__PURE__ */ defineComponent({
10
11
  ...{
11
12
  name: "Watermark"
@@ -4,6 +4,7 @@ import { valueToPx } from "../utils/dom.js";
4
4
  import "../utils/time.js";
5
5
  import "../../Empty/index.js";
6
6
  /* empty css */
7
+ import "../utils/locale.js";
7
8
  const _sfc_main = /* @__PURE__ */ defineComponent({
8
9
  __name: "ExpandTransition",
9
10
  setup(__props) {
@@ -4,6 +4,7 @@ import { valueToPx } from "../utils/dom.js";
4
4
  import "../utils/time.js";
5
5
  import "../../Empty/index.js";
6
6
  /* empty css */
7
+ import "../utils/locale.js";
7
8
  const _sfc_main = /* @__PURE__ */ defineComponent({
8
9
  __name: "Icon",
9
10
  props: {
@@ -3,6 +3,7 @@ import "../../node_modules/tinycolor2/esm/tinycolor.js";
3
3
  import { valueToPx } from "../utils/dom.js";
4
4
  import "../utils/time.js";
5
5
  import "../../Empty/index.js";
6
+ import "../utils/locale.js";
6
7
  /* empty css */
7
8
  import _sfc_main$1 from "../icons/IconClose.vue.js";
8
9
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -6,6 +6,7 @@ import "../../node_modules/tinycolor2/esm/tinycolor.js";
6
6
  import "../utils/dom.js";
7
7
  import "../utils/time.js";
8
8
  import "../../Empty/index.js";
9
+ import "../utils/locale.js";
9
10
  /* empty css */
10
11
  import _sfc_main from "../icons/IconCheck.vue.js";
11
12
  import _sfc_main$1 from "../icons/IconClose.vue.js";
@@ -1,20 +1,4 @@
1
- import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
2
- import _sfc_main$1 from "../components/Icon.vue3.js";
3
- /* empty css */
4
- const _sfc_main = /* @__PURE__ */ defineComponent({
5
- __name: "IconFullScreen",
6
- setup(__props) {
7
- return (_ctx, _cache) => {
8
- return openBlock(), createBlock(_sfc_main$1, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
9
- default: withCtx(() => _cache[0] || (_cache[0] = [
10
- createElementVNode("path", { d: "M42 17V9a1 1 0 0 0-1-1h-8M6 17V9a1 1 0 0 1 1-1h8m27 23v8a1 1 0 0 1-1 1h-8M6 31v8a1 1 0 0 0 1 1h8" }, null, -1)
11
- ])),
12
- _: 1,
13
- __: [0]
14
- }, 16);
15
- };
16
- }
17
- });
1
+ import _sfc_main from "./IconFullScreen.vue2.js";
18
2
  export {
19
3
  _sfc_main as default
20
4
  };
@@ -1,4 +1,20 @@
1
- import _sfc_main from "./IconFullScreen.vue.js";
1
+ import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
2
+ import _sfc_main$1 from "../components/Icon.vue3.js";
3
+ /* empty css */
4
+ const _sfc_main = /* @__PURE__ */ defineComponent({
5
+ __name: "IconFullScreen",
6
+ setup(__props) {
7
+ return (_ctx, _cache) => {
8
+ return openBlock(), createBlock(_sfc_main$1, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
9
+ default: withCtx(() => _cache[0] || (_cache[0] = [
10
+ createElementVNode("path", { d: "M42 17V9a1 1 0 0 0-1-1h-8M6 17V9a1 1 0 0 1 1-1h8m27 23v8a1 1 0 0 1-1 1h-8M6 31v8a1 1 0 0 0 1 1h8" }, null, -1)
11
+ ])),
12
+ _: 1,
13
+ __: [0]
14
+ }, 16);
15
+ };
16
+ }
17
+ });
2
18
  export {
3
19
  _sfc_main as default
4
20
  };
@@ -1,26 +1,4 @@
1
- import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
2
- import _sfc_main$1 from "../components/Icon.vue3.js";
3
- /* empty css */
4
- const _sfc_main = /* @__PURE__ */ defineComponent({
5
- __name: "IconOriginSize",
6
- setup(__props) {
7
- return (_ctx, _cache) => {
8
- return openBlock(), createBlock(_sfc_main$1, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
9
- default: withCtx(() => _cache[0] || (_cache[0] = [
10
- createElementVNode("path", { d: "m5.5 11.5 5-2.5h1v32M34 11.5 39 9h1v32" }, null, -1),
11
- createElementVNode("path", {
12
- d: "M24 17h1v1h-1v-1ZM24 30h1v1h-1v-1Z",
13
- fill: "currentColor",
14
- stroke: "none"
15
- }, null, -1),
16
- createElementVNode("path", { d: "M24 17h1v1h-1v-1ZM24 30h1v1h-1v-1Z" }, null, -1)
17
- ])),
18
- _: 1,
19
- __: [0]
20
- }, 16);
21
- };
22
- }
23
- });
1
+ import _sfc_main from "./IconOriginSize.vue2.js";
24
2
  export {
25
3
  _sfc_main as default
26
4
  };
@@ -1,4 +1,26 @@
1
- import _sfc_main from "./IconOriginSize.vue.js";
1
+ import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
2
+ import _sfc_main$1 from "../components/Icon.vue3.js";
3
+ /* empty css */
4
+ const _sfc_main = /* @__PURE__ */ defineComponent({
5
+ __name: "IconOriginSize",
6
+ setup(__props) {
7
+ return (_ctx, _cache) => {
8
+ return openBlock(), createBlock(_sfc_main$1, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
9
+ default: withCtx(() => _cache[0] || (_cache[0] = [
10
+ createElementVNode("path", { d: "m5.5 11.5 5-2.5h1v32M34 11.5 39 9h1v32" }, null, -1),
11
+ createElementVNode("path", {
12
+ d: "M24 17h1v1h-1v-1ZM24 30h1v1h-1v-1Z",
13
+ fill: "currentColor",
14
+ stroke: "none"
15
+ }, null, -1),
16
+ createElementVNode("path", { d: "M24 17h1v1h-1v-1ZM24 30h1v1h-1v-1Z" }, null, -1)
17
+ ])),
18
+ _: 1,
19
+ __: [0]
20
+ }, 16);
21
+ };
22
+ }
23
+ });
2
24
  export {
3
25
  _sfc_main as default
4
26
  };
@@ -1,20 +1,4 @@
1
- import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
2
- import _sfc_main$1 from "../components/Icon.vue3.js";
3
- /* empty css */
4
- const _sfc_main = /* @__PURE__ */ defineComponent({
5
- __name: "IconRotateLeft",
6
- setup(__props) {
7
- return (_ctx, _cache) => {
8
- return openBlock(), createBlock(_sfc_main$1, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
9
- default: withCtx(() => _cache[0] || (_cache[0] = [
10
- createElementVNode("path", { d: "M10 22a1 1 0 0 1 1-1h20a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H11a1 1 0 0 1-1-1V22ZM23 11h11a6 6 0 0 1 6 6v6M22.5 12.893 19.587 11 22.5 9.107v3.786Z" }, null, -1)
11
- ])),
12
- _: 1,
13
- __: [0]
14
- }, 16);
15
- };
16
- }
17
- });
1
+ import _sfc_main from "./IconRotateLeft.vue2.js";
18
2
  export {
19
3
  _sfc_main as default
20
4
  };
@@ -1,4 +1,20 @@
1
- import _sfc_main from "./IconRotateLeft.vue.js";
1
+ import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
2
+ import _sfc_main$1 from "../components/Icon.vue3.js";
3
+ /* empty css */
4
+ const _sfc_main = /* @__PURE__ */ defineComponent({
5
+ __name: "IconRotateLeft",
6
+ setup(__props) {
7
+ return (_ctx, _cache) => {
8
+ return openBlock(), createBlock(_sfc_main$1, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
9
+ default: withCtx(() => _cache[0] || (_cache[0] = [
10
+ createElementVNode("path", { d: "M10 22a1 1 0 0 1 1-1h20a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H11a1 1 0 0 1-1-1V22ZM23 11h11a6 6 0 0 1 6 6v6M22.5 12.893 19.587 11 22.5 9.107v3.786Z" }, null, -1)
11
+ ])),
12
+ _: 1,
13
+ __: [0]
14
+ }, 16);
15
+ };
16
+ }
17
+ });
2
18
  export {
3
19
  _sfc_main as default
4
20
  };
@@ -1,20 +1,4 @@
1
- import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
2
- import _sfc_main$1 from "../components/Icon.vue3.js";
3
- /* empty css */
4
- const _sfc_main = /* @__PURE__ */ defineComponent({
5
- __name: "IconRotateRight",
6
- setup(__props) {
7
- return (_ctx, _cache) => {
8
- return openBlock(), createBlock(_sfc_main$1, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
9
- default: withCtx(() => _cache[0] || (_cache[0] = [
10
- createElementVNode("path", { d: "M38 22a1 1 0 0 0-1-1H17a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h20a1 1 0 0 0 1-1V22ZM25 11H14a6 6 0 0 0-6 6v6M25.5 12.893 28.413 11 25.5 9.107v3.786Z" }, null, -1)
11
- ])),
12
- _: 1,
13
- __: [0]
14
- }, 16);
15
- };
16
- }
17
- });
1
+ import _sfc_main from "./IconRotateRight.vue2.js";
18
2
  export {
19
3
  _sfc_main as default
20
4
  };
@@ -1,4 +1,20 @@
1
- import _sfc_main from "./IconRotateRight.vue.js";
1
+ import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
2
+ import _sfc_main$1 from "../components/Icon.vue3.js";
3
+ /* empty css */
4
+ const _sfc_main = /* @__PURE__ */ defineComponent({
5
+ __name: "IconRotateRight",
6
+ setup(__props) {
7
+ return (_ctx, _cache) => {
8
+ return openBlock(), createBlock(_sfc_main$1, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
9
+ default: withCtx(() => _cache[0] || (_cache[0] = [
10
+ createElementVNode("path", { d: "M38 22a1 1 0 0 0-1-1H17a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h20a1 1 0 0 0 1-1V22ZM25 11H14a6 6 0 0 0-6 6v6M25.5 12.893 28.413 11 25.5 9.107v3.786Z" }, null, -1)
11
+ ])),
12
+ _: 1,
13
+ __: [0]
14
+ }, 16);
15
+ };
16
+ }
17
+ });
2
18
  export {
3
19
  _sfc_main as default
4
20
  };
@@ -1,4 +1,20 @@
1
- import _sfc_main from "./IconSeparator.vue2.js";
1
+ import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
2
+ import _sfc_main$1 from "../components/Icon.vue3.js";
3
+ /* empty css */
4
+ const _sfc_main = /* @__PURE__ */ defineComponent({
5
+ __name: "IconSeparator",
6
+ setup(__props) {
7
+ return (_ctx, _cache) => {
8
+ return openBlock(), createBlock(_sfc_main$1, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
9
+ default: withCtx(() => _cache[0] || (_cache[0] = [
10
+ createElementVNode("path", { d: "M29.506 6.502 18.493 41.498" }, null, -1)
11
+ ])),
12
+ _: 1,
13
+ __: [0]
14
+ }, 16);
15
+ };
16
+ }
17
+ });
2
18
  export {
3
19
  _sfc_main as default
4
20
  };
@@ -1,20 +1,4 @@
1
- import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
2
- import _sfc_main$1 from "../components/Icon.vue3.js";
3
- /* empty css */
4
- const _sfc_main = /* @__PURE__ */ defineComponent({
5
- __name: "IconSeparator",
6
- setup(__props) {
7
- return (_ctx, _cache) => {
8
- return openBlock(), createBlock(_sfc_main$1, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
9
- default: withCtx(() => _cache[0] || (_cache[0] = [
10
- createElementVNode("path", { d: "M29.506 6.502 18.493 41.498" }, null, -1)
11
- ])),
12
- _: 1,
13
- __: [0]
14
- }, 16);
15
- };
16
- }
17
- });
1
+ import _sfc_main from "./IconSeparator.vue.js";
18
2
  export {
19
3
  _sfc_main as default
20
4
  };
@@ -1,20 +1,4 @@
1
- import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
2
- import _sfc_main$1 from "../components/Icon.vue3.js";
3
- /* empty css */
4
- const _sfc_main = /* @__PURE__ */ defineComponent({
5
- __name: "IconZoomIn",
6
- setup(__props) {
7
- return (_ctx, _cache) => {
8
- return openBlock(), createBlock(_sfc_main$1, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
9
- default: withCtx(() => _cache[0] || (_cache[0] = [
10
- createElementVNode("path", { d: "M32.607 32.607A14.953 14.953 0 0 0 37 22c0-8.284-6.716-15-15-15-8.284 0-15 6.716-15 15 0 8.284 6.716 15 15 15 4.142 0 7.892-1.679 10.607-4.393Zm0 0L41.5 41.5M29 22H15m7 7V15" }, null, -1)
11
- ])),
12
- _: 1,
13
- __: [0]
14
- }, 16);
15
- };
16
- }
17
- });
1
+ import _sfc_main from "./IconZoomIn.vue2.js";
18
2
  export {
19
3
  _sfc_main as default
20
4
  };
@@ -1,4 +1,20 @@
1
- import _sfc_main from "./IconZoomIn.vue.js";
1
+ import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
2
+ import _sfc_main$1 from "../components/Icon.vue3.js";
3
+ /* empty css */
4
+ const _sfc_main = /* @__PURE__ */ defineComponent({
5
+ __name: "IconZoomIn",
6
+ setup(__props) {
7
+ return (_ctx, _cache) => {
8
+ return openBlock(), createBlock(_sfc_main$1, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
9
+ default: withCtx(() => _cache[0] || (_cache[0] = [
10
+ createElementVNode("path", { d: "M32.607 32.607A14.953 14.953 0 0 0 37 22c0-8.284-6.716-15-15-15-8.284 0-15 6.716-15 15 0 8.284 6.716 15 15 15 4.142 0 7.892-1.679 10.607-4.393Zm0 0L41.5 41.5M29 22H15m7 7V15" }, null, -1)
11
+ ])),
12
+ _: 1,
13
+ __: [0]
14
+ }, 16);
15
+ };
16
+ }
17
+ });
2
18
  export {
3
19
  _sfc_main as default
4
20
  };
@@ -1,20 +1,4 @@
1
- import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
2
- import _sfc_main$1 from "../components/Icon.vue3.js";
3
- /* empty css */
4
- const _sfc_main = /* @__PURE__ */ defineComponent({
5
- __name: "IconZoomOut",
6
- setup(__props) {
7
- return (_ctx, _cache) => {
8
- return openBlock(), createBlock(_sfc_main$1, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
9
- default: withCtx(() => _cache[0] || (_cache[0] = [
10
- createElementVNode("path", { d: "M32.607 32.607A14.953 14.953 0 0 0 37 22c0-8.284-6.716-15-15-15-8.284 0-15 6.716-15 15 0 8.284 6.716 15 15 15 4.142 0 7.892-1.679 10.607-4.393Zm0 0L41.5 41.5M29 22H15" }, null, -1)
11
- ])),
12
- _: 1,
13
- __: [0]
14
- }, 16);
15
- };
16
- }
17
- });
1
+ import _sfc_main from "./IconZoomOut.vue2.js";
18
2
  export {
19
3
  _sfc_main as default
20
4
  };
@@ -1,4 +1,20 @@
1
- import _sfc_main from "./IconZoomOut.vue.js";
1
+ import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
2
+ import _sfc_main$1 from "../components/Icon.vue3.js";
3
+ /* empty css */
4
+ const _sfc_main = /* @__PURE__ */ defineComponent({
5
+ __name: "IconZoomOut",
6
+ setup(__props) {
7
+ return (_ctx, _cache) => {
8
+ return openBlock(), createBlock(_sfc_main$1, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
9
+ default: withCtx(() => _cache[0] || (_cache[0] = [
10
+ createElementVNode("path", { d: "M32.607 32.607A14.953 14.953 0 0 0 37 22c0-8.284-6.716-15-15-15-8.284 0-15 6.716-15 15 0 8.284 6.716 15 15 15 4.142 0 7.892-1.679 10.607-4.393Zm0 0L41.5 41.5M29 22H15" }, null, -1)
11
+ ])),
12
+ _: 1,
13
+ __: [0]
14
+ }, 16);
15
+ };
16
+ }
17
+ });
2
18
  export {
3
19
  _sfc_main as default
4
20
  };
@@ -5,6 +5,7 @@ import { isUndefined } from "./is.js";
5
5
  import "./time.js";
6
6
  import "../../Empty/index.js";
7
7
  /* empty css */
8
+ import "./locale.js";
8
9
  const useControlValue = (modelValue, defaultValue, onSet = (data) => data, onGet = (data) => data) => {
9
10
  const controlValue = ref(defaultValue);
10
11
  return computed({
@@ -1,10 +1,11 @@
1
1
  import { Ref, VNode } from 'vue';
2
2
  import { ConfigconfigSlots, EmptyComponent } from '../../ConfigProvider';
3
- import { PopupContainer, Props, Size } from '../type';
3
+ import { ObjectData, PopupContainer, Props, Size } from '../type';
4
4
  export declare const CONFIG_PROVIDER_PROVIDE_KEY = "config-props";
5
5
  export interface ConfigProviderProvide {
6
6
  zIndex: Ref<number>;
7
7
  size: Ref<Size>;
8
+ locale: Ref<ObjectData | undefined>;
8
9
  popupContainer: Ref<PopupContainer>;
9
10
  updateAtScroll: Ref<boolean>;
10
11
  scrollToClose: Ref<boolean>;
@@ -13,6 +14,7 @@ export interface ConfigProviderProvide {
13
14
  export declare const getGlobalConfig: (props?: Props) => {
14
15
  slots: Partial<ConfigconfigSlots>;
15
16
  zIndex: Ref<number, number>;
17
+ locale: Ref<ObjectData | undefined, ObjectData | undefined>;
16
18
  size: import('vue').ComputedRef<any>;
17
19
  updateAtScroll: import('vue').ComputedRef<any>;
18
20
  scrollToClose: import('vue').ComputedRef<any>;
@@ -6,6 +6,7 @@ import "./time.js";
6
6
  import Empty from "../../Empty/index.js";
7
7
  /* empty css */
8
8
  import _sfc_main from "../icons/IconLoading.vue.js";
9
+ import "./locale.js";
9
10
  const CONFIG_PROVIDER_PROVIDE_KEY = "config-props";
10
11
  const getVar = (value, _value) => {
11
12
  return computed(() => {
@@ -16,11 +17,13 @@ const getGlobalConfig = (props = {}) => {
16
17
  const {
17
18
  slots,
18
19
  zIndex,
20
+ locale,
19
21
  size: _size,
20
22
  updateAtScroll: _updateAtScroll,
21
23
  scrollToClose: _scrollToClose,
22
24
  popupContainer: _popupContainer
23
25
  } = inject(CONFIG_PROVIDER_PROVIDE_KEY, {
26
+ locale: ref(),
24
27
  zIndex: ref(1001),
25
28
  size: ref("medium"),
26
29
  updateAtScroll: ref(true),
@@ -43,6 +46,7 @@ const getGlobalConfig = (props = {}) => {
43
46
  return {
44
47
  slots,
45
48
  zIndex,
49
+ locale,
46
50
  size: getVar(size, _size),
47
51
  updateAtScroll: getVar(updateAtScroll, _updateAtScroll),
48
52
  scrollToClose: getVar(scrollToClose, _scrollToClose),
@@ -4,4 +4,5 @@ export * from './is';
4
4
  export * from './time';
5
5
  export * from './vue-utils';
6
6
  export * from './global-config';
7
+ export * from './locale';
7
8
  export { default as useControlValue } from './control';
@@ -0,0 +1,22 @@
1
+ /**
2
+ * 添加地区语言包。添加过后的语言包可以通过 `useLocale` 使用
3
+ * @param messages 需要添加的地区语言数据
4
+ * @param options
5
+ */
6
+ export declare const addI18nMessages: (messages: Record<string, any>, options?: {
7
+ overwrite?: boolean;
8
+ }) => void;
9
+ /**
10
+ * 切换地区语言。仅在未提供ConfigProvider时生效。
11
+ * @param locale
12
+ */
13
+ export declare const useLocale: (locale: string) => void;
14
+ /**
15
+ * 获取当前的地区语言
16
+ */
17
+ export declare const getLocale: () => string;
18
+ export declare const useI18n: () => {
19
+ i18nMessage: import('vue').ComputedRef<Record<string, any>>;
20
+ locale: import('vue').ComputedRef<any>;
21
+ t: (key: string, ...args: any[]) => string;
22
+ };
@@ -0,0 +1,39 @@
1
+ import { computed, reactive, ref } from "vue";
2
+ import { isString } from "./is.js";
3
+ import { getGlobalConfig } from "./global-config.js";
4
+ import lang from "../../public/lang/zh-cn.js";
5
+ const LOCALE = ref("zh-CN");
6
+ const I18N_MESSAGES = reactive({
7
+ "zh-CN": lang
8
+ });
9
+ const useI18n = () => {
10
+ const { locale } = getGlobalConfig();
11
+ const i18nMessage = computed(
12
+ () => locale.value ?? I18N_MESSAGES[LOCALE.value]
13
+ );
14
+ const transform = (key, ...args) => {
15
+ const keyArray = key.split(".");
16
+ let temp = i18nMessage.value;
17
+ for (const keyItem of keyArray) {
18
+ if (!temp[keyItem]) {
19
+ return key;
20
+ }
21
+ temp = temp[keyItem];
22
+ }
23
+ if (isString(temp)) {
24
+ if (args.length > 0) {
25
+ return temp.replace(/{(\d+)}/g, (sub, index) => args[index] ?? sub);
26
+ }
27
+ return temp;
28
+ }
29
+ return temp;
30
+ };
31
+ return {
32
+ i18nMessage,
33
+ locale: computed(() => i18nMessage.value.locale),
34
+ t: transform
35
+ };
36
+ };
37
+ export {
38
+ useI18n
39
+ };