yc-design-vue 2.0.4 → 2.0.6

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 (568) hide show
  1. package/dist/index.umd.js +1 -0
  2. package/dist/style.css +1 -0
  3. package/es/Affix/index.vue.js +1 -1
  4. package/es/Alert/index.d.ts +3 -3
  5. package/es/Alert/index.vue.d.ts +1 -1
  6. package/es/Alert/type.d.ts +2 -2
  7. package/es/Anchor/Anchor.vue.d.ts +1 -1
  8. package/es/Anchor/Anchor.vue.js +2 -2
  9. package/es/Anchor/AnchorLink.vue.js +2 -2
  10. package/es/Anchor/hooks/useContext.d.ts +3 -3
  11. package/es/Anchor/hooks/useContext.js +3 -3
  12. package/es/Anchor/index.d.ts +3 -3
  13. package/es/Anchor/type.d.ts +3 -2
  14. package/es/AutoComplete/index.d.ts +40 -31
  15. package/es/AutoComplete/index.vue.d.ts +72 -54
  16. package/es/Avatar/Avatar.vue.d.ts +1 -1
  17. package/es/Avatar/Avatar.vue.js +3 -3
  18. package/es/Avatar/AvatarGroup.vue.js +2 -2
  19. package/es/Avatar/hooks/useContext.d.ts +1 -2
  20. package/es/Avatar/hooks/useContext.js +3 -3
  21. package/es/Avatar/index.d.ts +3 -3
  22. package/es/Avatar/type.d.ts +3 -2
  23. package/es/BackTop/index.vue.js +1 -1
  24. package/es/Badge/index.d.ts +3 -3
  25. package/es/Badge/index.vue.d.ts +1 -1
  26. package/es/Badge/type.d.ts +2 -2
  27. package/es/Breadcrumb/BreadcrumbSeparator.vue.js +1 -1
  28. package/es/Button/Button.vue.d.ts +2 -2
  29. package/es/Button/Button.vue.js +2 -2
  30. package/es/Button/ButtonGroup.vue.d.ts +1 -1
  31. package/es/Button/ButtonGroup.vue.js +2 -2
  32. package/es/Button/hooks/useContext.d.ts +4 -5
  33. package/es/Button/hooks/useContext.js +3 -3
  34. package/es/Button/index.d.ts +9 -9
  35. package/es/Button/type.d.ts +6 -6
  36. package/es/Card/Card.vue.d.ts +1 -1
  37. package/es/Card/Card.vue.js +2 -2
  38. package/es/Card/CardMeta.vue.js +2 -2
  39. package/es/Card/hooks/useContext.d.ts +2 -2
  40. package/es/Card/hooks/useContext.js +3 -3
  41. package/es/Card/index.d.ts +3 -3
  42. package/es/Card/type.d.ts +1 -2
  43. package/es/Carousel/Carousel.vue.d.ts +2 -2
  44. package/es/Carousel/Carousel.vue.js +2 -2
  45. package/es/Carousel/CarouselArrow.vue.js +2 -2
  46. package/es/Carousel/CarouselIndicator.vue.js +2 -2
  47. package/es/Carousel/CarouselItem.vue.js +2 -2
  48. package/es/Carousel/hooks/useContext.d.ts +5 -5
  49. package/es/Carousel/hooks/useContext.js +3 -3
  50. package/es/Carousel/index.d.ts +6 -6
  51. package/es/Carousel/type.d.ts +6 -6
  52. package/es/Cascader/Cascader.vue.d.ts +23 -23
  53. package/es/Cascader/Cascader.vue.js +2 -2
  54. package/es/Cascader/CascaderIcon.vue.js +2 -2
  55. package/es/Cascader/CascaderOption.vue.js +2 -2
  56. package/es/Cascader/CascaderPanel.vue.js +2 -2
  57. package/es/Cascader/CascaderSearchPanel.vue.js +2 -2
  58. package/es/Cascader/hooks/useContext.d.ts +2 -2
  59. package/es/Cascader/hooks/useContext.js +3 -3
  60. package/es/Cascader/index.d.ts +26 -26
  61. package/es/Checkbox/Checkbox.vue.js +2 -2
  62. package/es/Checkbox/CheckboxGroup.vue.js +2 -2
  63. package/es/Checkbox/hooks/useContext.d.ts +2 -2
  64. package/es/Checkbox/hooks/useContext.js +3 -3
  65. package/es/Collapse/Collapse.vue.js +2 -2
  66. package/es/Collapse/CollapseItem.vue.js +2 -2
  67. package/es/Collapse/hooks/useContext.d.ts +3 -15
  68. package/es/Collapse/hooks/useContext.js +3 -4
  69. package/es/Collapse/type.d.ts +2 -1
  70. package/es/ColorPicker/ColorControl.vue.js +1 -1
  71. package/es/ColorPicker/ColorPalette.vue.js +1 -1
  72. package/es/ColorPicker/ColorPanel.vue.js +2 -2
  73. package/es/ColorPicker/ColorPicker.vue.js +2 -2
  74. package/es/ColorPicker/hooks/useContext.d.ts +2 -2
  75. package/es/ColorPicker/hooks/useContext.js +3 -3
  76. package/es/Comment/hooks/useContext.d.ts +1 -2
  77. package/es/Comment/hooks/useContext.js +3 -3
  78. package/es/Comment/index.vue.js +2 -2
  79. package/es/Descriptions/Descriptions.vue.d.ts +3 -3
  80. package/es/Descriptions/Descriptions.vue.js +2 -2
  81. package/es/Descriptions/ReuseItem.vue.js +2 -2
  82. package/es/Descriptions/ReuseTd.vue.js +2 -2
  83. package/es/Descriptions/hooks/useContext.d.ts +3 -3
  84. package/es/Descriptions/hooks/useContext.js +3 -3
  85. package/es/Descriptions/index.d.ts +9 -9
  86. package/es/Descriptions/type.d.ts +7 -6
  87. package/es/Divider/index.d.ts +6 -6
  88. package/es/Divider/index.vue.d.ts +2 -2
  89. package/es/Divider/type.d.ts +4 -3
  90. package/es/Drawer/Drawer.vue.d.ts +1 -1
  91. package/es/Drawer/DrawerService.vue.d.ts +1 -1
  92. package/es/Drawer/index.d.ts +5 -9
  93. package/es/Drawer/type.d.ts +8 -4
  94. package/es/Dropdown/Doption.vue.js +2 -2
  95. package/es/Dropdown/Dropdown.vue.d.ts +3 -3
  96. package/es/Dropdown/Dropdown.vue.js +2 -2
  97. package/es/Dropdown/DropdownButton.vue.d.ts +3 -3
  98. package/es/Dropdown/Dsubmenu.vue.d.ts +1 -1
  99. package/es/Dropdown/Dsubmenu.vue.js +1 -1
  100. package/es/Dropdown/hooks/useContext.d.ts +2 -2
  101. package/es/Dropdown/hooks/useContext.js +3 -3
  102. package/es/Dropdown/index.d.ts +19 -19
  103. package/es/Dropdown/type.d.ts +4 -6
  104. package/es/Grid/Grid.vue.js +2 -2
  105. package/es/Grid/GridCol.vue.js +2 -2
  106. package/es/Grid/GridItem.vue.js +2 -2
  107. package/es/Grid/GridRow.vue.js +2 -2
  108. package/es/Grid/hooks/useContext.d.ts +1 -13
  109. package/es/Grid/hooks/useContext.js +3 -4
  110. package/es/Image/Image.vue.d.ts +2 -2
  111. package/es/Image/Image.vue.js +2 -2
  112. package/es/Image/ImagePreview.vue.js +2 -2
  113. package/es/Image/ImagePreviewGroup.vue.js +2 -2
  114. package/es/Image/hooks/useContext.d.ts +2 -2
  115. package/es/Image/hooks/useContext.js +3 -3
  116. package/es/Image/index.d.ts +6 -6
  117. package/es/Image/type.d.ts +3 -2
  118. package/es/Input/Input.vue.d.ts +3 -3
  119. package/es/Input/InputSuffix.vue.js +1 -1
  120. package/es/Input/index.d.ts +8 -8
  121. package/es/InputNumber/InputNumber.vue.d.ts +20 -20
  122. package/es/InputNumber/InputOperaBtn.vue.d.ts +2 -2
  123. package/es/InputNumber/index.d.ts +19 -19
  124. package/es/InputNumber/type.d.ts +5 -4
  125. package/es/InputTag/index.d.ts +20 -11
  126. package/es/InputTag/index.vue.d.ts +7 -4
  127. package/es/InputTag/index.vue.js +1 -1
  128. package/es/InputTag/type.d.ts +2 -1
  129. package/es/Layout/LayoutSider.vue.d.ts +3 -3
  130. package/es/Layout/LayoutSider.vue.js +2 -2
  131. package/es/Layout/hooks/useSiderContext.d.ts +1 -2
  132. package/es/Layout/hooks/useSiderContext.js +3 -3
  133. package/es/Layout/index.d.ts +8 -8
  134. package/es/Layout/type.d.ts +3 -4
  135. package/es/Link/index.d.ts +3 -3
  136. package/es/Link/index.vue.d.ts +1 -1
  137. package/es/Link/type.d.ts +2 -2
  138. package/es/List/List.vue.d.ts +7 -7
  139. package/es/List/hooks/useScrollReach.js +1 -0
  140. package/es/List/index.d.ts +6 -6
  141. package/es/List/type.d.ts +2 -3
  142. package/es/Mention/index.d.ts +49 -40
  143. package/es/Mention/index.vue.d.ts +85 -67
  144. package/es/Mention/type.d.ts +3 -2
  145. package/es/Menu/Menu.vue.d.ts +2 -2
  146. package/es/Menu/MenuItem.vue.js +1 -1
  147. package/es/Menu/hooks/useContext.d.ts +2 -2
  148. package/es/Menu/hooks/useContext.js +5 -5
  149. package/es/Menu/index.d.ts +5 -5
  150. package/es/Menu/type.d.ts +2 -2
  151. package/es/Message/type.d.ts +3 -3
  152. package/es/Modal/Modal.vue.d.ts +1 -1
  153. package/es/Modal/ModalService.vue.d.ts +1 -1
  154. package/es/Modal/index.d.ts +13 -13
  155. package/es/Modal/index.js +1 -4
  156. package/es/Modal/type.d.ts +6 -9
  157. package/es/Notification/Notification.vue.d.ts +1 -1
  158. package/es/Notification/index.d.ts +4 -4
  159. package/es/Notification/type.d.ts +3 -4
  160. package/es/OverflowList/index.d.ts +3 -3
  161. package/es/OverflowList/index.vue.d.ts +1 -1
  162. package/es/OverflowList/index.vue.js +2 -2
  163. package/es/OverflowList/type.d.ts +3 -2
  164. package/es/Pagination/Pagination.vue.js +2 -2
  165. package/es/Pagination/PaginationItem.vue.js +2 -2
  166. package/es/Pagination/hooks/useContext.d.ts +2 -2
  167. package/es/Pagination/hooks/useContext.js +3 -3
  168. package/es/Popconfirm/index.d.ts +8 -8
  169. package/es/Popconfirm/index.vue.d.ts +3 -3
  170. package/es/Popconfirm/type.d.ts +2 -3
  171. package/es/Progress/Progress.vue.d.ts +1 -1
  172. package/es/Progress/ProgressCircle.vue.d.ts +3 -3
  173. package/es/Progress/ProgressLine.vue.d.ts +3 -3
  174. package/es/Progress/index.d.ts +3 -3
  175. package/es/Progress/type.d.ts +2 -3
  176. package/es/Radio/Radio.vue.js +2 -2
  177. package/es/Radio/RadioGroup.vue.js +2 -2
  178. package/es/Radio/hooks/useContext.d.ts +2 -2
  179. package/es/Radio/hooks/useContext.js +3 -3
  180. package/es/Radio/type.d.ts +1 -1
  181. package/es/ResizeBox/index.d.ts +3 -3
  182. package/es/ResizeBox/index.vue.d.ts +2 -2
  183. package/es/ResizeBox/type.d.ts +4 -4
  184. package/es/Result/index.d.ts +3 -3
  185. package/es/Result/index.vue.d.ts +1 -1
  186. package/es/Result/type.d.ts +3 -2
  187. package/es/Scrollbar/Scrollbar.vue.d.ts +1 -1
  188. package/es/Scrollbar/Scrollbar.vue.js +2 -2
  189. package/es/Scrollbar/ScrollbarTrack.vue.js +2 -2
  190. package/es/Scrollbar/hooks/useContext.d.ts +2 -2
  191. package/es/Scrollbar/hooks/useContext.js +3 -3
  192. package/es/Scrollbar/index.d.ts +3 -3
  193. package/es/Scrollbar/type.d.ts +2 -1
  194. package/es/Select/Option.vue.js +2 -2
  195. package/es/Select/Select.vue.d.ts +45 -27
  196. package/es/Select/Select.vue.js +2 -2
  197. package/es/Select/SelectIcon.vue.js +2 -2
  198. package/es/Select/SelectRealList.vue.js +2 -2
  199. package/es/Select/SelectView.vue.js +2 -2
  200. package/es/Select/SelectVirtualList.vue.js +3 -3
  201. package/es/Select/hooks/useContext.d.ts +4 -4
  202. package/es/Select/hooks/useContext.js +3 -3
  203. package/es/Select/hooks/useSelectOptions.d.ts +2 -2
  204. package/es/Select/index.d.ts +33 -24
  205. package/es/Skeleton/SkeletonShape.vue.d.ts +2 -2
  206. package/es/Skeleton/index.d.ts +2 -2
  207. package/es/Skeleton/type.d.ts +2 -4
  208. package/es/Slider/Slider.vue.js +2 -2
  209. package/es/Slider/SliderBtn.vue.js +2 -2
  210. package/es/Slider/SliderInput.vue.js +2 -2
  211. package/es/Slider/SliderTicks.vue.js +2 -2
  212. package/es/Slider/hooks/useContext.d.ts +2 -2
  213. package/es/Slider/hooks/useContext.js +3 -3
  214. package/es/Space/index.d.ts +6 -6
  215. package/es/Space/index.vue.d.ts +2 -2
  216. package/es/Space/type.d.ts +5 -4
  217. package/es/Spin/index.vue.js +1 -1
  218. package/es/Steps/Step.vue.js +2 -2
  219. package/es/Steps/Steps.vue.js +2 -2
  220. package/es/Steps/hooks/useContext.d.ts +1 -2
  221. package/es/Steps/hooks/useContext.js +3 -3
  222. package/es/Switch/index.d.ts +14 -14
  223. package/es/Switch/index.vue.d.ts +5 -5
  224. package/es/Switch/type.d.ts +4 -4
  225. package/es/Tabs/TabPane.vue.js +2 -2
  226. package/es/Tabs/Tabs.vue.d.ts +1 -1
  227. package/es/Tabs/Tabs.vue.js +2 -2
  228. package/es/Tabs/TabsNavInk.vue.js +2 -2
  229. package/es/Tabs/TabsTab.vue.js +2 -2
  230. package/es/Tabs/hooks/useContext.d.ts +6 -6
  231. package/es/Tabs/hooks/useContext.js +3 -3
  232. package/es/Tabs/index.d.ts +3 -3
  233. package/es/Tabs/type.d.ts +2 -3
  234. package/es/Tag/index.d.ts +3 -3
  235. package/es/Tag/index.vue.d.ts +1 -1
  236. package/es/Tag/type.d.ts +1 -2
  237. package/es/Textarea/hooks/useTextareaHeight.js +1 -1
  238. package/es/Textarea/index.d.ts +5 -5
  239. package/es/Textarea/index.vue.d.ts +2 -2
  240. package/es/Textarea/type.d.ts +2 -2
  241. package/es/TimePicker/TimePicker.vue.d.ts +5 -5
  242. package/es/TimePicker/TimePicker.vue.js +2 -2
  243. package/es/TimePicker/TimePickerPanel.vue.js +2 -2
  244. package/es/TimePicker/hooks/useContext.d.ts +2 -2
  245. package/es/TimePicker/hooks/useContext.js +3 -3
  246. package/es/TimePicker/index.d.ts +13 -13
  247. package/es/Timeline/Timeline.vue.js +2 -2
  248. package/es/Timeline/TimelineItem.vue.d.ts +1 -1
  249. package/es/Timeline/TimelineItem.vue.js +2 -2
  250. package/es/Timeline/hooks/useContext.d.ts +2 -2
  251. package/es/Timeline/hooks/useContext.js +3 -3
  252. package/es/Timeline/index.d.ts +3 -3
  253. package/es/Timeline/type.d.ts +3 -4
  254. package/es/Transfer/Transfer.vue.js +2 -2
  255. package/es/Transfer/TransferPanel.vue.js +3 -3
  256. package/es/Transfer/hooks/useContext.d.ts +2 -2
  257. package/es/Transfer/hooks/useContext.js +3 -3
  258. package/es/Trigger/hooks/useContext.d.ts +2 -3
  259. package/es/Trigger/hooks/useContext.js +4 -4
  260. package/es/Trigger/hooks/useTriggerPosition.js +1 -1
  261. package/es/Trigger/hooks/useTriggerVisible.js +2 -2
  262. package/es/Typography/TypographyBase.vue.d.ts +17 -17
  263. package/es/Typography/TypographyBase.vue.js +1 -1
  264. package/es/Typography/TypographyParagraph.vue.d.ts +1 -1
  265. package/es/Typography/TypographyTitle.vue.d.ts +1 -1
  266. package/es/Typography/type.d.ts +5 -4
  267. package/es/Upload/Upload.vue.d.ts +53 -0
  268. package/es/Upload/Upload.vue.js +110 -0
  269. package/es/Upload/Upload.vue3.js +5 -0
  270. package/es/Upload/UploadButton.vue.d.ts +2 -0
  271. package/es/Upload/UploadButton.vue.js +39 -0
  272. package/es/Upload/UploadButton.vue3.js +5 -0
  273. package/es/Upload/UploadDrag.vue.d.ts +2 -0
  274. package/es/Upload/UploadDrag.vue.js +37 -0
  275. package/es/Upload/UploadDrag.vue3.js +5 -0
  276. package/es/Upload/UploadFileList.vue.d.ts +24 -0
  277. package/es/Upload/UploadFileList.vue.js +7 -0
  278. package/es/Upload/UploadFileList.vue2.js +126 -0
  279. package/es/Upload/UploadPictureCard.vue.d.ts +4 -0
  280. package/es/Upload/UploadPictureCard.vue.js +7 -0
  281. package/es/Upload/UploadPictureCard.vue2.js +132 -0
  282. package/es/Upload/hooks/useContext.d.ts +49 -0
  283. package/es/Upload/hooks/useContext.js +92 -0
  284. package/es/Upload/hooks/useUpload.d.ts +47 -0
  285. package/es/Upload/hooks/useUpload.js +80 -0
  286. package/es/Upload/index.css +1 -0
  287. package/es/Upload/index.d.ts +123 -0
  288. package/es/Upload/index.js +10 -0
  289. package/es/Upload/type.d.ts +72 -0
  290. package/es/VerificationCode/index.d.ts +3 -3
  291. package/es/VerificationCode/index.vue.d.ts +1 -1
  292. package/es/VerificationCode/type.d.ts +5 -4
  293. package/es/Watermark/index.vue.js +1 -1
  294. package/es/_shared/icons/IconDelete.vue.js +19 -1
  295. package/es/_shared/icons/IconDelete.vue2.js +1 -19
  296. package/es/_shared/icons/IconEyeOpen.vue.js +1 -20
  297. package/es/_shared/icons/IconEyeOpen.vue2.js +20 -1
  298. package/es/_shared/icons/IconFile.vue.d.ts +2 -0
  299. package/es/_shared/icons/IconFile.vue.js +22 -0
  300. package/es/_shared/icons/IconFile.vue2.js +4 -0
  301. package/es/_shared/icons/IconSeparator.vue.js +1 -19
  302. package/es/_shared/icons/IconSeparator.vue2.js +19 -1
  303. package/es/_shared/icons/IconUpload.vue.d.ts +2 -0
  304. package/es/_shared/icons/IconUpload.vue.js +22 -0
  305. package/es/_shared/icons/IconUpload.vue2.js +4 -0
  306. package/es/_shared/icons/index.d.ts +2 -0
  307. package/es/_shared/type/index.d.ts +3 -1
  308. package/es/_shared/utils/is.d.ts +0 -15
  309. package/es/_shared/utils/vue-utils.d.ts +1 -0
  310. package/es/_virtual/_plugin-vue_export-helper.js +10 -0
  311. package/es/index.d.ts +36 -35
  312. package/es/index.js +5 -3
  313. package/es/node_modules/@vueuse/core/index.js +171 -9
  314. package/es/node_modules/@vueuse/shared/index.js +29 -0
  315. package/es/style.css +1 -1
  316. package/lib/Affix/index.vue.js +1 -1
  317. package/lib/Alert/index.d.ts +3 -3
  318. package/lib/Alert/index.vue.d.ts +1 -1
  319. package/lib/Alert/type.d.ts +2 -2
  320. package/lib/Anchor/Anchor.vue.d.ts +1 -1
  321. package/lib/Anchor/hooks/useContext.d.ts +3 -3
  322. package/lib/Anchor/hooks/useContext.js +1 -1
  323. package/lib/Anchor/index.d.ts +3 -3
  324. package/lib/Anchor/type.d.ts +3 -2
  325. package/lib/AutoComplete/index.d.ts +40 -31
  326. package/lib/AutoComplete/index.vue.d.ts +72 -54
  327. package/lib/Avatar/Avatar.vue.d.ts +1 -1
  328. package/lib/Avatar/Avatar.vue.js +1 -1
  329. package/lib/Avatar/hooks/useContext.d.ts +1 -2
  330. package/lib/Avatar/hooks/useContext.js +1 -1
  331. package/lib/Avatar/index.d.ts +3 -3
  332. package/lib/Avatar/type.d.ts +3 -2
  333. package/lib/BackTop/index.vue.js +1 -1
  334. package/lib/Badge/index.d.ts +3 -3
  335. package/lib/Badge/index.vue.d.ts +1 -1
  336. package/lib/Badge/type.d.ts +2 -2
  337. package/lib/Breadcrumb/BreadcrumbSeparator.vue.js +1 -1
  338. package/lib/Button/Button.vue.d.ts +2 -2
  339. package/lib/Button/ButtonGroup.vue.d.ts +1 -1
  340. package/lib/Button/hooks/useContext.d.ts +4 -5
  341. package/lib/Button/hooks/useContext.js +1 -1
  342. package/lib/Button/index.d.ts +9 -9
  343. package/lib/Button/type.d.ts +6 -6
  344. package/lib/Card/Card.vue.d.ts +1 -1
  345. package/lib/Card/hooks/useContext.d.ts +2 -2
  346. package/lib/Card/hooks/useContext.js +1 -1
  347. package/lib/Card/index.d.ts +3 -3
  348. package/lib/Card/type.d.ts +1 -2
  349. package/lib/Carousel/Carousel.vue.d.ts +2 -2
  350. package/lib/Carousel/hooks/useContext.d.ts +5 -5
  351. package/lib/Carousel/hooks/useContext.js +1 -1
  352. package/lib/Carousel/index.d.ts +6 -6
  353. package/lib/Carousel/type.d.ts +6 -6
  354. package/lib/Cascader/Cascader.vue.d.ts +23 -23
  355. package/lib/Cascader/hooks/useContext.d.ts +2 -2
  356. package/lib/Cascader/hooks/useContext.js +1 -1
  357. package/lib/Cascader/index.d.ts +26 -26
  358. package/lib/Checkbox/hooks/useContext.d.ts +2 -2
  359. package/lib/Checkbox/hooks/useContext.js +1 -1
  360. package/lib/Collapse/hooks/useContext.d.ts +3 -15
  361. package/lib/Collapse/hooks/useContext.js +1 -1
  362. package/lib/Collapse/type.d.ts +2 -1
  363. package/lib/ColorPicker/ColorControl.vue.js +1 -1
  364. package/lib/ColorPicker/ColorPalette.vue.js +1 -1
  365. package/lib/ColorPicker/hooks/useContext.d.ts +2 -2
  366. package/lib/ColorPicker/hooks/useContext.js +1 -1
  367. package/lib/Comment/hooks/useContext.d.ts +1 -2
  368. package/lib/Comment/hooks/useContext.js +1 -1
  369. package/lib/Descriptions/Descriptions.vue.d.ts +3 -3
  370. package/lib/Descriptions/hooks/useContext.d.ts +3 -3
  371. package/lib/Descriptions/hooks/useContext.js +1 -1
  372. package/lib/Descriptions/index.d.ts +9 -9
  373. package/lib/Descriptions/type.d.ts +7 -6
  374. package/lib/Divider/index.d.ts +6 -6
  375. package/lib/Divider/index.vue.d.ts +2 -2
  376. package/lib/Divider/type.d.ts +4 -3
  377. package/lib/Drawer/Drawer.vue.d.ts +1 -1
  378. package/lib/Drawer/DrawerService.vue.d.ts +1 -1
  379. package/lib/Drawer/index.d.ts +5 -9
  380. package/lib/Drawer/type.d.ts +8 -4
  381. package/lib/Dropdown/Dropdown.vue.d.ts +3 -3
  382. package/lib/Dropdown/DropdownButton.vue.d.ts +3 -3
  383. package/lib/Dropdown/Dsubmenu.vue.d.ts +1 -1
  384. package/lib/Dropdown/Dsubmenu.vue.js +1 -1
  385. package/lib/Dropdown/hooks/useContext.d.ts +2 -2
  386. package/lib/Dropdown/hooks/useContext.js +1 -1
  387. package/lib/Dropdown/index.d.ts +19 -19
  388. package/lib/Dropdown/type.d.ts +4 -6
  389. package/lib/Grid/hooks/useContext.d.ts +1 -13
  390. package/lib/Grid/hooks/useContext.js +1 -1
  391. package/lib/Image/Image.vue.d.ts +2 -2
  392. package/lib/Image/ImagePreview.vue.js +1 -1
  393. package/lib/Image/hooks/useContext.d.ts +2 -2
  394. package/lib/Image/hooks/useContext.js +1 -1
  395. package/lib/Image/index.d.ts +6 -6
  396. package/lib/Image/type.d.ts +3 -2
  397. package/lib/Input/Input.vue.d.ts +3 -3
  398. package/lib/Input/InputSuffix.vue.js +1 -1
  399. package/lib/Input/index.d.ts +8 -8
  400. package/lib/InputNumber/InputNumber.vue.d.ts +20 -20
  401. package/lib/InputNumber/InputOperaBtn.vue.d.ts +2 -2
  402. package/lib/InputNumber/index.d.ts +19 -19
  403. package/lib/InputNumber/type.d.ts +5 -4
  404. package/lib/InputTag/index.d.ts +20 -11
  405. package/lib/InputTag/index.vue.d.ts +7 -4
  406. package/lib/InputTag/index.vue.js +1 -1
  407. package/lib/InputTag/type.d.ts +2 -1
  408. package/lib/Layout/LayoutSider.vue.d.ts +3 -3
  409. package/lib/Layout/hooks/useSiderContext.d.ts +1 -2
  410. package/lib/Layout/hooks/useSiderContext.js +1 -1
  411. package/lib/Layout/index.d.ts +8 -8
  412. package/lib/Layout/type.d.ts +3 -4
  413. package/lib/Link/index.d.ts +3 -3
  414. package/lib/Link/index.vue.d.ts +1 -1
  415. package/lib/Link/type.d.ts +2 -2
  416. package/lib/List/List.vue.d.ts +7 -7
  417. package/lib/List/hooks/useScrollReach.js +1 -1
  418. package/lib/List/index.d.ts +6 -6
  419. package/lib/List/type.d.ts +2 -3
  420. package/lib/Mention/index.d.ts +49 -40
  421. package/lib/Mention/index.vue.d.ts +85 -67
  422. package/lib/Mention/type.d.ts +3 -2
  423. package/lib/Menu/Menu.vue.d.ts +2 -2
  424. package/lib/Menu/MenuItem.vue.js +1 -1
  425. package/lib/Menu/hooks/useContext.d.ts +2 -2
  426. package/lib/Menu/hooks/useContext.js +1 -1
  427. package/lib/Menu/index.d.ts +5 -5
  428. package/lib/Menu/type.d.ts +2 -2
  429. package/lib/Message/type.d.ts +3 -3
  430. package/lib/Modal/Modal.vue.d.ts +1 -1
  431. package/lib/Modal/ModalService.vue.d.ts +1 -1
  432. package/lib/Modal/index.d.ts +13 -13
  433. package/lib/Modal/index.js +1 -1
  434. package/lib/Modal/type.d.ts +6 -9
  435. package/lib/Notification/Notification.vue.d.ts +1 -1
  436. package/lib/Notification/index.d.ts +4 -4
  437. package/lib/Notification/type.d.ts +3 -4
  438. package/lib/OverflowList/index.d.ts +3 -3
  439. package/lib/OverflowList/index.vue.d.ts +1 -1
  440. package/lib/OverflowList/index.vue.js +1 -1
  441. package/lib/OverflowList/type.d.ts +3 -2
  442. package/lib/Pagination/hooks/useContext.d.ts +2 -2
  443. package/lib/Pagination/hooks/useContext.js +1 -1
  444. package/lib/Popconfirm/index.d.ts +8 -8
  445. package/lib/Popconfirm/index.vue.d.ts +3 -3
  446. package/lib/Popconfirm/type.d.ts +2 -3
  447. package/lib/Progress/Progress.vue.d.ts +1 -1
  448. package/lib/Progress/ProgressCircle.vue.d.ts +3 -3
  449. package/lib/Progress/ProgressLine.vue.d.ts +3 -3
  450. package/lib/Progress/index.d.ts +3 -3
  451. package/lib/Progress/type.d.ts +2 -3
  452. package/lib/Radio/hooks/useContext.d.ts +2 -2
  453. package/lib/Radio/hooks/useContext.js +1 -1
  454. package/lib/Radio/type.d.ts +1 -1
  455. package/lib/ResizeBox/index.d.ts +3 -3
  456. package/lib/ResizeBox/index.vue.d.ts +2 -2
  457. package/lib/ResizeBox/type.d.ts +4 -4
  458. package/lib/Result/index.d.ts +3 -3
  459. package/lib/Result/index.vue.d.ts +1 -1
  460. package/lib/Result/type.d.ts +3 -2
  461. package/lib/Scrollbar/Scrollbar.vue.d.ts +1 -1
  462. package/lib/Scrollbar/hooks/useContext.d.ts +2 -2
  463. package/lib/Scrollbar/hooks/useContext.js +1 -1
  464. package/lib/Scrollbar/index.d.ts +3 -3
  465. package/lib/Scrollbar/type.d.ts +2 -1
  466. package/lib/Select/Select.vue.d.ts +45 -27
  467. package/lib/Select/SelectVirtualList.vue.js +1 -1
  468. package/lib/Select/hooks/useContext.d.ts +4 -4
  469. package/lib/Select/hooks/useContext.js +1 -1
  470. package/lib/Select/hooks/useSelectOptions.d.ts +2 -2
  471. package/lib/Select/index.d.ts +33 -24
  472. package/lib/Skeleton/SkeletonShape.vue.d.ts +2 -2
  473. package/lib/Skeleton/index.d.ts +2 -2
  474. package/lib/Skeleton/type.d.ts +2 -4
  475. package/lib/Slider/hooks/useContext.d.ts +2 -2
  476. package/lib/Slider/hooks/useContext.js +1 -1
  477. package/lib/Space/index.d.ts +6 -6
  478. package/lib/Space/index.vue.d.ts +2 -2
  479. package/lib/Space/type.d.ts +5 -4
  480. package/lib/Spin/index.vue.js +1 -1
  481. package/lib/Steps/hooks/useContext.d.ts +1 -2
  482. package/lib/Steps/hooks/useContext.js +1 -1
  483. package/lib/Switch/index.d.ts +14 -14
  484. package/lib/Switch/index.vue.d.ts +5 -5
  485. package/lib/Switch/type.d.ts +4 -4
  486. package/lib/Tabs/Tabs.vue.d.ts +1 -1
  487. package/lib/Tabs/hooks/useContext.d.ts +6 -6
  488. package/lib/Tabs/hooks/useContext.js +1 -1
  489. package/lib/Tabs/index.d.ts +3 -3
  490. package/lib/Tabs/type.d.ts +2 -3
  491. package/lib/Tag/index.d.ts +3 -3
  492. package/lib/Tag/index.vue.d.ts +1 -1
  493. package/lib/Tag/type.d.ts +1 -2
  494. package/lib/Textarea/hooks/useTextareaHeight.js +1 -1
  495. package/lib/Textarea/index.d.ts +5 -5
  496. package/lib/Textarea/index.vue.d.ts +2 -2
  497. package/lib/Textarea/type.d.ts +2 -2
  498. package/lib/TimePicker/TimePicker.vue.d.ts +5 -5
  499. package/lib/TimePicker/hooks/useContext.d.ts +2 -2
  500. package/lib/TimePicker/hooks/useContext.js +1 -1
  501. package/lib/TimePicker/index.d.ts +13 -13
  502. package/lib/Timeline/TimelineItem.vue.d.ts +1 -1
  503. package/lib/Timeline/hooks/useContext.d.ts +2 -2
  504. package/lib/Timeline/hooks/useContext.js +1 -1
  505. package/lib/Timeline/index.d.ts +3 -3
  506. package/lib/Timeline/type.d.ts +3 -4
  507. package/lib/Transfer/TransferPanel.vue.js +1 -1
  508. package/lib/Transfer/hooks/useContext.d.ts +2 -2
  509. package/lib/Transfer/hooks/useContext.js +1 -1
  510. package/lib/Trigger/hooks/useContext.d.ts +2 -3
  511. package/lib/Trigger/hooks/useContext.js +1 -1
  512. package/lib/Trigger/hooks/useTriggerPosition.js +1 -1
  513. package/lib/Trigger/hooks/useTriggerVisible.js +1 -1
  514. package/lib/Typography/TypographyBase.vue.d.ts +17 -17
  515. package/lib/Typography/TypographyBase.vue.js +1 -1
  516. package/lib/Typography/TypographyParagraph.vue.d.ts +1 -1
  517. package/lib/Typography/TypographyTitle.vue.d.ts +1 -1
  518. package/lib/Typography/type.d.ts +5 -4
  519. package/lib/Upload/Upload.vue.d.ts +53 -0
  520. package/lib/Upload/Upload.vue.js +1 -0
  521. package/lib/Upload/Upload.vue3.js +1 -0
  522. package/lib/Upload/UploadButton.vue.d.ts +2 -0
  523. package/lib/Upload/UploadButton.vue.js +1 -0
  524. package/lib/Upload/UploadButton.vue3.js +1 -0
  525. package/lib/Upload/UploadDrag.vue.d.ts +2 -0
  526. package/lib/Upload/UploadDrag.vue.js +1 -0
  527. package/lib/Upload/UploadDrag.vue3.js +1 -0
  528. package/lib/Upload/UploadFileList.vue.d.ts +24 -0
  529. package/lib/Upload/UploadFileList.vue.js +1 -0
  530. package/lib/Upload/UploadFileList.vue2.js +1 -0
  531. package/lib/Upload/UploadPictureCard.vue.d.ts +4 -0
  532. package/lib/Upload/UploadPictureCard.vue.js +1 -0
  533. package/lib/Upload/UploadPictureCard.vue2.js +1 -0
  534. package/lib/Upload/hooks/useContext.d.ts +49 -0
  535. package/lib/Upload/hooks/useContext.js +1 -0
  536. package/lib/Upload/hooks/useUpload.d.ts +47 -0
  537. package/lib/Upload/hooks/useUpload.js +1 -0
  538. package/lib/Upload/index.css +1 -0
  539. package/lib/Upload/index.d.ts +123 -0
  540. package/lib/Upload/index.js +1 -0
  541. package/lib/Upload/type.d.ts +72 -0
  542. package/lib/VerificationCode/index.d.ts +3 -3
  543. package/lib/VerificationCode/index.vue.d.ts +1 -1
  544. package/lib/VerificationCode/type.d.ts +5 -4
  545. package/lib/Watermark/index.vue.js +1 -1
  546. package/lib/_shared/icons/IconDelete.vue.js +1 -1
  547. package/lib/_shared/icons/IconDelete.vue2.js +1 -1
  548. package/lib/_shared/icons/IconEyeOpen.vue.js +1 -1
  549. package/lib/_shared/icons/IconEyeOpen.vue2.js +1 -1
  550. package/lib/_shared/icons/IconFile.vue.d.ts +2 -0
  551. package/lib/_shared/icons/IconFile.vue.js +1 -0
  552. package/lib/_shared/icons/IconFile.vue2.js +1 -0
  553. package/lib/_shared/icons/IconSeparator.vue.js +1 -1
  554. package/lib/_shared/icons/IconSeparator.vue2.js +1 -1
  555. package/lib/_shared/icons/IconUpload.vue.d.ts +2 -0
  556. package/lib/_shared/icons/IconUpload.vue.js +1 -0
  557. package/lib/_shared/icons/IconUpload.vue2.js +1 -0
  558. package/lib/_shared/icons/index.d.ts +2 -0
  559. package/lib/_shared/type/index.d.ts +3 -1
  560. package/lib/_shared/utils/is.d.ts +0 -15
  561. package/lib/_shared/utils/vue-utils.d.ts +1 -0
  562. package/lib/_virtual/_plugin-vue_export-helper.js +1 -0
  563. package/lib/index.d.ts +36 -35
  564. package/lib/index.js +1 -1
  565. package/lib/node_modules/@vueuse/core/index.js +1 -1
  566. package/lib/node_modules/@vueuse/shared/index.js +1 -1
  567. package/lib/style.css +1 -1
  568. package/package.json +1 -1
