yc-design-vue 2.0.5 → 2.0.7

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 (371) hide show
  1. package/dist/index.umd.js +1 -1
  2. package/dist/style.css +1 -1
  3. package/es/Alert/index.d.ts +3 -3
  4. package/es/Alert/index.vue.d.ts +1 -1
  5. package/es/Alert/type.d.ts +2 -2
  6. package/es/Anchor/Anchor.vue.d.ts +1 -1
  7. package/es/Anchor/hooks/useContext.d.ts +1 -1
  8. package/es/Anchor/index.d.ts +3 -3
  9. package/es/Anchor/type.d.ts +3 -2
  10. package/es/AutoComplete/index.d.ts +18 -9
  11. package/es/AutoComplete/index.vue.d.ts +36 -18
  12. package/es/Avatar/Avatar.vue.d.ts +1 -1
  13. package/es/Avatar/index.d.ts +3 -3
  14. package/es/Avatar/type.d.ts +3 -2
  15. package/es/Badge/index.d.ts +3 -3
  16. package/es/Badge/index.vue.d.ts +1 -1
  17. package/es/Badge/type.d.ts +2 -2
  18. package/es/Button/Button.vue.d.ts +2 -2
  19. package/es/Button/ButtonGroup.vue.d.ts +1 -1
  20. package/es/Button/hooks/useContext.d.ts +3 -3
  21. package/es/Button/index.d.ts +9 -9
  22. package/es/Button/type.d.ts +6 -6
  23. package/es/Card/Card.vue.d.ts +1 -1
  24. package/es/Card/index.d.ts +3 -3
  25. package/es/Card/type.d.ts +1 -2
  26. package/es/Carousel/Carousel.vue.d.ts +2 -2
  27. package/es/Carousel/hooks/useContext.d.ts +3 -3
  28. package/es/Carousel/index.d.ts +6 -6
  29. package/es/Carousel/type.d.ts +6 -6
  30. package/es/Cascader/Cascader.vue.d.ts +7 -7
  31. package/es/Cascader/index.d.ts +6 -6
  32. package/es/Collapse/hooks/useContext.d.ts +2 -13
  33. package/es/Collapse/hooks/useContext.js +0 -1
  34. package/es/Collapse/type.d.ts +2 -1
  35. package/es/Descriptions/Descriptions.vue.d.ts +3 -3
  36. package/es/Descriptions/hooks/useContext.d.ts +1 -1
  37. package/es/Descriptions/index.d.ts +9 -9
  38. package/es/Descriptions/type.d.ts +7 -6
  39. package/es/Divider/index.d.ts +6 -6
  40. package/es/Divider/index.vue.d.ts +2 -2
  41. package/es/Divider/type.d.ts +4 -3
  42. package/es/Drawer/Drawer.vue.d.ts +1 -1
  43. package/es/Drawer/DrawerService.vue.d.ts +1 -1
  44. package/es/Drawer/index.d.ts +5 -9
  45. package/es/Drawer/type.d.ts +8 -4
  46. package/es/Dropdown/Dropdown.vue.d.ts +1 -1
  47. package/es/Dropdown/DropdownButton.vue.d.ts +1 -1
  48. package/es/Dropdown/Dsubmenu.vue.d.ts +1 -1
  49. package/es/Dropdown/index.d.ts +9 -9
  50. package/es/Dropdown/type.d.ts +4 -6
  51. package/es/Grid/hooks/useContext.d.ts +0 -11
  52. package/es/Grid/hooks/useContext.js +0 -1
  53. package/es/Image/Image.vue.d.ts +2 -2
  54. package/es/Image/ImagePreview.vue.js +1 -1
  55. package/es/Image/index.d.ts +6 -6
  56. package/es/Image/type.d.ts +3 -2
  57. package/es/Input/Input.vue.d.ts +1 -1
  58. package/es/Input/index.d.ts +3 -3
  59. package/es/InputNumber/InputNumber.vue.d.ts +8 -8
  60. package/es/InputNumber/InputOperaBtn.vue.d.ts +2 -2
  61. package/es/InputNumber/index.d.ts +9 -9
  62. package/es/InputNumber/type.d.ts +5 -4
  63. package/es/InputTag/index.d.ts +15 -6
  64. package/es/InputTag/index.vue.d.ts +5 -2
  65. package/es/InputTag/type.d.ts +2 -1
  66. package/es/Layout/LayoutSider.vue.d.ts +3 -3
  67. package/es/Layout/index.d.ts +8 -8
  68. package/es/Layout/type.d.ts +3 -4
  69. package/es/Link/index.d.ts +3 -3
  70. package/es/Link/index.vue.d.ts +1 -1
  71. package/es/Link/type.d.ts +2 -2
  72. package/es/List/List.vue.d.ts +7 -7
  73. package/es/List/index.d.ts +6 -6
  74. package/es/List/type.d.ts +2 -3
  75. package/es/Mention/index.d.ts +21 -12
  76. package/es/Mention/index.vue.d.ts +37 -19
  77. package/es/Mention/type.d.ts +3 -2
  78. package/es/Menu/Menu.vue.d.ts +2 -2
  79. package/es/Menu/index.d.ts +5 -5
  80. package/es/Menu/type.d.ts +2 -2
  81. package/es/Message/type.d.ts +3 -3
  82. package/es/Modal/Modal.vue.d.ts +1 -1
  83. package/es/Modal/ModalService.vue.d.ts +1 -1
  84. package/es/Modal/index.d.ts +13 -13
  85. package/es/Modal/index.js +1 -4
  86. package/es/Modal/type.d.ts +6 -9
  87. package/es/Notification/Notification.vue.d.ts +1 -1
  88. package/es/Notification/index.d.ts +4 -4
  89. package/es/Notification/type.d.ts +3 -4
  90. package/es/OverflowList/index.d.ts +3 -3
  91. package/es/OverflowList/index.vue.d.ts +1 -1
  92. package/es/OverflowList/type.d.ts +3 -2
  93. package/es/Popconfirm/index.d.ts +3 -3
  94. package/es/Popconfirm/index.vue.d.ts +1 -1
  95. package/es/Popconfirm/type.d.ts +2 -3
  96. package/es/Progress/Progress.vue.d.ts +1 -1
  97. package/es/Progress/ProgressCircle.vue.d.ts +3 -3
  98. package/es/Progress/ProgressLine.vue.d.ts +3 -3
  99. package/es/Progress/index.d.ts +3 -3
  100. package/es/Progress/type.d.ts +2 -3
  101. package/es/Radio/type.d.ts +1 -1
  102. package/es/ResizeBox/index.d.ts +3 -3
  103. package/es/ResizeBox/index.vue.d.ts +2 -2
  104. package/es/ResizeBox/type.d.ts +4 -4
  105. package/es/Result/index.d.ts +3 -3
  106. package/es/Result/index.vue.d.ts +1 -1
  107. package/es/Result/type.d.ts +3 -2
  108. package/es/Scrollbar/Scrollbar.vue.d.ts +1 -1
  109. package/es/Scrollbar/index.d.ts +3 -3
  110. package/es/Scrollbar/type.d.ts +2 -1
  111. package/es/Select/Select.vue.d.ts +31 -13
  112. package/es/Select/hooks/useContext.d.ts +2 -2
  113. package/es/Select/hooks/useSelectOptions.d.ts +2 -2
  114. package/es/Select/index.d.ts +18 -9
  115. package/es/Skeleton/SkeletonShape.vue.d.ts +2 -2
  116. package/es/Skeleton/index.d.ts +2 -2
  117. package/es/Skeleton/type.d.ts +2 -4
  118. package/es/Space/index.d.ts +6 -6
  119. package/es/Space/index.vue.d.ts +2 -2
  120. package/es/Space/type.d.ts +5 -4
  121. package/es/Switch/index.d.ts +9 -9
  122. package/es/Switch/index.vue.d.ts +3 -3
  123. package/es/Switch/type.d.ts +4 -4
  124. package/es/Tabs/Tabs.vue.d.ts +1 -1
  125. package/es/Tabs/hooks/useContext.d.ts +4 -4
  126. package/es/Tabs/index.d.ts +3 -3
  127. package/es/Tabs/type.d.ts +2 -3
  128. package/es/Tag/index.d.ts +3 -3
  129. package/es/Tag/index.vue.d.ts +1 -1
  130. package/es/Tag/type.d.ts +1 -2
  131. package/es/Textarea/type.d.ts +2 -2
  132. package/es/TimePicker/TimePicker.vue.d.ts +1 -1
  133. package/es/TimePicker/index.d.ts +3 -3
  134. package/es/Timeline/TimelineItem.vue.d.ts +1 -1
  135. package/es/Timeline/index.d.ts +3 -3
  136. package/es/Timeline/type.d.ts +3 -4
  137. package/es/Typography/TypographyBase.vue.d.ts +7 -7
  138. package/es/Typography/TypographyBase.vue.js +2 -2
  139. package/es/Typography/TypographyParagraph.vue.d.ts +1 -1
  140. package/es/Typography/TypographyTitle.vue.d.ts +1 -1
  141. package/es/Typography/type.d.ts +5 -4
  142. package/es/Upload/Upload.vue.d.ts +55 -0
  143. package/es/Upload/Upload.vue.js +120 -0
  144. package/es/Upload/Upload.vue3.js +5 -0
  145. package/es/Upload/UploadButton.vue.d.ts +2 -0
  146. package/es/Upload/UploadButton.vue.js +39 -0
  147. package/es/Upload/UploadButton.vue3.js +5 -0
  148. package/es/Upload/UploadDrag.vue.d.ts +2 -0
  149. package/es/Upload/UploadDrag.vue.js +37 -0
  150. package/es/Upload/UploadDrag.vue3.js +5 -0
  151. package/es/Upload/UploadFileList.vue.d.ts +24 -0
  152. package/es/Upload/UploadFileList.vue.js +7 -0
  153. package/es/Upload/UploadFileList.vue2.js +122 -0
  154. package/es/Upload/UploadPictureCard.vue.d.ts +4 -0
  155. package/es/Upload/UploadPictureCard.vue.js +7 -0
  156. package/es/Upload/UploadPictureCard.vue2.js +128 -0
  157. package/es/Upload/hooks/useContext.d.ts +53 -0
  158. package/es/Upload/hooks/useContext.js +109 -0
  159. package/es/Upload/hooks/useUpload.d.ts +51 -0
  160. package/es/Upload/hooks/useUpload.js +85 -0
  161. package/es/Upload/index.css +1 -0
  162. package/es/Upload/index.d.ts +129 -0
  163. package/es/Upload/index.js +10 -0
  164. package/es/Upload/type.d.ts +76 -0
  165. package/es/VerificationCode/index.d.ts +3 -3
  166. package/es/VerificationCode/index.vue.d.ts +1 -1
  167. package/es/VerificationCode/type.d.ts +5 -4
  168. package/es/_shared/icons/IconCopy.vue.js +1 -19
  169. package/es/_shared/icons/IconCopy.vue2.js +19 -1
  170. package/es/_shared/icons/IconEdit.vue.js +1 -19
  171. package/es/_shared/icons/IconEdit.vue2.js +19 -1
  172. package/es/_shared/icons/IconFile.vue.d.ts +2 -0
  173. package/es/_shared/icons/IconFile.vue.js +4 -0
  174. package/es/_shared/icons/IconFile.vue2.js +22 -0
  175. package/es/_shared/icons/IconUpload.vue.d.ts +2 -0
  176. package/es/_shared/icons/IconUpload.vue.js +4 -0
  177. package/es/_shared/icons/IconUpload.vue2.js +22 -0
  178. package/es/_shared/icons/index.d.ts +2 -0
  179. package/es/_shared/type/index.d.ts +3 -1
  180. package/es/_shared/utils/vue-utils.d.ts +1 -1
  181. package/es/_virtual/_plugin-vue_export-helper.js +10 -0
  182. package/es/index.d.ts +33 -31
  183. package/es/index.js +6 -3
  184. package/es/node_modules/@vueuse/core/index.js +171 -9
  185. package/es/node_modules/@vueuse/shared/index.js +29 -0
  186. package/es/style.css +1 -1
  187. package/lib/Alert/index.d.ts +3 -3
  188. package/lib/Alert/index.vue.d.ts +1 -1
  189. package/lib/Alert/type.d.ts +2 -2
  190. package/lib/Anchor/Anchor.vue.d.ts +1 -1
  191. package/lib/Anchor/hooks/useContext.d.ts +1 -1
  192. package/lib/Anchor/index.d.ts +3 -3
  193. package/lib/Anchor/type.d.ts +3 -2
  194. package/lib/AutoComplete/index.d.ts +18 -9
  195. package/lib/AutoComplete/index.vue.d.ts +36 -18
  196. package/lib/Avatar/Avatar.vue.d.ts +1 -1
  197. package/lib/Avatar/index.d.ts +3 -3
  198. package/lib/Avatar/type.d.ts +3 -2
  199. package/lib/Badge/index.d.ts +3 -3
  200. package/lib/Badge/index.vue.d.ts +1 -1
  201. package/lib/Badge/type.d.ts +2 -2
  202. package/lib/Button/Button.vue.d.ts +2 -2
  203. package/lib/Button/ButtonGroup.vue.d.ts +1 -1
  204. package/lib/Button/hooks/useContext.d.ts +3 -3
  205. package/lib/Button/index.d.ts +9 -9
  206. package/lib/Button/type.d.ts +6 -6
  207. package/lib/Card/Card.vue.d.ts +1 -1
  208. package/lib/Card/index.d.ts +3 -3
  209. package/lib/Card/type.d.ts +1 -2
  210. package/lib/Carousel/Carousel.vue.d.ts +2 -2
  211. package/lib/Carousel/hooks/useContext.d.ts +3 -3
  212. package/lib/Carousel/index.d.ts +6 -6
  213. package/lib/Carousel/type.d.ts +6 -6
  214. package/lib/Cascader/Cascader.vue.d.ts +7 -7
  215. package/lib/Cascader/index.d.ts +6 -6
  216. package/lib/Collapse/hooks/useContext.d.ts +2 -13
  217. package/lib/Collapse/hooks/useContext.js +1 -1
  218. package/lib/Collapse/type.d.ts +2 -1
  219. package/lib/Descriptions/Descriptions.vue.d.ts +3 -3
  220. package/lib/Descriptions/hooks/useContext.d.ts +1 -1
  221. package/lib/Descriptions/index.d.ts +9 -9
  222. package/lib/Descriptions/type.d.ts +7 -6
  223. package/lib/Divider/index.d.ts +6 -6
  224. package/lib/Divider/index.vue.d.ts +2 -2
  225. package/lib/Divider/type.d.ts +4 -3
  226. package/lib/Drawer/Drawer.vue.d.ts +1 -1
  227. package/lib/Drawer/DrawerService.vue.d.ts +1 -1
  228. package/lib/Drawer/index.d.ts +5 -9
  229. package/lib/Drawer/type.d.ts +8 -4
  230. package/lib/Dropdown/Dropdown.vue.d.ts +1 -1
  231. package/lib/Dropdown/DropdownButton.vue.d.ts +1 -1
  232. package/lib/Dropdown/Dsubmenu.vue.d.ts +1 -1
  233. package/lib/Dropdown/index.d.ts +9 -9
  234. package/lib/Dropdown/type.d.ts +4 -6
  235. package/lib/Grid/hooks/useContext.d.ts +0 -11
  236. package/lib/Grid/hooks/useContext.js +1 -1
  237. package/lib/Image/Image.vue.d.ts +2 -2
  238. package/lib/Image/ImagePreview.vue.js +1 -1
  239. package/lib/Image/index.d.ts +6 -6
  240. package/lib/Image/type.d.ts +3 -2
  241. package/lib/Input/Input.vue.d.ts +1 -1
  242. package/lib/Input/index.d.ts +3 -3
  243. package/lib/InputNumber/InputNumber.vue.d.ts +8 -8
  244. package/lib/InputNumber/InputOperaBtn.vue.d.ts +2 -2
  245. package/lib/InputNumber/index.d.ts +9 -9
  246. package/lib/InputNumber/type.d.ts +5 -4
  247. package/lib/InputTag/index.d.ts +15 -6
  248. package/lib/InputTag/index.vue.d.ts +5 -2
  249. package/lib/InputTag/type.d.ts +2 -1
  250. package/lib/Layout/LayoutSider.vue.d.ts +3 -3
  251. package/lib/Layout/index.d.ts +8 -8
  252. package/lib/Layout/type.d.ts +3 -4
  253. package/lib/Link/index.d.ts +3 -3
  254. package/lib/Link/index.vue.d.ts +1 -1
  255. package/lib/Link/type.d.ts +2 -2
  256. package/lib/List/List.vue.d.ts +7 -7
  257. package/lib/List/index.d.ts +6 -6
  258. package/lib/List/type.d.ts +2 -3
  259. package/lib/Mention/index.d.ts +21 -12
  260. package/lib/Mention/index.vue.d.ts +37 -19
  261. package/lib/Mention/type.d.ts +3 -2
  262. package/lib/Menu/Menu.vue.d.ts +2 -2
  263. package/lib/Menu/index.d.ts +5 -5
  264. package/lib/Menu/type.d.ts +2 -2
  265. package/lib/Message/type.d.ts +3 -3
  266. package/lib/Modal/Modal.vue.d.ts +1 -1
  267. package/lib/Modal/ModalService.vue.d.ts +1 -1
  268. package/lib/Modal/index.d.ts +13 -13
  269. package/lib/Modal/index.js +1 -1
  270. package/lib/Modal/type.d.ts +6 -9
  271. package/lib/Notification/Notification.vue.d.ts +1 -1
  272. package/lib/Notification/index.d.ts +4 -4
  273. package/lib/Notification/type.d.ts +3 -4
  274. package/lib/OverflowList/index.d.ts +3 -3
  275. package/lib/OverflowList/index.vue.d.ts +1 -1
  276. package/lib/OverflowList/type.d.ts +3 -2
  277. package/lib/Popconfirm/index.d.ts +3 -3
  278. package/lib/Popconfirm/index.vue.d.ts +1 -1
  279. package/lib/Popconfirm/type.d.ts +2 -3
  280. package/lib/Progress/Progress.vue.d.ts +1 -1
  281. package/lib/Progress/ProgressCircle.vue.d.ts +3 -3
  282. package/lib/Progress/ProgressLine.vue.d.ts +3 -3
  283. package/lib/Progress/index.d.ts +3 -3
  284. package/lib/Progress/type.d.ts +2 -3
  285. package/lib/Radio/type.d.ts +1 -1
  286. package/lib/ResizeBox/index.d.ts +3 -3
  287. package/lib/ResizeBox/index.vue.d.ts +2 -2
  288. package/lib/ResizeBox/type.d.ts +4 -4
  289. package/lib/Result/index.d.ts +3 -3
  290. package/lib/Result/index.vue.d.ts +1 -1
  291. package/lib/Result/type.d.ts +3 -2
  292. package/lib/Scrollbar/Scrollbar.vue.d.ts +1 -1
  293. package/lib/Scrollbar/index.d.ts +3 -3
  294. package/lib/Scrollbar/type.d.ts +2 -1
  295. package/lib/Select/Select.vue.d.ts +31 -13
  296. package/lib/Select/hooks/useContext.d.ts +2 -2
  297. package/lib/Select/hooks/useSelectOptions.d.ts +2 -2
  298. package/lib/Select/index.d.ts +18 -9
  299. package/lib/Skeleton/SkeletonShape.vue.d.ts +2 -2
  300. package/lib/Skeleton/index.d.ts +2 -2
  301. package/lib/Skeleton/type.d.ts +2 -4
  302. package/lib/Space/index.d.ts +6 -6
  303. package/lib/Space/index.vue.d.ts +2 -2
  304. package/lib/Space/type.d.ts +5 -4
  305. package/lib/Switch/index.d.ts +9 -9
  306. package/lib/Switch/index.vue.d.ts +3 -3
  307. package/lib/Switch/type.d.ts +4 -4
  308. package/lib/Tabs/Tabs.vue.d.ts +1 -1
  309. package/lib/Tabs/hooks/useContext.d.ts +4 -4
  310. package/lib/Tabs/index.d.ts +3 -3
  311. package/lib/Tabs/type.d.ts +2 -3
  312. package/lib/Tag/index.d.ts +3 -3
  313. package/lib/Tag/index.vue.d.ts +1 -1
  314. package/lib/Tag/type.d.ts +1 -2
  315. package/lib/Textarea/type.d.ts +2 -2
  316. package/lib/TimePicker/TimePicker.vue.d.ts +1 -1
  317. package/lib/TimePicker/index.d.ts +3 -3
  318. package/lib/Timeline/TimelineItem.vue.d.ts +1 -1
  319. package/lib/Timeline/index.d.ts +3 -3
  320. package/lib/Timeline/type.d.ts +3 -4
  321. package/lib/Typography/TypographyBase.vue.d.ts +7 -7
  322. package/lib/Typography/TypographyBase.vue.js +1 -1
  323. package/lib/Typography/TypographyParagraph.vue.d.ts +1 -1
  324. package/lib/Typography/TypographyTitle.vue.d.ts +1 -1
  325. package/lib/Typography/type.d.ts +5 -4
  326. package/lib/Upload/Upload.vue.d.ts +55 -0
  327. package/lib/Upload/Upload.vue.js +1 -0
  328. package/lib/Upload/Upload.vue3.js +1 -0
  329. package/lib/Upload/UploadButton.vue.d.ts +2 -0
  330. package/lib/Upload/UploadButton.vue.js +1 -0
  331. package/lib/Upload/UploadButton.vue3.js +1 -0
  332. package/lib/Upload/UploadDrag.vue.d.ts +2 -0
  333. package/lib/Upload/UploadDrag.vue.js +1 -0
  334. package/lib/Upload/UploadDrag.vue3.js +1 -0
  335. package/lib/Upload/UploadFileList.vue.d.ts +24 -0
  336. package/lib/Upload/UploadFileList.vue.js +1 -0
  337. package/lib/Upload/UploadFileList.vue2.js +1 -0
  338. package/lib/Upload/UploadPictureCard.vue.d.ts +4 -0
  339. package/lib/Upload/UploadPictureCard.vue.js +1 -0
  340. package/lib/Upload/UploadPictureCard.vue2.js +1 -0
  341. package/lib/Upload/hooks/useContext.d.ts +53 -0
  342. package/lib/Upload/hooks/useContext.js +1 -0
  343. package/lib/Upload/hooks/useUpload.d.ts +51 -0
  344. package/lib/Upload/hooks/useUpload.js +1 -0
  345. package/lib/Upload/index.css +1 -0
  346. package/lib/Upload/index.d.ts +129 -0
  347. package/lib/Upload/index.js +1 -0
  348. package/lib/Upload/type.d.ts +76 -0
  349. package/lib/VerificationCode/index.d.ts +3 -3
  350. package/lib/VerificationCode/index.vue.d.ts +1 -1
  351. package/lib/VerificationCode/type.d.ts +5 -4
  352. package/lib/_shared/icons/IconCopy.vue.js +1 -1
  353. package/lib/_shared/icons/IconCopy.vue2.js +1 -1
  354. package/lib/_shared/icons/IconEdit.vue.js +1 -1
  355. package/lib/_shared/icons/IconEdit.vue2.js +1 -1
  356. package/lib/_shared/icons/IconFile.vue.d.ts +2 -0
  357. package/lib/_shared/icons/IconFile.vue.js +1 -0
  358. package/lib/_shared/icons/IconFile.vue2.js +1 -0
  359. package/lib/_shared/icons/IconUpload.vue.d.ts +2 -0
  360. package/lib/_shared/icons/IconUpload.vue.js +1 -0
  361. package/lib/_shared/icons/IconUpload.vue2.js +1 -0
  362. package/lib/_shared/icons/index.d.ts +2 -0
  363. package/lib/_shared/type/index.d.ts +3 -1
  364. package/lib/_shared/utils/vue-utils.d.ts +1 -1
  365. package/lib/_virtual/_plugin-vue_export-helper.js +1 -0
  366. package/lib/index.d.ts +33 -31
  367. package/lib/index.js +1 -1
  368. package/lib/node_modules/@vueuse/core/index.js +1 -1
  369. package/lib/node_modules/@vueuse/shared/index.js +1 -1
  370. package/lib/style.css +1 -1
  371. package/package.json +1 -1
