yc-design-vue 2.0.5 → 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 (383) 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/InputSuffix.vue.js +1 -1
  59. package/es/Input/index.d.ts +3 -3
  60. package/es/InputNumber/InputNumber.vue.d.ts +8 -8
  61. package/es/InputNumber/InputOperaBtn.vue.d.ts +2 -2
  62. package/es/InputNumber/index.d.ts +9 -9
  63. package/es/InputNumber/type.d.ts +5 -4
  64. package/es/InputTag/index.d.ts +15 -6
  65. package/es/InputTag/index.vue.d.ts +5 -2
  66. package/es/InputTag/type.d.ts +2 -1
  67. package/es/Layout/LayoutSider.vue.d.ts +3 -3
  68. package/es/Layout/index.d.ts +8 -8
  69. package/es/Layout/type.d.ts +3 -4
  70. package/es/Link/index.d.ts +3 -3
  71. package/es/Link/index.vue.d.ts +1 -1
  72. package/es/Link/type.d.ts +2 -2
  73. package/es/List/List.vue.d.ts +7 -7
  74. package/es/List/index.d.ts +6 -6
  75. package/es/List/type.d.ts +2 -3
  76. package/es/Mention/index.d.ts +21 -12
  77. package/es/Mention/index.vue.d.ts +37 -19
  78. package/es/Mention/type.d.ts +3 -2
  79. package/es/Menu/Menu.vue.d.ts +2 -2
  80. package/es/Menu/index.d.ts +5 -5
  81. package/es/Menu/type.d.ts +2 -2
  82. package/es/Message/type.d.ts +3 -3
  83. package/es/Modal/Modal.vue.d.ts +1 -1
  84. package/es/Modal/ModalService.vue.d.ts +1 -1
  85. package/es/Modal/index.d.ts +13 -13
  86. package/es/Modal/index.js +1 -4
  87. package/es/Modal/type.d.ts +6 -9
  88. package/es/Notification/Notification.vue.d.ts +1 -1
  89. package/es/Notification/index.d.ts +4 -4
  90. package/es/Notification/type.d.ts +3 -4
  91. package/es/OverflowList/index.d.ts +3 -3
  92. package/es/OverflowList/index.vue.d.ts +1 -1
  93. package/es/OverflowList/type.d.ts +3 -2
  94. package/es/Popconfirm/index.d.ts +3 -3
  95. package/es/Popconfirm/index.vue.d.ts +1 -1
  96. package/es/Popconfirm/type.d.ts +2 -3
  97. package/es/Progress/Progress.vue.d.ts +1 -1
  98. package/es/Progress/ProgressCircle.vue.d.ts +3 -3
  99. package/es/Progress/ProgressLine.vue.d.ts +3 -3
  100. package/es/Progress/index.d.ts +3 -3
  101. package/es/Progress/type.d.ts +2 -3
  102. package/es/Radio/type.d.ts +1 -1
  103. package/es/ResizeBox/index.d.ts +3 -3
  104. package/es/ResizeBox/index.vue.d.ts +2 -2
  105. package/es/ResizeBox/type.d.ts +4 -4
  106. package/es/Result/index.d.ts +3 -3
  107. package/es/Result/index.vue.d.ts +1 -1
  108. package/es/Result/type.d.ts +3 -2
  109. package/es/Scrollbar/Scrollbar.vue.d.ts +1 -1
  110. package/es/Scrollbar/index.d.ts +3 -3
  111. package/es/Scrollbar/type.d.ts +2 -1
  112. package/es/Select/Select.vue.d.ts +31 -13
  113. package/es/Select/hooks/useContext.d.ts +2 -2
  114. package/es/Select/hooks/useSelectOptions.d.ts +2 -2
  115. package/es/Select/index.d.ts +18 -9
  116. package/es/Skeleton/SkeletonShape.vue.d.ts +2 -2
  117. package/es/Skeleton/index.d.ts +2 -2
  118. package/es/Skeleton/type.d.ts +2 -4
  119. package/es/Space/index.d.ts +6 -6
  120. package/es/Space/index.vue.d.ts +2 -2
  121. package/es/Space/type.d.ts +5 -4
  122. package/es/Switch/index.d.ts +9 -9
  123. package/es/Switch/index.vue.d.ts +3 -3
  124. package/es/Switch/type.d.ts +4 -4
  125. package/es/Tabs/Tabs.vue.d.ts +1 -1
  126. package/es/Tabs/hooks/useContext.d.ts +4 -4
  127. package/es/Tabs/index.d.ts +3 -3
  128. package/es/Tabs/type.d.ts +2 -3
  129. package/es/Tag/index.d.ts +3 -3
  130. package/es/Tag/index.vue.d.ts +1 -1
  131. package/es/Tag/type.d.ts +1 -2
  132. package/es/Textarea/type.d.ts +2 -2
  133. package/es/TimePicker/TimePicker.vue.d.ts +1 -1
  134. package/es/TimePicker/index.d.ts +3 -3
  135. package/es/Timeline/TimelineItem.vue.d.ts +1 -1
  136. package/es/Timeline/index.d.ts +3 -3
  137. package/es/Timeline/type.d.ts +3 -4
  138. package/es/Transfer/TransferPanel.vue.js +1 -1
  139. package/es/Typography/TypographyBase.vue.d.ts +7 -7
  140. package/es/Typography/TypographyBase.vue.js +2 -2
  141. package/es/Typography/TypographyParagraph.vue.d.ts +1 -1
  142. package/es/Typography/TypographyTitle.vue.d.ts +1 -1
  143. package/es/Typography/type.d.ts +5 -4
  144. package/es/Upload/Upload.vue.d.ts +53 -0
  145. package/es/Upload/Upload.vue.js +110 -0
  146. package/es/Upload/Upload.vue3.js +5 -0
  147. package/es/Upload/UploadButton.vue.d.ts +2 -0
  148. package/es/Upload/UploadButton.vue.js +39 -0
  149. package/es/Upload/UploadButton.vue3.js +5 -0
  150. package/es/Upload/UploadDrag.vue.d.ts +2 -0
  151. package/es/Upload/UploadDrag.vue.js +37 -0
  152. package/es/Upload/UploadDrag.vue3.js +5 -0
  153. package/es/Upload/UploadFileList.vue.d.ts +24 -0
  154. package/es/Upload/UploadFileList.vue.js +7 -0
  155. package/es/Upload/UploadFileList.vue2.js +126 -0
  156. package/es/Upload/UploadPictureCard.vue.d.ts +4 -0
  157. package/es/Upload/UploadPictureCard.vue.js +7 -0
  158. package/es/Upload/UploadPictureCard.vue2.js +132 -0
  159. package/es/Upload/hooks/useContext.d.ts +49 -0
  160. package/es/Upload/hooks/useContext.js +92 -0
  161. package/es/Upload/hooks/useUpload.d.ts +47 -0
  162. package/es/Upload/hooks/useUpload.js +80 -0
  163. package/es/Upload/index.css +1 -0
  164. package/es/Upload/index.d.ts +123 -0
  165. package/es/Upload/index.js +10 -0
  166. package/es/Upload/type.d.ts +72 -0
  167. package/es/VerificationCode/index.d.ts +3 -3
  168. package/es/VerificationCode/index.vue.d.ts +1 -1
  169. package/es/VerificationCode/type.d.ts +5 -4
  170. package/es/_shared/icons/IconCopy.vue.js +1 -19
  171. package/es/_shared/icons/IconCopy.vue2.js +19 -1
  172. package/es/_shared/icons/IconDelete.vue.js +19 -1
  173. package/es/_shared/icons/IconDelete.vue2.js +1 -19
  174. package/es/_shared/icons/IconEdit.vue.js +1 -19
  175. package/es/_shared/icons/IconEdit.vue2.js +19 -1
  176. package/es/_shared/icons/IconEyeClose.vue.js +23 -1
  177. package/es/_shared/icons/IconEyeClose.vue2.js +1 -23
  178. package/es/_shared/icons/IconFile.vue.d.ts +2 -0
  179. package/es/_shared/icons/IconFile.vue.js +22 -0
  180. package/es/_shared/icons/IconFile.vue2.js +4 -0
  181. package/es/_shared/icons/IconUpload.vue.d.ts +2 -0
  182. package/es/_shared/icons/IconUpload.vue.js +22 -0
  183. package/es/_shared/icons/IconUpload.vue2.js +4 -0
  184. package/es/_shared/icons/index.d.ts +2 -0
  185. package/es/_shared/type/index.d.ts +3 -1
  186. package/es/_shared/utils/vue-utils.d.ts +1 -1
  187. package/es/_virtual/_plugin-vue_export-helper.js +10 -0
  188. package/es/index.d.ts +31 -30
  189. package/es/index.js +5 -3
  190. package/es/node_modules/@vueuse/core/index.js +171 -9
  191. package/es/node_modules/@vueuse/shared/index.js +29 -0
  192. package/es/style.css +1 -1
  193. package/lib/Alert/index.d.ts +3 -3
  194. package/lib/Alert/index.vue.d.ts +1 -1
  195. package/lib/Alert/type.d.ts +2 -2
  196. package/lib/Anchor/Anchor.vue.d.ts +1 -1
  197. package/lib/Anchor/hooks/useContext.d.ts +1 -1
  198. package/lib/Anchor/index.d.ts +3 -3
  199. package/lib/Anchor/type.d.ts +3 -2
  200. package/lib/AutoComplete/index.d.ts +18 -9
  201. package/lib/AutoComplete/index.vue.d.ts +36 -18
  202. package/lib/Avatar/Avatar.vue.d.ts +1 -1
  203. package/lib/Avatar/index.d.ts +3 -3
  204. package/lib/Avatar/type.d.ts +3 -2
  205. package/lib/Badge/index.d.ts +3 -3
  206. package/lib/Badge/index.vue.d.ts +1 -1
  207. package/lib/Badge/type.d.ts +2 -2
  208. package/lib/Button/Button.vue.d.ts +2 -2
  209. package/lib/Button/ButtonGroup.vue.d.ts +1 -1
  210. package/lib/Button/hooks/useContext.d.ts +3 -3
  211. package/lib/Button/index.d.ts +9 -9
  212. package/lib/Button/type.d.ts +6 -6
  213. package/lib/Card/Card.vue.d.ts +1 -1
  214. package/lib/Card/index.d.ts +3 -3
  215. package/lib/Card/type.d.ts +1 -2
  216. package/lib/Carousel/Carousel.vue.d.ts +2 -2
  217. package/lib/Carousel/hooks/useContext.d.ts +3 -3
  218. package/lib/Carousel/index.d.ts +6 -6
  219. package/lib/Carousel/type.d.ts +6 -6
  220. package/lib/Cascader/Cascader.vue.d.ts +7 -7
  221. package/lib/Cascader/index.d.ts +6 -6
  222. package/lib/Collapse/hooks/useContext.d.ts +2 -13
  223. package/lib/Collapse/hooks/useContext.js +1 -1
  224. package/lib/Collapse/type.d.ts +2 -1
  225. package/lib/Descriptions/Descriptions.vue.d.ts +3 -3
  226. package/lib/Descriptions/hooks/useContext.d.ts +1 -1
  227. package/lib/Descriptions/index.d.ts +9 -9
  228. package/lib/Descriptions/type.d.ts +7 -6
  229. package/lib/Divider/index.d.ts +6 -6
  230. package/lib/Divider/index.vue.d.ts +2 -2
  231. package/lib/Divider/type.d.ts +4 -3
  232. package/lib/Drawer/Drawer.vue.d.ts +1 -1
  233. package/lib/Drawer/DrawerService.vue.d.ts +1 -1
  234. package/lib/Drawer/index.d.ts +5 -9
  235. package/lib/Drawer/type.d.ts +8 -4
  236. package/lib/Dropdown/Dropdown.vue.d.ts +1 -1
  237. package/lib/Dropdown/DropdownButton.vue.d.ts +1 -1
  238. package/lib/Dropdown/Dsubmenu.vue.d.ts +1 -1
  239. package/lib/Dropdown/index.d.ts +9 -9
  240. package/lib/Dropdown/type.d.ts +4 -6
  241. package/lib/Grid/hooks/useContext.d.ts +0 -11
  242. package/lib/Grid/hooks/useContext.js +1 -1
  243. package/lib/Image/Image.vue.d.ts +2 -2
  244. package/lib/Image/ImagePreview.vue.js +1 -1
  245. package/lib/Image/index.d.ts +6 -6
  246. package/lib/Image/type.d.ts +3 -2
  247. package/lib/Input/Input.vue.d.ts +1 -1
  248. package/lib/Input/InputSuffix.vue.js +1 -1
  249. package/lib/Input/index.d.ts +3 -3
  250. package/lib/InputNumber/InputNumber.vue.d.ts +8 -8
  251. package/lib/InputNumber/InputOperaBtn.vue.d.ts +2 -2
  252. package/lib/InputNumber/index.d.ts +9 -9
  253. package/lib/InputNumber/type.d.ts +5 -4
  254. package/lib/InputTag/index.d.ts +15 -6
  255. package/lib/InputTag/index.vue.d.ts +5 -2
  256. package/lib/InputTag/type.d.ts +2 -1
  257. package/lib/Layout/LayoutSider.vue.d.ts +3 -3
  258. package/lib/Layout/index.d.ts +8 -8
  259. package/lib/Layout/type.d.ts +3 -4
  260. package/lib/Link/index.d.ts +3 -3
  261. package/lib/Link/index.vue.d.ts +1 -1
  262. package/lib/Link/type.d.ts +2 -2
  263. package/lib/List/List.vue.d.ts +7 -7
  264. package/lib/List/index.d.ts +6 -6
  265. package/lib/List/type.d.ts +2 -3
  266. package/lib/Mention/index.d.ts +21 -12
  267. package/lib/Mention/index.vue.d.ts +37 -19
  268. package/lib/Mention/type.d.ts +3 -2
  269. package/lib/Menu/Menu.vue.d.ts +2 -2
  270. package/lib/Menu/index.d.ts +5 -5
  271. package/lib/Menu/type.d.ts +2 -2
  272. package/lib/Message/type.d.ts +3 -3
  273. package/lib/Modal/Modal.vue.d.ts +1 -1
  274. package/lib/Modal/ModalService.vue.d.ts +1 -1
  275. package/lib/Modal/index.d.ts +13 -13
  276. package/lib/Modal/index.js +1 -1
  277. package/lib/Modal/type.d.ts +6 -9
  278. package/lib/Notification/Notification.vue.d.ts +1 -1
  279. package/lib/Notification/index.d.ts +4 -4
  280. package/lib/Notification/type.d.ts +3 -4
  281. package/lib/OverflowList/index.d.ts +3 -3
  282. package/lib/OverflowList/index.vue.d.ts +1 -1
  283. package/lib/OverflowList/type.d.ts +3 -2
  284. package/lib/Popconfirm/index.d.ts +3 -3
  285. package/lib/Popconfirm/index.vue.d.ts +1 -1
  286. package/lib/Popconfirm/type.d.ts +2 -3
  287. package/lib/Progress/Progress.vue.d.ts +1 -1
  288. package/lib/Progress/ProgressCircle.vue.d.ts +3 -3
  289. package/lib/Progress/ProgressLine.vue.d.ts +3 -3
  290. package/lib/Progress/index.d.ts +3 -3
  291. package/lib/Progress/type.d.ts +2 -3
  292. package/lib/Radio/type.d.ts +1 -1
  293. package/lib/ResizeBox/index.d.ts +3 -3
  294. package/lib/ResizeBox/index.vue.d.ts +2 -2
  295. package/lib/ResizeBox/type.d.ts +4 -4
  296. package/lib/Result/index.d.ts +3 -3
  297. package/lib/Result/index.vue.d.ts +1 -1
  298. package/lib/Result/type.d.ts +3 -2
  299. package/lib/Scrollbar/Scrollbar.vue.d.ts +1 -1
  300. package/lib/Scrollbar/index.d.ts +3 -3
  301. package/lib/Scrollbar/type.d.ts +2 -1
  302. package/lib/Select/Select.vue.d.ts +31 -13
  303. package/lib/Select/hooks/useContext.d.ts +2 -2
  304. package/lib/Select/hooks/useSelectOptions.d.ts +2 -2
  305. package/lib/Select/index.d.ts +18 -9
  306. package/lib/Skeleton/SkeletonShape.vue.d.ts +2 -2
  307. package/lib/Skeleton/index.d.ts +2 -2
  308. package/lib/Skeleton/type.d.ts +2 -4
  309. package/lib/Space/index.d.ts +6 -6
  310. package/lib/Space/index.vue.d.ts +2 -2
  311. package/lib/Space/type.d.ts +5 -4
  312. package/lib/Switch/index.d.ts +9 -9
  313. package/lib/Switch/index.vue.d.ts +3 -3
  314. package/lib/Switch/type.d.ts +4 -4
  315. package/lib/Tabs/Tabs.vue.d.ts +1 -1
  316. package/lib/Tabs/hooks/useContext.d.ts +4 -4
  317. package/lib/Tabs/index.d.ts +3 -3
  318. package/lib/Tabs/type.d.ts +2 -3
  319. package/lib/Tag/index.d.ts +3 -3
  320. package/lib/Tag/index.vue.d.ts +1 -1
  321. package/lib/Tag/type.d.ts +1 -2
  322. package/lib/Textarea/type.d.ts +2 -2
  323. package/lib/TimePicker/TimePicker.vue.d.ts +1 -1
  324. package/lib/TimePicker/index.d.ts +3 -3
  325. package/lib/Timeline/TimelineItem.vue.d.ts +1 -1
  326. package/lib/Timeline/index.d.ts +3 -3
  327. package/lib/Timeline/type.d.ts +3 -4
  328. package/lib/Transfer/TransferPanel.vue.js +1 -1
  329. package/lib/Typography/TypographyBase.vue.d.ts +7 -7
  330. package/lib/Typography/TypographyBase.vue.js +1 -1
  331. package/lib/Typography/TypographyParagraph.vue.d.ts +1 -1
  332. package/lib/Typography/TypographyTitle.vue.d.ts +1 -1
  333. package/lib/Typography/type.d.ts +5 -4
  334. package/lib/Upload/Upload.vue.d.ts +53 -0
  335. package/lib/Upload/Upload.vue.js +1 -0
  336. package/lib/Upload/Upload.vue3.js +1 -0
  337. package/lib/Upload/UploadButton.vue.d.ts +2 -0
  338. package/lib/Upload/UploadButton.vue.js +1 -0
  339. package/lib/Upload/UploadButton.vue3.js +1 -0
  340. package/lib/Upload/UploadDrag.vue.d.ts +2 -0
  341. package/lib/Upload/UploadDrag.vue.js +1 -0
  342. package/lib/Upload/UploadDrag.vue3.js +1 -0
  343. package/lib/Upload/UploadFileList.vue.d.ts +24 -0
  344. package/lib/Upload/UploadFileList.vue.js +1 -0
  345. package/lib/Upload/UploadFileList.vue2.js +1 -0
  346. package/lib/Upload/UploadPictureCard.vue.d.ts +4 -0
  347. package/lib/Upload/UploadPictureCard.vue.js +1 -0
  348. package/lib/Upload/UploadPictureCard.vue2.js +1 -0
  349. package/lib/Upload/hooks/useContext.d.ts +49 -0
  350. package/lib/Upload/hooks/useContext.js +1 -0
  351. package/lib/Upload/hooks/useUpload.d.ts +47 -0
  352. package/lib/Upload/hooks/useUpload.js +1 -0
  353. package/lib/Upload/index.css +1 -0
  354. package/lib/Upload/index.d.ts +123 -0
  355. package/lib/Upload/index.js +1 -0
  356. package/lib/Upload/type.d.ts +72 -0
  357. package/lib/VerificationCode/index.d.ts +3 -3
  358. package/lib/VerificationCode/index.vue.d.ts +1 -1
  359. package/lib/VerificationCode/type.d.ts +5 -4
  360. package/lib/_shared/icons/IconCopy.vue.js +1 -1
  361. package/lib/_shared/icons/IconCopy.vue2.js +1 -1
  362. package/lib/_shared/icons/IconDelete.vue.js +1 -1
  363. package/lib/_shared/icons/IconDelete.vue2.js +1 -1
  364. package/lib/_shared/icons/IconEdit.vue.js +1 -1
  365. package/lib/_shared/icons/IconEdit.vue2.js +1 -1
  366. package/lib/_shared/icons/IconEyeClose.vue.js +1 -1
  367. package/lib/_shared/icons/IconEyeClose.vue2.js +1 -1
  368. package/lib/_shared/icons/IconFile.vue.d.ts +2 -0
  369. package/lib/_shared/icons/IconFile.vue.js +1 -0
  370. package/lib/_shared/icons/IconFile.vue2.js +1 -0
  371. package/lib/_shared/icons/IconUpload.vue.d.ts +2 -0
  372. package/lib/_shared/icons/IconUpload.vue.js +1 -0
  373. package/lib/_shared/icons/IconUpload.vue2.js +1 -0
  374. package/lib/_shared/icons/index.d.ts +2 -0
  375. package/lib/_shared/type/index.d.ts +3 -1
  376. package/lib/_shared/utils/vue-utils.d.ts +1 -1
  377. package/lib/_virtual/_plugin-vue_export-helper.js +1 -0
  378. package/lib/index.d.ts +31 -30
  379. package/lib/index.js +1 -1
  380. package/lib/node_modules/@vueuse/core/index.js +1 -1
  381. package/lib/node_modules/@vueuse/shared/index.js +1 -1
  382. package/lib/style.css +1 -1
  383. package/package.json +1 -1
