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
@@ -1,6 +1,5 @@
1
1
  import { VNode } from 'vue';
2
- import { Theme, BreakpointName, collapseType } from '../_shared/type';
3
- import { ResizeBoxDirection } from '../ResizeBox';
2
+ import { Theme, BreakpointName, Position } from '../_shared/type';
4
3
  export interface LayoutProps {
5
4
  hasSider?: boolean;
6
5
  }
@@ -26,11 +25,11 @@ export interface LayoutSiderProps {
26
25
  reverseArrow?: boolean;
27
26
  breakpoint?: BreakpointName;
28
27
  hideTrigger?: boolean;
29
- resizeDirections?: ResizeBoxDirection[];
28
+ resizeDirections?: Position[];
30
29
  }
31
30
  export interface LayoutSiderEmits {
32
31
  (e: 'update:collapsed', collapsed: boolean): void;
33
- (e: 'collapse', collapsed: boolean, type: collapseType): void;
32
+ (e: 'collapse', collapsed: boolean, type: 'clickTrigger' | 'responsive'): void;
34
33
  (e: 'breakpoint', collapsed: boolean): void;
35
34
  }
36
35
  export interface LayoutSiderSlots {
@@ -17,7 +17,7 @@ declare const Link: {
17
17
  hoverable: boolean;
18
18
  loading: boolean;
19
19
  href: string;
20
- status: import('./type').LinkStatus;
20
+ status: import('..').Status;
21
21
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLAnchorElement, import('vue').ComponentProvideOptions, {
22
22
  P: {};
23
23
  B: {};
@@ -35,7 +35,7 @@ declare const Link: {
35
35
  hoverable: boolean;
36
36
  loading: boolean;
37
37
  href: string;
38
- status: import('./type').LinkStatus;
38
+ status: import('..').Status;
39
39
  }>;
40
40
  __isFragment?: never;
41
41
  __isTeleport?: never;
@@ -54,7 +54,7 @@ declare const Link: {
54
54
  hoverable: boolean;
55
55
  loading: boolean;
56
56
  href: string;
57
- status: import('./type').LinkStatus;
57
+ status: import('..').Status;
58
58
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
59
59
  $slots: any;
60
60
  }) & {
@@ -20,7 +20,7 @@ declare const __VLS_component: import('vue').DefineComponent<LinkProps, {}, {},
20
20
  hoverable: boolean;
21
21
  loading: boolean;
22
22
  href: string;
23
- status: import('./type').LinkStatus;
23
+ status: import('..').Status;
24
24
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLAnchorElement>;
25
25
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
26
26
  export default _default;
package/es/Link/type.d.ts CHANGED
@@ -1,8 +1,9 @@
1
1
  import { VNode } from 'vue';
2
+ import { Status } from '../_shared/type';
2
3
  export interface LinkProps {
3
4
  href?: string;
4
5
  icon?: boolean;
5
- status?: LinkStatus;
6
+ status?: Status;
6
7
  hoverable?: boolean;
7
8
  disabled?: boolean;
8
9
  loading?: boolean;
@@ -16,4 +17,3 @@ export interface LinkSlots {
16
17
  default?: () => VNode[];
17
18
  icon?: () => VNode[];
18
19
  }
19
- export type LinkStatus = 'success' | 'warning' | 'danger' | 'normal';
@@ -7,7 +7,7 @@ declare function __VLS_template(): {
7
7
  $: import('vue').ComponentInternalInstance;
8
8
  $data: {};
9
9
  $props: {
10
- readonly type?: import('../Scrollbar').TackType | undefined;
10
+ readonly type?: ("embed" | "track") | undefined;
11
11
  readonly outerClass?: import('..').ClassName | undefined;
12
12
  readonly outerStyle?: import('vue').CSSProperties | undefined;
13
13
  readonly scrollbar?: boolean | undefined;
@@ -40,7 +40,7 @@ declare function __VLS_template(): {
40
40
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
41
41
  scroll: (left: number, top: number, ev: Event) => any;
42
42
  }, string, {
43
- type: import('../Scrollbar').TackType;
43
+ type: "embed" | "track";
44
44
  scrollbar: boolean;
45
45
  outerClass: import('..').ClassName;
46
46
  outerStyle: import('vue').CSSProperties;
@@ -65,7 +65,7 @@ declare function __VLS_template(): {
65
65
  $nextTick: typeof import('vue').nextTick;
66
66
  $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;
67
67
  } & Readonly<{
68
- type: import('../Scrollbar').TackType;
68
+ type: "embed" | "track";
69
69
  scrollbar: boolean;
70
70
  outerClass: import('..').ClassName;
71
71
  outerStyle: import('vue').CSSProperties;
@@ -149,7 +149,7 @@ declare const __VLS_component: import('vue').DefineComponent<ListProps, {}, {},
149
149
  "onReach-bottom"?: ((ev: Event) => any) | undefined;
150
150
  "onPage-change"?: ((value: number) => any) | undefined;
151
151
  }>, {
152
- size: import('./type').ListSize;
152
+ size: Exclude<import('..').Size, "mini">;
153
153
  data: import('..').RecordType[];
154
154
  scrollbar: boolean;
155
155
  hoverable: boolean;
@@ -165,7 +165,7 @@ declare const __VLS_component: import('vue').DefineComponent<ListProps, {}, {},
165
165
  $: import('vue').ComponentInternalInstance;
166
166
  $data: {};
167
167
  $props: {
168
- readonly type?: import('../Scrollbar').TackType | undefined;
168
+ readonly type?: ("embed" | "track") | undefined;
169
169
  readonly outerClass?: import('..').ClassName | undefined;
170
170
  readonly outerStyle?: import('vue').CSSProperties | undefined;
171
171
  readonly scrollbar?: boolean | undefined;
@@ -198,7 +198,7 @@ declare const __VLS_component: import('vue').DefineComponent<ListProps, {}, {},
198
198
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
199
199
  scroll: (left: number, top: number, ev: Event) => any;
200
200
  }, string, {
201
- type: import('../Scrollbar').TackType;
201
+ type: "embed" | "track";
202
202
  scrollbar: boolean;
203
203
  outerClass: import('..').ClassName;
204
204
  outerStyle: import('vue').CSSProperties;
@@ -223,7 +223,7 @@ declare const __VLS_component: import('vue').DefineComponent<ListProps, {}, {},
223
223
  $nextTick: typeof import('vue').nextTick;
224
224
  $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;
225
225
  } & Readonly<{
226
- type: import('../Scrollbar').TackType;
226
+ type: "embed" | "track";
227
227
  scrollbar: boolean;
228
228
  outerClass: import('..').ClassName;
229
229
  outerStyle: import('vue').CSSProperties;
@@ -18,7 +18,7 @@ declare const List: {
18
18
  "reach-bottom": (ev: Event) => any;
19
19
  "page-change": (value: number) => any;
20
20
  }, import('vue').PublicProps, {
21
- size: import('./type').ListSize;
21
+ size: Exclude<import('..').Size, "mini">;
22
22
  data: import('..').RecordType[];
23
23
  scrollbar: boolean;
24
24
  hoverable: boolean;
@@ -34,7 +34,7 @@ declare const List: {
34
34
  $: import('vue').ComponentInternalInstance;
35
35
  $data: {};
36
36
  $props: {
37
- readonly type?: import('..').TackType | undefined;
37
+ readonly type?: ("embed" | "track") | undefined;
38
38
  readonly outerClass?: import('..').ClassName | undefined;
39
39
  readonly outerStyle?: import('vue').CSSProperties | undefined;
40
40
  readonly scrollbar?: boolean | undefined;
@@ -67,7 +67,7 @@ declare const List: {
67
67
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
68
68
  scroll: (left: number, top: number, ev: Event) => any;
69
69
  }, string, {
70
- type: import('..').TackType;
70
+ type: "embed" | "track";
71
71
  scrollbar: boolean;
72
72
  outerClass: import('..').ClassName;
73
73
  outerStyle: import('vue').CSSProperties;
@@ -92,7 +92,7 @@ declare const List: {
92
92
  $nextTick: typeof import('vue').nextTick;
93
93
  $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;
94
94
  } & Readonly<{
95
- type: import('..').TackType;
95
+ type: "embed" | "track";
96
96
  scrollbar: boolean;
97
97
  outerClass: import('..').ClassName;
98
98
  outerStyle: import('vue').CSSProperties;
@@ -174,7 +174,7 @@ declare const List: {
174
174
  "onReach-bottom"?: ((ev: Event) => any) | undefined;
175
175
  "onPage-change"?: ((value: number) => any) | undefined;
176
176
  }>, {}, {}, {}, {}, {
177
- size: import('./type').ListSize;
177
+ size: Exclude<import('..').Size, "mini">;
178
178
  data: import('..').RecordType[];
179
179
  scrollbar: boolean;
180
180
  hoverable: boolean;
@@ -200,7 +200,7 @@ declare const List: {
200
200
  "reach-bottom": (ev: Event) => any;
201
201
  "page-change": (value: number) => any;
202
202
  }, string, {
203
- size: import('./type').ListSize;
203
+ size: Exclude<import('..').Size, "mini">;
204
204
  data: import('..').RecordType[];
205
205
  scrollbar: boolean;
206
206
  hoverable: boolean;
package/es/List/type.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- import { Direction, RecordType } from '../_shared/type';
1
+ import { Direction, RecordType, Size } from '../_shared/type';
2
2
  import { PaginationProps } from '../Pagination';
3
3
  import { VirtualListProps } from '../Select';
4
4
  import { VNode } from 'vue';
5
5
  export interface ListProps {
6
6
  data?: RecordType[];
7
- size?: ListSize;
7
+ size?: Exclude<Size, 'mini'>;
8
8
  bordered?: boolean;
9
9
  split?: boolean;
10
10
  loading?: boolean;
@@ -50,4 +50,3 @@ export interface ListItemMetaSlots {
50
50
  title?: () => VNode[];
51
51
  description?: () => VNode[];
52
52
  }
53
- export type ListSize = 'small' | 'medium' | 'large';
@@ -25,7 +25,7 @@ declare const Mention: {
25
25
  focus: (ev: FocusEvent) => any;
26
26
  "update:modelValue": (value: string) => any;
27
27
  }, import('vue').PublicProps, {
28
- type: import('./type').MentionType;
28
+ type: "input" | "textarea";
29
29
  data: import('..').SelectOption[];
30
30
  disabled: boolean;
31
31
  split: string;
@@ -382,7 +382,10 @@ declare const Mention: {
382
382
  readonly allowClear?: boolean | undefined;
383
383
  readonly size?: import('..').Size | undefined;
384
384
  readonly maxTagCount?: number | undefined;
385
- readonly retainInputValue?: import('..').InputRetainValue | undefined;
385
+ readonly retainInputValue?: (boolean | {
386
+ create?: boolean;
387
+ blur?: boolean;
388
+ }) | undefined;
386
389
  readonly formatTag?: import('..').Format<import('..').TagData> | undefined;
387
390
  readonly uniqueValue?: boolean | undefined;
388
391
  readonly tagNowrap?: boolean | undefined;
@@ -439,8 +442,8 @@ declare const Mention: {
439
442
  "input-value-change": (value: string, ev: Event) => any;
440
443
  "press-enter": (ev: KeyboardEvent) => any;
441
444
  }, string, {
442
- size: import('..').Size;
443
445
  error: boolean;
446
+ size: import('..').Size;
444
447
  disabled: boolean;
445
448
  placeholder: string;
446
449
  modelValue: import('..').InputTagValue;
@@ -453,7 +456,10 @@ declare const Mention: {
453
456
  allowCreate: boolean;
454
457
  maxTagCount: number;
455
458
  tagNowrap: boolean;
456
- retainInputValue: import('..').InputRetainValue;
459
+ retainInputValue: boolean | {
460
+ create?: boolean;
461
+ blur?: boolean;
462
+ };
457
463
  uniqueValue: boolean;
458
464
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
459
465
  beforeCreate?: (() => void) | (() => void)[];
@@ -476,8 +482,8 @@ declare const Mention: {
476
482
  $nextTick: typeof import('vue').nextTick;
477
483
  $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;
478
484
  } & Readonly<{
479
- size: import('..').Size;
480
485
  error: boolean;
486
+ size: import('..').Size;
481
487
  disabled: boolean;
482
488
  placeholder: string;
483
489
  modelValue: import('..').InputTagValue;
@@ -490,7 +496,10 @@ declare const Mention: {
490
496
  allowCreate: boolean;
491
497
  maxTagCount: number;
492
498
  tagNowrap: boolean;
493
- retainInputValue: import('..').InputRetainValue;
499
+ retainInputValue: boolean | {
500
+ create?: boolean;
501
+ blur?: boolean;
502
+ };
494
503
  uniqueValue: boolean;
495
504
  }> & Omit<Readonly<import('..').InputTagProps> & Readonly<{
496
505
  onClear?: ((ev: MouseEvent) => any) | undefined;
@@ -502,7 +511,7 @@ declare const Mention: {
502
511
  "onUpdate:inputValue"?: ((value: string) => any) | undefined;
503
512
  "onInput-value-change"?: ((value: string, ev: Event) => any) | undefined;
504
513
  "onPress-enter"?: ((ev: KeyboardEvent) => any) | undefined;
505
- }>, "blur" | "focus" | ("size" | "error" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "allowClear" | "readonly" | "inputValue" | "defaultInputValue" | "fieldNames" | "allowCreate" | "maxTagCount" | "tagNowrap" | "retainInputValue" | "uniqueValue")> & import('vue').ShallowUnwrapRef<{
514
+ }>, "blur" | "focus" | ("error" | "size" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "allowClear" | "readonly" | "inputValue" | "defaultInputValue" | "fieldNames" | "allowCreate" | "maxTagCount" | "tagNowrap" | "retainInputValue" | "uniqueValue")> & import('vue').ShallowUnwrapRef<{
506
515
  focus(): void;
507
516
  blur(): void;
508
517
  }> & {} & import('@vue/runtime-core').ComponentCustomProperties & {} & {
@@ -550,8 +559,8 @@ declare const Mention: {
550
559
  "dropdown-scroll": (ev: Event) => any;
551
560
  "dropdown-reach-bottom": (ev: Event) => any;
552
561
  }, string, {
553
- size: import('..').Size;
554
562
  error: boolean;
563
+ size: import('..').Size;
555
564
  popupContainer: import('..').PopupContainer;
556
565
  popupVisible: boolean;
557
566
  defaultPopupVisible: boolean;
@@ -603,8 +612,8 @@ declare const Mention: {
603
612
  $nextTick: typeof import('vue').nextTick;
604
613
  $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;
605
614
  } & Readonly<{
606
- size: import('..').Size;
607
615
  error: boolean;
616
+ size: import('..').Size;
608
617
  popupContainer: import('..').PopupContainer;
609
618
  popupVisible: boolean;
610
619
  defaultPopupVisible: boolean;
@@ -649,7 +658,7 @@ declare const Mention: {
649
658
  onExceedLimit?: ((value: import('..').SelectOptionValue, ev?: MouseEvent | undefined) => any) | undefined;
650
659
  "onDropdown-scroll"?: ((ev: Event) => any) | undefined;
651
660
  "onDropdown-reach-bottom"?: ((ev: Event) => any) | undefined;
652
- }>, "blur" | "focus" | ("size" | "error" | "popupContainer" | "popupVisible" | "defaultPopupVisible" | "disabled" | "scrollbar" | "multiple" | "placeholder" | "loading" | "bordered" | "modelValue" | "defaultValue" | "allowClear" | "showExtraOptions" | "options" | "limit" | "inputValue" | "defaultInputValue" | "fieldNames" | "allowSearch" | "valueKey" | "showEmpty" | "allowCreate" | "maxTagCount" | "filterOption" | "virtualListProps" | "triggerProps" | "searchDelay" | "showHeaderOnEmpty" | "showFooterOnEmpty" | "tagNowrap") | "getPopupRef"> & import('vue').ShallowUnwrapRef<{
661
+ }>, "blur" | "focus" | ("error" | "size" | "popupContainer" | "popupVisible" | "defaultPopupVisible" | "disabled" | "scrollbar" | "multiple" | "placeholder" | "loading" | "bordered" | "modelValue" | "defaultValue" | "allowClear" | "showExtraOptions" | "options" | "limit" | "inputValue" | "defaultInputValue" | "fieldNames" | "allowSearch" | "valueKey" | "showEmpty" | "allowCreate" | "maxTagCount" | "filterOption" | "virtualListProps" | "triggerProps" | "searchDelay" | "showHeaderOnEmpty" | "showFooterOnEmpty" | "tagNowrap") | "getPopupRef"> & import('vue').ShallowUnwrapRef<{
653
662
  focus(): void;
654
663
  blur(): void;
655
664
  getPopupRef(): import('..').TriggerInstance;
@@ -857,7 +866,7 @@ declare const Mention: {
857
866
  focus(): void;
858
867
  blur(): void;
859
868
  }, {}, {}, {}, {
860
- type: import('./type').MentionType;
869
+ type: "input" | "textarea";
861
870
  data: import('..').SelectOption[];
862
871
  disabled: boolean;
863
872
  split: string;
@@ -891,7 +900,7 @@ declare const Mention: {
891
900
  focus: (ev: FocusEvent) => any;
892
901
  "update:modelValue": (value: string) => any;
893
902
  }, string, {
894
- type: import('./type').MentionType;
903
+ type: "input" | "textarea";
895
904
  data: import('..').SelectOption[];
896
905
  disabled: boolean;
897
906
  split: string;
@@ -353,7 +353,10 @@ declare function __VLS_template(): {
353
353
  readonly allowClear?: boolean | undefined;
354
354
  readonly size?: import('../_shared/type').Size | undefined;
355
355
  readonly maxTagCount?: number | undefined;
356
- readonly retainInputValue?: import('..').InputRetainValue | undefined;
356
+ readonly retainInputValue?: (boolean | {
357
+ create?: boolean;
358
+ blur?: boolean;
359
+ }) | undefined;
357
360
  readonly formatTag?: import('../_shared/type').Format<import('..').TagData> | undefined;
358
361
  readonly uniqueValue?: boolean | undefined;
359
362
  readonly tagNowrap?: boolean | undefined;
@@ -410,8 +413,8 @@ declare function __VLS_template(): {
410
413
  "input-value-change": (value: string, ev: Event) => any;
411
414
  "press-enter": (ev: KeyboardEvent) => any;
412
415
  }, string, {
413
- size: import('../_shared/type').Size;
414
416
  error: boolean;
417
+ size: import('../_shared/type').Size;
415
418
  disabled: boolean;
416
419
  placeholder: string;
417
420
  modelValue: import('..').InputTagValue;
@@ -424,7 +427,10 @@ declare function __VLS_template(): {
424
427
  allowCreate: boolean;
425
428
  maxTagCount: number;
426
429
  tagNowrap: boolean;
427
- retainInputValue: import('..').InputRetainValue;
430
+ retainInputValue: boolean | {
431
+ create?: boolean;
432
+ blur?: boolean;
433
+ };
428
434
  uniqueValue: boolean;
429
435
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
430
436
  beforeCreate?: (() => void) | (() => void)[];
@@ -447,8 +453,8 @@ declare function __VLS_template(): {
447
453
  $nextTick: typeof nextTick;
448
454
  $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;
449
455
  } & Readonly<{
450
- size: import('../_shared/type').Size;
451
456
  error: boolean;
457
+ size: import('../_shared/type').Size;
452
458
  disabled: boolean;
453
459
  placeholder: string;
454
460
  modelValue: import('..').InputTagValue;
@@ -461,7 +467,10 @@ declare function __VLS_template(): {
461
467
  allowCreate: boolean;
462
468
  maxTagCount: number;
463
469
  tagNowrap: boolean;
464
- retainInputValue: import('..').InputRetainValue;
470
+ retainInputValue: boolean | {
471
+ create?: boolean;
472
+ blur?: boolean;
473
+ };
465
474
  uniqueValue: boolean;
466
475
  }> & Omit<Readonly<import('..').InputTagProps> & Readonly<{
467
476
  onClear?: ((ev: MouseEvent) => any) | undefined;
@@ -473,7 +482,7 @@ declare function __VLS_template(): {
473
482
  "onUpdate:inputValue"?: ((value: string) => any) | undefined;
474
483
  "onInput-value-change"?: ((value: string, ev: Event) => any) | undefined;
475
484
  "onPress-enter"?: ((ev: KeyboardEvent) => any) | undefined;
476
- }>, "blur" | "focus" | ("size" | "error" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "allowClear" | "readonly" | "inputValue" | "defaultInputValue" | "fieldNames" | "allowCreate" | "maxTagCount" | "tagNowrap" | "retainInputValue" | "uniqueValue")> & import('vue').ShallowUnwrapRef<{
485
+ }>, "blur" | "focus" | ("error" | "size" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "allowClear" | "readonly" | "inputValue" | "defaultInputValue" | "fieldNames" | "allowCreate" | "maxTagCount" | "tagNowrap" | "retainInputValue" | "uniqueValue")> & import('vue').ShallowUnwrapRef<{
477
486
  focus(): void;
478
487
  blur(): void;
479
488
  }> & {} & import('@vue/runtime-core').ComponentCustomProperties & {} & {
@@ -521,8 +530,8 @@ declare function __VLS_template(): {
521
530
  "dropdown-scroll": (ev: Event) => any;
522
531
  "dropdown-reach-bottom": (ev: Event) => any;
523
532
  }, string, {
524
- size: import('../_shared/type').Size;
525
533
  error: boolean;
534
+ size: import('../_shared/type').Size;
526
535
  popupContainer: import('../_shared/type').PopupContainer;
527
536
  popupVisible: boolean;
528
537
  defaultPopupVisible: boolean;
@@ -574,8 +583,8 @@ declare function __VLS_template(): {
574
583
  $nextTick: typeof nextTick;
575
584
  $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;
576
585
  } & Readonly<{
577
- size: import('../_shared/type').Size;
578
586
  error: boolean;
587
+ size: import('../_shared/type').Size;
579
588
  popupContainer: import('../_shared/type').PopupContainer;
580
589
  popupVisible: boolean;
581
590
  defaultPopupVisible: boolean;
@@ -620,7 +629,7 @@ declare function __VLS_template(): {
620
629
  onExceedLimit?: ((value: SelectOptionValue, ev?: MouseEvent | undefined) => any) | undefined;
621
630
  "onDropdown-scroll"?: ((ev: Event) => any) | undefined;
622
631
  "onDropdown-reach-bottom"?: ((ev: Event) => any) | undefined;
623
- }>, "blur" | "focus" | ("size" | "error" | "popupContainer" | "popupVisible" | "defaultPopupVisible" | "disabled" | "scrollbar" | "multiple" | "placeholder" | "loading" | "bordered" | "modelValue" | "defaultValue" | "allowClear" | "showExtraOptions" | "options" | "limit" | "inputValue" | "defaultInputValue" | "fieldNames" | "allowSearch" | "valueKey" | "showEmpty" | "allowCreate" | "maxTagCount" | "filterOption" | "virtualListProps" | "triggerProps" | "searchDelay" | "showHeaderOnEmpty" | "showFooterOnEmpty" | "tagNowrap") | "getPopupRef"> & import('vue').ShallowUnwrapRef<{
632
+ }>, "blur" | "focus" | ("error" | "size" | "popupContainer" | "popupVisible" | "defaultPopupVisible" | "disabled" | "scrollbar" | "multiple" | "placeholder" | "loading" | "bordered" | "modelValue" | "defaultValue" | "allowClear" | "showExtraOptions" | "options" | "limit" | "inputValue" | "defaultInputValue" | "fieldNames" | "allowSearch" | "valueKey" | "showEmpty" | "allowCreate" | "maxTagCount" | "filterOption" | "virtualListProps" | "triggerProps" | "searchDelay" | "showHeaderOnEmpty" | "showFooterOnEmpty" | "tagNowrap") | "getPopupRef"> & import('vue').ShallowUnwrapRef<{
624
633
  focus(): void;
625
634
  blur(): void;
626
635
  getPopupRef(): import('..').TriggerInstance;
@@ -834,7 +843,7 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
834
843
  onFocus?: ((ev: FocusEvent) => any) | undefined;
835
844
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
836
845
  }>, {
837
- type: import('./type').MentionType;
846
+ type: "input" | "textarea";
838
847
  data: import('../Select').SelectOption[];
839
848
  disabled: boolean;
840
849
  split: string;
@@ -1191,7 +1200,10 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
1191
1200
  readonly allowClear?: boolean | undefined;
1192
1201
  readonly size?: import('../_shared/type').Size | undefined;
1193
1202
  readonly maxTagCount?: number | undefined;
1194
- readonly retainInputValue?: import('..').InputRetainValue | undefined;
1203
+ readonly retainInputValue?: (boolean | {
1204
+ create?: boolean;
1205
+ blur?: boolean;
1206
+ }) | undefined;
1195
1207
  readonly formatTag?: import('../_shared/type').Format<import('..').TagData> | undefined;
1196
1208
  readonly uniqueValue?: boolean | undefined;
1197
1209
  readonly tagNowrap?: boolean | undefined;
@@ -1248,8 +1260,8 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
1248
1260
  "input-value-change": (value: string, ev: Event) => any;
1249
1261
  "press-enter": (ev: KeyboardEvent) => any;
1250
1262
  }, string, {
1251
- size: import('../_shared/type').Size;
1252
1263
  error: boolean;
1264
+ size: import('../_shared/type').Size;
1253
1265
  disabled: boolean;
1254
1266
  placeholder: string;
1255
1267
  modelValue: import('..').InputTagValue;
@@ -1262,7 +1274,10 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
1262
1274
  allowCreate: boolean;
1263
1275
  maxTagCount: number;
1264
1276
  tagNowrap: boolean;
1265
- retainInputValue: import('..').InputRetainValue;
1277
+ retainInputValue: boolean | {
1278
+ create?: boolean;
1279
+ blur?: boolean;
1280
+ };
1266
1281
  uniqueValue: boolean;
1267
1282
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
1268
1283
  beforeCreate?: (() => void) | (() => void)[];
@@ -1285,8 +1300,8 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
1285
1300
  $nextTick: typeof nextTick;
1286
1301
  $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;
1287
1302
  } & Readonly<{
1288
- size: import('../_shared/type').Size;
1289
1303
  error: boolean;
1304
+ size: import('../_shared/type').Size;
1290
1305
  disabled: boolean;
1291
1306
  placeholder: string;
1292
1307
  modelValue: import('..').InputTagValue;
@@ -1299,7 +1314,10 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
1299
1314
  allowCreate: boolean;
1300
1315
  maxTagCount: number;
1301
1316
  tagNowrap: boolean;
1302
- retainInputValue: import('..').InputRetainValue;
1317
+ retainInputValue: boolean | {
1318
+ create?: boolean;
1319
+ blur?: boolean;
1320
+ };
1303
1321
  uniqueValue: boolean;
1304
1322
  }> & Omit<Readonly<import('..').InputTagProps> & Readonly<{
1305
1323
  onClear?: ((ev: MouseEvent) => any) | undefined;
@@ -1311,7 +1329,7 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
1311
1329
  "onUpdate:inputValue"?: ((value: string) => any) | undefined;
1312
1330
  "onInput-value-change"?: ((value: string, ev: Event) => any) | undefined;
1313
1331
  "onPress-enter"?: ((ev: KeyboardEvent) => any) | undefined;
1314
- }>, "blur" | "focus" | ("size" | "error" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "allowClear" | "readonly" | "inputValue" | "defaultInputValue" | "fieldNames" | "allowCreate" | "maxTagCount" | "tagNowrap" | "retainInputValue" | "uniqueValue")> & import('vue').ShallowUnwrapRef<{
1332
+ }>, "blur" | "focus" | ("error" | "size" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "allowClear" | "readonly" | "inputValue" | "defaultInputValue" | "fieldNames" | "allowCreate" | "maxTagCount" | "tagNowrap" | "retainInputValue" | "uniqueValue")> & import('vue').ShallowUnwrapRef<{
1315
1333
  focus(): void;
1316
1334
  blur(): void;
1317
1335
  }> & {} & import('@vue/runtime-core').ComponentCustomProperties & {} & {
@@ -1359,8 +1377,8 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
1359
1377
  "dropdown-scroll": (ev: Event) => any;
1360
1378
  "dropdown-reach-bottom": (ev: Event) => any;
1361
1379
  }, string, {
1362
- size: import('../_shared/type').Size;
1363
1380
  error: boolean;
1381
+ size: import('../_shared/type').Size;
1364
1382
  popupContainer: import('../_shared/type').PopupContainer;
1365
1383
  popupVisible: boolean;
1366
1384
  defaultPopupVisible: boolean;
@@ -1412,8 +1430,8 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
1412
1430
  $nextTick: typeof nextTick;
1413
1431
  $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;
1414
1432
  } & Readonly<{
1415
- size: import('../_shared/type').Size;
1416
1433
  error: boolean;
1434
+ size: import('../_shared/type').Size;
1417
1435
  popupContainer: import('../_shared/type').PopupContainer;
1418
1436
  popupVisible: boolean;
1419
1437
  defaultPopupVisible: boolean;
@@ -1458,7 +1476,7 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
1458
1476
  onExceedLimit?: ((value: SelectOptionValue, ev?: MouseEvent | undefined) => any) | undefined;
1459
1477
  "onDropdown-scroll"?: ((ev: Event) => any) | undefined;
1460
1478
  "onDropdown-reach-bottom"?: ((ev: Event) => any) | undefined;
1461
- }>, "blur" | "focus" | ("size" | "error" | "popupContainer" | "popupVisible" | "defaultPopupVisible" | "disabled" | "scrollbar" | "multiple" | "placeholder" | "loading" | "bordered" | "modelValue" | "defaultValue" | "allowClear" | "showExtraOptions" | "options" | "limit" | "inputValue" | "defaultInputValue" | "fieldNames" | "allowSearch" | "valueKey" | "showEmpty" | "allowCreate" | "maxTagCount" | "filterOption" | "virtualListProps" | "triggerProps" | "searchDelay" | "showHeaderOnEmpty" | "showFooterOnEmpty" | "tagNowrap") | "getPopupRef"> & import('vue').ShallowUnwrapRef<{
1479
+ }>, "blur" | "focus" | ("error" | "size" | "popupContainer" | "popupVisible" | "defaultPopupVisible" | "disabled" | "scrollbar" | "multiple" | "placeholder" | "loading" | "bordered" | "modelValue" | "defaultValue" | "allowClear" | "showExtraOptions" | "options" | "limit" | "inputValue" | "defaultInputValue" | "fieldNames" | "allowSearch" | "valueKey" | "showEmpty" | "allowCreate" | "maxTagCount" | "filterOption" | "virtualListProps" | "triggerProps" | "searchDelay" | "showHeaderOnEmpty" | "showFooterOnEmpty" | "tagNowrap") | "getPopupRef"> & import('vue').ShallowUnwrapRef<{
1462
1480
  focus(): void;
1463
1481
  blur(): void;
1464
1482
  getPopupRef(): import('..').TriggerInstance;
@@ -7,7 +7,7 @@ export interface MentionProps {
7
7
  data?: SelectOption[];
8
8
  prefix?: string | string[];
9
9
  split?: string;
10
- type?: MentionType;
10
+ type?: Type;
11
11
  disabled?: boolean;
12
12
  allowClear?: boolean;
13
13
  }
@@ -30,4 +30,5 @@ export interface MentionSlots {
30
30
  data: RecordType;
31
31
  }) => VNode[];
32
32
  }
33
- export type MentionType = 'input' | 'textarea';
33
+ type Type = 'input' | 'textarea';
34
+ export {};
@@ -9,14 +9,14 @@ declare function __VLS_template(): {
9
9
  };
10
10
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
11
  declare const __VLS_component: import('vue').DefineComponent<MenuProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
12
- collapse: (collapsed: boolean, type: import('..').collapseType) => any;
12
+ collapse: (collapsed: boolean, type: "clickTrigger" | "responsive") => any;
13
13
  "update:selectedKeys": (value: string) => any;
14
14
  "update:openKeys": (value: string) => any;
15
15
  "update:collapsed": (value: boolean) => any;
16
16
  "menu-item-click": (key: string) => any;
17
17
  "sub-menu-click": (key: string, openKeys: string[]) => any;
18
18
  }, string, import('vue').PublicProps, Readonly<MenuProps> & Readonly<{
19
- onCollapse?: ((collapsed: boolean, type: import('..').collapseType) => any) | undefined;
19
+ onCollapse?: ((collapsed: boolean, type: "clickTrigger" | "responsive") => any) | undefined;
20
20
  "onUpdate:selectedKeys"?: ((value: string) => any) | undefined;
21
21
  "onUpdate:openKeys"?: ((value: string) => any) | undefined;
22
22
  "onUpdate:collapsed"?: ((value: boolean) => any) | undefined;
@@ -10,14 +10,14 @@ export type MenuItemGroupInstance = InstanceType<typeof _MenuItemGroup>;
10
10
  export * from './type';
11
11
  declare const Menu: {
12
12
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').MenuProps> & Readonly<{
13
- onCollapse?: ((collapsed: boolean, type: import('..').collapseType) => any) | undefined;
13
+ onCollapse?: ((collapsed: boolean, type: "clickTrigger" | "responsive") => any) | undefined;
14
14
  "onUpdate:selectedKeys"?: ((value: string) => any) | undefined;
15
15
  "onUpdate:openKeys"?: ((value: string) => any) | undefined;
16
16
  "onUpdate:collapsed"?: ((value: boolean) => any) | undefined;
17
17
  "onMenu-item-click"?: ((key: string) => any) | undefined;
18
18
  "onSub-menu-click"?: ((key: string, openKeys: string[]) => any) | undefined;
19
19
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
20
- collapse: (collapsed: boolean, type: import('..').collapseType) => any;
20
+ collapse: (collapsed: boolean, type: "clickTrigger" | "responsive") => any;
21
21
  "update:selectedKeys": (value: string) => any;
22
22
  "update:openKeys": (value: string) => any;
23
23
  "update:collapsed": (value: boolean) => any;
@@ -53,7 +53,7 @@ declare const Menu: {
53
53
  M: {};
54
54
  Defaults: {};
55
55
  }, Readonly<import('./type').MenuProps> & Readonly<{
56
- onCollapse?: ((collapsed: boolean, type: import('..').collapseType) => any) | undefined;
56
+ onCollapse?: ((collapsed: boolean, type: "clickTrigger" | "responsive") => any) | undefined;
57
57
  "onUpdate:selectedKeys"?: ((value: string) => any) | undefined;
58
58
  "onUpdate:openKeys"?: ((value: string) => any) | undefined;
59
59
  "onUpdate:collapsed"?: ((value: boolean) => any) | undefined;
@@ -84,14 +84,14 @@ declare const Menu: {
84
84
  __isTeleport?: never;
85
85
  __isSuspense?: never;
86
86
  } & import('vue').ComponentOptionsBase<Readonly<import('./type').MenuProps> & Readonly<{
87
- onCollapse?: ((collapsed: boolean, type: import('..').collapseType) => any) | undefined;
87
+ onCollapse?: ((collapsed: boolean, type: "clickTrigger" | "responsive") => any) | undefined;
88
88
  "onUpdate:selectedKeys"?: ((value: string) => any) | undefined;
89
89
  "onUpdate:openKeys"?: ((value: string) => any) | undefined;
90
90
  "onUpdate:collapsed"?: ((value: boolean) => any) | undefined;
91
91
  "onMenu-item-click"?: ((key: string) => any) | undefined;
92
92
  "onSub-menu-click"?: ((key: string, openKeys: string[]) => any) | undefined;
93
93
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
94
- collapse: (collapsed: boolean, type: import('..').collapseType) => any;
94
+ collapse: (collapsed: boolean, type: "clickTrigger" | "responsive") => any;
95
95
  "update:selectedKeys": (value: string) => any;
96
96
  "update:openKeys": (value: string) => any;
97
97
  "update:collapsed": (value: boolean) => any;
package/es/Menu/type.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { TooltipProps } from '../Tooltip';
2
2
  import { TriggerProps } from '../Trigger';
3
- import { Theme, BreakpointName, PopupMaxHeight, Direction, collapseType } from '../_shared/type';
3
+ import { Theme, BreakpointName, PopupMaxHeight, Direction } from '../_shared/type';
4
4
  import { VNode } from 'vue';
5
5
  export interface MenuProps {
6
6
  theme?: Theme;
@@ -28,7 +28,7 @@ export interface MenuEmits {
28
28
  (e: 'update:selectedKeys', value: string): void;
29
29
  (e: 'update:openKeys', value: string): void;
30
30
  (e: 'update:collapsed', value: boolean): void;
31
- (e: 'collapse', collapsed: boolean, type: collapseType): void;
31
+ (e: 'collapse', collapsed: boolean, type: 'clickTrigger' | 'responsive'): void;
32
32
  (e: 'menu-item-click', key: string): void;
33
33
  (e: 'sub-menu-click', key: string, openKeys: string[]): void;
34
34
  }