@@ -7,7 +7,7 @@ export interface MentionProps {
7
7
  data?: SelectOption[];
8
8
  prefix?: string | string[];
9
9
  split?: string;
10
- type?: MentionType;
10
+ type?: Type;
11
11
  disabled?: boolean;
12
12
  allowClear?: boolean;
13
13
  }
@@ -30,4 +30,5 @@ export interface MentionSlots {
30
30
  data: RecordType;
31
31
  }) => VNode[];
32
32
  }
33
- export type MentionType = 'input' | 'textarea';
33
+ type Type = 'input' | 'textarea';
34
+ export {};
@@ -9,14 +9,14 @@ declare function __VLS_template(): {
9
9
  };
10
10
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
11
  declare const __VLS_component: import('vue').DefineComponent<MenuProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
12
- collapse: (collapsed: boolean, type: import('..').collapseType) => any;
12
+ collapse: (collapsed: boolean, type: "clickTrigger" | "responsive") => any;
13
13
  "update:selectedKeys": (value: string) => any;
14
14
  "update:openKeys": (value: string) => any;
15
15
  "update:collapsed": (value: boolean) => any;
16
16
  "menu-item-click": (key: string) => any;
17
17
  "sub-menu-click": (key: string, openKeys: string[]) => any;
18
18
  }, string, import('vue').PublicProps, Readonly<MenuProps> & Readonly<{
19
- onCollapse?: ((collapsed: boolean, type: import('..').collapseType) => any) | undefined;
19
+ onCollapse?: ((collapsed: boolean, type: "clickTrigger" | "responsive") => any) | undefined;
20
20
  "onUpdate:selectedKeys"?: ((value: string) => any) | undefined;
21
21
  "onUpdate:openKeys"?: ((value: string) => any) | undefined;
22
22
  "onUpdate:collapsed"?: ((value: boolean) => any) | undefined;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=require("../node_modules/@vueuse/core/index.js"),l=require("../_shared/utils/is.js"),u=require("../_shared/utils/dom.js"),o=require("./hooks/useContext.js"),a=require("./MenuPopOption.vue.js"),n=require("../Dropdown/index.js"),r=require("../Tooltip/index.js"),i={key:1,class:"yc-menu-icon"},c={key:2,class:"yc-menu-icon-suffix"},s=e.defineComponent({name:"MenuItem",__name:"MenuItem",props:{path:{default:""},disabled:{type:Boolean,default:!1}},setup(s){const p=e.useSlots(),d=s,{path:v,disabled:m}=e.toRefs(d),{reuse:f,define:h}=t.createReusableTemplate(),k=e.useAttrs(),{computedSelectedKeys:y,computedOpenKeys:g,computedCollapsed:x,levelIndent:B,mode:w,theme:C,autoOpen:S,autoOpenSelected:z,accordion:M,triggerProps:N,tooltipProps:V,autoScrollIntoView:_,scrollConfig:b,popupMaxHeight:j,menuTreeNodes:I,menuTree:P,max:q,menuItemWidths:E,emits:O}=o.default().inject(),T=e.computed(()=>I.value.find(e=>e.path==v.value)||{type:"menuitem",level:0}),$=e.computed(()=>P.value.findIndex(e=>e.path==v.value)),A=e.computed(()=>{var e;return(null==(e=P.value[$.value])?void 0:e.children)||[]}),D=e.computed(()=>"submenu"==T.value.type),H=e.computed(()=>0===T.value.level),F=e.computed(()=>o.isMenuItemActive(P.value,v.value,y.value)),R=e.computed(()=>l.isUndefined(k.popupMaxHeight)?j.value:o.getPopupMaxHeight(k.popupMaxHeight)),K=e.ref(),W=e=>{y.value!=e&&(y.value=e,O("menu-item-click",e))},L=()=>{if(!("vertical"!=w.value&&D.value||x.value)){if(!D.value&&!m.value&&y.value!=v.value)return y.value=v.value,O("menu-item-click",v.value);g.value.includes(v.value)?g.value=g.value.filter(e=>e!=v.value):g.value=M.value?[v.value]:[...g.value,v.value],O("sub-menu-click",v.value,g.value)}};return e.onMounted(()=>{var e;H.value&&(E.value[$.value]=K.value.offsetWidth),_.value&&y.value==v.value&&(null==(e=K.value)||e.scrollIntoView(b.value)),D.value&&S.value&&z.value&&F.value&&g.value.push(v.value)}),(t,l)=>$.value<e.unref(q)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["yc-menu-item-wrapper",`yc-menu-item-${e.unref(C)}`,{"yc-menu-item-mode-horizontal":"horizontal"==e.unref(w)}])},[e.createVNode(e.unref(h),null,{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["yc-menu-item",{"yc-menu-item-selected":F.value,"yc-menu-item-disabled":e.unref(m),"yc-menu-item-collapsed":e.unref(x)}]),ref_key:"menuItemRef",ref:K,onClick:L},[H.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"yc-menu-indent",style:e.normalizeStyle({width:e.unref(u.valueToPx)(e.unref(B)*T.value.level),height:e.unref(u.valueToPx)(e.unref(B))})},null,4)),p.icon?(e.openBlock(),e.createElementBlock("div",i,[e.renderSlot(t.$slots,"icon")])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["yc-menu-item-title",{"text-ellipsis":"horizontal"!=e.unref(w)}])},[e.renderSlot(t.$slots,"default")],2),[[e.vShow,!e.unref(x)]]),p.suffix?e.withDirectives((e.openBlock(),e.createElementBlock("div",c,[e.renderSlot(t.$slots,"suffix")],512)),[[e.vShow,!e.unref(x)]]):e.createCommentVNode("",!0)],2)]),_:3}),D.value&&H.value&&("vertical"!=e.unref(w)||e.unref(x))?(e.openBlock(),e.createBlock(e.unref(n.default),{key:0,"popup-max-height":R.value,"trigger-props":{autoFitPosition:!1,position:"horizontal"==e.unref(w)?"bl":"rt",animationName:"horizontal"==e.unref(w)?"slide-dynamic-origin":"zoom-in-fade-out",popupOffset:"vertical"==e.unref(w)?14:20,showArrow:!0,...e.unref(N)},class:e.normalizeClass([`yc-dropdown-popup-${e.unref(C)}`]),onSelect:W},{content:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.value,t=>(e.openBlock(),e.createBlock(a.default,{key:t.path,"tree-node":t,"popup-max-height":R.value,"trigger-props":e.unref(N),"computed-selected-keys":e.unref(y)},null,8,["tree-node","popup-max-height","trigger-props","computed-selected-keys"]))),128))]),default:e.withCtx(()=>[e.createVNode(e.unref(f))]),_:1},8,["popup-max-height","trigger-props","class"])):!D.value&&H.value&&e.unref(x)?(e.openBlock(),e.createBlock(e.unref(r.default),{key:1,position:"rt","trigger-props":{autoFitPosition:!1,popupOffset:"vertical"==e.unref(w)?14:18,showArrow:!0,...e.unref(V),...e.unref(N)}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(p.default)))]),default:e.withCtx(()=>[e.createVNode(e.unref(f))]),_:1},8,["trigger-props"])):(e.openBlock(),e.createBlock(e.unref(f),{key:2}))],2)):e.createCommentVNode("",!0)}});exports.default=s;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=require("../_shared/utils/is.js"),l=require("../_shared/utils/dom.js"),u=require("../node_modules/@vueuse/core/index.js"),o=require("./hooks/useContext.js"),a=require("./MenuPopOption.vue.js"),n=require("../Dropdown/index.js"),r=require("../Tooltip/index.js"),i={key:1,class:"yc-menu-icon"},c={key:2,class:"yc-menu-icon-suffix"},s=e.defineComponent({name:"MenuItem",__name:"MenuItem",props:{path:{default:""},disabled:{type:Boolean,default:!1}},setup(s){const p=e.useSlots(),d=s,{path:v,disabled:m}=e.toRefs(d),{reuse:f,define:h}=u.createReusableTemplate(),k=e.useAttrs(),{computedSelectedKeys:y,computedOpenKeys:g,computedCollapsed:x,levelIndent:B,mode:w,theme:C,autoOpen:S,autoOpenSelected:z,accordion:M,triggerProps:N,tooltipProps:V,autoScrollIntoView:_,scrollConfig:b,popupMaxHeight:j,menuTreeNodes:I,menuTree:P,max:q,menuItemWidths:E,emits:O}=o.default().inject(),T=e.computed(()=>I.value.find(e=>e.path==v.value)||{type:"menuitem",level:0}),$=e.computed(()=>P.value.findIndex(e=>e.path==v.value)),A=e.computed(()=>{var e;return(null==(e=P.value[$.value])?void 0:e.children)||[]}),D=e.computed(()=>"submenu"==T.value.type),H=e.computed(()=>0===T.value.level),F=e.computed(()=>o.isMenuItemActive(P.value,v.value,y.value)),R=e.computed(()=>t.isUndefined(k.popupMaxHeight)?j.value:o.getPopupMaxHeight(k.popupMaxHeight)),K=e.ref(),W=e=>{y.value!=e&&(y.value=e,O("menu-item-click",e))},L=()=>{if(!("vertical"!=w.value&&D.value||x.value)){if(!D.value&&!m.value&&y.value!=v.value)return y.value=v.value,O("menu-item-click",v.value);g.value.includes(v.value)?g.value=g.value.filter(e=>e!=v.value):g.value=M.value?[v.value]:[...g.value,v.value],O("sub-menu-click",v.value,g.value)}};return e.onMounted(()=>{var e;H.value&&(E.value[$.value]=K.value.offsetWidth),_.value&&y.value==v.value&&(null==(e=K.value)||e.scrollIntoView(b.value)),D.value&&S.value&&z.value&&F.value&&g.value.push(v.value)}),(t,u)=>$.value<e.unref(q)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["yc-menu-item-wrapper",`yc-menu-item-${e.unref(C)}`,{"yc-menu-item-mode-horizontal":"horizontal"==e.unref(w)}])},[e.createVNode(e.unref(h),null,{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["yc-menu-item",{"yc-menu-item-selected":F.value,"yc-menu-item-disabled":e.unref(m),"yc-menu-item-collapsed":e.unref(x)}]),ref_key:"menuItemRef",ref:K,onClick:L},[H.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"yc-menu-indent",style:e.normalizeStyle({width:e.unref(l.valueToPx)(e.unref(B)*T.value.level),height:e.unref(l.valueToPx)(e.unref(B))})},null,4)),p.icon?(e.openBlock(),e.createElementBlock("div",i,[e.renderSlot(t.$slots,"icon")])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["yc-menu-item-title",{"text-ellipsis":"horizontal"!=e.unref(w)}])},[e.renderSlot(t.$slots,"default")],2),[[e.vShow,!e.unref(x)]]),p.suffix?e.withDirectives((e.openBlock(),e.createElementBlock("div",c,[e.renderSlot(t.$slots,"suffix")],512)),[[e.vShow,!e.unref(x)]]):e.createCommentVNode("",!0)],2)]),_:3}),D.value&&H.value&&("vertical"!=e.unref(w)||e.unref(x))?(e.openBlock(),e.createBlock(e.unref(n.default),{key:0,"popup-max-height":R.value,"trigger-props":{autoFitPosition:!1,position:"horizontal"==e.unref(w)?"bl":"rt",animationName:"horizontal"==e.unref(w)?"slide-dynamic-origin":"zoom-in-fade-out",popupOffset:"vertical"==e.unref(w)?14:20,showArrow:!0,...e.unref(N)},class:e.normalizeClass([`yc-dropdown-popup-${e.unref(C)}`]),onSelect:W},{content:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.value,t=>(e.openBlock(),e.createBlock(a.default,{key:t.path,"tree-node":t,"popup-max-height":R.value,"trigger-props":e.unref(N),"computed-selected-keys":e.unref(y)},null,8,["tree-node","popup-max-height","trigger-props","computed-selected-keys"]))),128))]),default:e.withCtx(()=>[e.createVNode(e.unref(f))]),_:1},8,["popup-max-height","trigger-props","class"])):!D.value&&H.value&&e.unref(x)?(e.openBlock(),e.createBlock(e.unref(r.default),{key:1,position:"rt","trigger-props":{autoFitPosition:!1,popupOffset:"vertical"==e.unref(w)?14:18,showArrow:!0,...e.unref(V),...e.unref(N)}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(p.default)))]),default:e.withCtx(()=>[e.createVNode(e.unref(f))]),_:1},8,["trigger-props"])):(e.openBlock(),e.createBlock(e.unref(f),{key:2}))],2)):e.createCommentVNode("",!0)}});exports.default=s;