@@ -0,0 +1,129 @@
1
+ import { App } from 'vue';
2
+ import { default as _Upload } from './Upload.vue';
3
+ export type UploadInstance = InstanceType<typeof _Upload>;
4
+ export * from './type';
5
+ declare const Upload: {
6
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').UploadProps> & Readonly<{
7
+ onChange?: ((fileList: import('./type').FileItem[], files: File[]) => any) | undefined;
8
+ onPreview?: ((fileItem: import('./type').FileItem) => any) | undefined;
9
+ "onUpdate:fileList"?: ((value: import('./type').FileItem[]) => any) | undefined;
10
+ "onExceed-limit"?: ((fileList: import('./type').FileItem[], files: File[]) => any) | undefined;
11
+ }>, {
12
+ updateFile: (id: string, File: File) => void;
13
+ upload: (files: File[]) => void;
14
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
15
+ change: (fileList: import('./type').FileItem[], files: File[]) => any;
16
+ preview: (fileItem: import('./type').FileItem) => any;
17
+ "update:fileList": (value: import('./type').FileItem[]) => any;
18
+ "exceed-limit": (fileList: import('./type').FileItem[], files: File[]) => any;
19
+ }, import('vue').PublicProps, {
20
+ name: import('./type').FileName;
21
+ disabled: boolean;
22
+ multiple: boolean;
23
+ tip: string;
24
+ limit: number;
25
+ draggable: boolean;
26
+ fileList: import('./type').FileItem[];
27
+ defaultFileList: import('./type').FileItem[];
28
+ directory: boolean;
29
+ listType: import('./type').FileListType;
30
+ imageLoading: import('./type').ImageLoading;
31
+ download: boolean;
32
+ showLink: boolean;
33
+ customIcon: import('./type').CustomIcon;
34
+ showRemoveButton: boolean;
35
+ showPreviewButton: boolean;
36
+ accept: string;
37
+ showFileList: boolean;
38
+ showUploadButton: boolean;
39
+ onBeforeUpload: import('./type').OnBeforeUpload;
40
+ onBeforeRemove: import('./type').OnBeforeRemove;
41
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
42
+ uploadRef: HTMLDivElement;
43
+ }, HTMLDivElement, import('vue').ComponentProvideOptions, {
44
+ P: {};
45
+ B: {};
46
+ D: {};
47
+ C: {};
48
+ M: {};
49
+ Defaults: {};
50
+ }, Readonly<import('./type').UploadProps> & Readonly<{
51
+ onChange?: ((fileList: import('./type').FileItem[], files: File[]) => any) | undefined;
52
+ onPreview?: ((fileItem: import('./type').FileItem) => any) | undefined;
53
+ "onUpdate:fileList"?: ((value: import('./type').FileItem[]) => any) | undefined;
54
+ "onExceed-limit"?: ((fileList: import('./type').FileItem[], files: File[]) => any) | undefined;
55
+ }>, {
56
+ updateFile: (id: string, File: File) => void;
57
+ upload: (files: File[]) => void;
58
+ }, {}, {}, {}, {
59
+ name: import('./type').FileName;
60
+ disabled: boolean;
61
+ multiple: boolean;
62
+ tip: string;
63
+ limit: number;
64
+ draggable: boolean;
65
+ fileList: import('./type').FileItem[];
66
+ defaultFileList: import('./type').FileItem[];
67
+ directory: boolean;
68
+ listType: import('./type').FileListType;
69
+ imageLoading: import('./type').ImageLoading;
70
+ download: boolean;
71
+ showLink: boolean;
72
+ customIcon: import('./type').CustomIcon;
73
+ showRemoveButton: boolean;
74
+ showPreviewButton: boolean;
75
+ accept: string;
76
+ showFileList: boolean;
77
+ showUploadButton: boolean;
78
+ onBeforeUpload: import('./type').OnBeforeUpload;
79
+ onBeforeRemove: import('./type').OnBeforeRemove;
80
+ }>;
81
+ __isFragment?: never;
82
+ __isTeleport?: never;
83
+ __isSuspense?: never;
84
+ } & import('vue').ComponentOptionsBase<Readonly<import('./type').UploadProps> & Readonly<{
85
+ onChange?: ((fileList: import('./type').FileItem[], files: File[]) => any) | undefined;
86
+ onPreview?: ((fileItem: import('./type').FileItem) => any) | undefined;
87
+ "onUpdate:fileList"?: ((value: import('./type').FileItem[]) => any) | undefined;
88
+ "onExceed-limit"?: ((fileList: import('./type').FileItem[], files: File[]) => any) | undefined;
89
+ }>, {
90
+ updateFile: (id: string, File: File) => void;
91
+ upload: (files: File[]) => void;
92
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
93
+ change: (fileList: import('./type').FileItem[], files: File[]) => any;
94
+ preview: (fileItem: import('./type').FileItem) => any;
95
+ "update:fileList": (value: import('./type').FileItem[]) => any;
96
+ "exceed-limit": (fileList: import('./type').FileItem[], files: File[]) => any;
97
+ }, string, {
98
+ name: import('./type').FileName;
99
+ disabled: boolean;
100
+ multiple: boolean;
101
+ tip: string;
102
+ limit: number;
103
+ draggable: boolean;
104
+ fileList: import('./type').FileItem[];
105
+ defaultFileList: import('./type').FileItem[];
106
+ directory: boolean;
107
+ listType: import('./type').FileListType;
108
+ imageLoading: import('./type').ImageLoading;
109
+ download: boolean;
110
+ showLink: boolean;
111
+ customIcon: import('./type').CustomIcon;
112
+ showRemoveButton: boolean;
113
+ showPreviewButton: boolean;
114
+ accept: string;
115
+ showFileList: boolean;
116
+ showUploadButton: boolean;
117
+ onBeforeUpload: import('./type').OnBeforeUpload;
118
+ onBeforeRemove: import('./type').OnBeforeRemove;
119
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
120
+ $slots: any;
121
+ }) & {
122
+ install: (app: App) => void;
123
+ };
124
+ declare module 'vue' {
125
+ interface GlobalComponents {
126
+ YcUpload: typeof Upload;
127
+ }
128
+ }
129
+ export default Upload;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Upload.vue.js");;/* empty css */const t=Object.assign(e.default,{install:t=>{t.component("Yc"+e.default.name,e.default)}});exports.default=t;
@@ -0,0 +1,76 @@
1
+ import { RenderFunction, VNode } from 'vue';
2
+ export interface UploadProps {
3
+ fileList?: FileItem[];
4
+ defaultFileList?: FileItem[];
5
+ accept?: string;
6
+ disabled?: boolean;
7
+ multiple?: boolean;
8
+ directory?: boolean;
9
+ draggable?: boolean;
10
+ tip?: string;
11
+ name?: FileName;
12
+ limit?: number;
13
+ showFileList?: boolean;
14
+ showRemoveButton?: boolean;
15
+ showUploadButton?: boolean;
16
+ showPreviewButton?: boolean;
17
+ download?: boolean;
18
+ showLink?: boolean;
19
+ imageLoading?: ImageLoading;
20
+ listType?: FileListType;
21
+ customIcon?: CustomIcon;
22
+ imagePreview?: boolean;
23
+ onBeforeUpload?: OnBeforeUpload;
24
+ onBeforeRemove?: OnBeforeRemove;
25
+ }
26
+ export interface UploadEmits {
27
+ (e: 'update:fileList', value: FileItem[]): void;
28
+ (e: 'exceed-limit', fileList: FileItem[], files: File[]): void;
29
+ (e: 'change', fileList: FileItem[], files: File[]): void;
30
+ (e: 'preview', fileItem: FileItem): void;
31
+ }
32
+ export interface UploadSlots {
33
+ ['extra-button']?: (scope: {
34
+ fileItem: FileItem;
35
+ }) => VNode[];
36
+ image?: (scope: {
37
+ fileItem: FileItem;
38
+ }) => VNode[];
39
+ ['file-name']?: (scope: {
40
+ fileItem: FileItem;
41
+ }) => VNode[];
42
+ ['file-icon']?: (scope: {
43
+ fileItem: FileItem;
44
+ }) => VNode[];
45
+ ['remove-icon']?: () => VNode;
46
+ ['preview-icon']?: () => VNode[];
47
+ ['upload-button']?: () => VNode[];
48
+ ['upload-item']?: (scope: {
49
+ fileItem: FileItem;
50
+ index: number;
51
+ }) => VNode[];
52
+ }
53
+ export interface UploadExpose {
54
+ updateFile: (id: string, File: File) => void;
55
+ upload: (files: File[]) => void;
56
+ }
57
+ export type FileStatus = 'init' | 'uploading' | 'done' | 'error' | 'removed';
58
+ export type FileName = string | ((fileItem: FileItem) => string);
59
+ export type FileListType = 'text' | 'picture' | 'picture-card';
60
+ export type ImageLoading = 'eager' | 'lazy';
61
+ export type OnBeforeUpload = (file: File) => boolean;
62
+ export type OnBeforeRemove = (fileItem: FileItem) => Promise<boolean>;
63
+ export type FileItem = {
64
+ uid: string;
65
+ name: string;
66
+ status: FileStatus;
67
+ file: File;
68
+ percent: number;
69
+ url: string;
70
+ };
71
+ export type CustomIcon = {
72
+ fileIcon?: (fileItem: FileItem) => VNode;
73
+ fileName?: (fileItem: FileItem) => string | VNode;
74
+ removeIcon?: RenderFunction;
75
+ previewIcon?: RenderFunction;
76
+ };
@@ -14,9 +14,9 @@ declare const VerificationCode: {
14
14
  "update:modelValue": (value: string) => any;
15
15
  finish: (value: string) => any;
16
16
  }, import('vue').PublicProps, {
17
+ error: boolean;
17
18
  length: number;
18
19
  size: import('..').Size;
19
- error: boolean;
20
20
  disabled: boolean;
21
21
  modelValue: string;
22
22
  defaultValue: string;
@@ -34,9 +34,9 @@ declare const VerificationCode: {
34
34
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
35
35
  onFinish?: ((value: string) => any) | undefined;
36
36
  }>, {}, {}, {}, {}, {
37
+ error: boolean;
37
38
  length: number;
38
39
  size: import('..').Size;
39
- error: boolean;
40
40
  disabled: boolean;
41
41
  modelValue: string;
42
42
  defaultValue: string;
@@ -56,9 +56,9 @@ declare const VerificationCode: {
56
56
  "update:modelValue": (value: string) => any;
57
57
  finish: (value: string) => any;
58
58
  }, string, {
59
+ error: boolean;
59
60
  length: number;
60
61
  size: import('..').Size;
61
- error: boolean;
62
62
  disabled: boolean;
63
63
  modelValue: string;
64
64
  defaultValue: string;
@@ -10,9 +10,9 @@ declare const _default: import('vue').DefineComponent<VerificationCodeProps, {},
10
10
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
11
11
  onFinish?: ((value: string) => any) | undefined;
12
12
  }>, {
13
+ error: boolean;
13
14
  length: number;
14
15
  size: import('..').Size;
15
- error: boolean;
16
16
  disabled: boolean;
17
17
  modelValue: string;
18
18
  defaultValue: string;
@@ -9,8 +9,8 @@ export interface VerificationCodeProps {
9
9
  masked?: boolean;
10
10
  readonly?: boolean;
11
11
  error?: boolean;
12
- separator?: VerificationCodeSeparator;
13
- formatter?: VerificationCodeFormatter;
12
+ separator?: Separator;
13
+ formatter?: Formatter;
14
14
  }
15
15
  export interface VerificationCodeEmits {
16
16
  (e: 'update:modelValue', value: string): void;
@@ -18,5 +18,6 @@ export interface VerificationCodeEmits {
18
18
  (e: 'change', value: string): void;
19
19
  (e: 'finish', value: string): void;
20
20
  }
21
- export type VerificationCodeSeparator = (index: number, character: string) => VNode;
22
- export type VerificationCodeFormatter = (inputValue: string, index: number, value: string) => string;
21
+ type Separator = (index: number, character: string) => VNode;
22
+ type Formatter = (inputValue: string, index: number, value: string) => string;
23
+ export {};
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../utils/dom.js"),/* empty css */;/* empty css */const o=require("../components/Icon/index.vue3.js");;/* empty css */const n=e.defineComponent({__name:"IconCopy",setup:n=>(n,t)=>(e.openBlock(),e.createBlock(e.unref(o.default),e.normalizeProps(e.guardReactiveProps(n.$attrs)),{default:e.withCtx(()=>[...t[0]||(t[0]=[e.createElementVNode("path",{d:"M20 6h18a2 2 0 0 1 2 2v22M8 16v24c0 1.105.891 2 1.996 2h20.007A1.99 1.99 0 0 0 32 40.008V15.997A1.997 1.997 0 0 0 30 14H10a2 2 0 0 0-2 2Z"},null,-1)])]),_:1},16))});exports.default=n;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./IconCopy.vue2.js");exports.default=e.default;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./IconCopy.vue.js");exports.default=e.default;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../utils/dom.js"),/* empty css */;/* empty css */const o=require("../components/Icon/index.vue3.js");;/* empty css */const n=e.defineComponent({__name:"IconCopy",setup:n=>(n,t)=>(e.openBlock(),e.createBlock(e.unref(o.default),e.normalizeProps(e.guardReactiveProps(n.$attrs)),{default:e.withCtx(()=>[...t[0]||(t[0]=[e.createElementVNode("path",{d:"M20 6h18a2 2 0 0 1 2 2v22M8 16v24c0 1.105.891 2 1.996 2h20.007A1.99 1.99 0 0 0 32 40.008V15.997A1.997 1.997 0 0 0 30 14H10a2 2 0 0 0-2 2Z"},null,-1)])]),_:1},16))});exports.default=n;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../utils/dom.js"),/* empty css */;/* empty css */const n=require("../components/Icon/index.vue3.js");;/* empty css */const o=e.defineComponent({__name:"IconEdit",setup:o=>(o,t)=>(e.openBlock(),e.createBlock(e.unref(n.default),e.normalizeProps(e.guardReactiveProps(o.$attrs)),{default:e.withCtx(()=>[...t[0]||(t[0]=[e.createElementVNode("path",{d:"m30.48 19.038 5.733-5.734a1 1 0 0 0 0-1.414l-5.586-5.586a1 1 0 0 0-1.414 0l-5.734 5.734m7 7L15.763 33.754a1 1 0 0 1-.59.286l-6.048.708a1 1 0 0 1-1.113-1.069l.477-6.31a1 1 0 0 1 .29-.631l14.7-14.7m7 7-7-7M6 42h36"},null,-1)])]),_:1},16))});exports.default=o;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./IconEdit.vue2.js");exports.default=e.default;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./IconEdit.vue.js");exports.default=e.default;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../utils/dom.js"),/* empty css */;/* empty css */const n=require("../components/Icon/index.vue3.js");;/* empty css */const o=e.defineComponent({__name:"IconEdit",setup:o=>(o,t)=>(e.openBlock(),e.createBlock(e.unref(n.default),e.normalizeProps(e.guardReactiveProps(o.$attrs)),{default:e.withCtx(()=>[...t[0]||(t[0]=[e.createElementVNode("path",{d:"m30.48 19.038 5.733-5.734a1 1 0 0 0 0-1.414l-5.586-5.586a1 1 0 0 0-1.414 0l-5.734 5.734m7 7L15.763 33.754a1 1 0 0 1-.59.286l-6.048.708a1 1 0 0 1-1.113-1.069l.477-6.31a1 1 0 0 1 .29-.631l14.7-14.7m7 7-7-7M6 42h36"},null,-1)])]),_:1},16))});exports.default=o;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, SVGSVGElement>;
2
+ export default _default;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./IconFile.vue2.js");exports.default=e.default;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../utils/dom.js"),/* empty css */;/* empty css */const n=require("../components/Icon/index.vue3.js");;/* empty css */const o=e.defineComponent({__name:"IconFile",setup:o=>(o,t)=>(e.openBlock(),e.createBlock(e.unref(n.default),e.normalizeProps(e.guardReactiveProps(o.$attrs)),{default:e.withCtx(()=>[...t[0]||(t[0]=[e.createElementVNode("path",{d:"M16 21h16m-16 8h10m11 13H11a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h21l7 7v27a2 2 0 0 1-2 2Z"},null,-1)])]),_:1},16))});exports.default=o;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, SVGSVGElement>;
2
+ export default _default;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./IconUpload.vue2.js");exports.default=e.default;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../utils/dom.js"),/* empty css */;/* empty css */const o=require("../components/Icon/index.vue3.js");;/* empty css */const n=e.defineComponent({__name:"IconUpload",setup:n=>(n,t)=>(e.openBlock(),e.createBlock(e.unref(o.default),e.normalizeProps(e.guardReactiveProps(n.$attrs)),{default:e.withCtx(()=>[...t[0]||(t[0]=[e.createElementVNode("path",{d:"M14.93 17.071 24.001 8l9.071 9.071m-9.07 16.071v-25M40 35v6H8v-6"},null,-1)])]),_:1},16))});exports.default=n;
@@ -37,3 +37,5 @@ export { default as IconToTop } from './IconToTop.vue';
37
37
  export { default as IconWarning } from './IconWarning.vue';
