yc-design-vue 2.0.2 → 2.0.4

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 (1286) hide show
  1. package/dist/lang-es/ar-eg.d.ts +206 -0
  2. package/dist/lang-es/ar-eg.js +154 -0
  3. package/dist/lang-es/de-de.d.ts +206 -0
  4. package/dist/lang-es/de-de.js +154 -0
  5. package/dist/lang-es/en-us.d.ts +254 -0
  6. package/dist/lang-es/en-us.js +158 -0
  7. package/dist/lang-es/es-es.d.ts +206 -0
  8. package/dist/lang-es/es-es.js +154 -0
  9. package/dist/lang-es/fr-fr.d.ts +206 -0
  10. package/dist/lang-es/fr-fr.js +154 -0
  11. package/dist/lang-es/id-id.d.ts +206 -0
  12. package/dist/lang-es/id-id.js +154 -0
  13. package/dist/lang-es/it-it.d.ts +206 -0
  14. package/dist/lang-es/it-it.js +154 -0
  15. package/dist/lang-es/ja-jp.d.ts +254 -0
  16. package/dist/lang-es/ja-jp.js +202 -0
  17. package/dist/lang-es/km-kh.d.ts +206 -0
  18. package/dist/lang-es/km-kh.js +154 -0
  19. package/dist/lang-es/ko-kr.d.ts +206 -0
  20. package/dist/lang-es/ko-kr.js +154 -0
  21. package/dist/lang-es/ms-my.d.ts +206 -0
  22. package/dist/lang-es/ms-my.js +154 -0
  23. package/dist/lang-es/nl-nl.d.ts +254 -0
  24. package/dist/lang-es/nl-nl.js +202 -0
  25. package/dist/lang-es/pt-pt.d.ts +206 -0
  26. package/dist/lang-es/pt-pt.js +154 -0
  27. package/dist/lang-es/ru-ru.d.ts +254 -0
  28. package/dist/lang-es/ru-ru.js +202 -0
  29. package/dist/lang-es/th-th.d.ts +206 -0
  30. package/dist/lang-es/th-th.js +154 -0
  31. package/dist/lang-es/vi-vn.d.ts +206 -0
  32. package/dist/lang-es/vi-vn.js +154 -0
  33. package/dist/lang-es/zh-cn.d.ts +254 -0
  34. package/dist/lang-es/zh-cn.js +202 -0
  35. package/dist/lang-es/zh-tw.d.ts +254 -0
  36. package/dist/lang-es/zh-tw.js +202 -0
  37. package/dist/lang-lib/ar-eg.d.ts +206 -0
  38. package/dist/lang-lib/ar-eg.js +1 -0
  39. package/dist/lang-lib/de-de.d.ts +206 -0
  40. package/dist/lang-lib/de-de.js +1 -0
  41. package/dist/lang-lib/en-us.d.ts +254 -0
  42. package/dist/lang-lib/en-us.js +1 -0
  43. package/dist/lang-lib/es-es.d.ts +206 -0
  44. package/dist/lang-lib/es-es.js +1 -0
  45. package/dist/lang-lib/fr-fr.d.ts +206 -0
  46. package/dist/lang-lib/fr-fr.js +1 -0
  47. package/dist/lang-lib/id-id.d.ts +206 -0
  48. package/dist/lang-lib/id-id.js +1 -0
  49. package/dist/lang-lib/it-it.d.ts +206 -0
  50. package/dist/lang-lib/it-it.js +1 -0
  51. package/dist/lang-lib/ja-jp.d.ts +254 -0
  52. package/dist/lang-lib/ja-jp.js +1 -0
  53. package/dist/lang-lib/km-kh.d.ts +206 -0
  54. package/dist/lang-lib/km-kh.js +1 -0
  55. package/dist/lang-lib/ko-kr.d.ts +206 -0
  56. package/dist/lang-lib/ko-kr.js +1 -0
  57. package/dist/lang-lib/ms-my.d.ts +206 -0
  58. package/dist/lang-lib/ms-my.js +1 -0
  59. package/dist/lang-lib/nl-nl.d.ts +254 -0
  60. package/dist/lang-lib/nl-nl.js +1 -0
  61. package/dist/lang-lib/pt-pt.d.ts +206 -0
  62. package/dist/lang-lib/pt-pt.js +1 -0
  63. package/dist/lang-lib/ru-ru.d.ts +254 -0
  64. package/dist/lang-lib/ru-ru.js +1 -0
  65. package/dist/lang-lib/th-th.d.ts +206 -0
  66. package/dist/lang-lib/th-th.js +1 -0
  67. package/dist/lang-lib/vi-vn.d.ts +206 -0
  68. package/dist/lang-lib/vi-vn.js +1 -0
  69. package/dist/lang-lib/zh-cn.d.ts +254 -0
  70. package/dist/lang-lib/zh-cn.js +1 -0
  71. package/dist/lang-lib/zh-tw.d.ts +254 -0
  72. package/dist/lang-lib/zh-tw.js +1 -0
  73. package/es/Affix/index.vue.js +0 -3
  74. package/es/Affix/type.d.ts +1 -1
  75. package/es/Alert/index.d.ts +4 -4
  76. package/es/Alert/index.vue.d.ts +3 -3
  77. package/es/Alert/index.vue.js +5 -7
  78. package/es/Alert/type.d.ts +1 -1
  79. package/es/Anchor/Anchor.vue.js +0 -3
  80. package/es/Anchor/AnchorLink.vue.d.ts +2 -2
  81. package/es/Anchor/AnchorLink.vue.js +3 -5
  82. package/es/Anchor/hooks/useContext.d.ts +2 -2
  83. package/es/Anchor/hooks/useContext.js +1 -4
  84. package/es/Anchor/index.d.ts +1 -1
  85. package/es/Anchor/type.d.ts +1 -1
  86. package/es/AutoComplete/index.d.ts +90 -90
  87. package/es/AutoComplete/index.vue.d.ts +136 -136
  88. package/es/AutoComplete/index.vue.js +5 -8
  89. package/es/AutoComplete/type.d.ts +6 -8
  90. package/es/Avatar/Avatar.vue.d.ts +3 -3
  91. package/es/Avatar/Avatar.vue.js +4 -6
  92. package/es/Avatar/AvatarGroup.vue.d.ts +2 -2
  93. package/es/Avatar/AvatarGroup.vue.js +2 -5
  94. package/es/Avatar/hooks/useContext.d.ts +3 -3
  95. package/es/Avatar/index.d.ts +5 -5
  96. package/es/Avatar/type.d.ts +2 -2
  97. package/es/BackTop/index.vue.js +3 -6
  98. package/es/BackTop/type.d.ts +1 -1
  99. package/es/Badge/index.d.ts +1 -1
  100. package/es/Badge/index.vue.d.ts +2 -2
  101. package/es/Badge/index.vue.js +3 -6
  102. package/es/Badge/type.d.ts +1 -1
  103. package/es/Breadcrumb/Breadcrumb.vue.d.ts +2 -2
  104. package/es/Breadcrumb/Breadcrumb.vue.js +12 -18
  105. package/es/Breadcrumb/BreadcrumbItem.vue.d.ts +2 -2
  106. package/es/Breadcrumb/BreadcrumbItem.vue.js +4 -6
  107. package/es/Breadcrumb/BreadcrumbMore.vue.d.ts +2 -2
  108. package/es/Breadcrumb/BreadcrumbMore.vue.js +0 -3
  109. package/es/Breadcrumb/BreadcrumbSeparator.vue.js +1 -4
  110. package/es/Breadcrumb/index.d.ts +2 -2
  111. package/es/Breadcrumb/type.d.ts +1 -1
  112. package/es/Button/Button.vue.d.ts +4 -4
  113. package/es/Button/Button.vue.js +4 -4
  114. package/es/Button/ButtonGroup.vue.d.ts +2 -2
  115. package/es/Button/hooks/useContext.d.ts +5 -5
  116. package/es/Button/hooks/useContext.js +0 -4
  117. package/es/Button/index.d.ts +13 -13
  118. package/es/Button/type.d.ts +4 -5
  119. package/es/Calendar/Calendar.vue.d.ts +2 -2
  120. package/es/Calendar/Calendar.vue.js +6 -7
  121. package/es/Calendar/CalendarMonth.vue.d.ts +1 -1
  122. package/es/Calendar/CalendarMonth.vue.js +2 -4
  123. package/es/Calendar/CalendarYear.vue.d.ts +1 -1
  124. package/es/Calendar/CalendarYear.vue.js +1 -3
  125. package/es/Calendar/index.d.ts +1 -1
  126. package/es/Calendar/type.d.ts +2 -2
  127. package/es/Card/Card.vue.d.ts +2 -2
  128. package/es/Card/Card.vue.js +9 -12
  129. package/es/Card/CardMeta.vue.d.ts +2 -2
  130. package/es/Card/CardMeta.vue.js +8 -11
  131. package/es/Card/hooks/useContext.d.ts +1 -5
  132. package/es/Card/hooks/useContext.js +0 -3
  133. package/es/Card/index.d.ts +2 -2
  134. package/es/Card/type.d.ts +2 -1
  135. package/es/Carousel/Carousel.vue.d.ts +3 -3
  136. package/es/Carousel/Carousel.vue.js +0 -4
  137. package/es/Carousel/CarouselArrow.vue.js +0 -3
  138. package/es/Carousel/CarouselIndicator.vue.d.ts +3 -3
  139. package/es/Carousel/CarouselIndicator.vue.js +0 -3
  140. package/es/Carousel/hooks/useContext.d.ts +3 -3
  141. package/es/Carousel/hooks/useContext.js +1 -4
  142. package/es/Carousel/index.d.ts +9 -9
  143. package/es/Carousel/type.d.ts +2 -3
  144. package/es/Cascader/Cascader.vue.d.ts +37 -51
  145. package/es/Cascader/Cascader.vue.js +1 -4
  146. package/es/Cascader/CascaderIcon.vue.js +1 -4
  147. package/es/Cascader/CascaderOption.vue.d.ts +1 -1
  148. package/es/Cascader/CascaderOption.vue.js +1 -4
  149. package/es/Cascader/hooks/useContext.d.ts +5 -17
  150. package/es/Cascader/hooks/useContext.js +1 -5
  151. package/es/Cascader/index.d.ts +38 -52
  152. package/es/Cascader/type.d.ts +5 -7
  153. package/es/Checkbox/Checkbox.vue.d.ts +2 -2
  154. package/es/Checkbox/Checkbox.vue.js +5 -7
  155. package/es/Checkbox/CheckboxGroup.vue.d.ts +2 -2
  156. package/es/Checkbox/CheckboxGroup.vue.js +3 -2
  157. package/es/Checkbox/hooks/useContext.d.ts +3 -3
  158. package/es/Checkbox/hooks/useContext.js +1 -5
  159. package/es/Checkbox/index.d.ts +2 -2
  160. package/es/Checkbox/type.d.ts +3 -3
  161. package/es/Collapse/CollapseItem.vue.d.ts +1 -1
  162. package/es/Collapse/CollapseItem.vue.js +1 -4
  163. package/es/Collapse/hooks/useContext.d.ts +5 -5
  164. package/es/Collapse/hooks/useContext.js +1 -5
  165. package/es/Collapse/index.d.ts +3 -3
  166. package/es/Collapse/type.d.ts +2 -2
  167. package/es/ColorPicker/ColorControl.vue.js +1 -3
  168. package/es/ColorPicker/ColorInput.vue.js +4 -7
  169. package/es/ColorPicker/ColorList.vue.js +0 -3
  170. package/es/ColorPicker/ColorPalette.vue.js +1 -3
  171. package/es/ColorPicker/ColorPanel.vue.js +0 -3
  172. package/es/ColorPicker/hooks/useContext.d.ts +2 -2
  173. package/es/ColorPicker/hooks/useContext.js +1 -4
  174. package/es/Comment/index.d.ts +1 -1
  175. package/es/Comment/index.vue.d.ts +2 -2
  176. package/es/Comment/index.vue.js +8 -11
  177. package/es/ConfigProvider/index.d.ts +6 -6
  178. package/es/ConfigProvider/index.vue.d.ts +2 -2
  179. package/es/ConfigProvider/index.vue.js +1 -6
  180. package/es/ConfigProvider/type.d.ts +2 -3
  181. package/es/Descriptions/Descriptions.vue.d.ts +4 -4
  182. package/es/Descriptions/Descriptions.vue.js +3 -2
  183. package/es/Descriptions/DescriptionsItem.vue.d.ts +1 -1
  184. package/es/Descriptions/ReuseItem.vue.js +0 -4
  185. package/es/Descriptions/ReuseTd.vue.js +0 -4
  186. package/es/Descriptions/hooks/useContext.d.ts +2 -2
  187. package/es/Descriptions/hooks/useContext.js +1 -4
  188. package/es/Descriptions/index.d.ts +10 -10
  189. package/es/Descriptions/type.d.ts +1 -2
  190. package/es/Divider/index.d.ts +1 -1
  191. package/es/Divider/index.vue.d.ts +2 -2
  192. package/es/Divider/index.vue.js +3 -5
  193. package/es/Drawer/Drawer.vue.d.ts +4 -4
  194. package/es/Drawer/Drawer.vue.js +1 -3
  195. package/es/Drawer/DrawerService.vue.d.ts +4 -4
  196. package/es/Drawer/DrawerService.vue.js +0 -4
  197. package/es/Drawer/index.d.ts +20 -15
  198. package/es/Drawer/index.js +3 -6
  199. package/es/Dropdown/Doption.vue.d.ts +2 -2
  200. package/es/Dropdown/Doption.vue.js +6 -5
  201. package/es/Dropdown/Dropdown.vue.d.ts +4 -4
  202. package/es/Dropdown/Dropdown.vue.js +5 -7
  203. package/es/Dropdown/DropdownButton.vue.d.ts +2 -2
  204. package/es/Dropdown/DropdownButton.vue.js +0 -3
  205. package/es/Dropdown/Dsubmenu.vue.d.ts +42 -42
  206. package/es/Dropdown/Dsubmenu.vue.js +6 -8
  207. package/es/Dropdown/hooks/useContext.d.ts +2 -2
  208. package/es/Dropdown/hooks/useContext.js +1 -5
  209. package/es/Dropdown/index.d.ts +40 -40
  210. package/es/Dropdown/type.d.ts +5 -6
  211. package/es/Empty/index.vue.js +1 -3
  212. package/es/Grid/Grid.vue.d.ts +3 -3
  213. package/es/Grid/Grid.vue.js +0 -3
  214. package/es/Grid/GridCol.vue.d.ts +2 -2
  215. package/es/Grid/GridCol.vue.js +0 -3
  216. package/es/Grid/GridItem.vue.d.ts +2 -2
  217. package/es/Grid/GridItem.vue.js +0 -3
  218. package/es/Grid/GridRow.vue.d.ts +2 -2
  219. package/es/Grid/GridRow.vue.js +0 -3
  220. package/es/Grid/hooks/useContext.d.ts +4 -4
  221. package/es/Grid/hooks/useContext.js +2 -5
  222. package/es/Grid/index.d.ts +27 -27
  223. package/es/Grid/type.d.ts +4 -12
  224. package/es/Image/Image.vue.d.ts +3 -3
  225. package/es/Image/Image.vue.js +7 -8
  226. package/es/Image/ImagePreview.vue.d.ts +2 -2
  227. package/es/Image/ImagePreview.vue.js +6 -8
  228. package/es/Image/ImagePreviewAction.vue.d.ts +1 -1
  229. package/es/Image/ImagePreviewArrow.vue.js +0 -3
  230. package/es/Image/ImagePreviewGroup.vue.d.ts +2 -2
  231. package/es/Image/ImagePreviewGroup.vue.js +4 -3
  232. package/es/Image/ImagePreviewToolbar.vue.js +1 -3
  233. package/es/Image/hooks/useContext.d.ts +2 -2
  234. package/es/Image/hooks/useContext.js +1 -5
  235. package/es/Image/index.d.ts +9 -9
  236. package/es/Image/type.d.ts +2 -3
  237. package/es/Input/Input.vue.d.ts +6 -6
  238. package/es/Input/Input.vue.js +13 -15
  239. package/es/Input/InputSuffix.vue.js +2 -5
  240. package/es/Input/hooks/useLimitedInput.d.ts +3 -3
  241. package/es/Input/hooks/useLimitedInput.js +1 -5
  242. package/es/Input/index.d.ts +12 -12
  243. package/es/Input/type.d.ts +2 -2
  244. package/es/InputNumber/InputNumber.vue.d.ts +33 -33
  245. package/es/InputNumber/InputNumber.vue.js +12 -14
  246. package/es/InputNumber/InputOperaBtn.vue.js +0 -3
  247. package/es/InputNumber/index.d.ts +28 -28
  248. package/es/InputNumber/type.d.ts +3 -4
  249. package/es/InputTag/index.d.ts +14 -14
  250. package/es/InputTag/index.vue.d.ts +7 -7
  251. package/es/InputTag/index.vue.js +7 -9
  252. package/es/InputTag/type.d.ts +5 -6
  253. package/es/Layout/Layout.vue.d.ts +2 -2
  254. package/es/Layout/Layout.vue.js +2 -6
  255. package/es/Layout/LayoutSider.vue.d.ts +7 -7
  256. package/es/Layout/LayoutSider.vue.js +0 -3
  257. package/es/Layout/hooks/useSiderContext.d.ts +2 -2
  258. package/es/Layout/hooks/useSiderContext.js +1 -5
  259. package/es/Layout/index.d.ts +20 -20
  260. package/es/Layout/type.d.ts +4 -5
  261. package/es/Link/index.d.ts +1 -1
  262. package/es/Link/index.vue.d.ts +2 -2
  263. package/es/Link/index.vue.js +3 -5
  264. package/es/Link/type.d.ts +1 -1
  265. package/es/List/List.vue.d.ts +27 -27
  266. package/es/List/List.vue.js +8 -11
  267. package/es/List/ListItem.vue.d.ts +2 -2
  268. package/es/List/ListItem.vue.js +6 -5
  269. package/es/List/ListItemMeta.vue.d.ts +2 -2
  270. package/es/List/ListItemMeta.vue.js +5 -4
  271. package/es/List/ListVirtual.vue.d.ts +3 -3
  272. package/es/List/hooks/useScrollReach.js +0 -4
  273. package/es/List/index.d.ts +18 -18
  274. package/es/List/type.d.ts +3 -3
  275. package/es/Mention/index.d.ts +104 -104
  276. package/es/Mention/index.vue.d.ts +171 -171
  277. package/es/Mention/index.vue.js +4 -7
  278. package/es/Mention/type.d.ts +6 -5
  279. package/es/Menu/Menu.vue.d.ts +6 -6
  280. package/es/Menu/Menu.vue.js +0 -3
  281. package/es/Menu/MenuEllipsis.vue.js +0 -3
  282. package/es/Menu/MenuItem.vue.d.ts +2 -2
  283. package/es/Menu/MenuItem.vue.js +6 -8
  284. package/es/Menu/MenuItemGroup.vue.js +0 -3
  285. package/es/Menu/SubMenu.vue.d.ts +3 -3
  286. package/es/Menu/SubMenu.vue.js +3 -5
  287. package/es/Menu/hooks/useContext.d.ts +5 -5
  288. package/es/Menu/hooks/useContext.js +6 -9
  289. package/es/Menu/index.d.ts +22 -22
  290. package/es/Menu/type.d.ts +3 -6
  291. package/es/Message/Message.vue.d.ts +4 -4
  292. package/es/Message/Message.vue.js +1 -4
  293. package/es/Message/index.d.ts +15 -15
  294. package/es/Message/index.js +1 -8
  295. package/es/Message/type.d.ts +5 -5
  296. package/es/Modal/Modal.vue.d.ts +5 -5
  297. package/es/Modal/Modal.vue.js +1 -3
  298. package/es/Modal/ModalService.vue.d.ts +6 -6
  299. package/es/Modal/ModalService.vue.js +0 -4
  300. package/es/Modal/hooks/useModalClose.js +1 -5
  301. package/es/Modal/hooks/useModalDraggable.js +0 -3
  302. package/es/Modal/hooks/useOnBeforeClose.js +0 -5
  303. package/es/Modal/index.d.ts +19 -17
  304. package/es/Modal/index.js +2 -2
  305. package/es/Modal/type.d.ts +8 -8
  306. package/es/Notification/Notification.vue.d.ts +7 -7
  307. package/es/Notification/Notification.vue.js +1 -4
  308. package/es/Notification/index.d.ts +25 -24
  309. package/es/Notification/index.js +1 -8
  310. package/es/Notification/type.d.ts +5 -5
  311. package/es/OverflowList/index.d.ts +1 -1
  312. package/es/OverflowList/index.vue.d.ts +2 -2
  313. package/es/OverflowList/index.vue.js +2 -5
  314. package/es/PageHeader/index.d.ts +1 -1
  315. package/es/PageHeader/index.vue.d.ts +2 -2
  316. package/es/PageHeader/index.vue.js +8 -10
  317. package/es/Pagination/Pagination.vue.d.ts +2 -2
  318. package/es/Pagination/Pagination.vue.js +6 -7
  319. package/es/Pagination/PaginationItem.vue.js +0 -3
  320. package/es/Pagination/hooks/useContext.d.ts +2 -2
  321. package/es/Pagination/hooks/useContext.js +1 -4
  322. package/es/Pagination/index.d.ts +1 -1
  323. package/es/Popconfirm/index.d.ts +32 -32
  324. package/es/Popconfirm/index.vue.d.ts +39 -39
  325. package/es/Popconfirm/index.vue.js +1 -4
  326. package/es/Popconfirm/type.d.ts +4 -4
  327. package/es/Popover/index.d.ts +16 -16
  328. package/es/Popover/index.vue.d.ts +7 -7
  329. package/es/Popover/index.vue.js +4 -7
  330. package/es/Popover/type.d.ts +3 -3
  331. package/es/Progress/Progress.vue.js +0 -4
  332. package/es/Progress/ProgressCircle.vue.js +1 -4
  333. package/es/Progress/ProgressLine.vue.js +0 -3
  334. package/es/Progress/ProgressSteps.vue.js +0 -3
  335. package/es/Progress/type.d.ts +1 -1
  336. package/es/Radio/Radio.vue.d.ts +3 -3
  337. package/es/Radio/Radio.vue.js +8 -11
  338. package/es/Radio/RadioGroup.vue.d.ts +3 -3
  339. package/es/Radio/RadioGroup.vue.js +3 -2
  340. package/es/Radio/hooks/useContext.d.ts +3 -3
  341. package/es/Radio/hooks/useContext.js +2 -6
  342. package/es/Radio/index.d.ts +8 -8
  343. package/es/Radio/type.d.ts +2 -2
  344. package/es/Rate/index.vue.js +2 -5
  345. package/es/ResizeBox/index.vue.js +2 -6
  346. package/es/Result/index.d.ts +1 -1
  347. package/es/Result/index.vue.d.ts +2 -2
  348. package/es/Result/index.vue.js +7 -6
  349. package/es/Result/type.d.ts +1 -1
  350. package/es/Scrollbar/Scrollbar.vue.d.ts +2 -2
  351. package/es/Scrollbar/Scrollbar.vue.js +0 -3
  352. package/es/Scrollbar/ScrollbarTrack.vue.js +0 -3
  353. package/es/Scrollbar/index.d.ts +6 -6
  354. package/es/Select/Option.vue.d.ts +4 -4
  355. package/es/Select/Option.vue.js +6 -8
  356. package/es/Select/Select.vue.d.ts +76 -76
  357. package/es/Select/Select.vue.js +6 -8
  358. package/es/Select/SelectIcon.vue.js +1 -4
  359. package/es/Select/SelectRealList.vue.js +1 -5
  360. package/es/Select/SelectView.vue.js +1 -1
  361. package/es/Select/SelectVirtualList.vue.js +1 -5
  362. package/es/Select/hooks/useContext.d.ts +13 -13
  363. package/es/Select/hooks/useContext.js +1 -5
  364. package/es/Select/hooks/useSelectOptions.d.ts +13 -13
  365. package/es/Select/hooks/useSelectOptions.js +0 -4
  366. package/es/Select/index.d.ts +64 -64
  367. package/es/Select/type.d.ts +13 -16
  368. package/es/Skeleton/SkeletonLine.vue.js +0 -3
  369. package/es/Skeleton/SkeletonShape.vue.js +1 -5
  370. package/es/Skeleton/type.d.ts +3 -2
  371. package/es/Slider/Slider.vue.d.ts +1 -1
  372. package/es/Slider/SliderBtn.vue.js +1 -5
  373. package/es/Slider/SliderTicks.vue.d.ts +2 -2
  374. package/es/Slider/hooks/useContext.d.ts +4 -4
  375. package/es/Slider/hooks/useContext.js +1 -5
  376. package/es/Slider/hooks/useSliderDraggable.js +0 -3
  377. package/es/Slider/index.d.ts +3 -3
  378. package/es/Slider/type.d.ts +2 -3
  379. package/es/Space/index.d.ts +4 -4
  380. package/es/Space/index.vue.d.ts +3 -3
  381. package/es/Space/index.vue.js +5 -8
  382. package/es/Spin/index.d.ts +1 -1
  383. package/es/Spin/index.vue.d.ts +2 -2
  384. package/es/Spin/index.vue.js +3 -5
  385. package/es/Split/index.vue.js +3 -6
  386. package/es/Statistic/Countdown.vue.d.ts +1 -1
  387. package/es/Statistic/Countdown.vue.js +1 -3
  388. package/es/Statistic/Statistic.vue.d.ts +3 -3
  389. package/es/Statistic/Statistic.vue.js +6 -8
  390. package/es/Statistic/index.d.ts +7 -7
  391. package/es/Steps/Step.vue.d.ts +3 -3
  392. package/es/Steps/Step.vue.js +3 -5
  393. package/es/Steps/hooks/useContext.d.ts +3 -3
  394. package/es/Steps/hooks/useContext.js +1 -5
  395. package/es/Steps/index.d.ts +4 -4
  396. package/es/Switch/index.d.ts +4 -4
  397. package/es/Switch/index.vue.d.ts +3 -3
  398. package/es/Switch/index.vue.js +4 -8
  399. package/es/Switch/type.d.ts +2 -1
  400. package/es/Tabs/TabButton.vue.js +0 -3
  401. package/es/Tabs/TabPane.vue.d.ts +1 -1
  402. package/es/Tabs/TabPane.vue.js +0 -4
  403. package/es/Tabs/Tabs.vue.d.ts +4 -4
  404. package/es/Tabs/Tabs.vue.js +3 -6
  405. package/es/Tabs/TabsNavInk.vue.d.ts +2 -2
  406. package/es/Tabs/TabsNavInk.vue.js +1 -4
  407. package/es/Tabs/TabsTab.vue.js +0 -4
  408. package/es/Tabs/hooks/useContext.d.ts +5 -5
  409. package/es/Tabs/hooks/useContext.js +1 -5
  410. package/es/Tabs/hooks/useTabsScroll.d.ts +2 -2
  411. package/es/Tabs/hooks/useTabsScroll.js +0 -3
  412. package/es/Tabs/index.d.ts +7 -7
  413. package/es/Tabs/type.d.ts +2 -3
  414. package/es/Tag/index.d.ts +1 -1
  415. package/es/Tag/index.vue.d.ts +2 -2
  416. package/es/Tag/index.vue.js +6 -8
  417. package/es/Tag/type.d.ts +2 -1
  418. package/es/Textarea/hooks/useTextareaHeight.js +0 -3
  419. package/es/Textarea/index.d.ts +8 -8
  420. package/es/Textarea/index.vue.d.ts +3 -3
  421. package/es/Textarea/index.vue.js +0 -3
  422. package/es/TimePicker/TimePicker.vue.d.ts +7 -7
  423. package/es/TimePicker/TimePicker.vue.js +7 -8
  424. package/es/TimePicker/TimePickerPanel.vue.js +1 -3
  425. package/es/TimePicker/hooks/useContext.d.ts +2 -2
  426. package/es/TimePicker/hooks/useContext.js +1 -4
  427. package/es/TimePicker/index.d.ts +11 -11
  428. package/es/TimePicker/type.d.ts +1 -1
  429. package/es/Timeline/TimelineItem.vue.d.ts +3 -3
  430. package/es/Timeline/TimelineItem.vue.js +3 -2
  431. package/es/Timeline/TimelineItemPending.vue.js +0 -4
  432. package/es/Timeline/hooks/useContext.d.ts +4 -4
  433. package/es/Timeline/hooks/useContext.js +0 -4
  434. package/es/Timeline/index.d.ts +4 -4
  435. package/es/Tooltip/index.d.ts +12 -12
  436. package/es/Tooltip/index.vue.d.ts +4 -4
  437. package/es/Tooltip/index.vue.js +1 -5
  438. package/es/Tooltip/type.d.ts +3 -3
  439. package/es/Transfer/Transfer.vue.d.ts +3 -3
  440. package/es/Transfer/Transfer.vue.js +0 -3
  441. package/es/Transfer/TransferPanel.vue.js +0 -3
  442. package/es/Transfer/hooks/useContext.d.ts +2 -2
  443. package/es/Transfer/hooks/useContext.js +1 -5
  444. package/es/Transfer/index.d.ts +8 -8
  445. package/es/Trigger/hooks/useContext.d.ts +2 -2
  446. package/es/Trigger/hooks/useContext.js +0 -3
  447. package/es/Trigger/hooks/useTriggerPosition.d.ts +3 -4
  448. package/es/Trigger/hooks/useTriggerPosition.js +0 -3
  449. package/es/Trigger/hooks/useTriggerVisible.d.ts +2 -2
  450. package/es/Trigger/hooks/useTriggerVisible.js +1 -4
  451. package/es/Trigger/index.d.ts +17 -17
  452. package/es/Trigger/index.vue.d.ts +9 -9
  453. package/es/Trigger/index.vue.js +3 -6
  454. package/es/Trigger/type.d.ts +3 -4
  455. package/es/Typography/TypographyBase.vue.d.ts +28 -29
  456. package/es/Typography/TypographyBase.vue.js +1 -4
  457. package/es/Typography/TypographyParagraph.vue.d.ts +3 -3
  458. package/es/Typography/TypographyParagraph.vue.js +4 -10
  459. package/es/Typography/TypographyText.vue.d.ts +1 -2
  460. package/es/Typography/TypographyText.vue.js +4 -10
  461. package/es/Typography/TypographyTitle.vue.d.ts +3 -3
  462. package/es/Typography/TypographyTitle.vue.js +4 -10
  463. package/es/Typography/type.d.ts +4 -14
  464. package/es/VerificationCode/index.d.ts +6 -6
  465. package/es/VerificationCode/index.vue.d.ts +2 -2
  466. package/es/VerificationCode/index.vue.js +2 -5
  467. package/es/Watermark/index.d.ts +3 -3
  468. package/es/Watermark/index.vue.d.ts +1 -1
  469. package/es/Watermark/index.vue.js +0 -4
  470. package/es/_shared/components/ExpandTransition/index.vue2.js +6 -5
  471. package/es/_shared/components/Icon/index.vue3.js +0 -3
  472. package/es/_shared/components/IconButton/index.vue.js +0 -3
  473. package/es/_shared/constants/index.d.ts +4 -4
  474. package/es/_shared/constants/index.js +0 -3
  475. package/es/_shared/icons/IconArrowDown.vue.js +3 -7
  476. package/es/_shared/icons/IconArrowRight.vue.js +3 -7
  477. package/es/_shared/icons/IconCheck.vue.js +3 -7
  478. package/es/_shared/icons/IconCheckboxChecked.vue.js +3 -7
  479. package/es/_shared/icons/IconClose.vue.js +3 -7
  480. package/es/_shared/icons/IconCopy.vue2.js +3 -7
  481. package/es/_shared/icons/IconDelete.vue2.js +3 -7
  482. package/es/_shared/icons/IconDragDot.vue.js +3 -7
  483. package/es/_shared/icons/IconEdit.vue2.js +3 -7
  484. package/es/_shared/icons/IconEmpty.vue.js +3 -7
  485. package/es/_shared/icons/IconError.vue.js +3 -7
  486. package/es/_shared/icons/IconExclamation.vue2.js +3 -7
  487. package/es/_shared/icons/IconEyeClose.vue.js +23 -1
  488. package/es/_shared/icons/IconEyeClose.vue2.js +1 -27
  489. package/es/_shared/icons/IconEyeOpen.vue.js +20 -1
  490. package/es/_shared/icons/IconEyeOpen.vue2.js +1 -24
  491. package/es/_shared/icons/IconFaceSmile.vue.js +3 -7
  492. package/es/_shared/icons/IconFullScreen.vue2.js +3 -7
  493. package/es/_shared/icons/IconImageClose.vue.js +3 -7
  494. package/es/_shared/icons/IconInfo.vue.js +3 -7
  495. package/es/_shared/icons/IconInfoLine.vue.js +3 -7
  496. package/es/_shared/icons/IconLink.vue.js +3 -7
  497. package/es/_shared/icons/IconLoading.vue.js +3 -7
  498. package/es/_shared/icons/IconMenuFold.vue.js +3 -7
  499. package/es/_shared/icons/IconMenuUnfold.vue.js +3 -7
  500. package/es/_shared/icons/IconMinus.vue2.js +3 -7
  501. package/es/_shared/icons/IconMore.vue.js +3 -7
  502. package/es/_shared/icons/IconOriginSize.vue2.js +3 -7
  503. package/es/_shared/icons/IconPlus.vue.js +3 -7
  504. package/es/_shared/icons/IconRight.vue.js +3 -7
  505. package/es/_shared/icons/IconRotateLeft.vue2.js +3 -7
  506. package/es/_shared/icons/IconRotateRight.vue2.js +3 -7
  507. package/es/_shared/icons/IconSearch.vue2.js +3 -7
  508. package/es/_shared/icons/IconSeparator.vue.js +3 -7
  509. package/es/_shared/icons/IconStar.vue.js +3 -7
  510. package/es/_shared/icons/IconSuccess.vue.js +3 -7
  511. package/es/_shared/icons/IconTime.vue.js +3 -7
  512. package/es/_shared/icons/IconToTop.vue.js +3 -7
  513. package/es/_shared/icons/IconWarning.vue.js +3 -7
  514. package/es/_shared/icons/IconZoomIn.vue2.js +3 -7
  515. package/es/_shared/icons/IconZoomOut.vue2.js +3 -7
  516. package/es/_shared/type/index.d.ts +22 -5
  517. package/es/_shared/utils/control.d.ts +2 -2
  518. package/es/_shared/utils/control.js +1 -5
  519. package/es/_shared/utils/dom.d.ts +1 -1
  520. package/es/_shared/utils/dom.js +1 -1
  521. package/es/_shared/utils/global-config.d.ts +4 -4
  522. package/es/_shared/utils/global-config.js +0 -4
  523. package/es/_shared/utils/vue-utils.d.ts +3 -3
  524. package/es/_shared/utils/vue-utils.js +1 -1
  525. package/es/index.d.ts +128 -128
  526. package/lib/Affix/index.js +1 -1
  527. package/lib/Affix/index.vue.js +1 -1
  528. package/lib/Affix/index.vue2.js +1 -1
  529. package/lib/Affix/type.d.ts +1 -1
  530. package/lib/Alert/index.d.ts +4 -4
  531. package/lib/Alert/index.js +1 -1
  532. package/lib/Alert/index.vue.d.ts +3 -3
  533. package/lib/Alert/index.vue.js +1 -1
  534. package/lib/Alert/index.vue3.js +1 -1
  535. package/lib/Alert/type.d.ts +1 -1
  536. package/lib/Anchor/Anchor.vue.js +1 -1
  537. package/lib/Anchor/Anchor.vue3.js +1 -1
  538. package/lib/Anchor/AnchorLink.vue.d.ts +2 -2
  539. package/lib/Anchor/AnchorLink.vue.js +1 -1
  540. package/lib/Anchor/AnchorLink.vue3.js +1 -1
  541. package/lib/Anchor/hooks/useContext.d.ts +2 -2
  542. package/lib/Anchor/hooks/useContext.js +1 -1
  543. package/lib/Anchor/index.d.ts +1 -1
  544. package/lib/Anchor/index.js +1 -1
  545. package/lib/Anchor/type.d.ts +1 -1
  546. package/lib/AutoComplete/index.d.ts +90 -90
  547. package/lib/AutoComplete/index.js +1 -1
  548. package/lib/AutoComplete/index.vue.d.ts +136 -136
  549. package/lib/AutoComplete/index.vue.js +1 -1
  550. package/lib/AutoComplete/index.vue3.js +1 -1
  551. package/lib/AutoComplete/type.d.ts +6 -8
  552. package/lib/Avatar/Avatar.vue.d.ts +3 -3
  553. package/lib/Avatar/Avatar.vue.js +1 -1
  554. package/lib/Avatar/Avatar.vue3.js +1 -1
  555. package/lib/Avatar/AvatarGroup.vue.d.ts +2 -2
  556. package/lib/Avatar/AvatarGroup.vue.js +1 -1
  557. package/lib/Avatar/AvatarGroup.vue3.js +1 -1
  558. package/lib/Avatar/hooks/useContext.d.ts +3 -3
  559. package/lib/Avatar/hooks/useContext.js +1 -1
  560. package/lib/Avatar/index.d.ts +5 -5
  561. package/lib/Avatar/index.js +1 -1
  562. package/lib/Avatar/type.d.ts +2 -2
  563. package/lib/BackTop/index.js +1 -1
  564. package/lib/BackTop/index.vue.js +1 -1
  565. package/lib/BackTop/index.vue3.js +1 -1
  566. package/lib/BackTop/type.d.ts +1 -1
  567. package/lib/Badge/index.d.ts +1 -1
  568. package/lib/Badge/index.js +1 -1
  569. package/lib/Badge/index.vue.d.ts +2 -2
  570. package/lib/Badge/index.vue.js +1 -1
  571. package/lib/Badge/index.vue3.js +1 -1
  572. package/lib/Badge/type.d.ts +1 -1
  573. package/lib/Breadcrumb/Breadcrumb.vue.d.ts +2 -2
  574. package/lib/Breadcrumb/Breadcrumb.vue.js +1 -1
  575. package/lib/Breadcrumb/Breadcrumb.vue3.js +1 -1
  576. package/lib/Breadcrumb/BreadcrumbItem.vue.d.ts +2 -2
  577. package/lib/Breadcrumb/BreadcrumbItem.vue.js +1 -1
  578. package/lib/Breadcrumb/BreadcrumbItem.vue3.js +1 -1
  579. package/lib/Breadcrumb/BreadcrumbMore.vue.d.ts +2 -2
  580. package/lib/Breadcrumb/BreadcrumbMore.vue.js +1 -1
  581. package/lib/Breadcrumb/BreadcrumbMore.vue2.js +1 -1
  582. package/lib/Breadcrumb/BreadcrumbSeparator.vue.js +1 -1
  583. package/lib/Breadcrumb/BreadcrumbSeparator.vue3.js +1 -1
  584. package/lib/Breadcrumb/index.d.ts +2 -2
  585. package/lib/Breadcrumb/index.js +1 -1
  586. package/lib/Breadcrumb/type.d.ts +1 -1
  587. package/lib/Button/Button.vue.d.ts +4 -4
  588. package/lib/Button/Button.vue.js +1 -1
  589. package/lib/Button/Button.vue3.js +1 -1
  590. package/lib/Button/ButtonGroup.vue.d.ts +2 -2
  591. package/lib/Button/ButtonGroup.vue.js +1 -1
  592. package/lib/Button/ButtonGroup.vue3.js +1 -1
  593. package/lib/Button/hooks/useContext.d.ts +5 -5
  594. package/lib/Button/hooks/useContext.js +1 -1
  595. package/lib/Button/index.d.ts +13 -13
  596. package/lib/Button/index.js +1 -1
  597. package/lib/Button/type.d.ts +4 -5
  598. package/lib/Calendar/Calendar.vue.d.ts +2 -2
  599. package/lib/Calendar/Calendar.vue.js +1 -1
  600. package/lib/Calendar/Calendar.vue3.js +1 -1
  601. package/lib/Calendar/CalendarMonth.vue.d.ts +1 -1
  602. package/lib/Calendar/CalendarMonth.vue.js +1 -1
  603. package/lib/Calendar/CalendarMonth.vue3.js +1 -1
  604. package/lib/Calendar/CalendarYear.vue.d.ts +1 -1
  605. package/lib/Calendar/CalendarYear.vue.js +1 -1
  606. package/lib/Calendar/CalendarYear.vue3.js +1 -1
  607. package/lib/Calendar/index.d.ts +1 -1
  608. package/lib/Calendar/index.js +1 -1
  609. package/lib/Calendar/type.d.ts +2 -2
  610. package/lib/Card/Card.vue.d.ts +2 -2
  611. package/lib/Card/Card.vue.js +1 -1
  612. package/lib/Card/Card.vue3.js +1 -1
  613. package/lib/Card/CardGrid.vue.js +1 -1
  614. package/lib/Card/CardGrid.vue3.js +1 -1
  615. package/lib/Card/CardMeta.vue.d.ts +2 -2
  616. package/lib/Card/CardMeta.vue.js +1 -1
  617. package/lib/Card/CardMeta.vue3.js +1 -1
  618. package/lib/Card/hooks/useContext.d.ts +1 -5
  619. package/lib/Card/hooks/useContext.js +1 -1
  620. package/lib/Card/index.d.ts +2 -2
  621. package/lib/Card/index.js +1 -1
  622. package/lib/Card/type.d.ts +2 -1
  623. package/lib/Carousel/Carousel.vue.d.ts +3 -3
  624. package/lib/Carousel/Carousel.vue.js +1 -1
  625. package/lib/Carousel/Carousel.vue3.js +1 -1
  626. package/lib/Carousel/CarouselArrow.vue.js +1 -1
  627. package/lib/Carousel/CarouselArrow.vue3.js +1 -1
  628. package/lib/Carousel/CarouselIndicator.vue.d.ts +3 -3
  629. package/lib/Carousel/CarouselIndicator.vue.js +1 -1
  630. package/lib/Carousel/CarouselIndicator.vue3.js +1 -1
  631. package/lib/Carousel/CarouselItem.vue.js +1 -1
  632. package/lib/Carousel/CarouselItem.vue3.js +1 -1
  633. package/lib/Carousel/hooks/useContext.d.ts +3 -3
  634. package/lib/Carousel/hooks/useContext.js +1 -1
  635. package/lib/Carousel/index.d.ts +9 -9
  636. package/lib/Carousel/index.js +1 -1
  637. package/lib/Carousel/type.d.ts +2 -3
  638. package/lib/Cascader/Cascader.vue.d.ts +37 -51
  639. package/lib/Cascader/Cascader.vue.js +1 -1
  640. package/lib/Cascader/Cascader.vue3.js +1 -1
  641. package/lib/Cascader/CascaderIcon.vue.js +1 -1
  642. package/lib/Cascader/CascaderIcon.vue3.js +1 -1
  643. package/lib/Cascader/CascaderOption.vue.d.ts +1 -1
  644. package/lib/Cascader/CascaderOption.vue.js +1 -1
  645. package/lib/Cascader/CascaderOption.vue3.js +1 -1
  646. package/lib/Cascader/CascaderPanel.vue.js +1 -1
  647. package/lib/Cascader/CascaderPanel.vue3.js +1 -1
  648. package/lib/Cascader/CascaderSearchPanel.vue.js +1 -1
  649. package/lib/Cascader/CascaderSearchPanel.vue3.js +1 -1
  650. package/lib/Cascader/hooks/useContext.d.ts +5 -17
  651. package/lib/Cascader/hooks/useContext.js +1 -1
  652. package/lib/Cascader/index.d.ts +38 -52
  653. package/lib/Cascader/index.js +1 -1
  654. package/lib/Cascader/type.d.ts +5 -7
  655. package/lib/Checkbox/Checkbox.vue.d.ts +2 -2
  656. package/lib/Checkbox/Checkbox.vue.js +1 -1
  657. package/lib/Checkbox/Checkbox.vue3.js +1 -1
  658. package/lib/Checkbox/CheckboxGroup.vue.d.ts +2 -2
  659. package/lib/Checkbox/CheckboxGroup.vue.js +1 -1
  660. package/lib/Checkbox/CheckboxGroup.vue3.js +1 -1
  661. package/lib/Checkbox/hooks/useContext.d.ts +3 -3
  662. package/lib/Checkbox/hooks/useContext.js +1 -1
  663. package/lib/Checkbox/index.d.ts +2 -2
  664. package/lib/Checkbox/index.js +1 -1
  665. package/lib/Checkbox/type.d.ts +3 -3
  666. package/lib/Collapse/Collapse.vue.js +1 -1
  667. package/lib/Collapse/Collapse.vue3.js +1 -1
  668. package/lib/Collapse/CollapseItem.vue.d.ts +1 -1
  669. package/lib/Collapse/CollapseItem.vue.js +1 -1
  670. package/lib/Collapse/CollapseItem.vue3.js +1 -1
  671. package/lib/Collapse/hooks/useContext.d.ts +5 -5
  672. package/lib/Collapse/hooks/useContext.js +1 -1
  673. package/lib/Collapse/index.d.ts +3 -3
  674. package/lib/Collapse/index.js +1 -1
  675. package/lib/Collapse/type.d.ts +2 -2
  676. package/lib/ColorPicker/ColorControl.vue.js +1 -1
  677. package/lib/ColorPicker/ColorControl.vue3.js +1 -1
  678. package/lib/ColorPicker/ColorInput.vue.js +1 -1
  679. package/lib/ColorPicker/ColorInput.vue3.js +1 -1
  680. package/lib/ColorPicker/ColorList.vue.js +1 -1
  681. package/lib/ColorPicker/ColorList.vue3.js +1 -1
  682. package/lib/ColorPicker/ColorPalette.vue.js +1 -1
  683. package/lib/ColorPicker/ColorPalette.vue3.js +1 -1
  684. package/lib/ColorPicker/ColorPanel.vue.js +1 -1
  685. package/lib/ColorPicker/ColorPanel.vue3.js +1 -1
  686. package/lib/ColorPicker/ColorPicker.vue.js +1 -1
  687. package/lib/ColorPicker/ColorPicker.vue3.js +1 -1
  688. package/lib/ColorPicker/hooks/useContext.d.ts +2 -2
  689. package/lib/ColorPicker/hooks/useContext.js +1 -1
  690. package/lib/ColorPicker/index.js +1 -1
  691. package/lib/Comment/hooks/useContext.js +1 -1
  692. package/lib/Comment/index.d.ts +1 -1
  693. package/lib/Comment/index.js +1 -1
  694. package/lib/Comment/index.vue.d.ts +2 -2
  695. package/lib/Comment/index.vue.js +1 -1
  696. package/lib/Comment/index.vue3.js +1 -1
  697. package/lib/ConfigProvider/index.d.ts +6 -6
  698. package/lib/ConfigProvider/index.js +1 -1
  699. package/lib/ConfigProvider/index.vue.d.ts +2 -2
  700. package/lib/ConfigProvider/index.vue.js +1 -1
  701. package/lib/ConfigProvider/index.vue2.js +1 -1
  702. package/lib/ConfigProvider/type.d.ts +2 -3
  703. package/lib/Descriptions/Descriptions.vue.d.ts +4 -4
  704. package/lib/Descriptions/Descriptions.vue.js +1 -1
  705. package/lib/Descriptions/Descriptions.vue3.js +1 -1
  706. package/lib/Descriptions/DescriptionsItem.vue.d.ts +1 -1
  707. package/lib/Descriptions/DescriptionsItem.vue.js +1 -1
  708. package/lib/Descriptions/DescriptionsItem.vue2.js +1 -1
  709. package/lib/Descriptions/ReuseItem.vue.js +1 -1
  710. package/lib/Descriptions/ReuseItem.vue3.js +1 -1
  711. package/lib/Descriptions/ReuseTd.vue.js +1 -1
  712. package/lib/Descriptions/ReuseTd.vue3.js +1 -1
  713. package/lib/Descriptions/hooks/useContext.d.ts +2 -2
  714. package/lib/Descriptions/hooks/useContext.js +1 -1
  715. package/lib/Descriptions/index.d.ts +10 -10
  716. package/lib/Descriptions/index.js +1 -1
  717. package/lib/Descriptions/type.d.ts +1 -2
  718. package/lib/Divider/index.d.ts +1 -1
  719. package/lib/Divider/index.js +1 -1
  720. package/lib/Divider/index.vue.d.ts +2 -2
  721. package/lib/Divider/index.vue.js +1 -1
  722. package/lib/Divider/index.vue3.js +1 -1
  723. package/lib/Drawer/Drawer.vue.d.ts +4 -4
  724. package/lib/Drawer/Drawer.vue.js +1 -1
  725. package/lib/Drawer/Drawer.vue3.js +1 -1
  726. package/lib/Drawer/DrawerService.vue.d.ts +4 -4
  727. package/lib/Drawer/DrawerService.vue.js +1 -1
  728. package/lib/Drawer/DrawerService.vue2.js +1 -1
  729. package/lib/Drawer/index.d.ts +20 -15
  730. package/lib/Drawer/index.js +1 -1
  731. package/lib/Dropdown/Dgroup.vue.js +1 -1
  732. package/lib/Dropdown/Dgroup.vue3.js +1 -1
  733. package/lib/Dropdown/Doption.vue.d.ts +2 -2
  734. package/lib/Dropdown/Doption.vue.js +1 -1
  735. package/lib/Dropdown/Doption.vue3.js +1 -1
  736. package/lib/Dropdown/Dropdown.vue.d.ts +4 -4
  737. package/lib/Dropdown/Dropdown.vue.js +1 -1
  738. package/lib/Dropdown/Dropdown.vue3.js +1 -1
  739. package/lib/Dropdown/DropdownButton.vue.d.ts +2 -2
  740. package/lib/Dropdown/DropdownButton.vue.js +1 -1
  741. package/lib/Dropdown/DropdownButton.vue2.js +1 -1
  742. package/lib/Dropdown/Dsubmenu.vue.d.ts +42 -42
  743. package/lib/Dropdown/Dsubmenu.vue.js +1 -1
  744. package/lib/Dropdown/Dsubmenu.vue3.js +1 -1
  745. package/lib/Dropdown/hooks/useContext.d.ts +2 -2
  746. package/lib/Dropdown/hooks/useContext.js +1 -1
  747. package/lib/Dropdown/index.d.ts +40 -40
  748. package/lib/Dropdown/index.js +1 -1
  749. package/lib/Dropdown/type.d.ts +5 -6
  750. package/lib/Empty/index.js +1 -1
  751. package/lib/Empty/index.vue.js +1 -1
  752. package/lib/Empty/index.vue3.js +1 -1
  753. package/lib/Grid/Grid.vue.d.ts +3 -3
  754. package/lib/Grid/Grid.vue.js +1 -1
  755. package/lib/Grid/Grid.vue3.js +1 -1
  756. package/lib/Grid/GridCol.vue.d.ts +2 -2
  757. package/lib/Grid/GridCol.vue.js +1 -1
  758. package/lib/Grid/GridCol.vue2.js +1 -1
  759. package/lib/Grid/GridItem.vue.d.ts +2 -2
  760. package/lib/Grid/GridItem.vue.js +1 -1
  761. package/lib/Grid/GridItem.vue2.js +1 -1
  762. package/lib/Grid/GridRow.vue.d.ts +2 -2
  763. package/lib/Grid/GridRow.vue.js +1 -1
  764. package/lib/Grid/GridRow.vue3.js +1 -1
  765. package/lib/Grid/hooks/useContext.d.ts +4 -4
  766. package/lib/Grid/hooks/useContext.js +1 -1
  767. package/lib/Grid/index.d.ts +27 -27
  768. package/lib/Grid/index.js +1 -1
  769. package/lib/Grid/type.d.ts +4 -12
  770. package/lib/Image/Image.vue.d.ts +3 -3
  771. package/lib/Image/Image.vue.js +1 -1
  772. package/lib/Image/Image.vue3.js +1 -1
  773. package/lib/Image/ImagePreview.vue.d.ts +2 -2
  774. package/lib/Image/ImagePreview.vue.js +1 -1
  775. package/lib/Image/ImagePreview.vue3.js +1 -1
  776. package/lib/Image/ImagePreviewAction.vue.d.ts +1 -1
  777. package/lib/Image/ImagePreviewAction.vue.js +1 -1
  778. package/lib/Image/ImagePreviewAction.vue3.js +1 -1
  779. package/lib/Image/ImagePreviewArrow.vue.js +1 -1
  780. package/lib/Image/ImagePreviewArrow.vue3.js +1 -1
  781. package/lib/Image/ImagePreviewGroup.vue.d.ts +2 -2
  782. package/lib/Image/ImagePreviewGroup.vue.js +1 -1
  783. package/lib/Image/ImagePreviewGroup.vue2.js +1 -1
  784. package/lib/Image/ImagePreviewToolbar.vue.js +1 -1
  785. package/lib/Image/ImagePreviewToolbar.vue3.js +1 -1
  786. package/lib/Image/hooks/useContext.d.ts +2 -2
  787. package/lib/Image/hooks/useContext.js +1 -1
  788. package/lib/Image/index.d.ts +9 -9
  789. package/lib/Image/index.js +1 -1
  790. package/lib/Image/type.d.ts +2 -3
  791. package/lib/Input/Input.vue.d.ts +6 -6
  792. package/lib/Input/Input.vue.js +1 -1
  793. package/lib/Input/Input.vue3.js +1 -1
  794. package/lib/Input/InputSuffix.vue.js +1 -1
  795. package/lib/Input/InputSuffix.vue3.js +1 -1
  796. package/lib/Input/hooks/useCursor.js +1 -1
  797. package/lib/Input/hooks/useLimitedInput.d.ts +3 -3
  798. package/lib/Input/hooks/useLimitedInput.js +1 -1
  799. package/lib/Input/index.d.ts +12 -12
  800. package/lib/Input/index.js +1 -1
  801. package/lib/Input/type.d.ts +2 -2
  802. package/lib/InputNumber/InputNumber.vue.d.ts +33 -33
  803. package/lib/InputNumber/InputNumber.vue.js +1 -1
  804. package/lib/InputNumber/InputNumber.vue3.js +1 -1
  805. package/lib/InputNumber/InputOperaBtn.vue.js +1 -1
  806. package/lib/InputNumber/InputOperaBtn.vue3.js +1 -1
  807. package/lib/InputNumber/index.d.ts +28 -28
  808. package/lib/InputNumber/index.js +1 -1
  809. package/lib/InputNumber/type.d.ts +3 -4
  810. package/lib/InputTag/index.d.ts +14 -14
  811. package/lib/InputTag/index.js +1 -1
  812. package/lib/InputTag/index.vue.d.ts +7 -7
  813. package/lib/InputTag/index.vue.js +1 -1
  814. package/lib/InputTag/index.vue3.js +1 -1
  815. package/lib/InputTag/type.d.ts +5 -6
  816. package/lib/Layout/Layout.vue.d.ts +2 -2
  817. package/lib/Layout/Layout.vue.js +1 -1
  818. package/lib/Layout/Layout.vue3.js +1 -1
  819. package/lib/Layout/LayoutContent.vue.js +1 -1
  820. package/lib/Layout/LayoutContent.vue3.js +1 -1
  821. package/lib/Layout/LayoutFooter.vue.js +1 -1
  822. package/lib/Layout/LayoutFooter.vue3.js +1 -1
  823. package/lib/Layout/LayoutHeader.vue.js +1 -1
  824. package/lib/Layout/LayoutHeader.vue3.js +1 -1
  825. package/lib/Layout/LayoutSider.vue.d.ts +7 -7
  826. package/lib/Layout/LayoutSider.vue.js +1 -1
  827. package/lib/Layout/LayoutSider.vue3.js +1 -1
  828. package/lib/Layout/hooks/useSiderContext.d.ts +2 -2
  829. package/lib/Layout/hooks/useSiderContext.js +1 -1
  830. package/lib/Layout/index.d.ts +20 -20
  831. package/lib/Layout/index.js +1 -1
  832. package/lib/Layout/type.d.ts +4 -5
  833. package/lib/Link/index.d.ts +1 -1
  834. package/lib/Link/index.js +1 -1
  835. package/lib/Link/index.vue.d.ts +2 -2
  836. package/lib/Link/index.vue.js +1 -1
  837. package/lib/Link/index.vue3.js +1 -1
  838. package/lib/Link/type.d.ts +1 -1
  839. package/lib/List/List.vue.d.ts +27 -27
  840. package/lib/List/List.vue.js +1 -1
  841. package/lib/List/List.vue3.js +1 -1
  842. package/lib/List/ListItem.vue.d.ts +2 -2
  843. package/lib/List/ListItem.vue.js +1 -1
  844. package/lib/List/ListItem.vue3.js +1 -1
  845. package/lib/List/ListItemMeta.vue.d.ts +2 -2
  846. package/lib/List/ListItemMeta.vue.js +1 -1
  847. package/lib/List/ListItemMeta.vue3.js +1 -1
  848. package/lib/List/ListVirtual.vue.d.ts +3 -3
  849. package/lib/List/ListVirtual.vue.js +1 -1
  850. package/lib/List/ListVirtual.vue3.js +1 -1
  851. package/lib/List/hooks/useScrollReach.js +1 -1
  852. package/lib/List/index.d.ts +18 -18
  853. package/lib/List/index.js +1 -1
  854. package/lib/List/type.d.ts +3 -3
  855. package/lib/Mention/index.d.ts +104 -104
  856. package/lib/Mention/index.js +1 -1
  857. package/lib/Mention/index.vue.d.ts +171 -171
  858. package/lib/Mention/index.vue.js +1 -1
  859. package/lib/Mention/index.vue2.js +1 -1
  860. package/lib/Mention/type.d.ts +6 -5
  861. package/lib/Menu/Menu.vue.d.ts +6 -6
  862. package/lib/Menu/Menu.vue.js +1 -1
  863. package/lib/Menu/Menu.vue3.js +1 -1
  864. package/lib/Menu/MenuEllipsis.vue.js +1 -1
  865. package/lib/Menu/MenuEllipsis.vue3.js +1 -1
  866. package/lib/Menu/MenuItem.vue.d.ts +2 -2
  867. package/lib/Menu/MenuItem.vue.js +1 -1
  868. package/lib/Menu/MenuItem.vue3.js +1 -1
  869. package/lib/Menu/MenuItemGroup.vue.js +1 -1
  870. package/lib/Menu/MenuItemGroup.vue3.js +1 -1
  871. package/lib/Menu/MenuPopOption.vue.js +1 -1
  872. package/lib/Menu/MenuPopOption.vue2.js +1 -1
  873. package/lib/Menu/SubMenu.vue.d.ts +3 -3
  874. package/lib/Menu/SubMenu.vue.js +1 -1
  875. package/lib/Menu/SubMenu.vue3.js +1 -1
  876. package/lib/Menu/hooks/useContext.d.ts +5 -5
  877. package/lib/Menu/hooks/useContext.js +1 -1
  878. package/lib/Menu/index.d.ts +22 -22
  879. package/lib/Menu/index.js +1 -1
  880. package/lib/Menu/type.d.ts +3 -6
  881. package/lib/Message/Message.vue.d.ts +4 -4
  882. package/lib/Message/Message.vue.js +1 -1
  883. package/lib/Message/Message.vue3.js +1 -1
  884. package/lib/Message/MessageList.vue.js +1 -1
  885. package/lib/Message/MessageList.vue3.js +1 -1
  886. package/lib/Message/index.d.ts +15 -15
  887. package/lib/Message/index.js +1 -1
  888. package/lib/Message/type.d.ts +5 -5
  889. package/lib/Modal/Modal.vue.d.ts +5 -5
  890. package/lib/Modal/Modal.vue.js +1 -1
  891. package/lib/Modal/Modal.vue3.js +1 -1
  892. package/lib/Modal/ModalService.vue.d.ts +6 -6
  893. package/lib/Modal/ModalService.vue.js +1 -1
  894. package/lib/Modal/ModalService.vue3.js +1 -1
  895. package/lib/Modal/hooks/useModalClose.js +1 -1
  896. package/lib/Modal/hooks/useModalDraggable.js +1 -1
  897. package/lib/Modal/hooks/useOnBeforeClose.js +1 -1
  898. package/lib/Modal/index.d.ts +19 -17
  899. package/lib/Modal/index.js +1 -1
  900. package/lib/Modal/type.d.ts +8 -8
  901. package/lib/Notification/Notification.vue.d.ts +7 -7
  902. package/lib/Notification/Notification.vue.js +1 -1
  903. package/lib/Notification/Notification.vue3.js +1 -1
  904. package/lib/Notification/NotificationList.vue.js +1 -1
  905. package/lib/Notification/NotificationList.vue3.js +1 -1
  906. package/lib/Notification/index.d.ts +25 -24
  907. package/lib/Notification/index.js +1 -1
  908. package/lib/Notification/type.d.ts +5 -5
  909. package/lib/OverflowList/index.d.ts +1 -1
  910. package/lib/OverflowList/index.js +1 -1
  911. package/lib/OverflowList/index.vue.d.ts +2 -2
  912. package/lib/OverflowList/index.vue.js +1 -1
  913. package/lib/OverflowList/index.vue3.js +1 -1
  914. package/lib/PageHeader/index.d.ts +1 -1
  915. package/lib/PageHeader/index.js +1 -1
  916. package/lib/PageHeader/index.vue.d.ts +2 -2
  917. package/lib/PageHeader/index.vue.js +1 -1
  918. package/lib/PageHeader/index.vue3.js +1 -1
  919. package/lib/Pagination/Pagination.vue.d.ts +2 -2
  920. package/lib/Pagination/Pagination.vue.js +1 -1
  921. package/lib/Pagination/Pagination.vue3.js +1 -1
  922. package/lib/Pagination/PaginationItem.vue.js +1 -1
  923. package/lib/Pagination/PaginationItem.vue3.js +1 -1
  924. package/lib/Pagination/hooks/useContext.d.ts +2 -2
  925. package/lib/Pagination/hooks/useContext.js +1 -1
  926. package/lib/Pagination/index.d.ts +1 -1
  927. package/lib/Pagination/index.js +1 -1
  928. package/lib/Popconfirm/index.d.ts +32 -32
  929. package/lib/Popconfirm/index.js +1 -1
  930. package/lib/Popconfirm/index.vue.d.ts +39 -39
  931. package/lib/Popconfirm/index.vue.js +1 -1
  932. package/lib/Popconfirm/index.vue3.js +1 -1
  933. package/lib/Popconfirm/type.d.ts +4 -4
  934. package/lib/Popover/index.d.ts +16 -16
  935. package/lib/Popover/index.js +1 -1
  936. package/lib/Popover/index.vue.d.ts +7 -7
  937. package/lib/Popover/index.vue.js +1 -1
  938. package/lib/Popover/index.vue3.js +1 -1
  939. package/lib/Popover/type.d.ts +3 -3
  940. package/lib/Progress/Progress.vue.js +1 -1
  941. package/lib/Progress/Progress.vue3.js +1 -1
  942. package/lib/Progress/ProgressCircle.vue.js +1 -1
  943. package/lib/Progress/ProgressCircle.vue3.js +1 -1
  944. package/lib/Progress/ProgressLine.vue.js +1 -1
  945. package/lib/Progress/ProgressLine.vue3.js +1 -1
  946. package/lib/Progress/ProgressSteps.vue.js +1 -1
  947. package/lib/Progress/ProgressSteps.vue3.js +1 -1
  948. package/lib/Progress/index.js +1 -1
  949. package/lib/Progress/type.d.ts +1 -1
  950. package/lib/Radio/Radio.vue.d.ts +3 -3
  951. package/lib/Radio/Radio.vue.js +1 -1
  952. package/lib/Radio/Radio.vue3.js +1 -1
  953. package/lib/Radio/RadioGroup.vue.d.ts +3 -3
  954. package/lib/Radio/RadioGroup.vue.js +1 -1
  955. package/lib/Radio/RadioGroup.vue3.js +1 -1
  956. package/lib/Radio/hooks/useContext.d.ts +3 -3
  957. package/lib/Radio/hooks/useContext.js +1 -1
  958. package/lib/Radio/index.d.ts +8 -8
  959. package/lib/Radio/index.js +1 -1
  960. package/lib/Radio/type.d.ts +2 -2
  961. package/lib/Rate/index.js +1 -1
  962. package/lib/Rate/index.vue.js +1 -1
  963. package/lib/Rate/index.vue3.js +1 -1
  964. package/lib/ResizeBox/index.js +1 -1
  965. package/lib/ResizeBox/index.vue.js +1 -1
  966. package/lib/ResizeBox/index.vue3.js +1 -1
  967. package/lib/Result/index.d.ts +1 -1
  968. package/lib/Result/index.js +1 -1
  969. package/lib/Result/index.vue.d.ts +2 -2
  970. package/lib/Result/index.vue.js +1 -1
  971. package/lib/Result/index.vue3.js +1 -1
  972. package/lib/Result/type.d.ts +1 -1
  973. package/lib/Scrollbar/Scrollbar.vue.d.ts +2 -2
  974. package/lib/Scrollbar/Scrollbar.vue.js +1 -1
  975. package/lib/Scrollbar/Scrollbar.vue3.js +1 -1
  976. package/lib/Scrollbar/ScrollbarTrack.vue.js +1 -1
  977. package/lib/Scrollbar/ScrollbarTrack.vue3.js +1 -1
  978. package/lib/Scrollbar/hooks/useContext.js +1 -1
  979. package/lib/Scrollbar/index.d.ts +6 -6
  980. package/lib/Scrollbar/index.js +1 -1
  981. package/lib/Select/Optgroup.vue.js +1 -1
  982. package/lib/Select/Optgroup.vue3.js +1 -1
  983. package/lib/Select/Option.vue.d.ts +4 -4
  984. package/lib/Select/Option.vue.js +1 -1
  985. package/lib/Select/Option.vue3.js +1 -1
  986. package/lib/Select/Select.vue.d.ts +76 -76
  987. package/lib/Select/Select.vue.js +1 -1
  988. package/lib/Select/Select.vue3.js +1 -1
  989. package/lib/Select/SelectIcon.vue.js +1 -1
  990. package/lib/Select/SelectIcon.vue3.js +1 -1
  991. package/lib/Select/SelectRealList.vue.js +1 -1
  992. package/lib/Select/SelectRealList.vue3.js +1 -1
  993. package/lib/Select/SelectView.vue.js +1 -1
  994. package/lib/Select/SelectView.vue3.js +1 -1
  995. package/lib/Select/SelectVirtualList.vue.js +1 -1
  996. package/lib/Select/SelectVirtualList.vue3.js +1 -1
  997. package/lib/Select/hooks/useContext.d.ts +13 -13
  998. package/lib/Select/hooks/useContext.js +1 -1
  999. package/lib/Select/hooks/useSelectHotkeys.js +1 -1
  1000. package/lib/Select/hooks/useSelectOptions.d.ts +13 -13
  1001. package/lib/Select/hooks/useSelectOptions.js +1 -1
  1002. package/lib/Select/index.d.ts +64 -64
  1003. package/lib/Select/index.js +1 -1
  1004. package/lib/Select/type.d.ts +13 -16
  1005. package/lib/Skeleton/Skeleton.vue.js +1 -1
  1006. package/lib/Skeleton/Skeleton.vue2.js +1 -1
  1007. package/lib/Skeleton/SkeletonLine.vue.js +1 -1
  1008. package/lib/Skeleton/SkeletonLine.vue3.js +1 -1
  1009. package/lib/Skeleton/SkeletonShape.vue.js +1 -1
  1010. package/lib/Skeleton/SkeletonShape.vue3.js +1 -1
  1011. package/lib/Skeleton/index.js +1 -1
  1012. package/lib/Skeleton/type.d.ts +3 -2
  1013. package/lib/Slider/Slider.vue.d.ts +1 -1
  1014. package/lib/Slider/Slider.vue.js +1 -1
  1015. package/lib/Slider/Slider.vue3.js +1 -1
  1016. package/lib/Slider/SliderBtn.vue.js +1 -1
  1017. package/lib/Slider/SliderBtn.vue3.js +1 -1
  1018. package/lib/Slider/SliderInput.vue.js +1 -1
  1019. package/lib/Slider/SliderInput.vue3.js +1 -1
  1020. package/lib/Slider/SliderTicks.vue.d.ts +2 -2
  1021. package/lib/Slider/SliderTicks.vue.js +1 -1
  1022. package/lib/Slider/SliderTicks.vue3.js +1 -1
  1023. package/lib/Slider/hooks/useContext.d.ts +4 -4
  1024. package/lib/Slider/hooks/useContext.js +1 -1
  1025. package/lib/Slider/hooks/useSliderDraggable.js +1 -1
  1026. package/lib/Slider/index.d.ts +3 -3
  1027. package/lib/Slider/index.js +1 -1
  1028. package/lib/Slider/type.d.ts +2 -3
  1029. package/lib/Space/index.d.ts +4 -4
  1030. package/lib/Space/index.js +1 -1
  1031. package/lib/Space/index.vue.d.ts +3 -3
  1032. package/lib/Space/index.vue.js +1 -1
  1033. package/lib/Space/index.vue3.js +1 -1
  1034. package/lib/Spin/index.d.ts +1 -1
  1035. package/lib/Spin/index.js +1 -1
  1036. package/lib/Spin/index.vue.d.ts +2 -2
  1037. package/lib/Spin/index.vue.js +1 -1
  1038. package/lib/Spin/index.vue3.js +1 -1
  1039. package/lib/Split/index.js +1 -1
  1040. package/lib/Split/index.vue.js +1 -1
  1041. package/lib/Split/index.vue3.js +1 -1
  1042. package/lib/Statistic/Countdown.vue.d.ts +1 -1
  1043. package/lib/Statistic/Countdown.vue.js +1 -1
  1044. package/lib/Statistic/Countdown.vue2.js +1 -1
  1045. package/lib/Statistic/Statistic.vue.d.ts +3 -3
  1046. package/lib/Statistic/Statistic.vue.js +1 -1
  1047. package/lib/Statistic/Statistic.vue3.js +1 -1
  1048. package/lib/Statistic/index.d.ts +7 -7
  1049. package/lib/Statistic/index.js +1 -1
  1050. package/lib/Steps/Step.vue.d.ts +3 -3
  1051. package/lib/Steps/Step.vue.js +1 -1
  1052. package/lib/Steps/Step.vue3.js +1 -1
  1053. package/lib/Steps/Steps.vue.js +1 -1
  1054. package/lib/Steps/Steps.vue3.js +1 -1
  1055. package/lib/Steps/hooks/useContext.d.ts +3 -3
  1056. package/lib/Steps/hooks/useContext.js +1 -1
  1057. package/lib/Steps/index.d.ts +4 -4
  1058. package/lib/Steps/index.js +1 -1
  1059. package/lib/Switch/index.d.ts +4 -4
  1060. package/lib/Switch/index.js +1 -1
  1061. package/lib/Switch/index.vue.d.ts +3 -3
  1062. package/lib/Switch/index.vue.js +1 -1
  1063. package/lib/Switch/index.vue3.js +1 -1
  1064. package/lib/Switch/type.d.ts +2 -1
  1065. package/lib/Tabs/TabButton.vue.js +1 -1
  1066. package/lib/Tabs/TabButton.vue3.js +1 -1
  1067. package/lib/Tabs/TabPane.vue.d.ts +1 -1
  1068. package/lib/Tabs/TabPane.vue.js +1 -1
  1069. package/lib/Tabs/TabPane.vue3.js +1 -1
  1070. package/lib/Tabs/Tabs.vue.d.ts +4 -4
  1071. package/lib/Tabs/Tabs.vue.js +1 -1
  1072. package/lib/Tabs/Tabs.vue3.js +1 -1
  1073. package/lib/Tabs/TabsNavInk.vue.d.ts +2 -2
  1074. package/lib/Tabs/TabsNavInk.vue.js +1 -1
  1075. package/lib/Tabs/TabsNavInk.vue3.js +1 -1
  1076. package/lib/Tabs/TabsTab.vue.js +1 -1
  1077. package/lib/Tabs/TabsTab.vue3.js +1 -1
  1078. package/lib/Tabs/hooks/useContext.d.ts +5 -5
  1079. package/lib/Tabs/hooks/useContext.js +1 -1
  1080. package/lib/Tabs/hooks/useTabsScroll.d.ts +2 -2
  1081. package/lib/Tabs/hooks/useTabsScroll.js +1 -1
  1082. package/lib/Tabs/index.d.ts +7 -7
  1083. package/lib/Tabs/index.js +1 -1
  1084. package/lib/Tabs/type.d.ts +2 -3
  1085. package/lib/Tag/index.d.ts +1 -1
  1086. package/lib/Tag/index.js +1 -1
  1087. package/lib/Tag/index.vue.d.ts +2 -2
  1088. package/lib/Tag/index.vue.js +1 -1
  1089. package/lib/Tag/index.vue3.js +1 -1
  1090. package/lib/Tag/type.d.ts +2 -1
  1091. package/lib/Textarea/hooks/useTextareaHeight.js +1 -1
  1092. package/lib/Textarea/index.d.ts +8 -8
  1093. package/lib/Textarea/index.js +1 -1
  1094. package/lib/Textarea/index.vue.d.ts +3 -3
  1095. package/lib/Textarea/index.vue.js +1 -1
  1096. package/lib/Textarea/index.vue3.js +1 -1
  1097. package/lib/TimePicker/TimePicker.vue.d.ts +7 -7
  1098. package/lib/TimePicker/TimePicker.vue.js +1 -1
  1099. package/lib/TimePicker/TimePicker.vue3.js +1 -1
  1100. package/lib/TimePicker/TimePickerPanel.vue.js +1 -1
  1101. package/lib/TimePicker/TimePickerPanel.vue3.js +1 -1
  1102. package/lib/TimePicker/hooks/useContext.d.ts +2 -2
  1103. package/lib/TimePicker/hooks/useContext.js +1 -1
  1104. package/lib/TimePicker/index.d.ts +11 -11
  1105. package/lib/TimePicker/index.js +1 -1
  1106. package/lib/TimePicker/type.d.ts +1 -1
  1107. package/lib/Timeline/Timeline.vue.js +1 -1
  1108. package/lib/Timeline/Timeline.vue3.js +1 -1
  1109. package/lib/Timeline/TimelineItem.vue.d.ts +3 -3
  1110. package/lib/Timeline/TimelineItem.vue.js +1 -1
  1111. package/lib/Timeline/TimelineItem.vue3.js +1 -1
  1112. package/lib/Timeline/TimelineItemPending.vue.js +1 -1
  1113. package/lib/Timeline/TimelineItemPending.vue2.js +1 -1
  1114. package/lib/Timeline/hooks/useContext.d.ts +4 -4
  1115. package/lib/Timeline/hooks/useContext.js +1 -1
  1116. package/lib/Timeline/index.d.ts +4 -4
  1117. package/lib/Timeline/index.js +1 -1
  1118. package/lib/Tooltip/index.d.ts +12 -12
  1119. package/lib/Tooltip/index.js +1 -1
  1120. package/lib/Tooltip/index.vue.d.ts +4 -4
  1121. package/lib/Tooltip/index.vue.js +1 -1
  1122. package/lib/Tooltip/index.vue3.js +1 -1
  1123. package/lib/Tooltip/type.d.ts +3 -3
  1124. package/lib/Transfer/Transfer.vue.d.ts +3 -3
  1125. package/lib/Transfer/Transfer.vue.js +1 -1
  1126. package/lib/Transfer/Transfer.vue3.js +1 -1
  1127. package/lib/Transfer/TransferPanel.vue.js +1 -1
  1128. package/lib/Transfer/TransferPanel.vue3.js +1 -1
  1129. package/lib/Transfer/hooks/useContext.d.ts +2 -2
  1130. package/lib/Transfer/hooks/useContext.js +1 -1
  1131. package/lib/Transfer/index.d.ts +8 -8
  1132. package/lib/Transfer/index.js +1 -1
  1133. package/lib/Trigger/hooks/useContext.d.ts +2 -2
  1134. package/lib/Trigger/hooks/useContext.js +1 -1
  1135. package/lib/Trigger/hooks/useTriggerPosition.d.ts +3 -4
  1136. package/lib/Trigger/hooks/useTriggerPosition.js +1 -1
  1137. package/lib/Trigger/hooks/useTriggerVisible.d.ts +2 -2
  1138. package/lib/Trigger/hooks/useTriggerVisible.js +1 -1
  1139. package/lib/Trigger/index.d.ts +17 -17
  1140. package/lib/Trigger/index.js +1 -1
  1141. package/lib/Trigger/index.vue.d.ts +9 -9
  1142. package/lib/Trigger/index.vue.js +1 -1
  1143. package/lib/Trigger/index.vue3.js +1 -1
  1144. package/lib/Trigger/type.d.ts +3 -4
  1145. package/lib/Typography/Typography.vue.js +1 -1
  1146. package/lib/Typography/Typography.vue3.js +1 -1
  1147. package/lib/Typography/TypographyBase.vue.d.ts +28 -29
  1148. package/lib/Typography/TypographyBase.vue.js +1 -1
  1149. package/lib/Typography/TypographyBase.vue3.js +1 -1
  1150. package/lib/Typography/TypographyParagraph.vue.d.ts +3 -3
  1151. package/lib/Typography/TypographyParagraph.vue.js +1 -1
  1152. package/lib/Typography/TypographyParagraph.vue3.js +1 -1
  1153. package/lib/Typography/TypographyText.vue.d.ts +1 -2
  1154. package/lib/Typography/TypographyText.vue.js +1 -1
  1155. package/lib/Typography/TypographyText.vue2.js +1 -1
  1156. package/lib/Typography/TypographyTitle.vue.d.ts +3 -3
  1157. package/lib/Typography/TypographyTitle.vue.js +1 -1
  1158. package/lib/Typography/TypographyTitle.vue3.js +1 -1
  1159. package/lib/Typography/index.js +1 -1
  1160. package/lib/Typography/type.d.ts +4 -14
  1161. package/lib/VerificationCode/index.d.ts +6 -6
  1162. package/lib/VerificationCode/index.js +1 -1
  1163. package/lib/VerificationCode/index.vue.d.ts +2 -2
  1164. package/lib/VerificationCode/index.vue.js +1 -1
  1165. package/lib/VerificationCode/index.vue3.js +1 -1
  1166. package/lib/Watermark/index.d.ts +3 -3
  1167. package/lib/Watermark/index.js +1 -1
  1168. package/lib/Watermark/index.vue.d.ts +1 -1
  1169. package/lib/Watermark/index.vue.js +1 -1
  1170. package/lib/Watermark/index.vue3.js +1 -1
  1171. package/lib/_shared/components/ExpandTransition/index.vue2.js +1 -1
  1172. package/lib/_shared/components/ExpandTransition/index.vue3.js +1 -1
  1173. package/lib/_shared/components/Icon/index.vue2.js +1 -1
  1174. package/lib/_shared/components/Icon/index.vue3.js +1 -1
  1175. package/lib/_shared/components/IconButton/index.vue.js +1 -1
  1176. package/lib/_shared/components/IconButton/index.vue3.js +1 -1
  1177. package/lib/_shared/components/PreventFocus/index.vue.js +1 -1
  1178. package/lib/_shared/components/PreventFocus/index.vue2.js +1 -1
  1179. package/lib/_shared/constants/index.d.ts +4 -4
  1180. package/lib/_shared/constants/index.js +1 -1
  1181. package/lib/_shared/icons/Icon403.svg.js +1 -1
  1182. package/lib/_shared/icons/Icon404.svg.js +1 -1
  1183. package/lib/_shared/icons/Icon500.svg.js +1 -1
  1184. package/lib/_shared/icons/IconArrowDown.vue.js +1 -1
  1185. package/lib/_shared/icons/IconArrowDown.vue2.js +1 -1
  1186. package/lib/_shared/icons/IconArrowRight.vue.js +1 -1
  1187. package/lib/_shared/icons/IconArrowRight.vue2.js +1 -1
  1188. package/lib/_shared/icons/IconCheck.vue.js +1 -1
  1189. package/lib/_shared/icons/IconCheck.vue2.js +1 -1
  1190. package/lib/_shared/icons/IconCheckboxChecked.vue.js +1 -1
  1191. package/lib/_shared/icons/IconCheckboxChecked.vue2.js +1 -1
  1192. package/lib/_shared/icons/IconClose.vue.js +1 -1
  1193. package/lib/_shared/icons/IconClose.vue2.js +1 -1
  1194. package/lib/_shared/icons/IconCopy.vue.js +1 -1
  1195. package/lib/_shared/icons/IconCopy.vue2.js +1 -1
  1196. package/lib/_shared/icons/IconDelete.vue.js +1 -1
  1197. package/lib/_shared/icons/IconDelete.vue2.js +1 -1
  1198. package/lib/_shared/icons/IconDragDot.vue.js +1 -1
  1199. package/lib/_shared/icons/IconDragDot.vue2.js +1 -1
  1200. package/lib/_shared/icons/IconEdit.vue.js +1 -1
  1201. package/lib/_shared/icons/IconEdit.vue2.js +1 -1
  1202. package/lib/_shared/icons/IconEmpty.vue.js +1 -1
  1203. package/lib/_shared/icons/IconEmpty.vue2.js +1 -1
  1204. package/lib/_shared/icons/IconError.vue.js +1 -1
  1205. package/lib/_shared/icons/IconError.vue2.js +1 -1
  1206. package/lib/_shared/icons/IconExclamation.vue.js +1 -1
  1207. package/lib/_shared/icons/IconExclamation.vue2.js +1 -1
  1208. package/lib/_shared/icons/IconEyeClose.vue.js +1 -1
  1209. package/lib/_shared/icons/IconEyeClose.vue2.js +1 -1
  1210. package/lib/_shared/icons/IconEyeOpen.vue.js +1 -1
  1211. package/lib/_shared/icons/IconEyeOpen.vue2.js +1 -1
  1212. package/lib/_shared/icons/IconFaceSmile.vue.js +1 -1
  1213. package/lib/_shared/icons/IconFaceSmile.vue2.js +1 -1
  1214. package/lib/_shared/icons/IconFullScreen.vue.js +1 -1
  1215. package/lib/_shared/icons/IconFullScreen.vue2.js +1 -1
  1216. package/lib/_shared/icons/IconImageClose.vue.js +1 -1
  1217. package/lib/_shared/icons/IconImageClose.vue2.js +1 -1
  1218. package/lib/_shared/icons/IconInfo.vue.js +1 -1
  1219. package/lib/_shared/icons/IconInfo.vue2.js +1 -1
  1220. package/lib/_shared/icons/IconInfoLine.vue.js +1 -1
  1221. package/lib/_shared/icons/IconInfoLine.vue2.js +1 -1
  1222. package/lib/_shared/icons/IconLink.vue.js +1 -1
  1223. package/lib/_shared/icons/IconLink.vue2.js +1 -1
  1224. package/lib/_shared/icons/IconLoading.vue.js +1 -1
  1225. package/lib/_shared/icons/IconLoading.vue2.js +1 -1
  1226. package/lib/_shared/icons/IconMenuFold.vue.js +1 -1
  1227. package/lib/_shared/icons/IconMenuFold.vue2.js +1 -1
  1228. package/lib/_shared/icons/IconMenuUnfold.vue.js +1 -1
  1229. package/lib/_shared/icons/IconMenuUnfold.vue2.js +1 -1
  1230. package/lib/_shared/icons/IconMinus.vue.js +1 -1
  1231. package/lib/_shared/icons/IconMinus.vue2.js +1 -1
  1232. package/lib/_shared/icons/IconMore.vue.js +1 -1
  1233. package/lib/_shared/icons/IconMore.vue2.js +1 -1
  1234. package/lib/_shared/icons/IconOriginSize.vue.js +1 -1
  1235. package/lib/_shared/icons/IconOriginSize.vue2.js +1 -1
  1236. package/lib/_shared/icons/IconPlus.vue.js +1 -1
  1237. package/lib/_shared/icons/IconPlus.vue2.js +1 -1
  1238. package/lib/_shared/icons/IconRight.vue.js +1 -1
  1239. package/lib/_shared/icons/IconRight.vue2.js +1 -1
  1240. package/lib/_shared/icons/IconRotateLeft.vue.js +1 -1
  1241. package/lib/_shared/icons/IconRotateLeft.vue2.js +1 -1
  1242. package/lib/_shared/icons/IconRotateRight.vue.js +1 -1
  1243. package/lib/_shared/icons/IconRotateRight.vue2.js +1 -1
  1244. package/lib/_shared/icons/IconSearch.vue.js +1 -1
  1245. package/lib/_shared/icons/IconSearch.vue2.js +1 -1
  1246. package/lib/_shared/icons/IconSeparator.vue.js +1 -1
  1247. package/lib/_shared/icons/IconSeparator.vue2.js +1 -1
  1248. package/lib/_shared/icons/IconStar.vue.js +1 -1
  1249. package/lib/_shared/icons/IconStar.vue2.js +1 -1
  1250. package/lib/_shared/icons/IconSuccess.vue.js +1 -1
  1251. package/lib/_shared/icons/IconSuccess.vue2.js +1 -1
  1252. package/lib/_shared/icons/IconTime.vue.js +1 -1
  1253. package/lib/_shared/icons/IconTime.vue2.js +1 -1
  1254. package/lib/_shared/icons/IconToTop.vue.js +1 -1
  1255. package/lib/_shared/icons/IconToTop.vue2.js +1 -1
  1256. package/lib/_shared/icons/IconWarning.vue.js +1 -1
  1257. package/lib/_shared/icons/IconWarning.vue2.js +1 -1
  1258. package/lib/_shared/icons/IconZoomIn.vue.js +1 -1
  1259. package/lib/_shared/icons/IconZoomIn.vue2.js +1 -1
  1260. package/lib/_shared/icons/IconZoomOut.vue.js +1 -1
  1261. package/lib/_shared/icons/IconZoomOut.vue2.js +1 -1
  1262. package/lib/_shared/type/index.d.ts +22 -5
  1263. package/lib/_shared/utils/color.js +1 -1
  1264. package/lib/_shared/utils/control.d.ts +2 -2
  1265. package/lib/_shared/utils/control.js +1 -1
  1266. package/lib/_shared/utils/dom.d.ts +1 -1
  1267. package/lib/_shared/utils/dom.js +1 -1
  1268. package/lib/_shared/utils/global-config.d.ts +4 -4
  1269. package/lib/_shared/utils/global-config.js +1 -1
  1270. package/lib/_shared/utils/locale.js +1 -1
  1271. package/lib/_shared/utils/time.js +1 -1
  1272. package/lib/_shared/utils/vue-utils.d.ts +3 -3
  1273. package/lib/_shared/utils/vue-utils.js +1 -1
  1274. package/lib/index.d.ts +128 -128
  1275. package/lib/index.js +1 -1
  1276. package/lib/node_modules/b-tween/dist/b-tween.es.js +1 -1
  1277. package/lib/node_modules/dayjs/dayjs.min.js +1 -1
  1278. package/lib/node_modules/dayjs/plugin/duration.js +1 -1
  1279. package/lib/node_modules/dayjs/plugin/isSameOrAfter.js +1 -1
  1280. package/lib/node_modules/dayjs/plugin/isSameOrBefore.js +1 -1
  1281. package/lib/node_modules/dayjs/plugin/toObject.js +1 -1
  1282. package/lib/node_modules/tinycolor2/esm/tinycolor.js +1 -1
  1283. package/lib/src/lang/lang-es/zh-cn.js +1 -1
  1284. package/package.json +1 -1
  1285. package/es/_shared/utils/index.d.ts +0 -8
  1286. package/lib/_shared/utils/index.d.ts +0 -8