package/es/Tag/type.d.ts CHANGED
@@ -2,7 +2,7 @@ import { VNode } from 'vue';
2
2
  import { Size } from '../_shared/type';
3
3
  export interface TagProps {
4
4
  color?: string;
5
- size?: TagSize;
5
+ size?: Exclude<Size, 'mini'>;
6
6
  bordered?: boolean;
7
7
  visible?: boolean;
8
8
  defaultVisible?: boolean;
@@ -24,4 +24,3 @@ export interface TagSlots {
24
24
  icon?: () => VNode[];
25
25
  'close-icon'?: () => VNode[];
26
26
  }
27
- export type TagSize = Exclude<Size, 'mini'>;
@@ -24,12 +24,12 @@ export interface TextareaEmits {
24
24
  (e: 'blur', ev: FocusEvent): void;
25
25
  (e: 'keydown', ev: KeyboardEvent): void;
26
26
  }
27
- export type TextareaExpose = {
27
+ export interface TextareaExpose {
28
28
  focus(): void;
29
29
  blur(): void;
30
30
  getInputRef(): HTMLTextAreaElement;
31
31
  getMirrorRef(): HTMLDivElement;
32
- };
32
+ }
33
33
  export type AutoSize = boolean | {
34
34
  minRows?: number;
35
35
  maxRows?: number;
@@ -69,9 +69,9 @@ declare const __VLS_component: import('vue').DefineComponent<TimePickerProps, {}
69
69
  "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
70
70
  "onUpdate:modelValue"?: ((value: import('./type').TimePickerValue) => any) | undefined;
71
71
  }>, {
72
+ error: boolean;
72
73
  size: import('..').Size;
73
74
  type: import('./type').TimePickerType;
74
- error: boolean;
75
75
  popupContainer: import('..').PopupContainer;
76
76
  popupVisible: boolean;
77
77
  defaultPopupVisible: boolean;
@@ -18,9 +18,9 @@ declare const TimePicker: {
18
18
  "popup-visible-change": (value: boolean) => any;
19
19
  "update:modelValue": (value: import('./type').TimePickerValue) => any;
20
20
  }, import('vue').PublicProps, {
21
+ error: boolean;
21
22
  size: import('..').Size;
22
23
  type: import('./type').TimePickerType;
23
- error: boolean;
24
24
  popupContainer: import('..').PopupContainer;
25
25
  popupVisible: boolean;
26
26
  defaultPopupVisible: boolean;
@@ -101,9 +101,9 @@ declare const TimePicker: {
101
101
  "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
102
102
  "onUpdate:modelValue"?: ((value: import('./type').TimePickerValue) => any) | undefined;
103
103
  }>, {}, {}, {}, {}, {
104
+ error: boolean;
104
105
  size: import('..').Size;
105
106
  type: import('./type').TimePickerType;
106
- error: boolean;
107
107
  popupContainer: import('..').PopupContainer;
108
108
  popupVisible: boolean;
109
109
  defaultPopupVisible: boolean;
@@ -140,9 +140,9 @@ declare const TimePicker: {
140
140
  "popup-visible-change": (value: boolean) => any;
141
141
  "update:modelValue": (value: import('./type').TimePickerValue) => any;
142
142
  }, string, {
143
+ error: boolean;
143
144
  size: import('..').Size;
144
145
  type: import('./type').TimePickerType;
145
- error: boolean;
146
146
  popupContainer: import('..').PopupContainer;
147
147
  popupVisible: boolean;
148
148
  defaultPopupVisible: boolean;
@@ -8,7 +8,7 @@ declare function __VLS_template(): {
8
8
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
9
9
  declare const __VLS_component: import('vue').DefineComponent<TimelineItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TimelineItemProps> & Readonly<{}>, {
10
10
  label: string;
11
- position: import('./type').TimelinePositon;
11
+ position: import('..').Position;
12
12
  dotColor: string;
13
13
  dotType: import('./type').TimelineDotType;
14
14
  lineType: import('./type').TimelineLineType;
@@ -40,7 +40,7 @@ declare const Timeline: {
40
40
  item: {
41
41
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').TimelineItemProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
42
42
  label: string;
43
- position: import('./type').TimelinePositon;
43
+ position: import('..').Position;
44
44
  dotColor: string;
45
45
  dotType: import('./type').TimelineDotType;
46
46
  lineType: import('./type').TimelineLineType;
@@ -55,7 +55,7 @@ declare const Timeline: {
55
55
  Defaults: {};
56
56
  }, Readonly<import('./type').TimelineItemProps> & Readonly<{}>, {}, {}, {}, {}, {
57
57
  label: string;
58
- position: import('./type').TimelinePositon;
58
+ position: import('..').Position;
59
59
  dotColor: string;
60
60
  dotType: import('./type').TimelineDotType;
61
61
  lineType: import('./type').TimelineLineType;
@@ -67,7 +67,7 @@ declare const Timeline: {
67
67
  __isSuspense?: never;
68
68
  } & import('vue').ComponentOptionsBase<Readonly<import('./type').TimelineItemProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
69
69
  label: string;
70
- position: import('./type').TimelinePositon;
70
+ position: import('..').Position;
71
71
  dotColor: string;
72
72
  dotType: import('./type').TimelineDotType;
73
73
  lineType: import('./type').TimelineLineType;
@@ -1,4 +1,4 @@
1
- import { Direction } from '../_shared/type';
1
+ import { Direction, Position } from '../_shared/type';
2
2
  import { VNode } from 'vue';
3
3
  export interface TimelineProps {
4
4
  reverse?: boolean;
@@ -17,7 +17,7 @@ export interface TimelineItemProps {
17
17
  lineType?: TimelineLineType;
18
18
  lineColor?: string;
19
19
  label?: string;
20
- position?: TimelinePositon;
20
+ position?: Position;
21
21
  isGhost?: boolean;
22
22
  }
23
23
  export interface TimelineItemSlots {
@@ -25,8 +25,7 @@ export interface TimelineItemSlots {
25
25
  label?: () => VNode[];
26
26
  default?: () => VNode[];
27
27
  }
28
- export type TimelineMode = 'left' | 'right' | 'top' | 'bottom' | 'alternate';
28
+ export type TimelineMode = Position | 'alternate';
29
29
  export type TimelineLabelPosition = 'relative' | 'same';
30
30
  export type TimelineDotType = 'hollow' | 'solid';
31
31
  export type TimelineLineType = 'solid' | 'dashed' | 'dotted';
32
- export type TimelinePositon = 'left' | 'right' | 'top' | 'bottom';
@@ -5,7 +5,7 @@ import "../_shared/utils/dom.js";
5
5
  /* empty css */
6
6
  /* empty css */
7
7
  import _sfc_main$4 from "../_shared/icons/IconClose.vue.js";
8
- import _sfc_main$2 from "../_shared/icons/IconDelete.vue2.js";
8
+ import _sfc_main$2 from "../_shared/icons/IconDelete.vue.js";
9
9
  import _sfc_main$3 from "../_shared/icons/IconSearch.vue2.js";
10
10
  import useTransferContext from "./hooks/useContext.js";
11
11
  import Checkbox from "../Checkbox/index.js";
@@ -80,8 +80,8 @@ declare function __VLS_template(): {
80
80
  "visibility-change": (value: boolean) => any;
81
81
  pressEnter: (ev: KeyboardEvent) => any;
82
82
  }, string, {
83
- size: import('..').Size;
84
83
  error: boolean;
84
+ size: import('..').Size;
85
85
  disabled: boolean;
86
86
  placeholder: string;
87
87
  modelValue: string;
@@ -119,8 +119,8 @@ declare function __VLS_template(): {
119
119
  $nextTick: typeof import('vue').nextTick;
120
120
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
121
121
  } & Readonly<{
122
- size: import('..').Size;
123
122
  error: boolean;
123
+ size: import('..').Size;
124
124
  disabled: boolean;
125
125
  placeholder: string;
126
126
  modelValue: string;
@@ -148,7 +148,7 @@ declare function __VLS_template(): {
148
148
  "onUpdate:visibility"?: ((value: boolean) => any) | undefined;
149
149
  "onVisibility-change"?: ((value: boolean) => any) | undefined;
150
150
  onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
151
- }>, "blur" | "focus" | "getInputRef" | ("size" | "error" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "maxLength" | "showWordLimit" | "allowClear" | "readonly" | "wordLength" | "wordSlice" | "inputAttrs" | "isPassword" | "visibility" | "defaultVisibility" | "invisibleButton" | "showInput")> & import('vue').ShallowUnwrapRef<{
151
+ }>, "blur" | "focus" | "getInputRef" | ("error" | "size" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "maxLength" | "showWordLimit" | "allowClear" | "readonly" | "wordLength" | "wordSlice" | "inputAttrs" | "isPassword" | "visibility" | "defaultVisibility" | "invisibleButton" | "showInput")> & import('vue').ShallowUnwrapRef<{
152
152
  focus(): void;
153
153
  blur(): void;
154
154
  getInputRef(): HTMLInputElement;
@@ -175,7 +175,7 @@ declare const __VLS_component: import('vue').DefineComponent<TypographyBaseProps
175
175
  "onEdit-end"?: (() => any) | undefined;
176
176
  }>, {
177
177
  delete: boolean;
178
- type: import('./type').TypographyType;
178
+ type: "success" | "warning" | "danger" | "primary" | "secondary";
179
179
  code: boolean;
180
180
  mark: boolean;
181
181
  bold: boolean;
@@ -268,8 +268,8 @@ declare const __VLS_component: import('vue').DefineComponent<TypographyBaseProps
268
268
  "visibility-change": (value: boolean) => any;
269
269
  pressEnter: (ev: KeyboardEvent) => any;
270
270
  }, string, {
271
- size: import('..').Size;
272
271
  error: boolean;
272
+ size: import('..').Size;
273
273
  disabled: boolean;
274
274
  placeholder: string;
275
275
  modelValue: string;
@@ -307,8 +307,8 @@ declare const __VLS_component: import('vue').DefineComponent<TypographyBaseProps
307
307
  $nextTick: typeof import('vue').nextTick;
308
308
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
309
309
  } & Readonly<{
310
- size: import('..').Size;
311
310
  error: boolean;
311
+ size: import('..').Size;
312
312
  disabled: boolean;
313
313
  placeholder: string;
314
314
  modelValue: string;
@@ -336,7 +336,7 @@ declare const __VLS_component: import('vue').DefineComponent<TypographyBaseProps
336
336
  "onUpdate:visibility"?: ((value: boolean) => any) | undefined;
337
337
  "onVisibility-change"?: ((value: boolean) => any) | undefined;
338
338
  onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
339
- }>, "blur" | "focus" | "getInputRef" | ("size" | "error" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "maxLength" | "showWordLimit" | "allowClear" | "readonly" | "wordLength" | "wordSlice" | "inputAttrs" | "isPassword" | "visibility" | "defaultVisibility" | "invisibleButton" | "showInput")> & import('vue').ShallowUnwrapRef<{
339
+ }>, "blur" | "focus" | "getInputRef" | ("error" | "size" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "maxLength" | "showWordLimit" | "allowClear" | "readonly" | "wordLength" | "wordSlice" | "inputAttrs" | "isPassword" | "visibility" | "defaultVisibility" | "invisibleButton" | "showInput")> & import('vue').ShallowUnwrapRef<{
340
340
  focus(): void;
341
341
  blur(): void;
342
342
  getInputRef(): HTMLInputElement;
@@ -6,8 +6,8 @@ import { useClipboard } from "../node_modules/@vueuse/core/index.js";
6
6
  /* empty css */
7
7
  /* empty css */
8
8
  /* empty css */
9
- import _sfc_main$3 from "../_shared/icons/IconCopy.vue.js";
10
- import _sfc_main$1 from "../_shared/icons/IconEdit.vue.js";
9
+ import _sfc_main$3 from "../_shared/icons/IconCopy.vue2.js";
10
+ import _sfc_main$1 from "../_shared/icons/IconEdit.vue2.js";
11
11
  import _sfc_main$2 from "../_shared/icons/IconInfo.vue.js";
12
12
  import Input from "../Input/index.js";
13
13
  import Tooltip from "../Tooltip/index.js";
@@ -8,7 +8,7 @@ declare function __VLS_template(): {
8
8
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
9
9
  declare const __VLS_component: import('vue').DefineComponent<TypographyParagraphProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TypographyParagraphProps> & Readonly<{}>, {
10
10
  blockquote: boolean;
11
- spacing: import('./type').Spacing;
11
+ spacing: "close" | "default";
12
12
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
13
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
14
14
  export default _default;
@@ -7,7 +7,7 @@ declare function __VLS_template(): {
7
7
  };
8
8
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
9
9
  declare const __VLS_component: import('vue').DefineComponent<TypographyTitleProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TypographyTitleProps> & Readonly<{}>, {
10
- heading: import('./type').Heading;
10
+ heading: 1 | 2 | 3 | 4 | 5 | 6;
11
11
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
12
12
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
13
13
  export default _default;
@@ -2,7 +2,7 @@ import { TooltipProps } from '../Tooltip';
2
2
  import { VNode } from 'vue';
3
3
  export interface TypographyBaseProps {
4
4
  tag?: string;
5
- type?: TypographyType;
5
+ type?: BaseType;
6
6
  bold?: boolean;
7
7
  disabled?: boolean;
8
8
  mark?: boolean;
@@ -43,6 +43,7 @@ export interface TypographyParagraphProps {
43
43
  export interface TypographyTitleProps {
44
44
  heading?: Heading;
45
45
  }
46
- export type Heading = 1 | 2 | 3 | 4 | 5 | 6;
47
- export type Spacing = 'default' | 'close';
48
- export type TypographyType = 'primary' | 'secondary' | 'success' | 'danger' | 'warning';
46
+ type Heading = 1 | 2 | 3 | 4 | 5 | 6;
47
+ type Spacing = 'default' | 'close';
48
+ type BaseType = 'success' | 'warning' | 'danger' | 'primary' | 'secondary';
49
+ export {};
@@ -0,0 +1,53 @@
1
+ import { UploadProps } from './type';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: any;
5
+ refs: {
6
+ uploadRef: HTMLDivElement;
7
+ };
8
+ rootEl: HTMLDivElement;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: import('vue').DefineComponent<UploadProps, {
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
+ }, string, import('vue').PublicProps, Readonly<UploadProps> & Readonly<{
20
+ onChange?: ((fileList: import('./type').FileItem[], files: File[]) => any) | undefined;
21
+ onPreview?: ((fileItem: import('./type').FileItem) => any) | undefined;
22
+ "onUpdate:fileList"?: ((value: import('./type').FileItem[]) => any) | undefined;
23
+ "onExceed-limit"?: ((fileList: import('./type').FileItem[], files: File[]) => any) | undefined;
24
+ }>, {
25
+ name: import('./type').FileName;
26
+ disabled: boolean;
27
+ multiple: boolean;
28
+ tip: string;
29
+ limit: number;
30
+ draggable: boolean;
31
+ fileList: import('./type').FileItem[];
32
+ defaultFileList: import('./type').FileItem[];
33
+ directory: boolean;
34
+ listType: import('./type').FileListType;
35
+ imageLoading: import('./type').ImageLoading;
36
+ download: boolean;
37
+ showLink: boolean;
38
+ customIcon: import('./type').CustomIcon;
39
+ showRemoveButton: boolean;
40
+ showPreviewButton: boolean;
41
+ accept: string;
42
+ showFileList: boolean;
43
+ showUploadButton: boolean;
44
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
45
+ uploadRef: HTMLDivElement;
46
+ }, HTMLDivElement>;
47
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
48
+ export default _default;
49
+ type __VLS_WithTemplateSlots<T, S> = T & {
50
+ new (): {
51
+ $slots: S;
52
+ };
53
+ };
@@ -0,0 +1,110 @@
1
+ import { defineComponent, useSlots, ref, createElementBlock, openBlock, normalizeClass, unref, createBlock, Fragment, createCommentVNode, renderSlot, createSlots, withCtx, normalizeProps, guardReactiveProps } from "vue";
2
+ import useUpload from "./hooks/useUpload.js";
3
+ import _sfc_main$2 from "./UploadButton.vue.js";
4
+ /* empty css */
5
+ import _sfc_main$1 from "./UploadDrag.vue.js";
6
+ /* empty css */
7
+ import UploadFileList from "./UploadFileList.vue.js";
8
+ import UploadPictureCard from "./UploadPictureCard.vue.js";
9
+ const _sfc_main = /* @__PURE__ */ defineComponent({
10
+ ...{
11
+ name: "Upload"
12
+ },
13
+ __name: "Upload",
14
+ props: {
15
+ fileList: { default: void 0 },
16
+ defaultFileList: { default: () => [] },
17
+ accept: { default: void 0 },
18
+ disabled: { type: Boolean, default: false },
19
+ multiple: { type: Boolean, default: false },
20
+ directory: { type: Boolean, default: false },
21
+ draggable: { type: Boolean, default: false },
22
+ tip: { default: "" },
23
+ name: { type: [String, Function], default: void 0 },
24
+ limit: { default: 0 },
25
+ showFileList: { type: Boolean, default: true },
26
+ showRemoveButton: { type: Boolean, default: true },
27
+ showUploadButton: { type: Boolean, default: true },
28
+ showPreviewButton: { type: Boolean, default: true },
29
+ download: { type: Boolean, default: false },
30
+ showLink: { type: Boolean, default: true },
31
+ imageLoading: { default: "lazy" },
32
+ listType: { default: "text" },
33
+ customIcon: { default: () => ({}) },
34
+ imagePreview: { type: Boolean }
35
+ },
36
+ emits: ["update:fileList", "exceed-limit", "change", "preview"],
37
+ setup(__props, { expose: __expose, emit: __emit }) {
38
+ const $slots = useSlots();
39
+ const props = __props;
40
+ const emits = __emit;
41
+ const uploadRef = ref();
42
+ const { computedFileList, limit, draggable, disabled, handleFiles, open } = useUpload(uploadRef, props, emits);
43
+ __expose({
44
+ updateFile(id, file) {
45
+ const index = computedFileList.value.findIndex((item) => item.uid == id);
46
+ if (index == -1) return;
47
+ computedFileList.value[index] = {
48
+ ...computedFileList.value[index],
49
+ name: file.name,
50
+ file,
51
+ status: "init",
52
+ percent: 0,
53
+ url: URL.createObjectURL(file)
54
+ };
55
+ },
56
+ upload(files) {
57
+ handleFiles(files);
58
+ }
59
+ });
60
+ return (_ctx, _cache) => {
61
+ return openBlock(), createElementBlock("div", {
62
+ class: normalizeClass([
63
+ "yc-upload-wrapper",
64
+ `yc-upload-wrapper-type-${_ctx.listType}`,
65
+ {
66
+ "yc-upload-disabled": unref(disabled)
67
+ }
68
+ ])
69
+ }, [
70
+ _ctx.listType != "picture-card" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
71
+ _ctx.showUploadButton ? (openBlock(), createElementBlock("div", {
72
+ key: 0,
73
+ class: normalizeClass([
74
+ "yc-upload",
75
+ {
76
+ "yc-upload-draggable": unref(draggable)
77
+ }
78
+ ]),
79
+ ref_key: "uploadRef",
80
+ ref: uploadRef,
81
+ onClick: _cache[0] || (_cache[0] = ($event) => !unref(disabled) && unref(open)())
82
+ }, [
83
+ unref(limit) <= 0 || unref(computedFileList).length < unref(limit) ? renderSlot(_ctx.$slots, "upload-button", { key: 0 }, () => [
84
+ unref(draggable) ? (openBlock(), createBlock(_sfc_main$1, { key: 0 })) : (openBlock(), createBlock(_sfc_main$2, { key: 1 }))
85
+ ]) : createCommentVNode("", true)
86
+ ], 2)) : createCommentVNode("", true),
87
+ _ctx.showFileList && unref(computedFileList).length ? (openBlock(), createBlock(UploadFileList, { key: 1 }, createSlots({ _: 2 }, [
88
+ $slots["extra-button"] ? {
89
+ name: "extra-button",
90
+ fn: withCtx((scope) => [
91
+ renderSlot(_ctx.$slots, "extra-button", normalizeProps(guardReactiveProps(scope)))
92
+ ]),
93
+ key: "0"
94
+ } : void 0,
95
+ $slots["upload-item"] ? {
96
+ name: "upload-item",
97
+ fn: withCtx((scope) => [
98
+ renderSlot(_ctx.$slots, "upload-item", normalizeProps(guardReactiveProps(scope)))
99
+ ]),
100
+ key: "1"
101
+ } : void 0
102
+ ]), 1024)) : createCommentVNode("", true)
103
+ ], 64)) : (openBlock(), createBlock(UploadPictureCard, { key: 1 }))
104
+ ], 2);
105
+ };
106
+ }
107
+ });
108
+ export {
109
+ _sfc_main as default
110
+ };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from "./Upload.vue.js";
2
+ /* empty css */
3
+ export {
4
+ _sfc_main as default
5
+ };
@@ -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, {}, HTMLDivElement>;
2
+ export default _default;
@@ -0,0 +1,39 @@
1
+ import { defineComponent, createElementBlock, openBlock, createVNode, createCommentVNode, unref, withCtx, createTextVNode, toDisplayString } from "vue";
2
+ import useUploadContext from "./hooks/useContext.js";
3
+ import "../_shared/utils/dom.js";
4
+ /* empty css */
5
+ /* empty css */
6
+ /* empty css */
7
+ import _sfc_main$1 from "../_shared/icons/IconUpload.vue.js";
8
+ import Button from "../Button/index.js";
9
+ const _hoisted_1 = { class: "yc-upload-button" };
10
+ const _hoisted_2 = {
11
+ key: 0,
12
+ class: "yc-upload-tip text-ellipsis"
13
+ };
14
+ const _sfc_main = /* @__PURE__ */ defineComponent({
15
+ __name: "UploadButton",
16
+ setup(__props) {
17
+ const { tip, disabled } = useUploadContext().inject();
18
+ return (_ctx, _cache) => {
19
+ return openBlock(), createElementBlock("div", _hoisted_1, [
20
+ createVNode(unref(Button), {
21
+ disabled: unref(disabled),
22
+ type: "primary"
23
+ }, {
24
+ icon: withCtx(() => [
25
+ createVNode(unref(_sfc_main$1))
26
+ ]),
27
+ default: withCtx(() => [
28
+ _cache[0] || (_cache[0] = createTextVNode(" 点击上传 ", -1))
29
+ ]),
30
+ _: 1
31
+ }, 8, ["disabled"]),
32
+ unref(tip) ? (openBlock(), createElementBlock("div", _hoisted_2, toDisplayString(unref(tip)), 1)) : createCommentVNode("", true)
33
+ ]);
34
+ };
35
+ }
36
+ });
37
+ export {
38
+ _sfc_main as default
39
+ };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from "./UploadButton.vue.js";
2
+ /* empty css */
3
+ export {
4
+ _sfc_main as default
5
+ };
@@ -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, {}, HTMLDivElement>;
2
+ export default _default;
@@ -0,0 +1,37 @@
1
+ import { defineComponent, createElementBlock, openBlock, normalizeClass, unref, createElementVNode, createCommentVNode, createVNode, toDisplayString } from "vue";
2
+ import useUploadContext from "./hooks/useContext.js";
3
+ import "../_shared/utils/dom.js";
4
+ /* empty css */
5
+ /* empty css */
6
+ /* empty css */
7
+ import _sfc_main$1 from "../_shared/icons/IconPlus.vue.js";
8
+ const _hoisted_1 = { class: "yc-upload-drag-icon" };
9
+ const _hoisted_2 = {
10
+ key: 0,
11
+ class: "yc-upload-tip text-ellipsis"
12
+ };
13
+ const _sfc_main = /* @__PURE__ */ defineComponent({
14
+ __name: "UploadDrag",
15
+ setup(__props) {
16
+ const { tip, disabled } = useUploadContext().inject();
17
+ return (_ctx, _cache) => {
18
+ return openBlock(), createElementBlock("div", {
19
+ class: normalizeClass([
20
+ "yc-upload-drag",
21
+ {
22
+ "yc-upload-drag-disabled": unref(disabled)
23
+ }
24
+ ])
25
+ }, [
26
+ createElementVNode("div", _hoisted_1, [
27
+ createVNode(unref(_sfc_main$1))
28
+ ]),
29
+ _cache[0] || (_cache[0] = createElementVNode("div", { class: "yc-upload-drag-text" }, "点击或拖拽文件到此处上传", -1)),
30
+ unref(tip) ? (openBlock(), createElementBlock("div", _hoisted_2, toDisplayString(unref(tip)), 1)) : createCommentVNode("", true)
31
+ ], 2);
32
+ };
33
+ }
34
+ });
35
+ export {
36
+ _sfc_main as default
37
+ };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from "./UploadDrag.vue.js";
2
+ /* empty css */
3
+ export {
4
+ _sfc_main as default
5
+ };
@@ -0,0 +1,24 @@
1
+ import { FileItem } from './type';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ 'upload-item'?(_: {
6
+ fileItem: FileItem;
7
+ index: number;
8
+ }): any;
9
+ 'extra-button'?(_: {
10
+ fileItem: FileItem;
11
+ }): any;
12
+ };
13
+ refs: {};
14
+ rootEl: HTMLDivElement;
15
+ };
16
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
18
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
19
+ export default _default;
20
+ type __VLS_WithTemplateSlots<T, S> = T & {
21
+ new (): {
22
+ $slots: S;
23
+ };
24
+ };
@@ -0,0 +1,7 @@
1
+ import _sfc_main from "./UploadFileList.vue2.js";
2
+ /* empty css */
3
+ import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
4
+ const UploadFileList = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-da3b0aaf"]]);
5
+ export {
6
+ UploadFileList as default
7
+ };