38
38
  export { default as IconZoomIn } from './IconZoomIn.vue';
39
39
  export { default as IconZoomOut } from './IconZoomOut.vue';
40
+ export { default as IconUpload } from './IconUpload.vue';
41
+ export { default as IconFile } from './IconFile.vue';
@@ -18,7 +18,9 @@ export type PopupContainer = string | HTMLElement;
18
18
  export type PopupMaxHeight = boolean | number;
19
19
  export type EventTrigger = 'click' | 'hover';
20
20
  export type PopupPosition = 'top' | 'tl' | 'tr' | 'bottom' | 'bl' | 'br' | 'left' | 'lt' | 'lb' | 'right' | 'rt' | 'rb';
21
- export type collapseType = 'clickTrigger' | 'responsive';
21
+ export type Position = 'left' | 'right' | 'top' | 'bottom';
22
+ export type Type<T = never> = 'success' | 'warning' | 'error' | 'info' | T;
23
+ export type Status<T = never> = 'success' | 'warning' | 'danger' | 'normal' | T;
22
24
  export type ClassName = string | Record<string, boolean> | (string | Record<string, boolean>)[];
23
25
  export type RenderContent = string | RecordType[] | RenderFunction;
24
26
  export type RecordType<T = any> = Record<string, T>;
@@ -4,4 +4,4 @@ export declare const getSlotFunction: (param: RenderContent | undefined) => impo
4
4
  export declare const isVifNode: (vnode: VNode | undefined | null) => boolean;