@@ -1,20 +1,20 @@
1
1
  import { App } from 'vue';
2
2
  import { default as _Message } from './Message.vue';
3
- import { MessageConfig, MessageProps, MessageType, MessagePostion } from './type';
3
+ import { MessageMethod, MessageConfig, MessageProps, MessageType, MessagePostion } from './type';
4
4
  export type MessageInstance = InstanceType<typeof _Message>;
5
5
  export * from './type';
6
6
  declare const Message: {
7
7
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<MessageProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
8
+ type: MessageType;
9
+ onClose: (id: string | number) => void;
8
10
  duration: number;
9
- content: import('../_shared/type').RenderContent;
11
+ content: import('..').RenderContent;
10
12
  icon: import('vue').RenderFunction;
11
- type: MessageType;
12
13
  closable: boolean;
13
- onClose: (id: string | number) => void;
14
14
  id: string;
15
15
  showIcon: boolean;
16
- isReset: boolean;
17
16
  onDestory: (id: string | number) => void;
17
+ isReset: boolean;
18
18
  resetOnHover: boolean;
19
19
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLLIElement, import('vue').ComponentProvideOptions, {
20
20
  P: {};
@@ -24,32 +24,32 @@ declare const Message: {
24
24
  M: {};
25
25
  Defaults: {};
26
26
  }, Readonly<MessageProps> & Readonly<{}>, {}, {}, {}, {}, {
27
+ type: MessageType;
28
+ onClose: (id: string | number) => void;
27
29
  duration: number;
28
- content: import('../_shared/type').RenderContent;
30
+ content: import('..').RenderContent;
29
31
  icon: import('vue').RenderFunction;
30
- type: MessageType;
31
32
  closable: boolean;
32
- onClose: (id: string | number) => void;
33
33
  id: string;
34
34
  showIcon: boolean;
35
- isReset: boolean;
36
35
  onDestory: (id: string | number) => void;
36
+ isReset: boolean;
37
37
  resetOnHover: boolean;
38
38
  }>;
39
39
  __isFragment?: never;
40
40
  __isTeleport?: never;
41
41
  __isSuspense?: never;
42
42
  } & import('vue').ComponentOptionsBase<Readonly<MessageProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
43
+ type: MessageType;
44
+ onClose: (id: string | number) => void;
43
45
  duration: number;
44
- content: import('../_shared/type').RenderContent;
46
+ content: import('..').RenderContent;
45
47
  icon: import('vue').RenderFunction;
46
- type: MessageType;
47
48
  closable: boolean;
48
- onClose: (id: string | number) => void;
49
49
  id: string;
50
50
  showIcon: boolean;
51
- isReset: boolean;
52
51
  onDestory: (id: string | number) => void;
52
+ isReset: boolean;
53
53
  resetOnHover: boolean;
54
54
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
55
55
  info: (config: string | MessageConfig) => import('./type').MessageReturn;
@@ -61,9 +61,9 @@ declare const Message: {
61
61
  clear: (position: MessagePostion) => import('./type').MessageReturn;
62
62
  install: (app: App) => void;
63
63
  };
64
- declare module 'vue' {
64
+ declare module '@vue/runtime-core' {
65
65
  interface ComponentCustomProperties {
66
- $message: typeof Message;
66
+ $message: MessageMethod;
67
67
  }
68
68
  }
69
69
  export default Message;
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),s=require("./Message.vue.js");;/* empty css */const i=require("./MessageList.vue.js");,/* empty css */require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const t=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../_shared/utils/locale.js");const r=new Map,o=e.reactive({top:[],bottom:[]});let n=1;const c=e=>{o[e].length||(document.body.removeChild(r.get(e)),r.delete(e))},a={...Object.fromEntries(["success","warning","error","info","loading","normal"].map(s=>[s,a=>((s,a="info")=>{const d=t.isString(s)?"top":s.position??"top",l=o[d];if(!r.has(d)){const s=document.createElement("div");s.className="yc-overlay yc-overlay-message",document.body.appendChild(s),r.set(d,s),e.render(e.h(i,{messageList:l,position:d}),s)}const u=t.isString(s)||!s.id?"__yc_message_"+n++:s.id,g=()=>{const e=l.findIndex(e=>e.id==u);-1!=e&&(l.splice(e,1),c(d))},m=t.isString(s)?{content:s,id:u,onDestory:g,type:a}:{...s,id:u,onDestory:g,type:a},p=l.findIndex(e=>e.id==u);return-1!=p?(l[p]={...l[p],...m,isReset:!0},e.nextTick().then(()=>{l[p].isReset=!1})):l.push(m),{close:g}})(a,s)])),clear(e){o[e].splice(0),c(e)}},d=Object.assign(s,{install:e=>{e.config.globalProperties.$message=Object.assign(s,a)},...a});module.exports=d;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("./Message.vue.js");;/* empty css */const t=require("./MessageList.vue.js");;/* empty css */const i=require("../_shared/utils/is.js"),o=new Map,n=e.reactive({top:[],bottom:[]});let r=1;const a=e=>{n[e].length||(document.body.removeChild(o.get(e)),o.delete(e))},c={...Object.fromEntries(["success","warning","error","info","loading","normal"].map(s=>[s,c=>((s,c="info")=>{const d=i.isString(s)?"top":s.position??"top",l=n[d];if(!o.has(d)){const s=document.createElement("div");s.className="yc-overlay yc-overlay-message",document.body.appendChild(s),o.set(d,s),e.render(e.h(t.default,{messageList:l,position:d}),s)}const u=i.isString(s)||!s.id?"__yc_message_"+r++:s.id,g=()=>{const e=l.findIndex(e=>e.id==u);-1!=e&&(l.splice(e,1),a(d))},p=i.isString(s)?{content:s,id:u,onDestory:g,type:c}:{...s,id:u,onDestory:g,type:c},m=l.findIndex(e=>e.id==u);return-1!=m?(l[m]={...l[m],...p,isReset:!0},e.nextTick().then(()=>{l[m].isReset=!1})):l.push(p),{close:g}})(c,s)])),clear(e){n[e].splice(0),a(e)}},d=Object.assign(s.default,{install:e=>{e.config.globalProperties.$message=c},...c});exports.default=d;
@@ -17,10 +17,9 @@ export interface MessageContainerProps {
17
17
  messageList?: MessageProps[];
18
18
  position?: MessagePostion;
19
19
  }
20
+ export type MessagePostion = 'top' | 'bottom';
21
+ export type MessageType = 'info' | 'success' | 'warning' | 'error' | 'loading' | 'normal';
20
22
  export type MessageConfig = Omit<MessageProps, 'type' | 'onDestory'> & MessageContainerProps;
21
- export type MessageReturn = {
22
- close?: () => void;
23
- };
24
23
  export type MessageMethod = {
25
24
  info: (config: string | MessageConfig) => MessageReturn;
26
25
  success: (config: string | MessageConfig) => MessageReturn;
@@ -30,5 +29,6 @@ export type MessageMethod = {
30
29
  normoal: (config: string | MessageConfig) => MessageReturn;
31
30
  clear: (position: MessagePostion) => MessageReturn;
32
31
  };
33
- export type MessagePostion = 'top' | 'bottom';
34
- export type MessageType = 'info' | 'success' | 'warning' | 'error' | 'loading' | 'normal';
32
+ export type MessageReturn = {
33
+ close?: () => void;
34
+ };
@@ -28,13 +28,13 @@ declare const __VLS_component: import('vue').DefineComponent<ModalProps, {}, {},
28
28
  "onBefore-close"?: (() => any) | undefined;
29
29
  }>, {
30
30
  top: number;
31
- unmountOnClose: boolean;
31
+ footer: boolean;
32
+ title: string;
32
33
  popupContainer: import('..').PopupContainer;
33
34
  renderToBody: boolean;
35
+ unmountOnClose: boolean;
34
36
  width: number | string;
35
37
  visible: boolean;
36
- footer: boolean;
37
- title: string;
38
38
  mask: boolean;
39
39
  defaultVisible: boolean;
40
40
  closable: boolean;
@@ -49,14 +49,14 @@ declare const __VLS_component: import('vue').DefineComponent<ModalProps, {}, {},
49
49
  okButtonProps: import('../Button').ButtonProps;
50
50
  cancelButtonProps: import('../Button').ButtonProps;
51
51
  maskStyle: CSSProperties;
52
- modalClass: import('../_shared/type').ClassName;
52
+ modalClass: import('..').ClassName;
53
53
  modalStyle: CSSProperties;
54
54
  escToClose: boolean;
55
55
  draggable: boolean;
56
56
  fullscreen: boolean;
57
57
  maskAnimationName: string;
58
58
  modalAnimationName: string;
59
- bodyClass: import('../_shared/type').ClassName;
59
+ bodyClass: import('..').ClassName;
60
60
  hideTitle: boolean;
61
61
  simple: boolean;
62
62
  onBeforeCancel: import('./type').OnBeforeCancel;
@@ -1 +1 @@
1
- "use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js");const o=require("../_shared/utils/dom.js");require("../_shared/utils/time.js");const l=require("../_shared/utils/global-config.js"),t=require("../_shared/utils/locale.js"),a=require("./hooks/useModalClose.js"),n=require("./hooks/useModalDraggable.js"),r=require("../Button/index.js"),s=;/* empty css */,/* empty css */,/* empty css */;/* empty css */const i={key:0,class:"yc-modal-footer"},d=e.defineComponent({name:"Modal",inheritAttrs:!1,__name:"Modal",props:{visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!1},width:{default:400},top:{default:100},mask:{type:Boolean,default:!0},title:{default:""},titleAlign:{default:"center"},alignCenter:{type:Boolean,default:!0},unmountOnClose:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},hideCancel:{type:Boolean,default:!1},closable:{type:Boolean,default:!0},okText:{default:""},cancelText:{default:""},okLoading:{type:Boolean,default:!1},okButtonProps:{default:()=>({})},cancelButtonProps:{default:()=>({})},footer:{type:Boolean,default:!0},renderToBody:{type:Boolean,default:!0},popupContainer:{default:void 0},maskStyle:{default:()=>({})},modalClass:{default:""},modalStyle:{default:()=>({})},escToClose:{type:Boolean,default:!0},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},maskAnimationName:{default:"fade"},modalAnimationName:{default:"zoom-modal"},bodyClass:{default:""},bodyStyle:{default:()=>({})},hideTitle:{type:Boolean,default:!1},simple:{type:Boolean,default:!1},onBeforeCancel:{type:Function,default:()=>!0},onBeforeOk:{type:Function,default:()=>!0}},emits:["update:visible","ok","cancel","open","before-open","close","before-close"],setup(d,{emit:u}){const c=d,f=u,{visible:m,defaultVisible:p,width:y,top:k,alignCenter:B,maskClosable:C,escToClose:b,modalStyle:v,fullscreen:g,draggable:h,renderToBody:x}=e.toRefs(c),{onBeforeOk:S,onBeforeCancel:T}=c,{popupContainer:V,zIndex:N,isAbsolute:_}=l.getGlobalConfig(c),{t:w}=t.useI18n(),{outerVisible:q,innerVisible:j,asyncLoading:A,handleClose:z,handleAfterLeave:E}=a({visible:m,defaultVisible:p,escToClose:b,maskClosable:C,onBeforeOk:S,onBeforeCancel:T,emits:f}),$=e.ref(),D=e.ref(),{dragStyle:L,isDraggable:P}=n({visible:j,draggable:h,fullscreen:g,alignCenter:B,top:k,triggerRef:$,modalRef:D}),I=e.computed(()=>({width:g.value?"100%":"auto"==y.value?"fit-content":o.valueToPx(y.value),...L.value,...v.value}));return(o,l)=>(e.openBlock(),e.createBlock(e.Teleport,{to:e.unref(V),disabled:!e.unref(x)},[!o.unmountOnClose||e.unref(q)?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["yc-modal-container",o.$attrs.class,{"yc-modal-simple":o.simple,"yc-modal-position-absolute":e.unref(_)}]),style:e.normalizeStyle({zIndex:e.unref(N),...o.$attrs.style??{}})},[e.createVNode(e.Transition,{name:o.maskAnimationName},{default:e.withCtx(()=>[o.mask?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,class:"yc-modal-mask",style:e.normalizeStyle(o.maskStyle)},null,4)),[[e.vShow,e.unref(j)]]):e.createCommentVNode("",!0)]),_:1},8,["name"]),e.createElementVNode("div",{class:"yc-modal-wrapper",onClick:l[6]||(l[6]=e.withModifiers(o=>e.unref(z)("mask",o),["self"]))},[e.createVNode(e.Transition,{name:o.modalAnimationName,onBeforeEnter:l[3]||(l[3]=e=>o.$emit("before-open")),onBeforeLeave:l[4]||(l[4]=e=>o.$emit("before-close")),onAfterEnter:l[5]||(l[5]=e=>o.$emit("open")),onAfterLeave:e.unref(E)},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["yc-modal",o.modalClass,{"yc-modal-draggable":e.unref(P),"yc-modal-fullscreen":e.unref(g)}]),style:e.normalizeStyle(I.value),ref_key:"modalRef",ref:D},[e.renderSlot(o.$slots,"header",{},()=>[e.createElementVNode("div",{class:"yc-modal-header",ref_key:"headerRef",ref:$},[o.hideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["yc-modal-title","text-ellipsis",{"title-align-center":"center"==o.titleAlign}])},[e.renderSlot(o.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(o.title),1)])],2)),o.closable&&!o.simple?(e.openBlock(),e.createBlock(e.unref(s),{key:1,class:"yc-modal-close-button",onClick:l[0]||(l[0]=o=>e.unref(z)("closeBtn",o))})):e.createCommentVNode("",!0)],512)]),e.createElementVNode("div",{class:e.normalizeClass(["yc-modal-body",o.bodyClass]),style:e.normalizeStyle(o.bodyStyle)},[e.renderSlot(o.$slots,"default")],6),o.footer?(e.openBlock(),e.createElementBlock("div",i,[e.renderSlot(o.$slots,"footer",{},()=>[o.hideCancel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(r.default),e.mergeProps({key:0},o.cancelButtonProps,{onClick:l[1]||(l[1]=o=>e.unref(z)("cancelBtn",o))}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.cancelText||e.unref(w)("modal.cancelText")),1)]),_:1},16)),e.createVNode(e.unref(r.default),e.mergeProps({type:"primary",loading:o.okLoading||e.unref(A)},o.okButtonProps,{onClick:l[2]||(l[2]=o=>e.unref(z)("confirmBtn",o))}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.okText||e.unref(w)("modal.okText")),1)]),_:1},16,["loading"])])])):e.createCommentVNode("",!0)],6),[[e.vShow,e.unref(j)]])]),_:3},8,["name","onAfterLeave"])])],6)),[[e.vShow,e.unref(q)]]):e.createCommentVNode("",!0)],8,["to","disabled"]))}});module.exports=d;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),o=require("../_shared/utils/global-config.js"),l=require("../_shared/utils/dom.js"),t=require("../_shared/utils/locale.js"),a=require("./hooks/useModalClose.js"),n=require("./hooks/useModalDraggable.js"),r=require("../Button/index.js"),s=;/* empty css */,/* empty css */,/* empty css */;/* empty css */const d={key:0,class:"yc-modal-footer"},i=e.defineComponent({name:"Modal",inheritAttrs:!1,__name:"Modal",props:{visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!1},width:{default:400},top:{default:100},mask:{type:Boolean,default:!0},title:{default:""},titleAlign:{default:"center"},alignCenter:{type:Boolean,default:!0},unmountOnClose:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},hideCancel:{type:Boolean,default:!1},closable:{type:Boolean,default:!0},okText:{default:""},cancelText:{default:""},okLoading:{type:Boolean,default:!1},okButtonProps:{default:()=>({})},cancelButtonProps:{default:()=>({})},footer:{type:Boolean,default:!0},renderToBody:{type:Boolean,default:!0},popupContainer:{default:void 0},maskStyle:{default:()=>({})},modalClass:{default:""},modalStyle:{default:()=>({})},escToClose:{type:Boolean,default:!0},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},maskAnimationName:{default:"fade"},modalAnimationName:{default:"zoom-modal"},bodyClass:{default:""},bodyStyle:{default:()=>({})},hideTitle:{type:Boolean,default:!1},simple:{type:Boolean,default:!1},onBeforeCancel:{type:Function,default:()=>!0},onBeforeOk:{type:Function,default:()=>!0}},emits:["update:visible","ok","cancel","open","before-open","close","before-close"],setup(i,{emit:u}){const c=i,f=u,{visible:m,defaultVisible:p,width:y,top:k,alignCenter:B,maskClosable:C,escToClose:b,modalStyle:v,fullscreen:g,draggable:h,renderToBody:x}=e.toRefs(c),{onBeforeOk:S,onBeforeCancel:T}=c,{popupContainer:V,zIndex:N,isAbsolute:_}=o.getGlobalConfig(c),{t:w}=t.useI18n(),{outerVisible:A,innerVisible:j,asyncLoading:q,handleClose:z,handleAfterLeave:E}=a.default({visible:m,defaultVisible:p,escToClose:b,maskClosable:C,onBeforeOk:S,onBeforeCancel:T,emits:f}),$=e.ref(),D=e.ref(),{dragStyle:P,isDraggable:L}=n.default({visible:j,draggable:h,fullscreen:g,alignCenter:B,top:k,triggerRef:$,modalRef:D}),M=e.computed(()=>({width:g.value?"100%":"auto"==y.value?"fit-content":l.valueToPx(y.value),...P.value,...v.value}));return(o,l)=>(e.openBlock(),e.createBlock(e.Teleport,{to:e.unref(V),disabled:!e.unref(x)},[!o.unmountOnClose||e.unref(A)?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["yc-modal-container",o.$attrs.class,{"yc-modal-simple":o.simple,"yc-modal-position-absolute":e.unref(_)}]),style:e.normalizeStyle({zIndex:e.unref(N),...o.$attrs.style??{}})},[e.createVNode(e.Transition,{name:o.maskAnimationName},{default:e.withCtx(()=>[o.mask?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,class:"yc-modal-mask",style:e.normalizeStyle(o.maskStyle)},null,4)),[[e.vShow,e.unref(j)]]):e.createCommentVNode("",!0)]),_:1},8,["name"]),e.createElementVNode("div",{class:"yc-modal-wrapper",onClick:l[6]||(l[6]=e.withModifiers(o=>e.unref(z)("mask",o),["self"]))},[e.createVNode(e.Transition,{name:o.modalAnimationName,onBeforeEnter:l[3]||(l[3]=e=>o.$emit("before-open")),onBeforeLeave:l[4]||(l[4]=e=>o.$emit("before-close")),onAfterEnter:l[5]||(l[5]=e=>o.$emit("open")),onAfterLeave:e.unref(E)},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["yc-modal",o.modalClass,{"yc-modal-draggable":e.unref(L),"yc-modal-fullscreen":e.unref(g)}]),style:e.normalizeStyle(M.value),ref_key:"modalRef",ref:D},[e.renderSlot(o.$slots,"header",{},()=>[e.createElementVNode("div",{class:"yc-modal-header",ref_key:"headerRef",ref:$},[o.hideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["yc-modal-title","text-ellipsis",{"title-align-center":"center"==o.titleAlign}])},[e.renderSlot(o.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(o.title),1)])],2)),o.closable&&!o.simple?(e.openBlock(),e.createBlock(e.unref(s.default),{key:1,class:"yc-modal-close-button",onClick:l[0]||(l[0]=o=>e.unref(z)("closeBtn",o))})):e.createCommentVNode("",!0)],512)]),e.createElementVNode("div",{class:e.normalizeClass(["yc-modal-body",o.bodyClass]),style:e.normalizeStyle(o.bodyStyle)},[e.renderSlot(o.$slots,"default")],6),o.footer?(e.openBlock(),e.createElementBlock("div",d,[e.renderSlot(o.$slots,"footer",{},()=>[o.hideCancel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(r.default),e.mergeProps({key:0},o.cancelButtonProps,{onClick:l[1]||(l[1]=o=>e.unref(z)("cancelBtn",o))}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.cancelText||e.unref(w)("modal.cancelText")),1)]),_:1},16)),e.createVNode(e.unref(r.default),e.mergeProps({type:"primary",loading:o.okLoading||e.unref(q)},o.okButtonProps,{onClick:l[2]||(l[2]=o=>e.unref(z)("confirmBtn",o))}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.okText||e.unref(w)("modal.okText")),1)]),_:1},16,["loading"])])])):e.createCommentVNode("",!0)],6),[[e.vShow,e.unref(j)]])]),_:3},8,["name","onAfterLeave"])])],6)),[[e.vShow,e.unref(A)]]):e.createCommentVNode("",!0)],8,["to","disabled"]))}});exports.default=i;
@@ -1 +1 @@
1
- "use strict";const e=require("./Modal.vue.js");,/* empty css */module.exports=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Modal.vue.js");,/* empty css */exports.default=e.default;
@@ -1,12 +1,12 @@
1
1
  import { ModalServiceProps } from './type';
