yc-design-vue 2.0.2 → 2.0.3

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 (516) hide show
  1. package/es/Affix/type.d.ts +1 -1
  2. package/es/Alert/index.vue.js +2 -2
  3. package/es/Alert/type.d.ts +1 -1
  4. package/es/Anchor/hooks/useContext.d.ts +2 -2
  5. package/es/Anchor/type.d.ts +1 -1
  6. package/es/AutoComplete/index.d.ts +27 -27
  7. package/es/AutoComplete/index.vue.d.ts +49 -49
  8. package/es/AutoComplete/type.d.ts +6 -8
  9. package/es/Avatar/Avatar.vue.d.ts +1 -1
  10. package/es/Avatar/Avatar.vue.js +1 -1
  11. package/es/Avatar/hooks/useContext.d.ts +3 -3
  12. package/es/Avatar/index.d.ts +3 -3
  13. package/es/Avatar/type.d.ts +2 -2
  14. package/es/BackTop/index.vue.js +1 -1
  15. package/es/BackTop/type.d.ts +1 -1
  16. package/es/Badge/type.d.ts +1 -1
  17. package/es/Breadcrumb/BreadcrumbItem.vue.js +1 -1
  18. package/es/Breadcrumb/BreadcrumbMore.vue.js +1 -1
  19. package/es/Breadcrumb/BreadcrumbSeparator.vue.js +2 -2
  20. package/es/Breadcrumb/type.d.ts +1 -1
  21. package/es/Button/Button.vue.d.ts +1 -1
  22. package/es/Button/ButtonGroup.vue.d.ts +1 -1
  23. package/es/Button/hooks/useContext.d.ts +5 -5
  24. package/es/Button/index.d.ts +6 -6
  25. package/es/Button/type.d.ts +4 -5
  26. package/es/Calendar/Calendar.vue.js +2 -2
  27. package/es/Card/type.d.ts +2 -1
  28. package/es/Carousel/Carousel.vue.d.ts +3 -3
  29. package/es/Carousel/CarouselArrow.vue.js +1 -1
  30. package/es/Carousel/CarouselIndicator.vue.d.ts +3 -3
  31. package/es/Carousel/hooks/useContext.d.ts +3 -3
  32. package/es/Carousel/index.d.ts +9 -9
  33. package/es/Carousel/type.d.ts +2 -3
  34. package/es/Cascader/Cascader.vue.d.ts +13 -25
  35. package/es/Cascader/Cascader.vue.js +1 -1
  36. package/es/Cascader/CascaderIcon.vue.js +2 -2
  37. package/es/Cascader/CascaderOption.vue.js +1 -1
  38. package/es/Cascader/hooks/useContext.d.ts +5 -17
  39. package/es/Cascader/index.d.ts +17 -29
  40. package/es/Cascader/type.d.ts +5 -7
  41. package/es/Checkbox/Checkbox.vue.js +2 -2
  42. package/es/Checkbox/hooks/useContext.d.ts +3 -3
  43. package/es/Checkbox/type.d.ts +3 -3
  44. package/es/Collapse/CollapseItem.vue.js +2 -2
  45. package/es/Collapse/hooks/useContext.d.ts +5 -5
  46. package/es/Collapse/type.d.ts +2 -2
  47. package/es/ColorPicker/hooks/useContext.d.ts +2 -2
  48. package/es/ConfigProvider/index.d.ts +3 -3
  49. package/es/ConfigProvider/index.vue.d.ts +1 -1
  50. package/es/ConfigProvider/type.d.ts +2 -3
  51. package/es/Descriptions/hooks/useContext.d.ts +2 -2
  52. package/es/Descriptions/type.d.ts +1 -2
  53. package/es/Drawer/Drawer.vue.js +2 -2
  54. package/es/Drawer/DrawerService.vue.d.ts +1 -1
  55. package/es/Dropdown/Doption.vue.js +1 -1
  56. package/es/Dropdown/Dropdown.vue.d.ts +1 -1
  57. package/es/Dropdown/Dropdown.vue.js +1 -1
  58. package/es/Dropdown/DropdownButton.vue.js +1 -1
  59. package/es/Dropdown/Dsubmenu.vue.d.ts +20 -20
  60. package/es/Dropdown/Dsubmenu.vue.js +2 -2
  61. package/es/Dropdown/hooks/useContext.d.ts +2 -2
  62. package/es/Dropdown/index.d.ts +18 -18
  63. package/es/Dropdown/type.d.ts +5 -6
  64. package/es/Empty/index.vue.js +1 -1
  65. package/es/Grid/Grid.vue.d.ts +3 -3
  66. package/es/Grid/GridCol.vue.d.ts +2 -2
  67. package/es/Grid/GridItem.vue.d.ts +2 -2
  68. package/es/Grid/GridRow.vue.d.ts +1 -1
  69. package/es/Grid/hooks/useContext.d.ts +4 -4
  70. package/es/Grid/index.d.ts +24 -24
  71. package/es/Grid/type.d.ts +4 -12
  72. package/es/Image/Image.vue.d.ts +1 -1
  73. package/es/Image/Image.vue.js +1 -1
  74. package/es/Image/ImagePreview.vue.js +1 -1
  75. package/es/Image/ImagePreviewArrow.vue.js +1 -1
  76. package/es/Image/ImagePreviewToolbar.vue.js +1 -1
  77. package/es/Image/hooks/useContext.d.ts +2 -2
  78. package/es/Image/index.d.ts +3 -3
  79. package/es/Image/type.d.ts +2 -3
  80. package/es/Input/Input.vue.d.ts +1 -1
  81. package/es/Input/Input.vue.js +2 -2
  82. package/es/Input/InputSuffix.vue.js +2 -2
  83. package/es/Input/hooks/useLimitedInput.d.ts +3 -3
  84. package/es/Input/index.d.ts +3 -3
  85. package/es/Input/type.d.ts +2 -2
  86. package/es/InputNumber/InputNumber.vue.d.ts +7 -7
  87. package/es/InputNumber/InputOperaBtn.vue.js +1 -1
  88. package/es/InputNumber/index.d.ts +6 -6
  89. package/es/InputNumber/type.d.ts +3 -4
  90. package/es/InputTag/index.vue.js +2 -2
  91. package/es/InputTag/type.d.ts +5 -6
  92. package/es/Layout/LayoutSider.vue.d.ts +7 -7
  93. package/es/Layout/LayoutSider.vue.js +1 -1
  94. package/es/Layout/hooks/useSiderContext.d.ts +2 -2
  95. package/es/Layout/index.d.ts +19 -19
  96. package/es/Layout/type.d.ts +4 -5
  97. package/es/Link/index.vue.js +1 -1
  98. package/es/Link/type.d.ts +1 -1
  99. package/es/List/List.vue.d.ts +15 -15
  100. package/es/List/ListVirtual.vue.d.ts +3 -3
  101. package/es/List/index.d.ts +10 -10
  102. package/es/List/type.d.ts +3 -3
  103. package/es/Mention/index.d.ts +35 -35
  104. package/es/Mention/index.vue.d.ts +46 -46
  105. package/es/Mention/type.d.ts +6 -5
  106. package/es/Menu/Menu.vue.d.ts +6 -6
  107. package/es/Menu/Menu.vue.js +1 -1
  108. package/es/Menu/MenuEllipsis.vue.js +1 -1
  109. package/es/Menu/SubMenu.vue.d.ts +1 -1
  110. package/es/Menu/SubMenu.vue.js +1 -1
  111. package/es/Menu/hooks/useContext.d.ts +5 -5
  112. package/es/Menu/index.d.ts +20 -20
  113. package/es/Menu/type.d.ts +3 -6
  114. package/es/Message/Message.vue.d.ts +1 -1
  115. package/es/Message/Message.vue.js +2 -2
  116. package/es/Message/index.d.ts +3 -3
  117. package/es/Message/type.d.ts +5 -5
  118. package/es/Modal/Modal.vue.d.ts +2 -2
  119. package/es/Modal/Modal.vue.js +2 -2
  120. package/es/Modal/ModalService.vue.d.ts +4 -4
  121. package/es/Modal/index.d.ts +6 -6
  122. package/es/Modal/index.js +1 -1
  123. package/es/Modal/type.d.ts +8 -8
  124. package/es/Notification/Notification.vue.d.ts +3 -3
  125. package/es/Notification/Notification.vue.js +2 -2
  126. package/es/Notification/index.d.ts +9 -9
  127. package/es/Notification/type.d.ts +4 -4
  128. package/es/PageHeader/index.vue.js +2 -2
  129. package/es/Pagination/PaginationItem.vue.js +1 -1
  130. package/es/Pagination/hooks/useContext.d.ts +2 -2
  131. package/es/Popconfirm/index.d.ts +18 -18
  132. package/es/Popconfirm/index.vue.d.ts +21 -21
  133. package/es/Popconfirm/type.d.ts +4 -4
  134. package/es/Popover/index.d.ts +9 -9
  135. package/es/Popover/index.vue.d.ts +3 -3
  136. package/es/Popover/type.d.ts +3 -3
  137. package/es/Progress/ProgressCircle.vue.js +1 -1
  138. package/es/Progress/type.d.ts +1 -1
  139. package/es/Radio/Radio.vue.js +2 -2
  140. package/es/Radio/hooks/useContext.d.ts +3 -3
  141. package/es/Radio/type.d.ts +2 -2
  142. package/es/Rate/index.vue.js +1 -1
  143. package/es/ResizeBox/index.vue.js +1 -1
  144. package/es/Result/type.d.ts +1 -1
  145. package/es/Scrollbar/Scrollbar.vue.d.ts +1 -1
  146. package/es/Scrollbar/index.d.ts +3 -3
  147. package/es/Select/Option.vue.d.ts +1 -1
  148. package/es/Select/Option.vue.js +1 -1
  149. package/es/Select/Select.vue.d.ts +27 -27
  150. package/es/Select/Select.vue.js +2 -2
  151. package/es/Select/SelectIcon.vue.js +2 -2
  152. package/es/Select/SelectRealList.vue.js +1 -1
  153. package/es/Select/hooks/useContext.d.ts +13 -13
  154. package/es/Select/hooks/useSelectOptions.d.ts +13 -13
  155. package/es/Select/index.d.ts +26 -26
  156. package/es/Select/type.d.ts +13 -16
  157. package/es/Skeleton/type.d.ts +3 -2
  158. package/es/Slider/Slider.vue.d.ts +1 -1
  159. package/es/Slider/SliderTicks.vue.d.ts +2 -2
  160. package/es/Slider/hooks/useContext.d.ts +4 -4
  161. package/es/Slider/index.d.ts +3 -3
  162. package/es/Slider/type.d.ts +2 -3
  163. package/es/Space/index.d.ts +3 -3
  164. package/es/Space/index.vue.d.ts +1 -1
  165. package/es/Spin/index.vue.js +1 -1
  166. package/es/Split/index.vue.js +1 -1
  167. package/es/Steps/Step.vue.js +1 -1
  168. package/es/Steps/hooks/useContext.d.ts +3 -3
  169. package/es/Switch/type.d.ts +2 -1
  170. package/es/Tabs/TabButton.vue.js +2 -2
  171. package/es/Tabs/Tabs.vue.d.ts +1 -1
  172. package/es/Tabs/Tabs.vue.js +1 -1
  173. package/es/Tabs/TabsNavInk.vue.d.ts +2 -2
  174. package/es/Tabs/hooks/useContext.d.ts +5 -5
  175. package/es/Tabs/hooks/useTabsScroll.d.ts +2 -2
  176. package/es/Tabs/index.d.ts +3 -3
  177. package/es/Tabs/type.d.ts +2 -3
  178. package/es/Tag/index.vue.js +2 -2
  179. package/es/Tag/type.d.ts +2 -1
  180. package/es/Textarea/index.vue.js +2 -2
  181. package/es/TimePicker/TimePicker.vue.js +2 -2
  182. package/es/TimePicker/hooks/useContext.d.ts +2 -2
  183. package/es/TimePicker/type.d.ts +1 -1
  184. package/es/Timeline/hooks/useContext.d.ts +4 -4
  185. package/es/Tooltip/index.d.ts +9 -9
  186. package/es/Tooltip/index.vue.d.ts +3 -3
  187. package/es/Tooltip/type.d.ts +3 -3
  188. package/es/Transfer/Transfer.vue.js +1 -1
  189. package/es/Transfer/TransferPanel.vue.js +2 -2
  190. package/es/Transfer/hooks/useContext.d.ts +2 -2
  191. package/es/Trigger/hooks/useContext.d.ts +2 -2
  192. package/es/Trigger/hooks/useTriggerPosition.d.ts +3 -4
  193. package/es/Trigger/hooks/useTriggerVisible.d.ts +2 -2
  194. package/es/Trigger/index.d.ts +9 -9
  195. package/es/Trigger/index.vue.d.ts +3 -3
  196. package/es/Trigger/index.vue.js +1 -1
  197. package/es/Trigger/type.d.ts +3 -4
  198. package/es/Typography/TypographyBase.vue.d.ts +6 -7
  199. package/es/Typography/TypographyBase.vue.js +3 -4
  200. package/es/Typography/TypographyParagraph.vue.d.ts +1 -1
  201. package/es/Typography/TypographyParagraph.vue.js +0 -7
  202. package/es/Typography/TypographyText.vue.js +0 -7
  203. package/es/Typography/TypographyTitle.vue.d.ts +1 -1
  204. package/es/Typography/TypographyTitle.vue.js +0 -7
  205. package/es/Typography/type.d.ts +4 -14
  206. package/es/_shared/components/ExpandTransition/index.vue2.js +6 -2
  207. package/es/_shared/components/IconButton/{index.vue.js → index.vue2.js} +1 -1
  208. package/es/_shared/components/IconButton/index.vue3.js +2 -2
  209. package/es/_shared/constants/index.d.ts +4 -4
  210. package/es/_shared/constants/index.js +1 -1
  211. package/es/_shared/icons/IconArrowDown.vue.js +1 -1
  212. package/es/_shared/icons/IconArrowRight.vue.js +1 -1
  213. package/es/_shared/icons/IconCheck.vue.js +1 -1
  214. package/es/_shared/icons/IconCheckboxChecked.vue.js +1 -1
  215. package/es/_shared/icons/IconClose.vue.js +1 -1
  216. package/es/_shared/icons/IconCopy.vue.js +23 -1
  217. package/es/_shared/icons/IconCopy.vue2.js +1 -23
  218. package/es/_shared/icons/IconDelete.vue2.js +1 -1
  219. package/es/_shared/icons/IconDragDot.vue.js +1 -1
  220. package/es/_shared/icons/IconEdit.vue.js +23 -1
  221. package/es/_shared/icons/IconEdit.vue2.js +1 -23
  222. package/es/_shared/icons/IconEmpty.vue.js +1 -1
  223. package/es/_shared/icons/IconError.vue.js +1 -1
  224. package/es/_shared/icons/IconExclamation.vue2.js +1 -1
  225. package/es/_shared/icons/IconEyeClose.vue2.js +1 -1
  226. package/es/_shared/icons/IconEyeOpen.vue2.js +1 -1
  227. package/es/_shared/icons/IconFaceSmile.vue.js +1 -1
  228. package/es/_shared/icons/IconFullScreen.vue2.js +1 -1
  229. package/es/_shared/icons/IconImageClose.vue.js +1 -1
  230. package/es/_shared/icons/IconInfo.vue.js +1 -1
  231. package/es/_shared/icons/IconInfoLine.vue.js +1 -1
  232. package/es/_shared/icons/IconLink.vue.js +1 -1
  233. package/es/_shared/icons/IconLoading.vue.js +1 -1
  234. package/es/_shared/icons/IconMenuFold.vue.js +1 -1
  235. package/es/_shared/icons/IconMenuUnfold.vue.js +1 -1
  236. package/es/_shared/icons/IconMinus.vue2.js +1 -1
  237. package/es/_shared/icons/IconMore.vue.js +1 -1
  238. package/es/_shared/icons/IconOriginSize.vue2.js +1 -1
  239. package/es/_shared/icons/IconPlus.vue.js +1 -1
  240. package/es/_shared/icons/IconRight.vue.js +1 -1
  241. package/es/_shared/icons/IconRotateLeft.vue2.js +1 -1
  242. package/es/_shared/icons/IconRotateRight.vue2.js +1 -1
  243. package/es/_shared/icons/IconSearch.vue2.js +1 -1
  244. package/es/_shared/icons/IconSeparator.vue.js +1 -23
  245. package/es/_shared/icons/IconSeparator.vue2.js +23 -1
  246. package/es/_shared/icons/IconStar.vue.js +1 -1
  247. package/es/_shared/icons/IconSuccess.vue.js +1 -1
  248. package/es/_shared/icons/IconTime.vue.js +1 -1
  249. package/es/_shared/icons/IconToTop.vue.js +1 -1
  250. package/es/_shared/icons/IconWarning.vue.js +1 -1
  251. package/es/_shared/icons/IconZoomIn.vue2.js +1 -1
  252. package/es/_shared/icons/IconZoomOut.vue2.js +1 -1
  253. package/es/_shared/type/index.d.ts +22 -5
  254. package/es/_shared/utils/dom.d.ts +1 -1
  255. package/es/_shared/utils/dom.js +1 -1
  256. package/es/_shared/utils/global-config.d.ts +4 -4
  257. package/es/_shared/utils/vue-utils.d.ts +3 -3
  258. package/es/index.d.ts +59 -59
  259. package/lib/Affix/type.d.ts +1 -1
  260. package/lib/Alert/index.vue.js +1 -1
  261. package/lib/Alert/type.d.ts +1 -1
  262. package/lib/Anchor/hooks/useContext.d.ts +2 -2
  263. package/lib/Anchor/type.d.ts +1 -1
  264. package/lib/AutoComplete/index.d.ts +27 -27
  265. package/lib/AutoComplete/index.vue.d.ts +49 -49
  266. package/lib/AutoComplete/type.d.ts +6 -8
  267. package/lib/Avatar/Avatar.vue.d.ts +1 -1
  268. package/lib/Avatar/Avatar.vue.js +1 -1
  269. package/lib/Avatar/hooks/useContext.d.ts +3 -3
  270. package/lib/Avatar/index.d.ts +3 -3
  271. package/lib/Avatar/type.d.ts +2 -2
  272. package/lib/BackTop/index.vue.js +1 -1
  273. package/lib/BackTop/type.d.ts +1 -1
  274. package/lib/Badge/type.d.ts +1 -1
  275. package/lib/Breadcrumb/BreadcrumbItem.vue.js +1 -1
  276. package/lib/Breadcrumb/BreadcrumbMore.vue.js +1 -1
  277. package/lib/Breadcrumb/BreadcrumbSeparator.vue.js +1 -1
  278. package/lib/Breadcrumb/type.d.ts +1 -1
  279. package/lib/Button/Button.vue.d.ts +1 -1
  280. package/lib/Button/ButtonGroup.vue.d.ts +1 -1
  281. package/lib/Button/hooks/useContext.d.ts +5 -5
  282. package/lib/Button/index.d.ts +6 -6
  283. package/lib/Button/type.d.ts +4 -5
  284. package/lib/Calendar/Calendar.vue.js +1 -1
  285. package/lib/Card/type.d.ts +2 -1
  286. package/lib/Carousel/Carousel.vue.d.ts +3 -3
  287. package/lib/Carousel/CarouselArrow.vue.js +1 -1
  288. package/lib/Carousel/CarouselIndicator.vue.d.ts +3 -3
  289. package/lib/Carousel/hooks/useContext.d.ts +3 -3
  290. package/lib/Carousel/index.d.ts +9 -9
  291. package/lib/Carousel/type.d.ts +2 -3
  292. package/lib/Cascader/Cascader.vue.d.ts +13 -25
  293. package/lib/Cascader/Cascader.vue.js +1 -1
  294. package/lib/Cascader/CascaderIcon.vue.js +1 -1
  295. package/lib/Cascader/CascaderOption.vue.js +1 -1
  296. package/lib/Cascader/hooks/useContext.d.ts +5 -17
  297. package/lib/Cascader/index.d.ts +17 -29
  298. package/lib/Cascader/type.d.ts +5 -7
  299. package/lib/Checkbox/Checkbox.vue.js +1 -1
  300. package/lib/Checkbox/hooks/useContext.d.ts +3 -3
  301. package/lib/Checkbox/type.d.ts +3 -3
  302. package/lib/Collapse/CollapseItem.vue.js +1 -1
  303. package/lib/Collapse/hooks/useContext.d.ts +5 -5
  304. package/lib/Collapse/type.d.ts +2 -2
  305. package/lib/ColorPicker/hooks/useContext.d.ts +2 -2
  306. package/lib/ConfigProvider/index.d.ts +3 -3
  307. package/lib/ConfigProvider/index.vue.d.ts +1 -1
  308. package/lib/ConfigProvider/type.d.ts +2 -3
  309. package/lib/Descriptions/hooks/useContext.d.ts +2 -2
  310. package/lib/Descriptions/type.d.ts +1 -2
  311. package/lib/Drawer/Drawer.vue.js +1 -1
  312. package/lib/Drawer/DrawerService.vue.d.ts +1 -1
  313. package/lib/Dropdown/Doption.vue.js +1 -1
  314. package/lib/Dropdown/Dropdown.vue.d.ts +1 -1
  315. package/lib/Dropdown/Dropdown.vue.js +1 -1
  316. package/lib/Dropdown/DropdownButton.vue.js +1 -1
  317. package/lib/Dropdown/Dsubmenu.vue.d.ts +20 -20
  318. package/lib/Dropdown/Dsubmenu.vue.js +1 -1
  319. package/lib/Dropdown/hooks/useContext.d.ts +2 -2
  320. package/lib/Dropdown/index.d.ts +18 -18
  321. package/lib/Dropdown/type.d.ts +5 -6
  322. package/lib/Empty/index.vue.js +1 -1
  323. package/lib/Grid/Grid.vue.d.ts +3 -3
  324. package/lib/Grid/GridCol.vue.d.ts +2 -2
  325. package/lib/Grid/GridItem.vue.d.ts +2 -2
  326. package/lib/Grid/GridRow.vue.d.ts +1 -1
  327. package/lib/Grid/hooks/useContext.d.ts +4 -4
  328. package/lib/Grid/index.d.ts +24 -24
  329. package/lib/Grid/type.d.ts +4 -12
  330. package/lib/Image/Image.vue.d.ts +1 -1
  331. package/lib/Image/Image.vue.js +1 -1
  332. package/lib/Image/ImagePreview.vue.js +1 -1
  333. package/lib/Image/ImagePreviewArrow.vue.js +1 -1
  334. package/lib/Image/ImagePreviewToolbar.vue.js +1 -1
  335. package/lib/Image/hooks/useContext.d.ts +2 -2
  336. package/lib/Image/index.d.ts +3 -3
  337. package/lib/Image/type.d.ts +2 -3
  338. package/lib/Input/Input.vue.d.ts +1 -1
  339. package/lib/Input/Input.vue.js +1 -1
  340. package/lib/Input/InputSuffix.vue.js +1 -1
  341. package/lib/Input/hooks/useLimitedInput.d.ts +3 -3
  342. package/lib/Input/index.d.ts +3 -3
  343. package/lib/Input/type.d.ts +2 -2
  344. package/lib/InputNumber/InputNumber.vue.d.ts +7 -7
  345. package/lib/InputNumber/InputOperaBtn.vue.js +1 -1
  346. package/lib/InputNumber/index.d.ts +6 -6
  347. package/lib/InputNumber/type.d.ts +3 -4
  348. package/lib/InputTag/index.vue.js +1 -1
  349. package/lib/InputTag/type.d.ts +5 -6
  350. package/lib/Layout/LayoutSider.vue.d.ts +7 -7
  351. package/lib/Layout/LayoutSider.vue.js +1 -1
  352. package/lib/Layout/hooks/useSiderContext.d.ts +2 -2
  353. package/lib/Layout/index.d.ts +19 -19
  354. package/lib/Layout/type.d.ts +4 -5
  355. package/lib/Link/index.vue.js +1 -1
  356. package/lib/Link/type.d.ts +1 -1
  357. package/lib/List/List.vue.d.ts +15 -15
  358. package/lib/List/ListVirtual.vue.d.ts +3 -3
  359. package/lib/List/index.d.ts +10 -10
  360. package/lib/List/type.d.ts +3 -3
  361. package/lib/Mention/index.d.ts +35 -35
  362. package/lib/Mention/index.vue.d.ts +46 -46
  363. package/lib/Mention/type.d.ts +6 -5
  364. package/lib/Menu/Menu.vue.d.ts +6 -6
  365. package/lib/Menu/Menu.vue.js +1 -1
  366. package/lib/Menu/MenuEllipsis.vue.js +1 -1
  367. package/lib/Menu/SubMenu.vue.d.ts +1 -1
  368. package/lib/Menu/SubMenu.vue.js +1 -1
  369. package/lib/Menu/hooks/useContext.d.ts +5 -5
  370. package/lib/Menu/index.d.ts +20 -20
  371. package/lib/Menu/type.d.ts +3 -6
  372. package/lib/Message/Message.vue.d.ts +1 -1
  373. package/lib/Message/Message.vue.js +1 -1
  374. package/lib/Message/index.d.ts +3 -3
  375. package/lib/Message/type.d.ts +5 -5
  376. package/lib/Modal/Modal.vue.d.ts +2 -2
  377. package/lib/Modal/Modal.vue.js +1 -1
  378. package/lib/Modal/ModalService.vue.d.ts +4 -4
  379. package/lib/Modal/index.d.ts +6 -6
  380. package/lib/Modal/type.d.ts +8 -8
  381. package/lib/Notification/Notification.vue.d.ts +3 -3
  382. package/lib/Notification/Notification.vue.js +1 -1
  383. package/lib/Notification/index.d.ts +9 -9
  384. package/lib/Notification/type.d.ts +4 -4
  385. package/lib/PageHeader/index.vue.js +1 -1
  386. package/lib/Pagination/PaginationItem.vue.js +1 -1
  387. package/lib/Pagination/hooks/useContext.d.ts +2 -2
  388. package/lib/Popconfirm/index.d.ts +18 -18
  389. package/lib/Popconfirm/index.vue.d.ts +21 -21
  390. package/lib/Popconfirm/type.d.ts +4 -4
  391. package/lib/Popover/index.d.ts +9 -9
  392. package/lib/Popover/index.vue.d.ts +3 -3
  393. package/lib/Popover/type.d.ts +3 -3
  394. package/lib/Progress/ProgressCircle.vue.js +1 -1
  395. package/lib/Progress/type.d.ts +1 -1
  396. package/lib/Radio/Radio.vue.js +1 -1
  397. package/lib/Radio/hooks/useContext.d.ts +3 -3
  398. package/lib/Radio/type.d.ts +2 -2
  399. package/lib/Rate/index.vue.js +1 -1
  400. package/lib/ResizeBox/index.vue.js +1 -1
  401. package/lib/Result/type.d.ts +1 -1
  402. package/lib/Scrollbar/Scrollbar.vue.d.ts +1 -1
  403. package/lib/Scrollbar/index.d.ts +3 -3
  404. package/lib/Select/Option.vue.d.ts +1 -1
  405. package/lib/Select/Option.vue.js +1 -1
  406. package/lib/Select/Select.vue.d.ts +27 -27
  407. package/lib/Select/Select.vue.js +1 -1
  408. package/lib/Select/SelectIcon.vue.js +1 -1
  409. package/lib/Select/SelectRealList.vue.js +1 -1
  410. package/lib/Select/hooks/useContext.d.ts +13 -13
  411. package/lib/Select/hooks/useSelectOptions.d.ts +13 -13
  412. package/lib/Select/index.d.ts +26 -26
  413. package/lib/Select/type.d.ts +13 -16
  414. package/lib/Skeleton/type.d.ts +3 -2
  415. package/lib/Slider/Slider.vue.d.ts +1 -1
  416. package/lib/Slider/SliderTicks.vue.d.ts +2 -2
  417. package/lib/Slider/hooks/useContext.d.ts +4 -4
  418. package/lib/Slider/index.d.ts +3 -3
  419. package/lib/Slider/type.d.ts +2 -3
  420. package/lib/Space/index.d.ts +3 -3
  421. package/lib/Space/index.vue.d.ts +1 -1
  422. package/lib/Spin/index.vue.js +1 -1
  423. package/lib/Split/index.vue.js +1 -1
  424. package/lib/Steps/Step.vue.js +1 -1
  425. package/lib/Steps/hooks/useContext.d.ts +3 -3
  426. package/lib/Switch/type.d.ts +2 -1
  427. package/lib/Tabs/TabButton.vue.js +1 -1
  428. package/lib/Tabs/Tabs.vue.d.ts +1 -1
  429. package/lib/Tabs/Tabs.vue.js +1 -1
  430. package/lib/Tabs/TabsNavInk.vue.d.ts +2 -2
  431. package/lib/Tabs/hooks/useContext.d.ts +5 -5
  432. package/lib/Tabs/hooks/useTabsScroll.d.ts +2 -2
  433. package/lib/Tabs/index.d.ts +3 -3
  434. package/lib/Tabs/type.d.ts +2 -3
  435. package/lib/Tag/index.vue.js +1 -1
  436. package/lib/Tag/type.d.ts +2 -1
  437. package/lib/Textarea/index.vue.js +1 -1
  438. package/lib/TimePicker/TimePicker.vue.js +1 -1
  439. package/lib/TimePicker/hooks/useContext.d.ts +2 -2
  440. package/lib/TimePicker/type.d.ts +1 -1
  441. package/lib/Timeline/hooks/useContext.d.ts +4 -4
  442. package/lib/Tooltip/index.d.ts +9 -9
  443. package/lib/Tooltip/index.vue.d.ts +3 -3
  444. package/lib/Tooltip/type.d.ts +3 -3
  445. package/lib/Transfer/Transfer.vue.js +1 -1
  446. package/lib/Transfer/TransferPanel.vue.js +1 -1
  447. package/lib/Transfer/hooks/useContext.d.ts +2 -2
  448. package/lib/Trigger/hooks/useContext.d.ts +2 -2
  449. package/lib/Trigger/hooks/useTriggerPosition.d.ts +3 -4
  450. package/lib/Trigger/hooks/useTriggerVisible.d.ts +2 -2
  451. package/lib/Trigger/index.d.ts +9 -9
  452. package/lib/Trigger/index.vue.d.ts +3 -3
  453. package/lib/Trigger/index.vue.js +1 -1
  454. package/lib/Trigger/type.d.ts +3 -4
  455. package/lib/Typography/TypographyBase.vue.d.ts +6 -7
  456. package/lib/Typography/TypographyBase.vue.js +1 -1
  457. package/lib/Typography/TypographyParagraph.vue.d.ts +1 -1
  458. package/lib/Typography/TypographyParagraph.vue.js +1 -1
  459. package/lib/Typography/TypographyText.vue.js +1 -1
  460. package/lib/Typography/TypographyTitle.vue.d.ts +1 -1
  461. package/lib/Typography/TypographyTitle.vue.js +1 -1
  462. package/lib/Typography/type.d.ts +4 -14
  463. package/lib/_shared/components/IconButton/index.vue2.js +1 -0
  464. package/lib/_shared/components/IconButton/index.vue3.js +1 -1
  465. package/lib/_shared/constants/index.d.ts +4 -4
  466. package/lib/_shared/constants/index.js +1 -1
  467. package/lib/_shared/icons/IconArrowDown.vue.js +1 -1
  468. package/lib/_shared/icons/IconArrowRight.vue.js +1 -1
  469. package/lib/_shared/icons/IconCheck.vue.js +1 -1
  470. package/lib/_shared/icons/IconCheckboxChecked.vue.js +1 -1
  471. package/lib/_shared/icons/IconClose.vue.js +1 -1
  472. package/lib/_shared/icons/IconCopy.vue.js +1 -1
  473. package/lib/_shared/icons/IconCopy.vue2.js +1 -1
  474. package/lib/_shared/icons/IconDelete.vue2.js +1 -1
  475. package/lib/_shared/icons/IconDragDot.vue.js +1 -1
  476. package/lib/_shared/icons/IconEdit.vue.js +1 -1
  477. package/lib/_shared/icons/IconEdit.vue2.js +1 -1
  478. package/lib/_shared/icons/IconEmpty.vue.js +1 -1
  479. package/lib/_shared/icons/IconError.vue.js +1 -1
  480. package/lib/_shared/icons/IconExclamation.vue2.js +1 -1
  481. package/lib/_shared/icons/IconEyeClose.vue2.js +1 -1
  482. package/lib/_shared/icons/IconEyeOpen.vue2.js +1 -1
  483. package/lib/_shared/icons/IconFaceSmile.vue.js +1 -1
  484. package/lib/_shared/icons/IconFullScreen.vue2.js +1 -1
  485. package/lib/_shared/icons/IconImageClose.vue.js +1 -1
  486. package/lib/_shared/icons/IconInfo.vue.js +1 -1
  487. package/lib/_shared/icons/IconInfoLine.vue.js +1 -1
  488. package/lib/_shared/icons/IconLink.vue.js +1 -1
  489. package/lib/_shared/icons/IconLoading.vue.js +1 -1
  490. package/lib/_shared/icons/IconMenuFold.vue.js +1 -1
  491. package/lib/_shared/icons/IconMenuUnfold.vue.js +1 -1
  492. package/lib/_shared/icons/IconMinus.vue2.js +1 -1
  493. package/lib/_shared/icons/IconMore.vue.js +1 -1
  494. package/lib/_shared/icons/IconOriginSize.vue2.js +1 -1
  495. package/lib/_shared/icons/IconPlus.vue.js +1 -1
  496. package/lib/_shared/icons/IconRight.vue.js +1 -1
  497. package/lib/_shared/icons/IconRotateLeft.vue2.js +1 -1
  498. package/lib/_shared/icons/IconRotateRight.vue2.js +1 -1
  499. package/lib/_shared/icons/IconSearch.vue2.js +1 -1
  500. package/lib/_shared/icons/IconSeparator.vue.js +1 -1
  501. package/lib/_shared/icons/IconSeparator.vue2.js +1 -1
  502. package/lib/_shared/icons/IconStar.vue.js +1 -1
  503. package/lib/_shared/icons/IconSuccess.vue.js +1 -1
  504. package/lib/_shared/icons/IconTime.vue.js +1 -1
  505. package/lib/_shared/icons/IconToTop.vue.js +1 -1
  506. package/lib/_shared/icons/IconWarning.vue.js +1 -1
  507. package/lib/_shared/icons/IconZoomIn.vue2.js +1 -1
  508. package/lib/_shared/icons/IconZoomOut.vue2.js +1 -1
  509. package/lib/_shared/type/index.d.ts +22 -5
  510. package/lib/_shared/utils/dom.d.ts +1 -1
  511. package/lib/_shared/utils/dom.js +1 -1
  512. package/lib/_shared/utils/global-config.d.ts +4 -4
  513. package/lib/_shared/utils/vue-utils.d.ts +3 -3
  514. package/lib/index.d.ts +59 -59
  515. package/package.json +1 -1
  516. package/lib/_shared/components/IconButton/index.vue.js +0 -1