5
5
  export declare const findFirstLegitChild: (node: VNode[] | undefined) => VNode | null;
6
6
  export declare const findComponentsFromVnodes: (vnodes: VNode[], name?: string) => RecordType[];
7
- export { unrefElement, createReusableTemplate, useEventListener, useResizeObserver, useDraggable, useElementBounding, useElementSize, useMediaQuery, useMutationObserver, useClipboard, onClickOutside, useTimeoutFn, onKeyStroke, useVirtualList, useScroll, } from '@vueuse/core';
7
+ export { unrefElement, createReusableTemplate, useEventListener, useResizeObserver, useDraggable, useElementBounding, useElementSize, useMediaQuery, useMutationObserver, useClipboard, onClickOutside, useTimeoutFn, onKeyStroke, useVirtualList, useScroll, useDropZone, useFileDialog, } from '@vueuse/core';
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});exports.default=(e,t)=>{const o=e.__vccOpts||e;for(const[r,s]of t)o[r]=s;return o};
package/lib/index.d.ts CHANGED
@@ -64,6 +64,7 @@ import { default as Transfer } from './Transfer';
64
64
  import { default as Trigger } from './Trigger';
65
65
  import { default as Typography } from './Typography';
66
66
  import { default as Tabs } from './Tabs';
67
+ import { default as Upload } from './Upload';
67
68
  import { default as VerificationCode } from './VerificationCode';