2
2
  declare const _default: import('vue').DefineComponent<ModalServiceProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ModalServiceProps> & Readonly<{}>, {
3
3
  top: number;
4
- unmountOnClose: boolean;
4
+ footer: boolean;
5
+ title: string & import('..').RenderContent;
5
6
  renderToBody: boolean;
7
+ unmountOnClose: boolean;
6
8
  width: number | string;
7
- content: import('../_shared/type').RenderContent;
8
- footer: boolean;
9
- title: string & import('../_shared/type').RenderContent;
9
+ content: import('..').RenderContent;
10
10
  mask: boolean;
11
11
  closable: boolean;
12
12
  bodyStyle: import('vue').CSSProperties;
@@ -20,14 +20,14 @@ declare const _default: import('vue').DefineComponent<ModalServiceProps, {}, {},
20
20
  okButtonProps: import('..').ButtonProps;
21
21
  cancelButtonProps: import('..').ButtonProps;
22
22
  maskStyle: import('vue').CSSProperties;
23
- modalClass: import('../_shared/type').ClassName;
23
+ modalClass: import('..').ClassName;
24
24
  modalStyle: import('vue').CSSProperties;
25
25
  escToClose: boolean;
26
26
  draggable: boolean;
27
27
  fullscreen: boolean;
28
28
  maskAnimationName: string;
29
29
  modalAnimationName: string;
30
- bodyClass: import('../_shared/type').ClassName;
30
+ bodyClass: import('..').ClassName;
31
31
  hideTitle: boolean;
32
32
  simple: boolean;
33
33
  onBeforeCancel: import('./type').OnBeforeCancel;
@@ -1 +1 @@
1
- "use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js");const o=require("../_shared/utils/vue-utils.js");require("../_shared/utils/locale.js");const l=require("../_shared/constants/index.js"),t=require("./Modal.vue.js");;/* empty css */const n={key:0,class:"yc-modal-title-icon"},a={class:"yc-modal-title-content text-ellipsis"},r={class:"yc-modal-body-content text-ellipsis"},u=e.defineComponent({__name:"ModalService",props:{width:{default:520},top:{default:100},mask:{type:Boolean,default:!0},title:{type:[String,Array,Function],default:""},titleAlign:{default:"center"},alignCenter:{type:Boolean,default:!0},unmountOnClose:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},hideCancel:{type:Boolean,default:!1},closable:{type:Boolean,default:!0},okText:{default:""},cancelText:{default:""},okLoading:{type:Boolean,default:!1},okButtonProps:{default:()=>({})},cancelButtonProps:{default:()=>({})},footer:{type:Boolean,default:!0},renderToBody:{type:Boolean,default:!0},maskStyle:{default:()=>({})},modalClass:{default:""},modalStyle:{default:()=>({})},escToClose:{type:Boolean,default:!0},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},maskAnimationName:{default:"fade"},modalAnimationName:{default:"zoom-modal"},bodyClass:{default:""},bodyStyle:{default:()=>({})},hideTitle:{type:Boolean,default:!1},simple:{type:Boolean,default:!1},onBeforeCancel:{type:Function,default:()=>!0},onBeforeOk:{type:Function,default:()=>!0},content:{type:[String,Array,Function],default:""},type:{},onOk:{},onCancel:{},onOpen:{},onClose:{},onBeforeOpen:{},onBeforeClose:{},serviceClose:{}},setup(u){const s=u,{onClose:d,serviceClose:c}=s,i=e.ref(!1),p=()=>{null==c||c(),null==d||d()};return e.onMounted(()=>{i.value=!0}),(u,d)=>(e.openBlock(),e.createBlock(t,e.mergeProps(s,{visible:i.value,"onUpdate:visible":d[0]||(d[0]=e=>i.value=e),"popup-container":".yc-overlay-modal","modal-class":["yc-service-modal",{[`yc-service-modal-${u.type}`]:!!u.type}],style:{position:"fixed"},onOk:d[1]||(d[1]=e=>{var o;return null==(o=u.onOk)?void 0:o.call(u)}),onCancel:d[2]||(d[2]=e=>{var o;return null==(o=u.onCancel)?void 0:o.call(u)}),onBeforeOpen:d[3]||(d[3]=e=>{var o;return null==(o=u.onBeforeOpen)?void 0:o.call(u)}),onBeforeClose:d[4]||(d[4]=e=>{var o;return null==(o=u.onBeforeClose)?void 0:o.call(u)}),onOpen:d[5]||(d[5]=e=>{var o;return null==(o=u.onOpen)?void 0:o.call(u)}),onClose:p}),{title:e.withCtx(()=>[u.type?(e.openBlock(),e.createElementBlock("span",n,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(l.TYPE_ICON_MAP)[u.type])))])):e.createCommentVNode("",!0),e.createElementVNode("span",a,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(o.getSlotFunction)(u.title))))])]),default:e.withCtx(()=>[e.createElementVNode("div",r,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(o.getSlotFunction)(u.content))))])]),_:1},16,["visible","modal-class"]))}});module.exports=u;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),o=require("../_shared/utils/vue-utils.js"),l=require("../_shared/constants/index.js"),t=require("./Modal.vue.js");;/* empty css */const n={key:0,class:"yc-modal-title-icon"},a={class:"yc-modal-title-content text-ellipsis"},u={class:"yc-modal-body-content text-ellipsis"},r=e.defineComponent({__name:"ModalService",props:{width:{default:520},top:{default:100},mask:{type:Boolean,default:!0},title:{type:[String,Array,Function],default:""},titleAlign:{default:"center"},alignCenter:{type:Boolean,default:!0},unmountOnClose:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},hideCancel:{type:Boolean,default:!1},closable:{type:Boolean,default:!0},okText:{default:""},cancelText:{default:""},okLoading:{type:Boolean,default:!1},okButtonProps:{default:()=>({})},cancelButtonProps:{default:()=>({})},footer:{type:Boolean,default:!0},renderToBody:{type:Boolean,default:!0},maskStyle:{default:()=>({})},modalClass:{default:""},modalStyle:{default:()=>({})},escToClose:{type:Boolean,default:!0},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},maskAnimationName:{default:"fade"},modalAnimationName:{default:"zoom-modal"},bodyClass:{default:""},bodyStyle:{default:()=>({})},hideTitle:{type:Boolean,default:!1},simple:{type:Boolean,default:!1},onBeforeCancel:{type:Function,default:()=>!0},onBeforeOk:{type:Function,default:()=>!0},content:{type:[String,Array,Function],default:""},type:{},onOk:{},onCancel:{},onOpen:{},onClose:{},onBeforeOpen:{},onBeforeClose:{},serviceClose:{}},setup(r){const d=r,{onClose:s,serviceClose:c}=d,i=e.ref(!1),p=()=>{null==c||c(),null==s||s()};return e.onMounted(()=>{i.value=!0}),(r,s)=>(e.openBlock(),e.createBlock(t.default,e.mergeProps(d,{visible:i.value,"onUpdate:visible":s[0]||(s[0]=e=>i.value=e),"popup-container":".yc-overlay-modal","modal-class":["yc-service-modal",{[`yc-service-modal-${r.type}`]:!!r.type}],style:{position:"fixed"},onOk:s[1]||(s[1]=e=>{var o;return null==(o=r.onOk)?void 0:o.call(r)}),onCancel:s[2]||(s[2]=e=>{var o;return null==(o=r.onCancel)?void 0:o.call(r)}),onBeforeOpen:s[3]||(s[3]=e=>{var o;return null==(o=r.onBeforeOpen)?void 0:o.call(r)}),onBeforeClose:s[4]||(s[4]=e=>{var o;return null==(o=r.onBeforeClose)?void 0:o.call(r)}),onOpen:s[5]||(s[5]=e=>{var o;return null==(o=r.onOpen)?void 0:o.call(r)}),onClose:p}),{title:e.withCtx(()=>[r.type?(e.openBlock(),e.createElementBlock("span",n,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(l.TYPE_ICON_MAP)[r.type])))])):e.createCommentVNode("",!0),e.createElementVNode("span",a,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(o.getSlotFunction)(r.title))))])]),default:e.withCtx(()=>[e.createElementVNode("div",u,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(o.getSlotFunction)(r.content))))])]),_:1},16,["visible","modal-class"]))}});exports.default=r;
@@ -1 +1 @@
1
- "use strict";const e=require("./ModalService.vue.js");,/* empty css */module.exports=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./ModalService.vue.js");,/* empty css */exports.default=e.default;
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),s=require("../../node_modules/@vueuse/core/index.js");require("../../node_modules/tinycolor2/esm/tinycolor.js"),require("../../_shared/utils/dom.js"),require("../../_shared/utils/time.js"),require("../../_shared/utils/locale.js");const l=require("../../_shared/utils/control.js"),r=require("./useOnBeforeClose.js");module.exports=i=>{const{maskClosable:a,escToClose:o,visible:u,defaultVisible:n,onBeforeCancel:t,onBeforeOk:c,emits:d}=i,v=l(u,n.value,e=>{d("update:visible",e)}),m=e.ref(!1),f=e.ref(!1),q=e.ref(!1),h=async(e,s,l=!0)=>{(!["confirmBtn","cancelBtn"].includes(e)||await r(e,q,c,t))&&("mask"!=e||a.value)&&("confirmBtn"==e&&d("ok"),l&&d("cancel",s),v.value=!1)};return o.value&&s.onKeyStroke(["Escape"],e=>{v.value&&h("esc",e)}),e.watch(()=>v.value,async s=>{s?(m.value=s,await e.nextTick(),f.value=s):f.value=s},{immediate:!0}),{asyncLoading:q,outerVisible:m,innerVisible:f,handleClose:h,handleAfterLeave:()=>{d("close"),m.value=!1}}};
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("../../node_modules/@vueuse/core/index.js"),a=require("../../_shared/utils/control.js"),s=require("./useOnBeforeClose.js");exports.default=o=>{const{maskClosable:u,escToClose:r,visible:i,defaultVisible:n,onBeforeCancel:t,onBeforeOk:c,emits:v}=o,d=a.useControlValue(i,n.value,e=>{v("update:visible",e)}),f=e.ref(!1),m=e.ref(!1),b=e.ref(!1),k=async(e,l,a=!0)=>{(!["confirmBtn","cancelBtn"].includes(e)||await s.default(e,b,c,t))&&("mask"!=e||u.value)&&("confirmBtn"==e&&v("ok"),a&&v("cancel",l),d.value=!1)};return r.value&&l.onKeyStroke(["Escape"],e=>{d.value&&k("esc",e)}),e.watch(()=>d.value,async l=>{l?(f.value=l,await e.nextTick(),m.value=l):m.value=l},{immediate:!0}),{asyncLoading:b,outerVisible:f,innerVisible:m,handleClose:k,handleAfterLeave:()=>{v("close"),f.value=!1}}};
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),u=require("../../node_modules/@vueuse/core/index.js");require("../../node_modules/tinycolor2/esm/tinycolor.js");const l=require("../../_shared/utils/dom.js");require("../../_shared/utils/time.js"),require("../../_shared/utils/locale.js");module.exports=a=>{const{visible:v,triggerRef:r,modalRef:t,draggable:i,fullscreen:o,alignCenter:s,top:n}=a,d=e.ref(0),f=e.ref(0),{x:c,y:g}=u.useDraggable(r,{onMove(){if(!h.value)return;const e=window.innerWidth-t.value.offsetWidth,u=window.innerHeight-t.value.offsetHeight;c.value=c.value>=e?e:c.value,c.value=c.value<=0?0:c.value,g.value=g.value>=u?u:g.value,g.value=g.value<=0?0:g.value}}),h=e.computed(()=>i.value&&!o.value),m=e.computed(()=>!h.value||c.value==d.value&&g.value==f.value?{left:l.valueToPx(d.value),top:l.valueToPx(f.value)}:{transform:`translate(${l.valueToPx(c.value)},${l.valueToPx(g.value)})`});return e.watch(()=>v.value,async e=>{if(!e)return;await l.sleep(0);const u=(window.innerWidth-t.value.offsetWidth)/2,a=(window.innerHeight-t.value.offsetHeight)/2,v=u<=0?0:u,r=a<=0?0:a;d.value=v,f.value=s.value?r:n.value,c.value=d.value,g.value=f.value},{immediate:!0}),{dragStyle:m,isDraggable:h}};
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("../../node_modules/@vueuse/core/index.js"),u=require("../../_shared/utils/dom.js");exports.default=l=>{const{visible:v,triggerRef:t,modalRef:r,draggable:i,fullscreen:o,alignCenter:n,top:s}=l,d=e.ref(0),f=e.ref(0),{x:g,y:c}=a.useDraggable(t,{onMove(){if(!h.value)return;const e=window.innerWidth-r.value.offsetWidth,a=window.innerHeight-r.value.offsetHeight;g.value=g.value>=e?e:g.value,g.value=g.value<=0?0:g.value,c.value=c.value>=a?a:c.value,c.value=c.value<=0?0:c.value}}),h=e.computed(()=>i.value&&!o.value),w=e.computed(()=>!h.value||g.value==d.value&&c.value==f.value?{left:u.valueToPx(d.value),top:u.valueToPx(f.value)}:{transform:`translate(${u.valueToPx(g.value)},${u.valueToPx(c.value)})`});return e.watch(()=>v.value,async e=>{if(!e)return;await u.sleep(0);const a=(window.innerWidth-r.value.offsetWidth)/2,l=(window.innerHeight-r.value.offsetHeight)/2,v=a<=0?0:a,t=l<=0?0:l;d.value=v,f.value=n.value?t:s.value,g.value=d.value,c.value=f.value},{immediate:!0}),{dragStyle:w,isDraggable:h}};
@@ -1 +1 @@
1
- "use strict";require("../../node_modules/tinycolor2/esm/tinycolor.js"),require("../../_shared/utils/dom.js");const e=require("../../_shared/utils/is.js");require("../../_shared/utils/time.js"),require("vue"),require("../../_shared/utils/locale.js");module.exports=async(s,r,i,t)=>{let o;return"confirmBtn"==s?(r.value=!0,o=await new Promise(async s=>{const r=i(s);let t=!0;if(e.isBoolean(r))t=r;else if(r instanceof Promise)try{const s=await r;e.isBoolean(s)&&(t=s)}catch{t=!1}s(t)}),r.value=!1):o=t(),o};
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../_shared/utils/is.js");exports.default=async(t,s,o,a)=>{let i;return"confirmBtn"==t?(s.value=!0,i=await new Promise(async t=>{const s=o(t);let a=!0;if(e.isBoolean(s))a=s;else if(s instanceof Promise)try{const t=await s;e.isBoolean(t)&&(a=t)}catch{a=!1}t(a)}),s.value=!1):i=a(),i};
@@ -1,5 +1,5 @@
1
1
  import { App } from 'vue';