@@ -37,7 +37,7 @@ export declare function FlattenMenuTree(vnodes: VNode[], componentName: string[]
37
37
  export declare function buildMenuTree(flatData: MenuTreeNode[]): MenuTreeNode[];
38
38
  export declare function isMenuItemActive(menuTree: MenuTreeNode[], currentPath: string, activePath: string): boolean;
39
39
  export declare const getPopupMaxHeight: (popupMaxHeight: PopupMaxHeight) => number | undefined;
40
- declare const _default: () => {
40
+ export default function useMenuContext(): {
41
41
  provide: (props: RecordType, emits: MenuEmits, menuRef: Ref<HTMLDivElement | undefined>) => {
42
42
  theme: import('vue').ComputedRef<import('../../_shared/type').Theme>;
43
43
  computedCollapsed: import('vue').WritableComputedRef<boolean, boolean>;
@@ -48,4 +48,4 @@ declare const _default: () => {
48
48
  };
49
49
  inject: () => MenuContext;
50
50
  };
51
- export default _default;
51
+ export {};
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=require("../../node_modules/nanoid/index.browser.js"),o=require("../../node_modules/@vueuse/core/index.js"),r=require("../../_shared/utils/is.js"),l=require("../../_shared/utils/dom.js"),u=require("../../_shared/utils/control.js");require("../index.js");const n=require("../../Layout/hooks/useSiderContext.js"),s=require("../SubMenu.vue.js");;/* empty css */const i=require("../MenuItem.vue.js");;/* empty css */const a="menu-context";function d(o,l){const u=[],n=(o,i=null,a=0)=>{var d,c,p;if(!o)return;const f=Array.isArray(o)?o:[o];for(const m of f){if(!e.isVNode(m))continue;const o=t.nanoid(8),f=null==(d=m.type)?void 0:d.name,v=f===s.default.name,h=m.props,g=m.children,x=null==(c=m.component)?void 0:c.subTree,y=v?o:i,j=v?a+1:a;if(l.includes(f)&&u.push({id:o,type:v?"submenu":"menuitem",label:()=>{var e,t;return v?(null==(e=g.title)?void 0:e.call(g))||h.title:null==(t=g.default)?void 0:t.call(g)},path:h.path,parentId:i,level:a}),x)n(x);else if(Array.isArray(g))n(g,y,j);else if(r.isObject(g))for(const e of Object.keys(g))r.isFunction(g[e])&&n((null==(p=g[e])?void 0:p.call(g))||[],y,j)}};return n(o),u}function c(e){const t=new Map,o=[];return e.forEach(e=>{t.set(e.id,{...e,children:[]})}),t.forEach(e=>{if(null===e.parentId)o.push(e);else{const o=t.get(e.parentId);o&&o.children.push(e)}}),o}const p=e=>r.isUndefined(e)||r.isBoolean(e)&&e?167:r.isNumber(e)?e:void 0;exports.FlattenMenuTree=d,exports.buildMenuTree=c,exports.default=()=>({provide:(t,r,f)=>{const{selectedKeys:m,defaultSelectedKeys:v,openKeys:h,defaultOpenKeys:g,levelIndent:x,collapsed:y,defaultCollapsed:j,breakpoint:b,accordion:S,autoOpen:I,triggerProps:M,tooltipProps:O,autoOpenSelected:q,mode:C,autoScrollIntoView:K,scrollConfig:T,collapsedWidth:P,theme:V,popupMaxHeight:_}=e.toRefs(t),{theme:k,collapsed:w}=n.default().inject(),A=u.useControlValue(m,v.value,e=>{r("update:selectedKeys",e)}),W=u.useControlValue(y,j.value,e=>{H.value=[],r("update:collapsed",e)},e=>e||w.value),H=u.useControlValue(h,g.value,e=>{r("update:openKeys",e)}),N=e.computed(()=>p(_.value)),z=e.useSlots(),E=e.computed(()=>{var e;return d((null==(e=z.default)?void 0:e.call(z))||[],[s.default.name??"",i.default.name??""])}),F=e.ref([]),R=e.computed(()=>c(E.value)),B=e.ref(1e6),L=e.computed(()=>V.value||k.value||"light");return"horizontal"==C.value&&o.useResizeObserver(f,l.throttle(()=>{const e=f.value.offsetWidth-52;let t=0,o=0;for(let r=0;r<R.value.length;r++){const l=o+(r>0?4:0)+F.value[r];if(l>e)break;o=l,t++}B.value=t},200)),e.provide(a,{computedSelectedKeys:A,computedOpenKeys:H,computedCollapsed:W,levelIndent:x,accordion:S,autoOpen:I,triggerProps:M,tooltipProps:O,mode:C,autoOpenSelected:q,popupMaxHeight:N,autoScrollIntoView:K,scrollConfig:T,theme:L,menuTreeNodes:E,menuTree:R,max:B,menuItemWidths:F,emits:r}),{theme:L,computedCollapsed:W,breakpoint:b,collapsedWidth:e.computed(()=>l.valueToPx(P.value)),menuTree:R,max:B}},inject:()=>e.inject(a,{computedSelectedKeys:e.ref(""),computedOpenKeys:e.ref([]),levelIndent:e.ref(20),computedCollapsed:e.ref(!1),accordion:e.ref(!1),autoOpen:e.ref(!1),tooltipProps:e.ref({}),triggerProps:e.ref({}),autoOpenSelected:e.ref(!1),mode:e.ref("vertical"),theme:e.ref("light"),popupMaxHeight:e.ref(),autoScrollIntoView:e.ref(!1),scrollConfig:e.ref({}),menuTreeNodes:e.ref([]),menuTree:e.ref([]),max:e.ref(1e4),menuItemWidths:e.ref([]),emits:()=>{}})}),exports.getPopupMaxHeight=p,exports.isMenuItemActive=function(e,t,o){if(t===o)return!0;const r=(e,t)=>{for(const o of e){if(o.path===t)return o;if(o.children&&o.children.length>0){const e=r(o.children,t);if(e)return e}}return null},l=r(e,t);if(!l)return!1;const u=(e,t)=>e.path===t||!!e.children&&e.children.some(e=>u(e,t));return u(l,o)};
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=require("../../node_modules/nanoid/index.browser.js"),o=require("../../_shared/utils/is.js"),r=require("../../_shared/utils/dom.js"),u=require("../../node_modules/@vueuse/core/index.js"),l=require("../../_shared/utils/control.js");require("../index.js");const n=require("../../Layout/hooks/useSiderContext.js"),s=require("../SubMenu.vue.js");;/* empty css */const i=require("../MenuItem.vue.js");;/* empty css */const a="menu-context";function d(r,u){const l=[],n=(r,i=null,a=0)=>{var d,c,p;if(!r)return;const f=Array.isArray(r)?r:[r];for(const m of f){if(!e.isVNode(m))continue;const r=t.nanoid(8),f=null==(d=m.type)?void 0:d.name,v=f===s.default.name,h=m.props,g=m.children,x=null==(c=m.component)?void 0:c.subTree,y=v?r:i,j=v?a+1:a;if(u.includes(f)&&l.push({id:r,type:v?"submenu":"menuitem",label:()=>{var e,t;return v?(null==(e=g.title)?void 0:e.call(g))||h.title:null==(t=g.default)?void 0:t.call(g)},path:h.path,parentId:i,level:a}),x)n(x);else if(Array.isArray(g))n(g,y,j);else if(o.isObject(g))for(const e of Object.keys(g))o.isFunction(g[e])&&n((null==(p=g[e])?void 0:p.call(g))||[],y,j)}};return n(r),l}function c(e){const t=new Map,o=[];return e.forEach(e=>{t.set(e.id,{...e,children:[]})}),t.forEach(e=>{if(null===e.parentId)o.push(e);else{const o=t.get(e.parentId);o&&o.children.push(e)}}),o}const p=e=>o.isUndefined(e)||o.isBoolean(e)&&e?167:o.isNumber(e)?e:void 0;exports.FlattenMenuTree=d,exports.buildMenuTree=c,exports.default=function(){return{provide:(t,o,f)=>{const{selectedKeys:m,defaultSelectedKeys:v,openKeys:h,defaultOpenKeys:g,levelIndent:x,collapsed:y,defaultCollapsed:j,breakpoint:b,accordion:S,autoOpen:I,triggerProps:M,tooltipProps:O,autoOpenSelected:q,mode:C,autoScrollIntoView:K,scrollConfig:T,collapsedWidth:P,theme:V,popupMaxHeight:_}=e.toRefs(t),{theme:k,collapsed:w}=n.default().inject(),A=l.useControlValue(m,v.value,e=>{o("update:selectedKeys",e)}),W=l.useControlValue(y,j.value,e=>{H.value=[],o("update:collapsed",e)},e=>e||w.value),H=l.useControlValue(h,g.value,e=>{o("update:openKeys",e)}),N=e.computed(()=>p(_.value)),z=e.useSlots(),E=e.computed(()=>{var e;return d((null==(e=z.default)?void 0:e.call(z))||[],[s.default.name??"",i.default.name??""])}),F=e.ref([]),R=e.computed(()=>c(E.value)),B=e.ref(1e6),L=e.computed(()=>V.value||k.value||"light");return"horizontal"==C.value&&u.useResizeObserver(f,r.throttle(()=>{const e=f.value.offsetWidth-52;let t=0,o=0;for(let r=0;r<R.value.length;r++){const u=o+(r>0?4:0)+F.value[r];if(u>e)break;o=u,t++}B.value=t},200)),e.provide(a,{computedSelectedKeys:A,computedOpenKeys:H,computedCollapsed:W,levelIndent:x,accordion:S,autoOpen:I,triggerProps:M,tooltipProps:O,mode:C,autoOpenSelected:q,popupMaxHeight:N,autoScrollIntoView:K,scrollConfig:T,theme:L,menuTreeNodes:E,menuTree:R,max:B,menuItemWidths:F,emits:o}),{theme:L,computedCollapsed:W,breakpoint:b,collapsedWidth:e.computed(()=>r.valueToPx(P.value)),menuTree:R,max:B}},inject:()=>e.inject(a,{computedSelectedKeys:e.ref(""),computedOpenKeys:e.ref([]),levelIndent:e.ref(20),computedCollapsed:e.ref(!1),accordion:e.ref(!1),autoOpen:e.ref(!1),tooltipProps:e.ref({}),triggerProps:e.ref({}),autoOpenSelected:e.ref(!1),mode:e.ref("vertical"),theme:e.ref("light"),popupMaxHeight:e.ref(),autoScrollIntoView:e.ref(!1),scrollConfig:e.ref({}),menuTreeNodes:e.ref([]),menuTree:e.ref([]),max:e.ref(1e4),menuItemWidths:e.ref([]),emits:()=>{}})}},exports.getPopupMaxHeight=p,exports.isMenuItemActive=function(e,t,o){if(t===o)return!0;const r=(e,t)=>{for(const o of e){if(o.path===t)return o;if(o.children&&o.children.length>0){const e=r(o.children,t);if(e)return e}}return null},u=r(e,t);if(!u)return!1;const l=(e,t)=>e.path===t||!!e.children&&e.children.some(e=>l(e,t));return l(u,o)};
@@ -10,14 +10,14 @@ 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: import('..').collapseType) => any) | undefined;
13
+ onCollapse?: ((collapsed: boolean, type: "clickTrigger" | "responsive") => 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: import('..').collapseType) => any;
20
+ collapse: (collapsed: boolean, type: "clickTrigger" | "responsive") => any;
21
21
  "update:selectedKeys": (value: string) => any;
22
22
  "update:openKeys": (value: string) => any;
23
23
  "update:collapsed": (value: boolean) => any;
@@ -53,7 +53,7 @@ declare const Menu: {
53
53
  M: {};
54
54
  Defaults: {};
55
55
  }, Readonly<import('./type').MenuProps> & Readonly<{
56
- onCollapse?: ((collapsed: boolean, type: import('..').collapseType) => any) | undefined;
56
+ onCollapse?: ((collapsed: boolean, type: "clickTrigger" | "responsive") => 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;
@@ -84,14 +84,14 @@ 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: import('..').collapseType) => any) | undefined;
87
+ onCollapse?: ((collapsed: boolean, type: "clickTrigger" | "responsive") => 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: import('..').collapseType) => any;
94
+ collapse: (collapsed: boolean, type: "clickTrigger" | "responsive") => any;
95
95
  "update:selectedKeys": (value: string) => any;
96
96
  "update:openKeys": (value: string) => any;
97
97
  "update:collapsed": (value: boolean) => any;
@@ -1,6 +1,6 @@
1
1
  import { TooltipProps } from '../Tooltip';
2
2
  import { TriggerProps } from '../Trigger';
3
- import { Theme, BreakpointName, PopupMaxHeight, Direction, collapseType } from '../_shared/type';
3
+ import { Theme, BreakpointName, PopupMaxHeight, Direction } from '../_shared/type';
4
4
  import { VNode } from 'vue';
5
5
  export interface MenuProps {
6
6
  theme?: Theme;
@@ -28,7 +28,7 @@ export interface MenuEmits {
28
28
  (e: 'update:selectedKeys', value: string): void;
29
29
  (e: 'update:openKeys', value: string): void;
30
30
  (e: 'update:collapsed', value: boolean): void;
31
- (e: 'collapse', collapsed: boolean, type: collapseType): void;
31
+ (e: 'collapse', collapsed: boolean, type: 'clickTrigger' | 'responsive'): void;
32
32
  (e: 'menu-item-click', key: string): void;
33
33
  (e: 'sub-menu-click', key: string, openKeys: string[]): void;
34
34
  }
@@ -1,4 +1,4 @@
1
- import { RenderContent } from '../_shared/type';
1
+ import { Position, RenderContent, Type } from '../_shared/type';
2
2
  import { RenderFunction } from 'vue';
3
3
  export interface MessageProps {
4
4
  type?: MessageType;
@@ -17,8 +17,8 @@ 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
+ export type MessageType = Type<'loading' | 'normal'>;
21
+ export type MessagePostion = Exclude<Position, 'left' | 'right'>;
22
22
  export type MessageConfig = Omit<MessageProps, 'type' | 'onDestory'> & MessageContainerProps;
23
23
  export type MessageMethod = {
24
24
  info: (config: string | MessageConfig) => MessageReturn;
@@ -39,7 +39,7 @@ declare const __VLS_component: import('vue').DefineComponent<ModalProps, {}, {},
39
39
  defaultVisible: boolean;
40
40
  closable: boolean;
41
41
  bodyStyle: CSSProperties;
42
- titleAlign: import('./type').ModalTitleAlign;
42
+ titleAlign: "center" | "start";
43
43
  alignCenter: boolean;
44
44
  maskClosable: boolean;
45
45
  hideCancel: boolean;
@@ -10,7 +10,7 @@ declare const _default: import('vue').DefineComponent<ModalServiceProps, {}, {},
10
10
  mask: boolean;
11
11
  closable: boolean;
12
12
  bodyStyle: import('vue').CSSProperties;
13
- titleAlign: import('./type').ModalTitleAlign;
13
+ titleAlign: "center" | "start";
14
14
  alignCenter: boolean;
15
15
  maskClosable: boolean;
16
16
  hideCancel: boolean;
@@ -24,7 +24,7 @@ declare const Modal: {
24
24
  top: number;
25
25
  footer: boolean;
26
26
  title: string;
27
- popupContainer: import('..').PopupContainer;
27
+ popupContainer: import('../_shared/type').PopupContainer;
28
28
  renderToBody: boolean;
29
29
  unmountOnClose: boolean;
30
30
  width: number | string;
@@ -33,7 +33,7 @@ declare const Modal: {
33
33
  defaultVisible: boolean;
34
34
  closable: boolean;
35
35
  bodyStyle: import('vue').CSSProperties;
36
- titleAlign: import('./type').ModalTitleAlign;
36
+ titleAlign: "center" | "start";
37
37
  alignCenter: boolean;
38
38
  maskClosable: boolean;
39
39
  hideCancel: 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('..').ClassName;
46
+ modalClass: import('../_shared/type').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('..').ClassName;
53
+ bodyClass: import('../_shared/type').ClassName;
54
54
  hideTitle: boolean;
55
55
  simple: boolean;
56
56
  onBeforeCancel: import('./type').OnBeforeCancel;
@@ -77,7 +77,7 @@ declare const Modal: {
77
77
  top: number;
78
78
  footer: boolean;
79
79
  title: string;
80
- popupContainer: import('..').PopupContainer;
80
+ popupContainer: import('../_shared/type').PopupContainer;
81
81
  renderToBody: boolean;
82
82
  unmountOnClose: boolean;
83
83
  width: number | string;
@@ -86,7 +86,7 @@ declare const Modal: {
86
86
  defaultVisible: boolean;
87
87
  closable: boolean;
88
88
  bodyStyle: import('vue').CSSProperties;
89
- titleAlign: import('./type').ModalTitleAlign;
89
+ titleAlign: "center" | "start";
90
90
  alignCenter: boolean;
91
91
  maskClosable: boolean;
92
92
  hideCancel: 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('..').ClassName;
99
+ modalClass: import('../_shared/type').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('..').ClassName;
106
+ bodyClass: import('../_shared/type').ClassName;
107
107
  hideTitle: boolean;
108
108
  simple: boolean;
109
109
  onBeforeCancel: import('./type').OnBeforeCancel;
@@ -132,7 +132,7 @@ declare const Modal: {
132
132
  top: number;
133
133
  footer: boolean;
134
134
  title: string;
135
- popupContainer: import('..').PopupContainer;
135
+ popupContainer: import('../_shared/type').PopupContainer;
136
136
  renderToBody: boolean;
137
137
  unmountOnClose: boolean;
138
138
  width: number | string;
@@ -141,7 +141,7 @@ declare const Modal: {
141
141
  defaultVisible: boolean;
142
142
  closable: boolean;
143
143
  bodyStyle: import('vue').CSSProperties;
144
- titleAlign: import('./type').ModalTitleAlign;
144
+ titleAlign: "center" | "start";
145
145
  alignCenter: boolean;
146
146
  maskClosable: boolean;
147
147
  hideCancel: 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('..').ClassName;
154
+ modalClass: import('../_shared/type').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('..').ClassName;
161
+ bodyClass: import('../_shared/type').ClassName;
162
162
  hideTitle: boolean;
163
163
  simple: boolean;
164
164
  onBeforeCancel: import('./type').OnBeforeCancel;
@@ -171,7 +171,7 @@ declare const Modal: {
171
171
  error: (props: ModalConfig) => import('./type').ModalReturn;
172
172
  warning: (props: ModalConfig) => import('./type').ModalReturn;
173
173
  info: (props: ModalConfig) => import('./type').ModalReturn;
174
- confirm: (props: ModalConfig) => import('vm').ModuleStatus;
174
+ confirm: (props: ModalConfig) => import('./type').ModalReturn;
175
175
  install: (app: App) => void;
176
176
  };
177
177
  declare module 'vue' {
@@ -1 +1 @@
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;
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 l;;/* empty css */const t=r=>{l||(l=document.createElement("div"),l.className="yc-overlay yc-overlay-modal",document.body.append(l));const t=()=>{e.render(null,l)},n=e.h(o.default,{...r,serviceClose:t});return e.render(n,l),{close:t}},n={open:t,...Object.fromEntries(["info","warning","error","success","confirm"].map(e=>[e,r=>t({...r,type:e,simple:!0,hideCancel:"confirm"!=e,width:400})]))},s=Object.assign(r.default,{install:e=>{e.component("Yc"+r.default.name,r.default),e.config.globalProperties.$modal=n},...n});exports.default=s;
@@ -1,7 +1,6 @@
1
1
  import { CSSProperties, VNode } from 'vue';
2
2
  import { ButtonProps } from '../Button';
3
- import { RenderContent, PopupContainer, ClassName } from '../_shared/type';
4
- import { ModuleStatus } from 'vm';
3
+ import { RenderContent, PopupContainer, ClassName, Type } from '../_shared/type';
5
4
  export interface ModalProps {
6
5
  visible?: boolean;
7
6
  defaultVisible?: boolean;
@@ -9,7 +8,7 @@ export interface ModalProps {
9
8
  top?: number;
10
9
  mask?: boolean;
11
10
  title?: string;
12
- titleAlign?: ModalTitleAlign;
11
+ titleAlign?: TitleAlign;
13
12
  alignCenter?: boolean;
14
13
  unmountOnClose?: boolean;
15
14
  maskClosable?: boolean;
@@ -53,14 +52,13 @@ export interface ModalSlots {
53
52
  footer?: () => VNode[];
54
53
  title?: () => VNode[];
55
54
  }
56
- export type ModalType = 'success' | 'warning' | 'error' | 'info';
57
- export type ModalTitleAlign = 'start' | 'center';
55
+ type TitleAlign = 'start' | 'center';
58
56
  export type OnBeforeOk = (done: (closed: boolean) => void) => void | boolean | Promise<boolean | void>;
59
57
  export type OnBeforeCancel = () => boolean;
60
58
  export type ModalConfig = Omit<ModalProps, 'visible' | 'defaultVisible' | 'popupContainer'> & {
61
59
  title?: RenderContent;
62
60
  content?: RenderContent;
63
- type?: ModalType;
61
+ type?: Type;
64
62
  onOk?: () => void | Promise<void>;
65
63
  onCancel?: () => void | Promise<void>;
66
64
  onOpen?: () => void;
@@ -68,7 +66,6 @@ export type ModalConfig = Omit<ModalProps, 'visible' | 'defaultVisible' | 'popup
68
66
  onBeforeOpen?: () => void;
69
67
  onBeforeClose?: () => void;
70
68
  };
71
- export type ModalUpdateConfig = Omit<ModalConfig, 'title' | 'content' | 'footer' | 'onOk' | 'onCancel' | 'onBeforeOk' | 'onBeforeCancel' | 'onOpen' | 'onClose' | 'onBeforeOpen' | 'onBeforeClose'>;
72
69
  export type ModalServiceProps = ModalConfig & {
73
70
  serviceClose?: () => void;
74
71
  };
@@ -78,9 +75,9 @@ export type ModalMethod = {
78
75
  error: (props: ModalConfig) => ModalReturn;
79
76
  warning: (props: ModalConfig) => ModalReturn;
80
77
  info: (props: ModalConfig) => ModalReturn;
81
- confirm: (props: ModalConfig) => ModuleStatus;
78
+ confirm: (props: ModalConfig) => ModalReturn;
82
79
  };
83
80
  export type ModalReturn = {
84
81
  close: () => void;
85
- update: (config: ModalUpdateConfig) => void;
86
82
  };
83
+ export {};
@@ -1,6 +1,6 @@
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
- type: import('./type').NotificationType;
3
+ type: import('..').Type;
4
4
  footer: import('vue').RenderFunction;
5
5
  style: import('vue').CSSProperties;
6
6
  title: import('..').RenderContent;
@@ -1,12 +1,12 @@
1
1
  import { App } from 'vue';
2
2
  import { default as _Notification } from './Notification.vue';
3
- import { NotificationMethod, NotificationConfig, NotificationProps, NotificationType, NotificationPosition } from './type';
3
+ import { NotificationMethod, NotificationConfig, NotificationProps, NotificationPosition } from './type';
4
4
  export type NotificationInstance = InstanceType<typeof _Notification>;
5
5
  export * from './type';
6
6
  declare const NotificationMethod: NotificationMethod;
7
7
  declare const Notification: {
8
8
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<NotificationProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
9
- type: NotificationType;
9
+ type: import('..').Type;
10
10
  footer: import('vue').RenderFunction;
11
11
  style: import('vue').CSSProperties;
12
12
  title: import('..').RenderContent;
@@ -29,7 +29,7 @@ declare const Notification: {
29
29
  M: {};
30
30
  Defaults: {};
31
31
  }, Readonly<NotificationProps> & Readonly<{}>, {}, {}, {}, {}, {
32
- type: NotificationType;
32
+ type: import('..').Type;
33
33
  footer: import('vue').RenderFunction;
34
34
  style: import('vue').CSSProperties;
35
35
  title: import('..').RenderContent;
@@ -49,7 +49,7 @@ declare const Notification: {
49
49
  __isTeleport?: never;
50
50
  __isSuspense?: never;
51
51
  } & import('vue').ComponentOptionsBase<Readonly<NotificationProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
52
- type: NotificationType;
52
+ type: import('..').Type;
53
53
  footer: import('vue').RenderFunction;
54
54
  style: import('vue').CSSProperties;
55
55
  title: import('..').RenderContent;
@@ -1,7 +1,7 @@
1
- import { ClassName, RenderContent } from '../_shared/type';
1
+ import { ClassName, RenderContent, Type } from '../_shared/type';
2
2
  import { CSSProperties, RenderFunction } from 'vue';
3
3
  export interface NotificationProps {
4
- type?: NotificationType;
4
+ type?: Type;
5
5
  content?: RenderContent;
6
6
  title?: RenderContent;
7
7
  icon?: RenderFunction;
@@ -22,6 +22,7 @@ export interface NotificationContainerProps {
22
22
  notificationList?: NotificationProps[];
23
23
  position?: NotificationPosition;
24
24
  }
25
+ export type NotificationPosition = 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight';
25
26
  export type NotificationConfig = Omit<NotificationProps, 'type' | 'onDestory'> & NotificationContainerProps;
26
27
  export type NotificationMethod = {
27
28
  info: (config: string | NotificationConfig) => NotificationReturn;
@@ -34,5 +35,3 @@ export type NotificationMethod = {
34
35
  export type NotificationReturn = {
35
36
  close?: () => void;
36
37
  };
37
- export type NotificationPosition = 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight';
38
- export type NotificationType = 'success' | 'warning' | 'error' | 'info';
@@ -10,7 +10,7 @@ declare const OverflowList: {
10
10
  }, import('vue').PublicProps, {
11
11
  margin: number;
12
12
  min: number;
13
- from: import('./type').OverflowListFrom;
13
+ from: "end" | "start";
14
14
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
15
15
  listRef: HTMLDivElement;
16
16
  overflowRef: HTMLDivElement;
@@ -26,7 +26,7 @@ declare const OverflowList: {
26
26
  }>, {}, {}, {}, {}, {
27
27
  margin: number;
28
28
  min: number;
29
- from: import('./type').OverflowListFrom;
29
+ from: "end" | "start";
30
30
  }>;
31
31
  __isFragment?: never;
32
32
  __isTeleport?: never;
@@ -38,7 +38,7 @@ declare const OverflowList: {
38
38
  }, string, {
39
39
  margin: number;
40
40
  min: number;
41
- from: import('./type').OverflowListFrom;
41
+ from: "end" | "start";
42
42
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
43
43
  $slots: any;
44
44
  }) & {
@@ -16,7 +16,7 @@ declare const __VLS_component: import('vue').DefineComponent<OverflowListProps,
16
16
  }>, {
17
17
  margin: number;
18
18
  min: number;
19
- from: import('./type').OverflowListFrom;
19
+ from: "end" | "start";
20
20
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
21
21
  listRef: HTMLDivElement;
22
22
  overflowRef: HTMLDivElement;
@@ -1 +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"),t=require("../_shared/utils/dom.js"),a=require("../_shared/utils/vue-utils.js"),o=require("../Tag/index.js"),r=e.defineComponent({name:"OverflowList",__name:"index",props:{min:{default:0},margin:{default:8},from:{default:"end"}},emits:["change"],setup(r,{emit:u}){const n=e.useSlots(),s=r,f=u,{min:i,margin:v,from:c}=e.toRefs(s),d=e.ref(1e4),m=e.ref([]),p=e.computed(()=>{var e;return a.findComponentsFromVnodes((null==(e=n.default)?void 0:e.call(n))||[],o.default.name)}),g=e.ref(),k=e.ref(),y=e.computed(()=>k.value?l.unrefElement(k).offsetWidth+v.value:v.value),h=e.computed(()=>p.value.length-d.value);return l.useResizeObserver(g,t.throttle(async()=>{await t.sleep(0);let e=0,l=0;const a=g.value.offsetWidth;for(let t=0;t<m.value.length;t++){const o=l+(t>0?v.value:0)+m.value[t];if(o>a)break;l=o,e++}d.value=e>i.value?e:i.value},180)),e.watch(()=>d.value,()=>{f("change",h.value)}),e.watch(()=>p.value.length,async()=>{d.value=1e5,await t.sleep(0);const e=[...document.querySelectorAll("#overflowTag")].map(e=>e.offsetWidth);m.value=e},{immediate:!0}),(l,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yc-overflow-list",`yc-overflow-list-from-${e.unref(c)}`]),style:e.normalizeStyle({gap:e.unref(t.valueToPx)(e.unref(v)),padding:"start"==e.unref(c)?`0 0 0 ${e.unref(t.valueToPx)(y.value)}`:` 0 ${e.unref(t.valueToPx)(y.value)} 0 0`}),ref_key:"listRef",ref:g},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(l,t)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:t},[t<d.value?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l),{key:0,id:"overflowTag"})):e.createCommentVNode("",!0)],64))),128)),d.value<p.value.length?(e.openBlock(),e.createElementBlock("div",{key:0,class:"yc-overflow-tag",ref_key:"overflowRef",ref:k},[e.renderSlot(l.$slots,"overflow",{number:h.value},()=>[e.createVNode(e.unref(o.default),null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(`+${h.value}`),1)]),_:1})])],512)):e.createCommentVNode("",!0)],6))}});exports.default=r;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("../_shared/utils/vue-utils.js"),t=require("../_shared/utils/dom.js"),a=require("../Tag/index.js"),o=require("../node_modules/@vueuse/core/index.js"),r=e.defineComponent({name:"OverflowList",__name:"index",props:{min:{default:0},margin:{default:8},from:{default:"end"}},emits:["change"],setup(r,{emit:u}){const n=e.useSlots(),s=r,f=u,{min:i,margin:v,from:c}=e.toRefs(s),d=e.ref(1e4),m=e.ref([]),p=e.computed(()=>{var e;return l.findComponentsFromVnodes((null==(e=n.default)?void 0:e.call(n))||[],a.default.name)}),g=e.ref(),k=e.ref(),y=e.computed(()=>k.value?o.unrefElement(k).offsetWidth+v.value:v.value),h=e.computed(()=>p.value.length-d.value);return o.useResizeObserver(g,t.throttle(async()=>{await t.sleep(0);let e=0,l=0;const a=g.value.offsetWidth;for(let t=0;t<m.value.length;t++){const o=l+(t>0?v.value:0)+m.value[t];if(o>a)break;l=o,e++}d.value=e>i.value?e:i.value},180)),e.watch(()=>d.value,()=>{f("change",h.value)}),e.watch(()=>p.value.length,async()=>{d.value=1e5,await t.sleep(0);const e=[...document.querySelectorAll("#overflowTag")].map(e=>e.offsetWidth);m.value=e},{immediate:!0}),(l,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yc-overflow-list",`yc-overflow-list-from-${e.unref(c)}`]),style:e.normalizeStyle({gap:e.unref(t.valueToPx)(e.unref(v)),padding:"start"==e.unref(c)?`0 0 0 ${e.unref(t.valueToPx)(y.value)}`:` 0 ${e.unref(t.valueToPx)(y.value)} 0 0`}),ref_key:"listRef",ref:g},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(l,t)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:t},[t<d.value?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l),{key:0,id:"overflowTag"})):e.createCommentVNode("",!0)],64))),128)),d.value<p.value.length?(e.openBlock(),e.createElementBlock("div",{key:0,class:"yc-overflow-tag",ref_key:"overflowRef",ref:k},[e.renderSlot(l.$slots,"overflow",{number:h.value},()=>[e.createVNode(e.unref(a.default),null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(`+${h.value}`),1)]),_:1})])],512)):e.createCommentVNode("",!0)],6))}});exports.default=r;
@@ -2,7 +2,7 @@ import { VNode } from 'vue';
2
2
  export interface OverflowListProps {
3
3
  min?: number;
4
4
  margin?: number;
5
- from?: OverflowListFrom;
5
+ from?: From;
6
6
  }
7
7
  export interface OverflowListEmits {
8
8
  (e: 'change', value: number): void;
@@ -11,4 +11,5 @@ export interface OverflowListSlots {
11
11
  default?: () => VNode[];
12
12
  overflow?: () => VNode[];
13
13
  }
14
- export type OverflowListFrom = 'start' | 'end';
14
+ type From = 'start' | 'end';
15
+ export {};
@@ -11,7 +11,7 @@ interface PaginationContext {
11
11
  baseSize: Ref<number>;
12
12
  bufferSize: Ref<number>;
13
13
  }
14
- declare const _default: () => {
14
+ export default function usePaginationContext(): {
15
15
  provide: (props: RecordType, emits: PaginationEmits) => {
16
16
  total: import('vue').WritableComputedRef<number, number>;
17
17
  size: import('vue').ComputedRef<any>;
@@ -27,4 +27,4 @@ declare const _default: () => {
27
27
  };
28
28
  inject: () => PaginationContext;
29
29
  };
30
- export default _default;
30
+ export {};
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("../../_shared/utils/control.js"),t=require("../../_shared/utils/global-config.js"),u=require("../../_shared/utils/locale.js"),l="pagination-context";exports.default=()=>({provide:(r,i)=>{const{disabled:o,current:s,defaultCurrent:p,pageSize:n,defaultPageSize:v,pageSizeOptions:c,pageItemStyle:d,activePageItemStyle:g,baseSize:f,bufferSize:S,autoAdjust:m,total:z}=e.toRefs(r),{size:b}=t.getGlobalConfig(r),{t:h}=u.useI18n(),P=a.useControlValue(m.value?z:e.ref(),m.value?0:z.value),y=e.computed(()=>{const e=Math.ceil(P.value/I.value);return e<=1?1:e}),C=e.computed(()=>{if(y.value<f.value)return new Array(y.value).fill(void 0).map((e,a)=>a+1);const e=[],a=j.value-S.value>1,t=j.value+S.value<y.value;let u=0;u=a?t?j.value-S.value:y.value-2*S.value:2;let l=0;l=t?a?j.value+S.value:1+2*S.value:y.value-1,e.push(1),a&&e.push("more-left");for(let r=u;r<=l;r++)e.push(r);return t&&e.push("more-right"),e.push(y.value),e}),j=a.useControlValue(s,p.value,e=>{i("update:current",e),i("change",e)}),I=a.useControlValue(n,v.value,e=>{j.value=1,i("update:pageSize",e),i("page-size-change",e)}),_=e.computed(()=>c.value.map(e=>({label:`${e}${h("pagination.countPerPage")}`,value:e})));return e.provide(l,{computedCurrent:j,computedPageSize:I,disabled:o,pageItemStyle:d,activePageItemStyle:g,pages:y,baseSize:f,bufferSize:S}),{total:P,size:b,pages:y,pagesArray:C,computedCurrent:j,computedPageSize:I,sizeOptions:_,t:h}},inject:()=>e.inject(l,{computedCurrent:e.ref(1),computedPageSize:e.ref(10),disabled:e.ref(!1),pageItemStyle:e.ref({}),activePageItemStyle:e.ref({}),pages:e.ref(0),baseSize:e.ref(6),bufferSize:e.ref(2)})});
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("../../_shared/utils/control.js"),t=require("../../_shared/utils/global-config.js"),u=require("../../_shared/utils/locale.js"),l="pagination-context";exports.default=function(){return{provide:(r,i)=>{const{disabled:o,current:s,defaultCurrent:n,pageSize:p,defaultPageSize:v,pageSizeOptions:c,pageItemStyle:d,activePageItemStyle:g,baseSize:f,bufferSize:S,autoAdjust:m,total:z}=e.toRefs(r),{size:b}=t.getGlobalConfig(r),{t:h}=u.useI18n(),P=a.useControlValue(m.value?z:e.ref(),m.value?0:z.value),y=e.computed(()=>{const e=Math.ceil(P.value/I.value);return e<=1?1:e}),C=e.computed(()=>{if(y.value<f.value)return new Array(y.value).fill(void 0).map((e,a)=>a+1);const e=[],a=j.value-S.value>1,t=j.value+S.value<y.value;let u=0;u=a?t?j.value-S.value:y.value-2*S.value:2;let l=0;l=t?a?j.value+S.value:1+2*S.value:y.value-1,e.push(1),a&&e.push("more-left");for(let r=u;r<=l;r++)e.push(r);return t&&e.push("more-right"),e.push(y.value),e}),j=a.useControlValue(s,n.value,e=>{i("update:current",e),i("change",e)}),I=a.useControlValue(p,v.value,e=>{j.value=1,i("update:pageSize",e),i("page-size-change",e)}),_=e.computed(()=>c.value.map(e=>({label:`${e}${h("pagination.countPerPage")}`,value:e})));return e.provide(l,{computedCurrent:j,computedPageSize:I,disabled:o,pageItemStyle:d,activePageItemStyle:g,pages:y,baseSize:f,bufferSize:S}),{total:P,size:b,pages:y,pagesArray:C,computedCurrent:j,computedPageSize:I,sizeOptions:_,t:h}},inject:()=>e.inject(l,{computedCurrent:e.ref(1),computedPageSize:e.ref(10),disabled:e.ref(!1),pageItemStyle:e.ref({}),activePageItemStyle:e.ref({}),pages:e.ref(0),baseSize:e.ref(6),bufferSize:e.ref(2)})}};
@@ -4,20 +4,20 @@ export type PopconfirmInstance = InstanceType<typeof _Popconfirm>;
4
4
  export * from './type';
5
5
  declare const Popconfirm: {
6
6
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').PopconfirmProps> & Readonly<{
7
+ onCancel?: (() => any) | undefined;
7
8
  "onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
8
9
  "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
9
- onCancel?: (() => any) | undefined;
10
10
  onOk?: (() => any) | undefined;
11
11
  }>, {
12
12
  hide(): void;
13
13
  show(): void;
14
14
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
15
+ cancel: () => any;
15
16
  "update:popupVisible": (value: boolean) => any;
16
17
  "popup-visible-change": (value: boolean) => any;
17
- cancel: () => any;
18
18
  ok: () => any;
19
19
  }, import('vue').PublicProps, {
20
- type: import('./type').PopconfirmType;
20
+ type: import('..').Type;
21
21
  popupContainer: import('..').PopupContainer;
22
22
  popupVisible: boolean;
23
23
  defaultPopupVisible: boolean;
@@ -282,15 +282,15 @@ declare const Popconfirm: {
282
282
  M: {};
283
283
  Defaults: {};
284
284
  }, Readonly<import('./type').PopconfirmProps> & Readonly<{
285
+ onCancel?: (() => any) | undefined;
285
286
  "onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
286
287
  "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
287
- onCancel?: (() => any) | undefined;
288
288
  onOk?: (() => any) | undefined;
289
289
  }>, {
290
290
  hide(): void;
291
291
  show(): void;
292
292
  }, {}, {}, {}, {
293
- type: import('./type').PopconfirmType;
293
+ type: import('..').Type;
294
294
  popupContainer: import('..').PopupContainer;
295
295
  popupVisible: boolean;
296
296
  defaultPopupVisible: boolean;
@@ -313,20 +313,20 @@ declare const Popconfirm: {
313
313
  __isTeleport?: never;
314
314
  __isSuspense?: never;
315
315
  } & import('vue').ComponentOptionsBase<Readonly<import('./type').PopconfirmProps> & Readonly<{
316
+ onCancel?: (() => any) | undefined;
316
317
  "onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
317
318
  "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
318
- onCancel?: (() => any) | undefined;
319
319
  onOk?: (() => any) | undefined;
320
320
  }>, {
321
321
  hide(): void;
322
322
  show(): void;
323
323
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
324
+ cancel: () => any;
324
325
  "update:popupVisible": (value: boolean) => any;
325
326
  "popup-visible-change": (value: boolean) => any;
326
- cancel: () => any;
327
327
  ok: () => any;
328
328
  }, string, {
329
- type: import('./type').PopconfirmType;
329
+ type: import('..').Type;
330
330
  popupContainer: import('..').PopupContainer;
331
331
  popupVisible: boolean;
332
332
  defaultPopupVisible: boolean;
@@ -249,17 +249,17 @@ declare const __VLS_component: import('vue').DefineComponent<PopconfirmProps, {
249
249
  hide(): void;
250
250
  show(): void;
251
251
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
252
+ cancel: () => any;
252
253
  "update:popupVisible": (value: boolean) => any;
253
254
  "popup-visible-change": (value: boolean) => any;
254
- cancel: () => any;
255
255
  ok: () => any;
256
256
  }, string, import('vue').PublicProps, Readonly<PopconfirmProps> & Readonly<{
257
+ onCancel?: (() => any) | undefined;
257
258
  "onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
258
259
  "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
259
- onCancel?: (() => any) | undefined;
260
260
  onOk?: (() => any) | undefined;
261
261
  }>, {
262
- type: import('./type').PopconfirmType;
262
+ type: import('..').Type;
263
263
  popupContainer: import('..').PopupContainer;
264
264
  popupVisible: boolean;
265
265
  defaultPopupVisible: boolean;