68
69
  import { default as Watermark } from './Watermark';
69
70
  export * from './_shared/type';
@@ -132,11 +133,12 @@ export * from './Transfer';
132
133
  export * from './Trigger';
133
134
  export * from './Typography';
134
135
  export * from './Tabs';
136
+ export * from './Upload';
135
137
  export * from './VerificationCode';
136
138
  export * from './Watermark';
137
- export { Affix, Alert, Anchor, AutoComplete, Avatar, BackTop, Badge, Button, Breadcrumb, Card, Calendar, Carousel, Checkbox, Collapse, ColorPicker, Cascader, Comment, ConfigProvider, Descriptions, Divider, Drawer, Dropdown, Empty, Grid, Image, Input, InputNumber, InputTag, Layout, Link, List, Menu, Mention, Modal, Message, Notification, OverflowList, PageHeader, Pagination, Popconfirm, Popover, Progress, Radio, Rate, ResizeBox, Result, Scrollbar, Select, Skeleton, Slider, Space, Split, Statistic, Steps, Spin, Switch, Tag, Timeline, Textarea, TimePicker, Tooltip, Transfer, Trigger, Typography, Tabs, VerificationCode, Watermark, };
139
+ export { Affix, Alert, Anchor, AutoComplete, Avatar, BackTop, Badge, Button, Breadcrumb, Card, Calendar, Carousel, Checkbox, Collapse, ColorPicker, Cascader, Comment, ConfigProvider, Descriptions, Divider, Drawer, Dropdown, Empty, Grid, Image, Input, InputNumber, InputTag, Layout, Link, List, Menu, Mention, Modal, Message, Notification, OverflowList, PageHeader, Pagination, Popconfirm, Popover, Progress, Radio, Rate, ResizeBox, Result, Scrollbar, Select, Skeleton, Slider, Space, Split, Statistic, Steps, Spin, Switch, Tag, Timeline, Textarea, TimePicker, Tooltip, Transfer, Trigger, Typography, Tabs, Upload, VerificationCode, Watermark, };
138
140
  export declare const components: Record<string, Plugin>;