@@ -10,28 +10,27 @@ export type MenuItemGroupInstance = InstanceType<typeof _MenuItemGroup>;
10
10
  export * from './type';
11
11
  declare const Menu: {
12
12
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').MenuProps> & Readonly<{
13
- onCollapse?: ((collapsed: boolean, type: "clickTrigger" | "responsive") => any) | undefined;
13
+ onCollapse?: ((collapsed: boolean, type: import('..').collapseType) => any) | undefined;
14
14
  "onUpdate:selectedKeys"?: ((value: string) => any) | undefined;
15
15
  "onUpdate:openKeys"?: ((value: string) => any) | undefined;
16
16
  "onUpdate:collapsed"?: ((value: boolean) => any) | undefined;
17
17
  "onMenu-item-click"?: ((key: string) => any) | undefined;
18
18
  "onSub-menu-click"?: ((key: string, openKeys: string[]) => any) | undefined;
19
19
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
20
- collapse: (collapsed: boolean, type: "clickTrigger" | "responsive") => any;
20
+ collapse: (collapsed: boolean, type: import('..').collapseType) => any;
21
21
  "update:selectedKeys": (value: string) => any;
22
22
  "update:openKeys": (value: string) => any;
23
23
  "update:collapsed": (value: boolean) => any;
24
24
  "menu-item-click": (key: string) => any;
25
25
  "sub-menu-click": (key: string, openKeys: string[]) => any;
26
26
  }, import('vue').PublicProps, {
27
- mode: import('./type').MenuMode;
27
+ mode: import('..').Direction;
28
28
  triggerProps: import('..').TriggerProps;
29
- collapsed: boolean;
30
- breakpoint: import('..').BreakpointName;
31
- popupMaxHeight: import('./type').PopupMaxHeight;
29
+ popupMaxHeight: import('..').PopupMaxHeight;
32
30
  theme: import('..').Theme;
33
31
  levelIndent: number;
34
32
  autoOpen: boolean;
33
+ collapsed: boolean;
35
34
  defaultCollapsed: boolean;
36
35
  collapsedWidth: number | string;
37
36
  accordion: boolean;
@@ -40,6 +39,7 @@ declare const Menu: {
40
39
  defaultSelectedKeys: string;
41
40
  openKeys: string[];
42
41
  defaultOpenKeys: string[];
42
+ breakpoint: import('..').BreakpointName;
43
43
  tooltipProps: import('..').TooltipProps;
44
44
  autoOpenSelected: boolean;
45
45
  autoScrollIntoView: boolean;
@@ -53,21 +53,20 @@ declare const Menu: {
53
53
  M: {};
54
54
  Defaults: {};
55
55
  }, Readonly<import('./type').MenuProps> & Readonly<{
56
- onCollapse?: ((collapsed: boolean, type: "clickTrigger" | "responsive") => any) | undefined;
56
+ onCollapse?: ((collapsed: boolean, type: import('..').collapseType) => any) | undefined;
57
57
  "onUpdate:selectedKeys"?: ((value: string) => any) | undefined;
58
58
  "onUpdate:openKeys"?: ((value: string) => any) | undefined;
59
59
  "onUpdate:collapsed"?: ((value: boolean) => any) | undefined;
60
60
  "onMenu-item-click"?: ((key: string) => any) | undefined;
61
61
  "onSub-menu-click"?: ((key: string, openKeys: string[]) => any) | undefined;
62
62
  }>, {}, {}, {}, {}, {
63
- mode: import('./type').MenuMode;
63
+ mode: import('..').Direction;
64
64
  triggerProps: import('..').TriggerProps;
65
- collapsed: boolean;
66
- breakpoint: import('..').BreakpointName;
67
- popupMaxHeight: import('./type').PopupMaxHeight;
65
+ popupMaxHeight: import('..').PopupMaxHeight;
68
66
  theme: import('..').Theme;
69
67
  levelIndent: number;
70
68
  autoOpen: boolean;
69
+ collapsed: boolean;
71
70
  defaultCollapsed: boolean;
72
71
  collapsedWidth: number | string;
73
72
  accordion: boolean;
@@ -76,6 +75,7 @@ declare const Menu: {
76
75
  defaultSelectedKeys: string;
77
76
  openKeys: string[];
78
77
  defaultOpenKeys: string[];
78
+ breakpoint: import('..').BreakpointName;
79
79
  tooltipProps: import('..').TooltipProps;
80
80
  autoOpenSelected: boolean;
81
81
  autoScrollIntoView: boolean;
@@ -84,28 +84,27 @@ declare const Menu: {
84
84
  __isTeleport?: never;
85
85
  __isSuspense?: never;
86
86
  } & import('vue').ComponentOptionsBase<Readonly<import('./type').MenuProps> & Readonly<{
87
- onCollapse?: ((collapsed: boolean, type: "clickTrigger" | "responsive") => any) | undefined;
87
+ onCollapse?: ((collapsed: boolean, type: import('..').collapseType) => any) | undefined;
88
88
  "onUpdate:selectedKeys"?: ((value: string) => any) | undefined;
89
89
  "onUpdate:openKeys"?: ((value: string) => any) | undefined;
90
90
  "onUpdate:collapsed"?: ((value: boolean) => any) | undefined;
91
91
  "onMenu-item-click"?: ((key: string) => any) | undefined;
92
92
  "onSub-menu-click"?: ((key: string, openKeys: string[]) => any) | undefined;
93
93
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
94
- collapse: (collapsed: boolean, type: "clickTrigger" | "responsive") => any;
94
+ collapse: (collapsed: boolean, type: import('..').collapseType) => any;
95
95
  "update:selectedKeys": (value: string) => any;
96
96
  "update:openKeys": (value: string) => any;
97
97
  "update:collapsed": (value: boolean) => any;
98
98
  "menu-item-click": (key: string) => any;
99
99
  "sub-menu-click": (key: string, openKeys: string[]) => any;
100
100
  }, string, {
101
- mode: import('./type').MenuMode;
101
+ mode: import('..').Direction;
102
102
  triggerProps: import('..').TriggerProps;
103
- collapsed: boolean;
104
- breakpoint: import('..').BreakpointName;
105
- popupMaxHeight: import('./type').PopupMaxHeight;
103
+ popupMaxHeight: import('..').PopupMaxHeight;
106
104
  theme: import('..').Theme;
107
105
  levelIndent: number;
108
106
  autoOpen: boolean;
107
+ collapsed: boolean;
109
108
  defaultCollapsed: boolean;
110
109
  collapsedWidth: number | string;
111
110
  accordion: boolean;
@@ -114,6 +113,7 @@ declare const Menu: {
114
113
  defaultSelectedKeys: string;
115
114
  openKeys: string[];
116
115
  defaultOpenKeys: string[];
116
+ breakpoint: import('..').BreakpointName;
117
117
  tooltipProps: import('..').TooltipProps;
118
118
  autoOpenSelected: boolean;
119
119
  autoScrollIntoView: boolean;
@@ -150,7 +150,7 @@ declare const Menu: {
150
150
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').SubMenuProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
151
151
  title: string;
152
152
  path: string;
153
- popupMaxHeight: import('./type').PopupMaxHeight;
153
+ popupMaxHeight: import('..').PopupMaxHeight;
154
154
  selectable: boolean;
155
155
  popup: boolean;
156
156
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
@@ -163,7 +163,7 @@ declare const Menu: {
163
163
  }, Readonly<import('./type').SubMenuProps> & Readonly<{}>, {}, {}, {}, {}, {
164
164
  title: string;
165
165
  path: string;
166
- popupMaxHeight: import('./type').PopupMaxHeight;
166
+ popupMaxHeight: import('..').PopupMaxHeight;
167
167
  selectable: boolean;
168
168
  popup: boolean;
169
169
  }>;
@@ -173,7 +173,7 @@ declare const Menu: {
173
173
  } & import('vue').ComponentOptionsBase<Readonly<import('./type').SubMenuProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
174
174
  title: string;
175
175
  path: string;
176
- popupMaxHeight: import('./type').PopupMaxHeight;
176
+ popupMaxHeight: import('..').PopupMaxHeight;
177
177
  selectable: boolean;
178
178
  popup: boolean;
179
179
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
@@ -1,11 +1,10 @@
1
- import { BreakpointName } from '../Grid';
2
1
  import { TooltipProps } from '../Tooltip';
3
2
  import { TriggerProps } from '../Trigger';
4
- import { Theme } from '../_shared/type';
3
+ import { Theme, BreakpointName, PopupMaxHeight, Direction, collapseType } from '../_shared/type';
5
4
  import { VNode } from 'vue';
6
5
  export interface MenuProps {
7
6
  theme?: Theme;
8
- mode?: MenuMode;
7
+ mode?: Direction;
9
8
  levelIndent?: number;
10
9
  autoOpen?: boolean;
11
10
  collapsed?: boolean;
@@ -29,7 +28,7 @@ export interface MenuEmits {
29
28
  (e: 'update:selectedKeys', value: string): void;
30
29
  (e: 'update:openKeys', value: string): void;
31
30
  (e: 'update:collapsed', value: boolean): void;
32
- (e: 'collapse', collapsed: boolean, type: 'clickTrigger' | 'responsive'): void;
31
+ (e: 'collapse', collapsed: boolean, type: collapseType): void;
33
32
  (e: 'menu-item-click', key: string): void;
34
33
  (e: 'sub-menu-click', key: string, openKeys: string[]): void;
35
34
  }
@@ -65,5 +64,3 @@ export interface MenuItemGroupSlots {
65
64
  default?: () => VNode[];
66
65
  title?: () => VNode[];
67
66
  }
68
- export type MenuMode = 'vertical' | 'horizontal';
69
- export type PopupMaxHeight = boolean | number;
@@ -1,7 +1,7 @@
1
1
  import { MessageProps } from './type';
2
2
  declare const _default: import('vue').DefineComponent<MessageProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<MessageProps> & Readonly<{}>, {
3
3
  duration: number;
4
- content: import('../_shared/type').RenderContent;
4
+ content: import('..').RenderContent;
5
5
  icon: import('vue').RenderFunction;
6
6
  type: import('./type').MessageType;
7
7
  closable: boolean;
@@ -1 +1 @@
1
- "use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const n=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../_shared/utils/locale.js");const o=require("../_shared/constants/index.js"),s=;/* empty css */,/* empty css */,/* empty css */;/* empty css */const t=require("../node_modules/@vueuse/shared/index.js"),l={key:0,class:"yc-message-icon"},a={class:"yc-message-content"},u=e.defineComponent({name:"Message",__name:"Message",props:{type:{default:"info"},content:{type:[String,Array,Function],default:""},id:{default:""},icon:{type:Function,default:void 0},showIcon:{type:Boolean,default:!0},closable:{type:Boolean,default:!1},duration:{default:3e3},isReset:{type:Boolean,default:!1},onClose:{type:Function,default:void 0},onDestory:{type:Function,default:void 0},resetOnHover:{type:Boolean,default:!1}},setup(u){const r=u,{type:i,id:c,duration:d,resetOnHover:m,isReset:p}=e.toRefs(r),{onClose:v,onDestory:y}=r,{start:f,stop:_}=t.useTimeoutFn(()=>{null==y||y(c.value),null==v||v(c.value)},()=>d.value,{immediate:!1}),B=()=>{_(),null==y||y(c.value),null==v||v(c.value)},h=()=>{!m.value||d.value<=0||_()},q=()=>{!m.value||d.value<=0||f()};return e.watch(()=>p.value,e=>{d.value<=0||!e||(_(),f())}),e.onMounted(()=>{d.value<=0||f()}),(t,u)=>(e.openBlock(),e.createElementBlock("li",{role:"alert",class:e.normalizeClass(["yc-message",`yc-message-${e.unref(i)}`]),onMouseenter:h,onMouseleave:q},["normal"==e.unref(i)&&e.unref(n.isUndefined)(t.icon)||!t.showIcon?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",l,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.icon??e.unref(o.TYPE_ICON_MAP)[e.unref(i)]),{spin:"loading"==e.unref(i)},null,8,["spin"]))])),e.createElementVNode("span",a,e.toDisplayString(t.content),1),t.closable?(e.openBlock(),e.createElementBlock("span",{key:1,class:"yc-message-close-btn",onClick:B},[e.createVNode(e.unref(s))])):e.createCommentVNode("",!0)],34))}});module.exports=u;
1
+ "use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const n=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../_shared/utils/locale.js");const o=require("../_shared/constants/index.js"),s=;/* empty css */,/* empty css */,/* empty css */;/* empty css */const t=require("../node_modules/@vueuse/shared/index.js"),l={key:0,class:"yc-message-icon"},a={class:"yc-message-content"},u=e.defineComponent({name:"Message",__name:"Message",props:{type:{default:"info"},content:{type:[String,Array,Function],default:""},id:{default:""},icon:{type:Function,default:void 0},showIcon:{type:Boolean,default:!0},closable:{type:Boolean,default:!1},duration:{default:3e3},isReset:{type:Boolean,default:!1},onClose:{type:Function,default:void 0},onDestory:{type:Function,default:void 0},resetOnHover:{type:Boolean,default:!1}},setup(u){const r=u,{type:i,id:c,duration:d,resetOnHover:m,isReset:p}=e.toRefs(r),{onClose:v,onDestory:y}=r,{start:f,stop:_}=t.useTimeoutFn(()=>{null==y||y(c.value),null==v||v(c.value)},()=>d.value,{immediate:!1}),B=()=>{_(),null==y||y(c.value),null==v||v(c.value)},h=()=>{!m.value||d.value<=0||_()},q=()=>{!m.value||d.value<=0||f()};return e.watch(()=>p.value,e=>{d.value<=0||!e||(_(),f())}),e.onMounted(()=>{d.value<=0||f()}),(t,u)=>(e.openBlock(),e.createElementBlock("li",{role:"alert",class:e.normalizeClass(["yc-message",`yc-message-${e.unref(i)}`]),onMouseenter:h,onMouseleave:q},["normal"==e.unref(i)&&e.unref(n.isUndefined)(t.icon)||!t.showIcon?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",l,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.icon??e.unref(o.TYPE_ICON_MAP)[e.unref(i)]),{spin:"loading"==e.unref(i)},null,8,["spin"]))])),e.createElementVNode("span",a,e.toDisplayString(t.content),1),t.closable?(e.openBlock(),e.createElementBlock("span",{key:1,class:"yc-message-close-btn",onClick:B},[e.createVNode(e.unref(s))])):e.createCommentVNode("",!0)],34))}});module.exports=u;
@@ -6,7 +6,7 @@ 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
8
  duration: number;
9
- content: import('../_shared/type').RenderContent;
9
+ content: import('..').RenderContent;
10
10
  icon: import('vue').RenderFunction;
11
11
  type: MessageType;
12
12
  closable: boolean;
@@ -25,7 +25,7 @@ declare const Message: {
25
25
  Defaults: {};
26
26
  }, Readonly<MessageProps> & Readonly<{}>, {}, {}, {}, {}, {
27
27
  duration: number;
28
- content: import('../_shared/type').RenderContent;
28
+ content: import('..').RenderContent;
29
29
  icon: import('vue').RenderFunction;
30
30
  type: MessageType;
31
31
  closable: boolean;
@@ -41,7 +41,7 @@ declare const Message: {
41
41
  __isSuspense?: never;
42
42
  } & import('vue').ComponentOptionsBase<Readonly<MessageProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
43
43
  duration: number;
44
- content: import('../_shared/type').RenderContent;
44
+ content: import('..').RenderContent;
45
45
  icon: import('vue').RenderFunction;
46
46
  type: MessageType;
47
47
  closable: boolean;
@@ -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
+ };
@@ -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";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;
@@ -4,9 +4,9 @@ declare const _default: import('vue').DefineComponent<ModalServiceProps, {}, {},
4
4
  unmountOnClose: boolean;
5
5
  renderToBody: boolean;
6
6
  width: number | string;
7
- content: import('../_shared/type').RenderContent;
7
+ content: import('..').RenderContent;
8
8
  footer: boolean;
9
- title: string & import('../_shared/type').RenderContent;
9
+ title: string & 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;
@@ -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;
@@ -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;
@@ -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;
@@ -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,13 +1,13 @@
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
3
  duration: number;
4
- content: import('../_shared/type').RenderContent;
4
+ content: import('..').RenderContent;
5
5
  style: import('vue').CSSProperties;
6
6
  icon: import('vue').RenderFunction;
7
7
  type: import('./type').NotificationType;
8
8
  footer: import('vue').RenderFunction;
9
- title: import('../_shared/type').RenderContent;
10
- class: import('../_shared/type').ClassName;
9
+ title: import('..').RenderContent;
10
+ class: import('..').ClassName;
11
11
  closable: boolean;
12
12
  onClose: (id: string | number) => void;
13
13
  id: string;
@@ -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";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;
@@ -6,13 +6,13 @@ export * from './type';
6
6
  declare const Notification: {
7
7
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<NotificationProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
8
8
  duration: number;
9
- content: import('../_shared/type').RenderContent;
9
+ content: import('..').RenderContent;
10
10
  style: import('vue').CSSProperties;
11
11
  icon: import('vue').RenderFunction;
12
12
  type: NotificationType;
13
13
  footer: import('vue').RenderFunction;
14
- title: import('../_shared/type').RenderContent;
15
- class: import('../_shared/type').ClassName;
14
+ title: import('..').RenderContent;
15
+ class: import('..').ClassName;
16
16
  closable: boolean;
17
17
  onClose: (id: string | number) => void;
18
18
  id: string;
@@ -29,13 +29,13 @@ declare const Notification: {
29
29
  Defaults: {};
30
30
  }, Readonly<NotificationProps> & Readonly<{}>, {}, {}, {}, {}, {
31
31
  duration: number;
32
- content: import('../_shared/type').RenderContent;
32
+ content: import('..').RenderContent;
33
33
  style: import('vue').CSSProperties;
34
34
  icon: import('vue').RenderFunction;
35
35
  type: NotificationType;
36
36
  footer: import('vue').RenderFunction;
37
- title: import('../_shared/type').RenderContent;
38
- class: import('../_shared/type').ClassName;
37
+ title: import('..').RenderContent;
38
+ class: import('..').ClassName;
39
39
  closable: boolean;
40
40
  onClose: (id: string | number) => void;
41
41
  id: string;
@@ -49,13 +49,13 @@ declare const Notification: {
49
49
  __isSuspense?: never;
50
50
  } & import('vue').ComponentOptionsBase<Readonly<NotificationProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
51
51
  duration: number;
52
- content: import('../_shared/type').RenderContent;
52
+ content: import('..').RenderContent;
53
53
  style: import('vue').CSSProperties;
54
54
  icon: import('vue').RenderFunction;
55
55
  type: NotificationType;
56
56
  footer: import('vue').RenderFunction;
57
- title: import('../_shared/type').RenderContent;
58
- class: import('../_shared/type').ClassName;
57
+ title: import('..').RenderContent;
58
+ class: import('..').ClassName;
59
59
  closable: boolean;
60
60
  onClose: (id: string | number) => void;
61
61
  id: string;
@@ -23,9 +23,6 @@ export interface NotificationContainerProps {
23
23
  position?: NotificationPosition;
24
24
  }
25
25
  export type NotificationConfig = Omit<NotificationProps, 'type' | 'onDestory'> & NotificationContainerProps;
26
- export type NotificationReturn = {
27
- close?: () => void;
28
- };
29
26
  export type NotificationMethods = {
30
27
  info: (config: string | NotificationConfig) => NotificationReturn;
31
28
  success: (config: string | NotificationConfig) => NotificationReturn;
@@ -34,5 +31,8 @@ export type NotificationMethods = {
34
31
  remove: (id: string) => void;
35
32
  clear: (position: NotificationPosition) => NotificationReturn;
36
33
  };
34
+ export type NotificationReturn = {
35
+ close?: () => void;
36
+ };
37
37
  export type NotificationPosition = 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight';
38
- export type NotificationType = 'info' | 'success' | 'warning' | 'error';
38
+ export type NotificationType = 'success' | 'warning' | 'error' | 'info';
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),t=;/* empty css */,/* empty css */require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js"),require("../_shared/utils/locale.js"),/* empty css */;/* empty css */const r=require("../_shared/icons/IconArrowRight.vue.js"),o=require("../Divider/index.js"),s={class:"yc-page-header"},l={class:"yc-page-header-wrapper"},a={key:0,class:"yc-page-header-breadcrumb"},c={class:"yc-page-header-header"},n={class:"yc-page-header-main"},i={key:0,class:"yc-page-header-title text-ellipsis"},d={key:2,class:"yc-page-header-subtitle text-ellipsis"},u={key:0,class:"yc-page-header-extra"},m={key:0,class:"yc-page-header-content"},p=e.defineComponent({name:"PageHeader",__name:"index",props:{title:{default:""},subtitle:{default:""},showBack:{type:Boolean,default:!0}},emits:["back"],setup:p=>(p,k)=>(e.openBlock(),e.createElementBlock("div",s,[e.createElementVNode("div",l,[p.$slots.breadcrumb?(e.openBlock(),e.createElementBlock("div",a,[e.renderSlot(p.$slots,"breadcrumb")])):e.createCommentVNode("",!0),e.createElementVNode("div",c,[e.createElementVNode("div",n,[e.createVNode(e.unref(t),{size:14,"hover-size":30,onClick:k[0]||(k[0]=e=>p.$emit("back",e))},{default:e.withCtx(()=>[e.renderSlot(p.$slots,"back-icon",{},()=>[e.createVNode(e.unref(r))])]),_:3}),p.$slots.title||p.title?(e.openBlock(),e.createElementBlock("div",i,[e.renderSlot(p.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(p.title),1)])])):e.createCommentVNode("",!0),p.$slots.subtitle||p.subtitle?(e.openBlock(),e.createBlock(e.unref(o),{key:1,direction:"vertical"})):e.createCommentVNode("",!0),p.$slots.subtitle||p.subtitle?(e.openBlock(),e.createElementBlock("div",d,[e.renderSlot(p.$slots,"subtitle",{},()=>[e.createTextVNode(e.toDisplayString(p.subtitle),1)])])):e.createCommentVNode("",!0)]),p.$slots.extra?(e.openBlock(),e.createElementBlock("div",u,[e.renderSlot(p.$slots,"extra")])):e.createCommentVNode("",!0)])]),p.$slots.default?(e.openBlock(),e.createElementBlock("div",m,[e.renderSlot(p.$slots,"default")])):e.createCommentVNode("",!0)]))});module.exports=p;
1
+ "use strict";const e=require("vue"),t=;/* empty css */,/* empty css */require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js"),require("../_shared/utils/locale.js"),/* empty css */;/* empty css */const r=require("../_shared/icons/IconArrowRight.vue.js"),o=require("../Divider/index.js"),s={class:"yc-page-header"},l={class:"yc-page-header-wrapper"},a={key:0,class:"yc-page-header-breadcrumb"},c={class:"yc-page-header-header"},n={class:"yc-page-header-main"},i={key:0,class:"yc-page-header-title text-ellipsis"},d={key:2,class:"yc-page-header-subtitle text-ellipsis"},u={key:0,class:"yc-page-header-extra"},m={key:0,class:"yc-page-header-content"},p=e.defineComponent({name:"PageHeader",__name:"index",props:{title:{default:""},subtitle:{default:""},showBack:{type:Boolean,default:!0}},emits:["back"],setup:p=>(p,k)=>(e.openBlock(),e.createElementBlock("div",s,[e.createElementVNode("div",l,[p.$slots.breadcrumb?(e.openBlock(),e.createElementBlock("div",a,[e.renderSlot(p.$slots,"breadcrumb")])):e.createCommentVNode("",!0),e.createElementVNode("div",c,[e.createElementVNode("div",n,[e.createVNode(e.unref(t),{size:14,"hover-size":30,onClick:k[0]||(k[0]=e=>p.$emit("back",e))},{default:e.withCtx(()=>[e.renderSlot(p.$slots,"back-icon",{},()=>[e.createVNode(e.unref(r))])]),_:3}),p.$slots.title||p.title?(e.openBlock(),e.createElementBlock("div",i,[e.renderSlot(p.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(p.title),1)])])):e.createCommentVNode("",!0),p.$slots.subtitle||p.subtitle?(e.openBlock(),e.createBlock(e.unref(o),{key:1,direction:"vertical"})):e.createCommentVNode("",!0),p.$slots.subtitle||p.subtitle?(e.openBlock(),e.createElementBlock("div",d,[e.renderSlot(p.$slots,"subtitle",{},()=>[e.createTextVNode(e.toDisplayString(p.subtitle),1)])])):e.createCommentVNode("",!0)]),p.$slots.extra?(e.openBlock(),e.createElementBlock("div",u,[e.renderSlot(p.$slots,"extra")])):e.createCommentVNode("",!0)])]),p.$slots.default?(e.openBlock(),e.createElementBlock("div",m,[e.renderSlot(p.$slots,"default")])):e.createCommentVNode("",!0)]))});module.exports=p;
@@ -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"),require("../_shared/utils/locale.js"),/* empty css */,/* empty css */;/* empty css */const u=require("../_shared/icons/IconArrowRight.vue.js"),l=require("../_shared/icons/IconMore.vue.js"),a=require("./hooks/useContext.js"),t=e.defineComponent({__name:"PaginationItem",props:{type:{},page:{default:1}},setup(t){const r=t,{type:o,page:n}=e.toRefs(r),{computedCurrent:i,pages:s,pageItemStyle:v,activePageItemStyle:c,bufferSize:m,disabled:d}=a().inject(),p=e.computed(()=>"item"==o.value&&i.value==n.value),f=e.computed(()=>["item","more-right","more-left"].includes(o.value)?d.value:"pre"==o.value?i.value<=1||d.value:i.value>=s.value||d.value),y=()=>{let e=0;if("item"==o.value)e=n.value;else if("pre"==o.value)e=i.value-1;else if("next"==o.value)e=i.value+1;else{const u=2*m.value+1;e="more-left"==o.value?i.value-u:i.value+u,e="more-left"==o.value&&e<=1?1:e,e="more-right"==o.value&&e>=s.value?s.value:e}f.value||"item"==o.value&&e==i.value||"pre"==o.value&&e<1||"next"==o.value&&e>s.value||(i.value=e)};return(a,t)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(["yc-pagination-item",{"yc-pagination-item-disabled":f.value,"yc-pagination-item-active":p.value}]),style:e.normalizeStyle({...e.unref(v),...p.value?e.unref(c):{}}),onClick:y},[e.renderSlot(a.$slots,"default",{},()=>[["pre","next"].includes(e.unref(o))?(e.openBlock(),e.createBlock(e.unref(u),{key:0,rotate:"pre"==e.unref(o)?180:0},null,8,["rotate"])):e.unref(o).includes("more")?(e.openBlock(),e.createBlock(e.unref(l),{key:1})):e.createCommentVNode("",!0)])],6))}});module.exports=t;
1
+ "use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js"),require("../_shared/utils/locale.js"),/* empty css */,/* empty css */;/* empty css */const u=require("../_shared/icons/IconArrowRight.vue.js"),l=require("../_shared/icons/IconMore.vue.js"),a=require("./hooks/useContext.js"),t=e.defineComponent({__name:"PaginationItem",props:{type:{},page:{default:1}},setup(t){const r=t,{type:o,page:n}=e.toRefs(r),{computedCurrent:i,pages:s,pageItemStyle:v,activePageItemStyle:c,bufferSize:m,disabled:d}=a().inject(),p=e.computed(()=>"item"==o.value&&i.value==n.value),f=e.computed(()=>["item","more-right","more-left"].includes(o.value)?d.value:"pre"==o.value?i.value<=1||d.value:i.value>=s.value||d.value),y=()=>{let e=0;if("item"==o.value)e=n.value;else if("pre"==o.value)e=i.value-1;else if("next"==o.value)e=i.value+1;else{const u=2*m.value+1;e="more-left"==o.value?i.value-u:i.value+u,e="more-left"==o.value&&e<=1?1:e,e="more-right"==o.value&&e>=s.value?s.value:e}f.value||"item"==o.value&&e==i.value||"pre"==o.value&&e<1||"next"==o.value&&e>s.value||(i.value=e)};return(a,t)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(["yc-pagination-item",{"yc-pagination-item-disabled":f.value,"yc-pagination-item-active":p.value}]),style:e.normalizeStyle({...e.unref(v),...p.value?e.unref(c):{}}),onClick:y},[e.renderSlot(a.$slots,"default",{},()=>[["pre","next"].includes(e.unref(o))?(e.openBlock(),e.createBlock(e.unref(u),{key:0,rotate:"pre"==e.unref(o)?180:0},null,8,["rotate"])):e.unref(o).includes("more")?(e.openBlock(),e.createBlock(e.unref(l),{key:1})):e.createCommentVNode("",!0)])],6))}});module.exports=t;
@@ -1,6 +1,6 @@
1
1
  import { Ref, CSSProperties } from 'vue';
2
2
  import { PaginationEmits } from '../type';
3
- import { Props } from '../../_shared/type';
3
+ import { RecordType } from '../../_shared/type';
4
4
  interface PaginationContext {
5
5
  computedCurrent: Ref<number>;
6
6
  computedPageSize: Ref<number>;
@@ -12,7 +12,7 @@ interface PaginationContext {
12
12
  bufferSize: Ref<number>;
13
13
  }
14
14
  declare const _default: () => {
15
- provide: (props: Props, emits: PaginationEmits) => {
15
+ provide: (props: RecordType, emits: PaginationEmits) => {
16
16
  total: import('vue').WritableComputedRef<number, number>;
17
17
  size: import('vue').ComputedRef<any>;
18
18
  pages: import('vue').ComputedRef<number>;