2
- import { ModalConfig } from './type';
2
+ import { ModalConfig, ModalMethod } from './type';
3
3
  import { default as _Modal } from './Modal.vue';
4
4
  export type ModalInstance = InstanceType<typeof _Modal>;
5
5
  export * from './type';
@@ -22,13 +22,13 @@ declare const Modal: {
22
22
  "before-close": () => any;
23
23
  }, import('vue').PublicProps, {
24
24
  top: number;
25
- unmountOnClose: boolean;
25
+ footer: boolean;
26
+ title: string;
26
27
  popupContainer: import('..').PopupContainer;
27
28
  renderToBody: boolean;
29
+ unmountOnClose: boolean;
28
30
  width: number | string;
29
31
  visible: boolean;
30
- footer: boolean;
31
- title: string;
32
32
  mask: boolean;
33
33
  defaultVisible: boolean;
34
34
  closable: boolean;
@@ -43,14 +43,14 @@ declare const Modal: {
43
43
  okButtonProps: import('..').ButtonProps;
44
44
  cancelButtonProps: import('..').ButtonProps;
45
45
  maskStyle: import('vue').CSSProperties;
46
- modalClass: import('../_shared/type').ClassName;
46
+ modalClass: import('..').ClassName;
47
47
  modalStyle: import('vue').CSSProperties;
48
48
  escToClose: boolean;
49
49
  draggable: boolean;
50
50
  fullscreen: boolean;
51
51
  maskAnimationName: string;
52
52
  modalAnimationName: string;
53
- bodyClass: import('../_shared/type').ClassName;
53
+ bodyClass: import('..').ClassName;
54
54
  hideTitle: boolean;
55
55
  simple: boolean;
56
56
  onBeforeCancel: import('./type').OnBeforeCancel;
@@ -75,13 +75,13 @@ declare const Modal: {
75
75
  "onBefore-close"?: (() => any) | undefined;
76
76
  }>, {}, {}, {}, {}, {
77
77
  top: number;
78
- unmountOnClose: boolean;
78
+ footer: boolean;
79
+ title: string;
79
80
  popupContainer: import('..').PopupContainer;
80
81
  renderToBody: boolean;
82
+ unmountOnClose: boolean;
81
83
  width: number | string;
82
84
  visible: boolean;
83
- footer: boolean;
84
- title: string;
85
85
  mask: boolean;
86
86
  defaultVisible: boolean;
87
87
  closable: boolean;
@@ -96,14 +96,14 @@ declare const Modal: {
96
96
  okButtonProps: import('..').ButtonProps;
97
97
  cancelButtonProps: import('..').ButtonProps;
98
98
  maskStyle: import('vue').CSSProperties;
99
- modalClass: import('../_shared/type').ClassName;
99
+ modalClass: import('..').ClassName;
100
100
  modalStyle: import('vue').CSSProperties;
101
101
  escToClose: boolean;
102
102
  draggable: boolean;
103
103
  fullscreen: boolean;
104
104
  maskAnimationName: string;
105
105
  modalAnimationName: string;
106
- bodyClass: import('../_shared/type').ClassName;
106
+ bodyClass: import('..').ClassName;
107
107
  hideTitle: boolean;
108
108
  simple: boolean;
109
109
  onBeforeCancel: import('./type').OnBeforeCancel;
@@ -130,13 +130,13 @@ declare const Modal: {
130
130
  "before-close": () => any;
131
131
  }, string, {
132
132
  top: number;
133
- unmountOnClose: boolean;
133
+ footer: boolean;
134
+ title: string;
134
135
  popupContainer: import('..').PopupContainer;
135
136
  renderToBody: boolean;
137
+ unmountOnClose: boolean;
136
138
  width: number | string;
137
139
  visible: boolean;
138
- footer: boolean;
139
- title: string;
140
140
  mask: boolean;
141
141
  defaultVisible: boolean;
142
142
  closable: boolean;
@@ -151,14 +151,14 @@ declare const Modal: {
151
151
  okButtonProps: import('..').ButtonProps;
152
152
  cancelButtonProps: import('..').ButtonProps;
153
153
  maskStyle: import('vue').CSSProperties;
154
- modalClass: import('../_shared/type').ClassName;
154
+ modalClass: import('..').ClassName;
155
155
  modalStyle: import('vue').CSSProperties;
156
156
  escToClose: boolean;
157
157
  draggable: boolean;
158
158
  fullscreen: boolean;
159
159
  maskAnimationName: string;
160
160
  modalAnimationName: string;
161
- bodyClass: import('../_shared/type').ClassName;
161
+ bodyClass: import('..').ClassName;
162
162
  hideTitle: boolean;
163
163
  simple: boolean;
164
164
  onBeforeCancel: import('./type').OnBeforeCancel;
@@ -178,8 +178,10 @@ declare module 'vue' {
178
178
  interface GlobalComponents {
179
179
  YcModal: typeof Modal;
180
180
  }
181
+ }
182
+ declare module '@vue/runtime-core' {
181
183
  interface ComponentCustomProperties {
182
- $modal: typeof Modal;
184
+ $modal: ModalMethod;
183
185
  }
184
186
  }
185
187
  export default Modal;
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),r=require("./Modal.vue.js");;/* empty css */const o=require("./ModalService.vue.js");let n;;/* empty css */const s=r=>{n||(n=document.createElement("div"),n.className="yc-overlay yc-overlay-modal",document.body.append(n));const s=()=>{e.render(null,n)},c=e.h(o,{...r,serviceClose:s});return e.render(c,n),{close:s,update:e=>{}}},c={open:s,...Object.fromEntries(["info","warning","error","success","confirm"].map(e=>[e,r=>s({...r,type:e,simple:!0,hideCancel:"confirm"!=e,width:400})]))},i=Object.assign(r,{install:e=>{e.component("Yc"+r.name,r),e.config.globalProperties.$modal=Object.assign(i,c)},...c});module.exports=i;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("./Modal.vue.js");;/* empty css */const o=require("./ModalService.vue.js");let t;;/* empty css */const l=r=>{t||(t=document.createElement("div"),t.className="yc-overlay yc-overlay-modal",document.body.append(t));const l=()=>{e.render(null,t)},a=e.h(o.default,{...r,serviceClose:l});return e.render(a,t),{close:l,update:e=>{}}},a={open:l,...Object.fromEntries(["info","warning","error","success","confirm"].map(e=>[e,r=>l({...r,type:e,simple:!0,hideCancel:"confirm"!=e,width:400})]))},n=Object.assign(r.default,{install:e=>{e.component("Yc"+r.default.name,r.default),e.config.globalProperties.$modal=a},...a});exports.default=n;
@@ -53,6 +53,10 @@ export interface ModalSlots {
53
53
  footer?: () => VNode[];
54
54
  title?: () => VNode[];
55
55
  }
56
+ export type ModalType = 'success' | 'warning' | 'error' | 'info';
57
+ export type ModalTitleAlign = 'start' | 'center';
58
+ export type OnBeforeOk = (done: (closed: boolean) => void) => void | boolean | Promise<boolean | void>;
59
+ export type OnBeforeCancel = () => boolean;
56
60
  export type ModalConfig = Omit<ModalProps, 'visible' | 'defaultVisible' | 'popupContainer'> & {
57
61
  title?: RenderContent;
58
62
  content?: RenderContent;
@@ -68,10 +72,6 @@ export type ModalUpdateConfig = Omit<ModalConfig, 'title' | 'content' | 'footer'
68
72
  export type ModalServiceProps = ModalConfig & {
69
73
  serviceClose?: () => void;
70
74
  };
71
- export type ModalReturn = {
72
- close: () => void;
73
- update: (config: ModalUpdateConfig) => void;
74
- };
75
75
  export type ModalMethod = {
76
76
  open: (props: ModalConfig) => ModalReturn;
77
77
  success: (props: ModalConfig) => ModalReturn;
@@ -80,7 +80,7 @@ export type ModalMethod = {
80
80
  info: (props: ModalConfig) => ModalReturn;
81
81
  confirm: (props: ModalConfig) => ModuleStatus;
82
82
  };
83
- export type ModalType = 'info' | 'warning' | 'error' | 'success';
84
- export type ModalTitleAlign = 'start' | 'center';
85
- export type OnBeforeOk = (done: (closed: boolean) => void) => void | boolean | Promise<boolean | void>;
86
- export type OnBeforeCancel = () => boolean;
83
+ export type ModalReturn = {
84
+ close: () => void;
85
+ update: (config: ModalUpdateConfig) => void;
86
+ };
@@ -1,15 +1,15 @@
1
1
  import { NotificationProps } from './type';
2
2
  declare const _default: import('vue').DefineComponent<NotificationProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<NotificationProps> & Readonly<{}>, {
3
- duration: number;
4
- content: import('../_shared/type').RenderContent;
5
- style: import('vue').CSSProperties;
6
- icon: import('vue').RenderFunction;
7
3
  type: import('./type').NotificationType;
8
4
  footer: import('vue').RenderFunction;
9
- title: import('../_shared/type').RenderContent;
10
- class: import('../_shared/type').ClassName;
11
- closable: boolean;
5
+ style: import('vue').CSSProperties;
6
+ title: import('..').RenderContent;
12
7
  onClose: (id: string | number) => void;
8
+ class: import('..').ClassName;
9
+ duration: number;
10
+ content: import('..').RenderContent;
11
+ icon: import('vue').RenderFunction;
12
+ closable: boolean;
13
13
  id: string;
14
14
  showIcon: boolean;
15
15
  isReset: boolean;
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),o=require("../_shared/constants/index.js");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const t=require("../_shared/utils/is.js");require("../_shared/utils/time.js");const n=require("../_shared/utils/vue-utils.js");require("../_shared/utils/locale.js");const c=;/* empty css */,/* empty css */,/* empty css */;/* empty css */const l=require("../node_modules/@vueuse/shared/index.js"),i={class:"yc-notification-left"},s={key:0,class:"yc-notification-icon"},a={class:"yc-notification-right"},r={key:0,class:"yc-notification-title"},u={key:1,class:"yc-notification-content"},d={key:2,class:"yc-notification-footer"},m=e.defineComponent({name:"Notification",__name:"Notification",props:{type:{default:"info"},content:{type:[String,Array,Function],default:""},title:{type:[String,Array,Function],default:""},icon:{type:Function,default:void 0},id:{default:""},style:{default:()=>({})},class:{default:""},showIcon:{type:Boolean,default:!0},closable:{type:Boolean,default:!1},duration:{default:3e3},isReset:{type:Boolean,default:!1},footer:{type:Function,default:void 0},closeIcon:{type:Function,default:void 0},closeIconElement:{type:Function,default:void 0},onClose:{type:Function,default:void 0},onDestory:{}},setup(m){const f=m,{type:y,id:p,duration:k,class:v,isReset:B}=e.toRefs(f),{onClose:C,onDestory:_}=f,{start:h,stop:q}=l.useTimeoutFn(()=>{null==_||_(p.value),null==C||C(p.value)},()=>k.value,{immediate:!1});e.watch(()=>B.value,e=>{k.value<=0||!e||(q(),h())});const E=()=>{q(),null==_||_(p.value),null==C||C(p.value)};return e.onMounted(()=>{k.value<=0||h()}),(l,m)=>(e.openBlock(),e.createElementBlock("li",{role:"alert",class:e.normalizeClass(["yc-notification",`yc-notification-${e.unref(y)}`,e.unref(v)]),style:e.normalizeStyle(l.style)},[e.createElementVNode("div",i,[l.showIcon?(e.openBlock(),e.createElementBlock("div",s,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.icon??e.unref(o.TYPE_ICON_MAP)[e.unref(y)])))])):e.createCommentVNode("",!0)]),e.createElementVNode("div",a,[e.unref(t.isUndefined)(l.title)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",r,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(n.getSlotFunction)(l.title))))])),e.unref(t.isUndefined)(l.content)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",u,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(n.getSlotFunction)(l.content))))])),e.unref(t.isFunction)(l.footer)?(e.openBlock(),e.createElementBlock("div",d,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.footer)))])):e.createCommentVNode("",!0)]),l.closable?(e.openBlock(),e.createElementBlock("div",{key:0,class:"yc-notification-close-btn",onClick:E},[l.closeIconElement?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.closeIconElement),{key:0})):(e.openBlock(),e.createBlock(e.unref(c),{key:1},{default:e.withCtx(()=>[l.closeIcon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.closeIcon),{key:0})):e.createCommentVNode("",!0)]),_:1}))])):e.createCommentVNode("",!0)],6))}});module.exports=m;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),o=require("../_shared/constants/index.js"),t=require("../_shared/utils/is.js"),n=require("../_shared/utils/vue-utils.js"),c=;/* empty css */,/* empty css */require("../_shared/utils/dom.js"),/* empty css */;/* empty css */const l=require("../node_modules/@vueuse/shared/index.js"),i={class:"yc-notification-left"},a={key:0,class:"yc-notification-icon"},s={class:"yc-notification-right"},r={key:0,class:"yc-notification-title"},u={key:1,class:"yc-notification-content"},d={key:2,class:"yc-notification-footer"},f=e.defineComponent({name:"Notification",__name:"Notification",props:{type:{default:"info"},content:{type:[String,Array,Function],default:""},title:{type:[String,Array,Function],default:""},icon:{type:Function,default:void 0},id:{default:""},style:{default:()=>({})},class:{default:""},showIcon:{type:Boolean,default:!0},closable:{type:Boolean,default:!1},duration:{default:3e3},isReset:{type:Boolean,default:!1},footer:{type:Function,default:void 0},closeIcon:{type:Function,default:void 0},closeIconElement:{type:Function,default:void 0},onClose:{type:Function,default:void 0},onDestory:{}},setup(f){const m=f,{type:p,id:y,duration:k,class:v,isReset:B}=e.toRefs(m),{onClose:C,onDestory:_}=m,{start:h,stop:E}=l.useTimeoutFn(()=>{null==_||_(y.value),null==C||C(y.value)},()=>k.value,{immediate:!1});e.watch(()=>B.value,e=>{k.value<=0||!e||(E(),h())});const I=()=>{E(),null==_||_(y.value),null==C||C(y.value)};return e.onMounted(()=>{k.value<=0||h()}),(l,f)=>(e.openBlock(),e.createElementBlock("li",{role:"alert",class:e.normalizeClass(["yc-notification",`yc-notification-${e.unref(p)}`,e.unref(v)]),style:e.normalizeStyle(l.style)},[e.createElementVNode("div",i,[l.showIcon?(e.openBlock(),e.createElementBlock("div",a,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.icon??e.unref(o.TYPE_ICON_MAP)[e.unref(p)])))])):e.createCommentVNode("",!0)]),e.createElementVNode("div",s,[e.unref(t.isUndefined)(l.title)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",r,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(n.getSlotFunction)(l.title))))])),e.unref(t.isUndefined)(l.content)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",u,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(n.getSlotFunction)(l.content))))])),e.unref(t.isFunction)(l.footer)?(e.openBlock(),e.createElementBlock("div",d,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.footer)))])):e.createCommentVNode("",!0)]),l.closable?(e.openBlock(),e.createElementBlock("div",{key:0,class:"yc-notification-close-btn",onClick:I},[l.closeIconElement?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.closeIconElement),{key:0})):(e.openBlock(),e.createBlock(e.unref(c.default),{key:1},{default:e.withCtx(()=>[l.closeIcon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.closeIcon),{key:0})):e.createCommentVNode("",!0)]),_:1}))])):e.createCommentVNode("",!0)],6))}});exports.default=f;
@@ -1 +1 @@
1
- "use strict";const e=require("./Notification.vue.js");,/* empty css */module.exports=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Notification.vue.js");,/* empty css */exports.default=e.default;
@@ -1 +1 @@
1
- "use strict";const i=require("vue"),t=require("./Notification.vue.js");;/* empty css */const e=i.defineComponent({__name:"NotificationList",props:{notificationList:{default:()=>[]},position:{default:"topRight"}},setup(e){const o=e,n=i.computed(()=>`slide-${o.position.includes("Right")?"right":"left"}-notification`);return(e,o)=>(i.openBlock(),i.createBlock(i.TransitionGroup,{name:n.value,class:i.normalizeClass(["yc-notification-list",`yc-notification-list-${e.position}`]),tag:"div"},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.notificationList,e=>(i.openBlock(),i.createBlock(t,i.mergeProps({key:e.id},{ref_for:!0},e),null,16))),128))]),_:1},8,["name","class"]))}});module.exports=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=require("./Notification.vue.js");;/* empty css */const i=e.defineComponent({__name:"NotificationList",props:{notificationList:{default:()=>[]},position:{default:"topRight"}},setup(i){const o=i,n=e.computed(()=>`slide-${o.position.includes("Right")?"right":"left"}-notification`);return(i,o)=>(e.openBlock(),e.createBlock(e.TransitionGroup,{name:n.value,class:e.normalizeClass(["yc-notification-list",`yc-notification-list-${i.position}`]),tag:"div"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.notificationList,i=>(e.openBlock(),e.createBlock(t.default,e.mergeProps({key:i.id},{ref_for:!0},i),null,16))),128))]),_:1},8,["name","class"]))}});exports.default=i;
@@ -1 +1 @@
1
- "use strict";const i=require("./NotificationList.vue.js");,/* empty css */module.exports=i;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./NotificationList.vue.js");,/* empty css */exports.default=e.default;
@@ -1,20 +1,21 @@
1
1
  import { App } from 'vue';