139
- declare const _default: {
141
+ declare const YcDesignVue: {
140
142
  AnchorLink: {
141
143
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./Anchor').AnchorLinkProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
142
144
  title: string;
@@ -208,7 +210,7 @@ declare const _default: {
208
210
  type: import('./Button').ButtonType;
209
211
  disabled: boolean;
210
212
  shape: import('./_shared/type').Shape;
211
- status: import('./Button').ButtonStatus;
213
+ status: import('./_shared/type').Status;
212
214
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
213
215
  P: {};
214
216
  B: {};
@@ -221,7 +223,7 @@ declare const _default: {
221
223
  type: import('./Button').ButtonType;
222
224
  disabled: boolean;
223
225
  shape: import('./_shared/type').Shape;
224
- status: import('./Button').ButtonStatus;
226
+ status: import('./_shared/type').Status;
225
227
  }>;
226
228
  __isFragment?: never;
227
229
  __isTeleport?: never;
@@ -231,7 +233,7 @@ declare const _default: {
231
233
  type: import('./Button').ButtonType;
232
234
  disabled: boolean;
233
235
  shape: import('./_shared/type').Shape;
234
- status: import('./Button').ButtonStatus;
236
+ status: import('./_shared/type').Status;
235
237
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
236
238
  $slots: Readonly<import('./Button').ButtonGroupSlots> & import('./Button').ButtonGroupSlots;
237
239
  });
@@ -502,7 +504,7 @@ declare const _default: {
502
504
  popupVisible: boolean;
503
505
  defaultPopupVisible: boolean;
504
506
  disabled: boolean;
505
- position: import('./Dropdown').DropdownPosition;
507
+ position: Extract<import('./_shared/type').PopupPosition, "top" | "tr" | "tl" | "bottom" | "br" | "bl">;
506
508
  hideOnSelect: boolean;
507
509
  buttonProps: import('./Button').ButtonProps;
508
510
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
@@ -524,7 +526,7 @@ declare const _default: {
524
526
  popupVisible: boolean;
525
527
  defaultPopupVisible: boolean;
526
528
  disabled: boolean;
527
- position: import('./Dropdown').DropdownPosition;
529
+ position: Extract<import('./_shared/type').PopupPosition, "top" | "tr" | "tl" | "bottom" | "br" | "bl">;
528
530
  hideOnSelect: boolean;
529
531
  buttonProps: import('./Button').ButtonProps;
530
532
  }>;
@@ -547,7 +549,7 @@ declare const _default: {
547
549
  popupVisible: boolean;
548
550
  defaultPopupVisible: boolean;
549
551
  disabled: boolean;
550
- position: import('./Dropdown').DropdownPosition;
552
+ position: Extract<import('./_shared/type').PopupPosition, "top" | "tr" | "tl" | "bottom" | "br" | "bl">;
551
553
  hideOnSelect: boolean;
552
554
  buttonProps: import('./Button').ButtonProps;
553
555
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
@@ -620,7 +622,7 @@ declare const _default: {
620
622
  popupVisible: boolean;
621
623
  defaultPopupVisible: boolean;
622
624
  disabled: boolean;
623
- position: import('./Dropdown').DsubmenuPosition;
625
+ position: Extract<import('./_shared/type').PopupPosition, "rt" | "lt">;
624
626
  triggerProps: import('./Trigger').TriggerProps;
625
627
  popupMaxHeight: import('./_shared/type').PopupMaxHeight;
626
628
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
@@ -941,7 +943,7 @@ declare const _default: {
941
943
  popupVisible: boolean;
942
944
  defaultPopupVisible: boolean;
943
945
  disabled: boolean;
944
- position: import('./Dropdown').DsubmenuPosition;
946
+ position: Extract<import('./_shared/type').PopupPosition, "rt" | "lt">;
945
947
  triggerProps: import('./Trigger').TriggerProps;
946
948
  popupMaxHeight: import('./_shared/type').PopupMaxHeight;
947
949
  }>;
@@ -962,7 +964,7 @@ declare const _default: {
962
964
  popupVisible: boolean;
963
965
  defaultPopupVisible: boolean;
964
966
  disabled: boolean;
965
- position: import('./Dropdown').DsubmenuPosition;
967
+ position: Extract<import('./_shared/type').PopupPosition, "rt" | "lt">;
966
968
  triggerProps: import('./Trigger').TriggerProps;
967
969
  popupMaxHeight: import('./_shared/type').PopupMaxHeight;
968
970
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
@@ -1302,11 +1304,11 @@ declare const _default: {
1302
1304
  });
1303
1305
  LayoutSider: {
1304
1306
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./Layout').LayoutSiderProps> & Readonly<{
1305
- onCollapse?: ((collapsed: boolean, type: import('./_shared/type').collapseType) => any) | undefined;
1307
+ onCollapse?: ((collapsed: boolean, type: "clickTrigger" | "responsive") => any) | undefined;
1306
1308
  "onUpdate:collapsed"?: ((collapsed: boolean) => any) | undefined;
1307
1309
  onBreakpoint?: ((collapsed: boolean) => any) | undefined;
1308
1310
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
1309
- collapse: (collapsed: boolean, type: import('./_shared/type').collapseType) => any;
1311
+ collapse: (collapsed: boolean, type: "clickTrigger" | "responsive") => any;
1310
1312
  "update:collapsed": (collapsed: boolean) => any;
1311
1313
  breakpoint: (collapsed: boolean) => any;
1312
1314
  }, import('vue').PublicProps, {
@@ -1319,7 +1321,7 @@ declare const _default: {
1319
1321
  collapsible: boolean;
1320
1322
  reverseArrow: boolean;
1321
1323
  hideTrigger: boolean;
1322
- resizeDirections: import('./ResizeBox').ResizeBoxDirection[];
1324
+ resizeDirections: import('./_shared/type').Position[];
1323
1325
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
1324
1326
  P: {};
1325
1327
  B: {};
@@ -1328,7 +1330,7 @@ declare const _default: {
1328
1330
  M: {};
1329
1331
  Defaults: {};
1330
1332
  }, Readonly<import('./Layout').LayoutSiderProps> & Readonly<{
1331
- onCollapse?: ((collapsed: boolean, type: import('./_shared/type').collapseType) => any) | undefined;
1333
+ onCollapse?: ((collapsed: boolean, type: "clickTrigger" | "responsive") => any) | undefined;
1332
1334
  "onUpdate:collapsed"?: ((collapsed: boolean) => any) | undefined;
1333
1335
  onBreakpoint?: ((collapsed: boolean) => any) | undefined;
1334
1336
  }>, {}, {}, {}, {}, {
@@ -1341,17 +1343,17 @@ declare const _default: {
1341
1343
  collapsible: boolean;
1342
1344
  reverseArrow: boolean;
1343
1345
  hideTrigger: boolean;
1344
- resizeDirections: import('./ResizeBox').ResizeBoxDirection[];
1346
+ resizeDirections: import('./_shared/type').Position[];
1345
1347
  }>;
1346
1348
  __isFragment?: never;
1347
1349
  __isTeleport?: never;
1348
1350
  __isSuspense?: never;
1349
1351
  } & import('vue').ComponentOptionsBase<Readonly<import('./Layout').LayoutSiderProps> & Readonly<{
1350
- onCollapse?: ((collapsed: boolean, type: import('./_shared/type').collapseType) => any) | undefined;
1352
+ onCollapse?: ((collapsed: boolean, type: "clickTrigger" | "responsive") => any) | undefined;
1351
1353
  "onUpdate:collapsed"?: ((collapsed: boolean) => any) | undefined;
1352
1354
  onBreakpoint?: ((collapsed: boolean) => any) | undefined;
1353
1355
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
1354
- collapse: (collapsed: boolean, type: import('./_shared/type').collapseType) => any;
1356
+ collapse: (collapsed: boolean, type: "clickTrigger" | "responsive") => any;
1355
1357
  "update:collapsed": (collapsed: boolean) => any;
1356
1358
  breakpoint: (collapsed: boolean) => any;
1357
1359
  }, string, {
@@ -1364,7 +1366,7 @@ declare const _default: {
1364
1366
  collapsible: boolean;
1365
1367
  reverseArrow: boolean;
1366
1368
  hideTrigger: boolean;
1367
- resizeDirections: import('./ResizeBox').ResizeBoxDirection[];
1369
+ resizeDirections: import('./_shared/type').Position[];
1368
1370
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
1369
1371
  $slots: Readonly<import('./Layout').LayoutSiderSlots> & import('./Layout').LayoutSiderSlots;
1370
1372
  });
@@ -1568,8 +1570,8 @@ declare const _default: {
1568
1570
  lineSpacing: number;
1569
1571
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
1570
1572
  SkeletonShape: import('vue').DefineComponent<import('./Skeleton').SkeletonShapeProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('./Skeleton').SkeletonShapeProps> & Readonly<{}>, {
1571
- size: import('./Skeleton').SkeletonShapeSize;
1572
- shape: import('./Skeleton').SkeletonShapeShape;
1573
+ size: Exclude<import('./_shared/type').Size, "mini">;
1574
+ shape: Exclude<import('./_shared/type').Shape, "round">;
1573
1575
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
1574
1576
  Step: {
1575
1577
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./Steps').StepProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
@@ -1670,7 +1672,7 @@ declare const _default: {
1670
1672
  TimelineItem: {
1671
1673
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./Timeline').TimelineItemProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
1672
1674
  label: string;
1673
- position: import('./Timeline').TimelinePositon;
1675
+ position: import('./_shared/type').Position;
1674
1676
  dotColor: string;
1675
1677
  dotType: import('./Timeline').TimelineDotType;
1676
1678
  lineType: import('./Timeline').TimelineLineType;
@@ -1685,7 +1687,7 @@ declare const _default: {
1685
1687
  Defaults: {};
1686
1688
  }, Readonly<import('./Timeline').TimelineItemProps> & Readonly<{}>, {}, {}, {}, {}, {
1687
1689
  label: string;
1688
- position: import('./Timeline').TimelinePositon;
1690
+ position: import('./_shared/type').Position;
1689
1691
  dotColor: string;
1690
1692
  dotType: import('./Timeline').TimelineDotType;
1691
1693
  lineType: import('./Timeline').TimelineLineType;
@@ -1697,7 +1699,7 @@ declare const _default: {
1697
1699
  __isSuspense?: never;
1698
1700
  } & import('vue').ComponentOptionsBase<Readonly<import('./Timeline').TimelineItemProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
1699
1701
  label: string;
1700
- position: import('./Timeline').TimelinePositon;
1702
+ position: import('./_shared/type').Position;
1701
1703
  dotColor: string;
1702
1704
  dotType: import('./Timeline').TimelineDotType;
1703
1705
  lineType: import('./Timeline').TimelineLineType;
@@ -1723,7 +1725,7 @@ declare const _default: {
1723
1725
  });
1724
1726
  TypographyTitle: {
1725
1727
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./Typography').TypographyTitleProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
1726
- heading: import('./Typography').Heading;
1728
+ heading: 1 | 2 | 3 | 4 | 5 | 6;
1727
1729
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
1728
1730
  P: {};
1729
1731
  B: {};
@@ -1732,20 +1734,20 @@ declare const _default: {
1732
1734
  M: {};
1733
1735
  Defaults: {};
1734
1736
  }, Readonly<import('./Typography').TypographyTitleProps> & Readonly<{}>, {}, {}, {}, {}, {
1735
- heading: import('./Typography').Heading;
1737
+ heading: 1 | 2 | 3 | 4 | 5 | 6;
1736
1738
  }>;
1737
1739
  __isFragment?: never;
1738
1740
  __isTeleport?: never;
1739
1741
  __isSuspense?: never;
1740
1742
  } & import('vue').ComponentOptionsBase<Readonly<import('./Typography').TypographyTitleProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
1741
- heading: import('./Typography').Heading;
1743
+ heading: 1 | 2 | 3 | 4 | 5 | 6;
1742
1744
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
1743
1745
  $slots: any;
1744
1746
  });
1745
1747
  TypographyParagraph: {
1746
1748
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./Typography').TypographyParagraphProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
1747
1749
  blockquote: boolean;
1748
- spacing: import('./Typography').Spacing;
1750
+ spacing: "close" | "default";
1749
1751
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
1750
1752
  P: {};
1751
1753
  B: {};
@@ -1755,17 +1757,17 @@ declare const _default: {
1755
1757
  Defaults: {};
1756
1758
  }, Readonly<import('./Typography').TypographyParagraphProps> & Readonly<{}>, {}, {}, {}, {}, {
1757
1759
  blockquote: boolean;
1758
- spacing: import('./Typography').Spacing;
1760
+ spacing: "close" | "default";
1759
1761
  }>;
1760
1762
  __isFragment?: never;
1761
1763
  __isTeleport?: never;
1762
1764
  __isSuspense?: never;
1763
1765
  } & import('vue').ComponentOptionsBase<Readonly<import('./Typography').TypographyParagraphProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
1764
1766
  blockquote: boolean;
1765
- spacing: import('./Typography').Spacing;
1767
+ spacing: "close" | "default";
1766
1768
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
1767
1769
  $slots: any;
1768
1770
  });
1769
1771
  install: (app: App) => void;
1770
1772
  };
1771
- export default _default;
1773
+ export default YcDesignVue;