2
2
  import { default as _Notification } from './Notification.vue';
3
- import { NotificationConfig, NotificationProps, NotificationType, NotificationPosition } from './type';
3
+ import { NotificationMethod, NotificationConfig, NotificationProps, NotificationType, NotificationPosition } from './type';
4
4
  export type NotificationInstance = InstanceType<typeof _Notification>;
5
5
  export * from './type';
6
+ declare const NotificationMethod: NotificationMethod;
6
7
  declare const Notification: {
7
8
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<NotificationProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
8
- duration: number;
9
- content: import('../_shared/type').RenderContent;
10
- style: import('vue').CSSProperties;
11
- icon: import('vue').RenderFunction;
12
9
  type: NotificationType;
13
10
  footer: import('vue').RenderFunction;
14
- title: import('../_shared/type').RenderContent;
15
- class: import('../_shared/type').ClassName;
16
- closable: boolean;
11
+ style: import('vue').CSSProperties;
12
+ title: import('..').RenderContent;
17
13
  onClose: (id: string | number) => void;
14
+ class: import('..').ClassName;
15
+ duration: number;
16
+ content: import('..').RenderContent;
17
+ icon: import('vue').RenderFunction;
18
+ closable: boolean;
18
19
  id: string;
19
20
  showIcon: boolean;
20
21
  isReset: boolean;
@@ -28,16 +29,16 @@ declare const Notification: {
28
29
  M: {};
29
30
  Defaults: {};
30
31
  }, Readonly<NotificationProps> & Readonly<{}>, {}, {}, {}, {}, {
31
- duration: number;
32
- content: import('../_shared/type').RenderContent;
33
- style: import('vue').CSSProperties;
34
- icon: import('vue').RenderFunction;
35
32
  type: NotificationType;
36
33
  footer: import('vue').RenderFunction;
37
- title: import('../_shared/type').RenderContent;
38
- class: import('../_shared/type').ClassName;
39
- closable: boolean;
34
+ style: import('vue').CSSProperties;
35
+ title: import('..').RenderContent;
40
36
  onClose: (id: string | number) => void;
37
+ class: import('..').ClassName;
38
+ duration: number;
39
+ content: import('..').RenderContent;
40
+ icon: import('vue').RenderFunction;
41
+ closable: boolean;
41
42
  id: string;
42
43
  showIcon: boolean;
43
44
  isReset: boolean;
@@ -48,16 +49,16 @@ declare const Notification: {
48
49
  __isTeleport?: never;
49
50
  __isSuspense?: never;
50
51
  } & import('vue').ComponentOptionsBase<Readonly<NotificationProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
51
- duration: number;
52
- content: import('../_shared/type').RenderContent;
53
- style: import('vue').CSSProperties;
54
- icon: import('vue').RenderFunction;
55
52
  type: NotificationType;
56
53
  footer: import('vue').RenderFunction;
57
- title: import('../_shared/type').RenderContent;
58
- class: import('../_shared/type').ClassName;
59
- closable: boolean;
54
+ style: import('vue').CSSProperties;
55
+ title: import('..').RenderContent;
60
56
  onClose: (id: string | number) => void;
57
+ class: import('..').ClassName;
58
+ duration: number;
59
+ content: import('..').RenderContent;
60
+ icon: import('vue').RenderFunction;
61
+ closable: boolean;
61
62
  id: string;
62
63
  showIcon: boolean;
63
64
  isReset: boolean;
@@ -72,9 +73,9 @@ declare const Notification: {
72
73
  clear: (position: NotificationPosition) => import('./type').NotificationReturn;
73
74
  install: (app: App) => void;
74
75
  };
75
- declare module 'vue' {
76
+ declare module '@vue/runtime-core' {
76
77
  interface ComponentCustomProperties {
77
- $notification: typeof Notification;
78
+ $notification: NotificationMethod;
78
79
  }
79
80
  }
80
81
  export default Notification;
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),i=require("./Notification.vue.js");;/* empty css */const t=require("./NotificationList.vue.js");,/* empty css */require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const o=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../_shared/utils/locale.js");const s=new Map,n=e.reactive({topLeft:[],topRight:[],bottomLeft:[],bottomRight:[]});let r=1;const c=e=>{n[e].length||(document.body.removeChild(s.get(e)),s.delete(e))},d={...Object.fromEntries(["success","warning","error","info"].map(i=>[i,d=>((i,d="info")=>{const a=o.isString(i)?"topRight":i.position??"topRight",l=n[a];if(!s.has(a)){const i=document.createElement("div");i.className="yc-overlay yc-overlay-notification",document.body.appendChild(i),s.set(a,i),e.render(e.h(t,{notificationList:l,position:a}),i)}const u=o.isString(i)||!i.id?"__yc_notification_"+r++:i.id,f=()=>{const e=l.findIndex(e=>e.id==u);-1!=e&&(l.splice(e,1),c(a))},p=o.isString(i)?{content:i,id:u,onDestory:f,type:d}:{...i,id:u,onDestory:f,type:d},h=l.findIndex(e=>e.id==u);return-1!=h?(l[h]={...l[h],...p,isReset:!0},e.nextTick().then(()=>{l[h].isReset=!1})):l.push(p),{close:f}})(d,i)])),remove(e){let i="topRight",t=-1;for(let[o,s]of Object.entries(n)){const n=s.findIndex(i=>i.id==e);if(-1!=n){i=o,t=n;break}}-1!=t&&n[i].splice(t,1)},clear(e){n[e].splice(0),c(e)}},a=Object.assign(i,{install:e=>{e.config.globalProperties.$notification=Object.assign(i,d)},...d});module.exports=a;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=require("./Notification.vue.js");;/* empty css */const i=require("./NotificationList.vue.js");;/* empty css */const o=require("../_shared/utils/is.js"),n=new Map,s=e.reactive({topLeft:[],topRight:[],bottomLeft:[],bottomRight:[]});let r=1;const c=e=>{s[e].length||(document.body.removeChild(n.get(e)),n.delete(e))},a={...Object.fromEntries(["success","warning","error","info"].map(t=>[t,a=>((t,a="info")=>{const d=o.isString(t)?"topRight":t.position??"topRight",l=s[d];if(!n.has(d)){const t=document.createElement("div");t.className="yc-overlay yc-overlay-notification",document.body.appendChild(t),n.set(d,t),e.render(e.h(i.default,{notificationList:l,position:d}),t)}const u=o.isString(t)||!t.id?"__yc_notification_"+r++:t.id,f=()=>{const e=l.findIndex(e=>e.id==u);-1!=e&&(l.splice(e,1),c(d))},p=o.isString(t)?{content:t,id:u,onDestory:f,type:a}:{...t,id:u,onDestory:f,type:a},g=l.findIndex(e=>e.id==u);return-1!=g?(l[g]={...l[g],...p,isReset:!0},e.nextTick().then(()=>{l[g].isReset=!1})):l.push(p),{close:f}})(a,t)])),remove(e){let t="topRight",i=-1;for(let[o,n]of Object.entries(s)){const s=n.findIndex(t=>t.id==e);if(-1!=s){t=o,i=s;break}}-1!=i&&s[t].splice(i,1)},clear(e){s[e].splice(0),c(e)}},d=Object.assign(t.default,{install:e=>{e.config.globalProperties.$notification=a},...a});exports.default=d;