yc-design-vue 2.0.4 → 2.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (568) hide show
  1. package/dist/index.umd.js +1 -0
  2. package/dist/style.css +1 -0
  3. package/es/Affix/index.vue.js +1 -1
  4. package/es/Alert/index.d.ts +3 -3
  5. package/es/Alert/index.vue.d.ts +1 -1
  6. package/es/Alert/type.d.ts +2 -2
  7. package/es/Anchor/Anchor.vue.d.ts +1 -1
  8. package/es/Anchor/Anchor.vue.js +2 -2
  9. package/es/Anchor/AnchorLink.vue.js +2 -2
  10. package/es/Anchor/hooks/useContext.d.ts +3 -3
  11. package/es/Anchor/hooks/useContext.js +3 -3
  12. package/es/Anchor/index.d.ts +3 -3
  13. package/es/Anchor/type.d.ts +3 -2
  14. package/es/AutoComplete/index.d.ts +40 -31
  15. package/es/AutoComplete/index.vue.d.ts +72 -54
  16. package/es/Avatar/Avatar.vue.d.ts +1 -1
  17. package/es/Avatar/Avatar.vue.js +3 -3
  18. package/es/Avatar/AvatarGroup.vue.js +2 -2
  19. package/es/Avatar/hooks/useContext.d.ts +1 -2
  20. package/es/Avatar/hooks/useContext.js +3 -3
  21. package/es/Avatar/index.d.ts +3 -3
  22. package/es/Avatar/type.d.ts +3 -2
  23. package/es/BackTop/index.vue.js +1 -1
  24. package/es/Badge/index.d.ts +3 -3
  25. package/es/Badge/index.vue.d.ts +1 -1
  26. package/es/Badge/type.d.ts +2 -2
  27. package/es/Breadcrumb/BreadcrumbSeparator.vue.js +1 -1
  28. package/es/Button/Button.vue.d.ts +2 -2
  29. package/es/Button/Button.vue.js +2 -2
  30. package/es/Button/ButtonGroup.vue.d.ts +1 -1
  31. package/es/Button/ButtonGroup.vue.js +2 -2
  32. package/es/Button/hooks/useContext.d.ts +4 -5
  33. package/es/Button/hooks/useContext.js +3 -3
  34. package/es/Button/index.d.ts +9 -9
  35. package/es/Button/type.d.ts +6 -6
  36. package/es/Card/Card.vue.d.ts +1 -1
  37. package/es/Card/Card.vue.js +2 -2
  38. package/es/Card/CardMeta.vue.js +2 -2
  39. package/es/Card/hooks/useContext.d.ts +2 -2
  40. package/es/Card/hooks/useContext.js +3 -3
  41. package/es/Card/index.d.ts +3 -3
  42. package/es/Card/type.d.ts +1 -2
  43. package/es/Carousel/Carousel.vue.d.ts +2 -2
  44. package/es/Carousel/Carousel.vue.js +2 -2
  45. package/es/Carousel/CarouselArrow.vue.js +2 -2
  46. package/es/Carousel/CarouselIndicator.vue.js +2 -2
  47. package/es/Carousel/CarouselItem.vue.js +2 -2
  48. package/es/Carousel/hooks/useContext.d.ts +5 -5
  49. package/es/Carousel/hooks/useContext.js +3 -3
  50. package/es/Carousel/index.d.ts +6 -6
  51. package/es/Carousel/type.d.ts +6 -6
  52. package/es/Cascader/Cascader.vue.d.ts +23 -23
  53. package/es/Cascader/Cascader.vue.js +2 -2
  54. package/es/Cascader/CascaderIcon.vue.js +2 -2
  55. package/es/Cascader/CascaderOption.vue.js +2 -2
  56. package/es/Cascader/CascaderPanel.vue.js +2 -2
  57. package/es/Cascader/CascaderSearchPanel.vue.js +2 -2
  58. package/es/Cascader/hooks/useContext.d.ts +2 -2
  59. package/es/Cascader/hooks/useContext.js +3 -3
  60. package/es/Cascader/index.d.ts +26 -26
  61. package/es/Checkbox/Checkbox.vue.js +2 -2
  62. package/es/Checkbox/CheckboxGroup.vue.js +2 -2
  63. package/es/Checkbox/hooks/useContext.d.ts +2 -2
  64. package/es/Checkbox/hooks/useContext.js +3 -3
  65. package/es/Collapse/Collapse.vue.js +2 -2
  66. package/es/Collapse/CollapseItem.vue.js +2 -2
  67. package/es/Collapse/hooks/useContext.d.ts +3 -15
  68. package/es/Collapse/hooks/useContext.js +3 -4
  69. package/es/Collapse/type.d.ts +2 -1
  70. package/es/ColorPicker/ColorControl.vue.js +1 -1
  71. package/es/ColorPicker/ColorPalette.vue.js +1 -1
  72. package/es/ColorPicker/ColorPanel.vue.js +2 -2
  73. package/es/ColorPicker/ColorPicker.vue.js +2 -2
  74. package/es/ColorPicker/hooks/useContext.d.ts +2 -2
  75. package/es/ColorPicker/hooks/useContext.js +3 -3
  76. package/es/Comment/hooks/useContext.d.ts +1 -2
  77. package/es/Comment/hooks/useContext.js +3 -3
  78. package/es/Comment/index.vue.js +2 -2
  79. package/es/Descriptions/Descriptions.vue.d.ts +3 -3
  80. package/es/Descriptions/Descriptions.vue.js +2 -2
  81. package/es/Descriptions/ReuseItem.vue.js +2 -2
  82. package/es/Descriptions/ReuseTd.vue.js +2 -2
  83. package/es/Descriptions/hooks/useContext.d.ts +3 -3
  84. package/es/Descriptions/hooks/useContext.js +3 -3
  85. package/es/Descriptions/index.d.ts +9 -9
  86. package/es/Descriptions/type.d.ts +7 -6
  87. package/es/Divider/index.d.ts +6 -6
  88. package/es/Divider/index.vue.d.ts +2 -2
  89. package/es/Divider/type.d.ts +4 -3
  90. package/es/Drawer/Drawer.vue.d.ts +1 -1
  91. package/es/Drawer/DrawerService.vue.d.ts +1 -1
  92. package/es/Drawer/index.d.ts +5 -9
  93. package/es/Drawer/type.d.ts +8 -4
  94. package/es/Dropdown/Doption.vue.js +2 -2
  95. package/es/Dropdown/Dropdown.vue.d.ts +3 -3
  96. package/es/Dropdown/Dropdown.vue.js +2 -2
  97. package/es/Dropdown/DropdownButton.vue.d.ts +3 -3
  98. package/es/Dropdown/Dsubmenu.vue.d.ts +1 -1
  99. package/es/Dropdown/Dsubmenu.vue.js +1 -1
  100. package/es/Dropdown/hooks/useContext.d.ts +2 -2
  101. package/es/Dropdown/hooks/useContext.js +3 -3
  102. package/es/Dropdown/index.d.ts +19 -19
  103. package/es/Dropdown/type.d.ts +4 -6
  104. package/es/Grid/Grid.vue.js +2 -2
  105. package/es/Grid/GridCol.vue.js +2 -2
  106. package/es/Grid/GridItem.vue.js +2 -2
  107. package/es/Grid/GridRow.vue.js +2 -2
  108. package/es/Grid/hooks/useContext.d.ts +1 -13
  109. package/es/Grid/hooks/useContext.js +3 -4
  110. package/es/Image/Image.vue.d.ts +2 -2
  111. package/es/Image/Image.vue.js +2 -2
  112. package/es/Image/ImagePreview.vue.js +2 -2
  113. package/es/Image/ImagePreviewGroup.vue.js +2 -2
  114. package/es/Image/hooks/useContext.d.ts +2 -2
  115. package/es/Image/hooks/useContext.js +3 -3
  116. package/es/Image/index.d.ts +6 -6
  117. package/es/Image/type.d.ts +3 -2
  118. package/es/Input/Input.vue.d.ts +3 -3
  119. package/es/Input/InputSuffix.vue.js +1 -1
  120. package/es/Input/index.d.ts +8 -8
  121. package/es/InputNumber/InputNumber.vue.d.ts +20 -20
  122. package/es/InputNumber/InputOperaBtn.vue.d.ts +2 -2
  123. package/es/InputNumber/index.d.ts +19 -19
  124. package/es/InputNumber/type.d.ts +5 -4
  125. package/es/InputTag/index.d.ts +20 -11
  126. package/es/InputTag/index.vue.d.ts +7 -4
  127. package/es/InputTag/index.vue.js +1 -1
  128. package/es/InputTag/type.d.ts +2 -1
  129. package/es/Layout/LayoutSider.vue.d.ts +3 -3
  130. package/es/Layout/LayoutSider.vue.js +2 -2
  131. package/es/Layout/hooks/useSiderContext.d.ts +1 -2
  132. package/es/Layout/hooks/useSiderContext.js +3 -3
  133. package/es/Layout/index.d.ts +8 -8
  134. package/es/Layout/type.d.ts +3 -4
  135. package/es/Link/index.d.ts +3 -3
  136. package/es/Link/index.vue.d.ts +1 -1
  137. package/es/Link/type.d.ts +2 -2
  138. package/es/List/List.vue.d.ts +7 -7
  139. package/es/List/hooks/useScrollReach.js +1 -0
  140. package/es/List/index.d.ts +6 -6
  141. package/es/List/type.d.ts +2 -3
  142. package/es/Mention/index.d.ts +49 -40
  143. package/es/Mention/index.vue.d.ts +85 -67
  144. package/es/Mention/type.d.ts +3 -2
  145. package/es/Menu/Menu.vue.d.ts +2 -2
  146. package/es/Menu/MenuItem.vue.js +1 -1
  147. package/es/Menu/hooks/useContext.d.ts +2 -2
  148. package/es/Menu/hooks/useContext.js +5 -5
  149. package/es/Menu/index.d.ts +5 -5
  150. package/es/Menu/type.d.ts +2 -2
  151. package/es/Message/type.d.ts +3 -3
  152. package/es/Modal/Modal.vue.d.ts +1 -1
  153. package/es/Modal/ModalService.vue.d.ts +1 -1
  154. package/es/Modal/index.d.ts +13 -13
  155. package/es/Modal/index.js +1 -4
  156. package/es/Modal/type.d.ts +6 -9
  157. package/es/Notification/Notification.vue.d.ts +1 -1
  158. package/es/Notification/index.d.ts +4 -4
  159. package/es/Notification/type.d.ts +3 -4
  160. package/es/OverflowList/index.d.ts +3 -3
  161. package/es/OverflowList/index.vue.d.ts +1 -1
  162. package/es/OverflowList/index.vue.js +2 -2
  163. package/es/OverflowList/type.d.ts +3 -2
  164. package/es/Pagination/Pagination.vue.js +2 -2
  165. package/es/Pagination/PaginationItem.vue.js +2 -2
  166. package/es/Pagination/hooks/useContext.d.ts +2 -2
  167. package/es/Pagination/hooks/useContext.js +3 -3
  168. package/es/Popconfirm/index.d.ts +8 -8
  169. package/es/Popconfirm/index.vue.d.ts +3 -3
  170. package/es/Popconfirm/type.d.ts +2 -3
  171. package/es/Progress/Progress.vue.d.ts +1 -1
  172. package/es/Progress/ProgressCircle.vue.d.ts +3 -3
  173. package/es/Progress/ProgressLine.vue.d.ts +3 -3
  174. package/es/Progress/index.d.ts +3 -3
  175. package/es/Progress/type.d.ts +2 -3
  176. package/es/Radio/Radio.vue.js +2 -2
  177. package/es/Radio/RadioGroup.vue.js +2 -2
  178. package/es/Radio/hooks/useContext.d.ts +2 -2
  179. package/es/Radio/hooks/useContext.js +3 -3
  180. package/es/Radio/type.d.ts +1 -1
  181. package/es/ResizeBox/index.d.ts +3 -3
  182. package/es/ResizeBox/index.vue.d.ts +2 -2
  183. package/es/ResizeBox/type.d.ts +4 -4
  184. package/es/Result/index.d.ts +3 -3
  185. package/es/Result/index.vue.d.ts +1 -1
  186. package/es/Result/type.d.ts +3 -2
  187. package/es/Scrollbar/Scrollbar.vue.d.ts +1 -1
  188. package/es/Scrollbar/Scrollbar.vue.js +2 -2
  189. package/es/Scrollbar/ScrollbarTrack.vue.js +2 -2
  190. package/es/Scrollbar/hooks/useContext.d.ts +2 -2
  191. package/es/Scrollbar/hooks/useContext.js +3 -3
  192. package/es/Scrollbar/index.d.ts +3 -3
  193. package/es/Scrollbar/type.d.ts +2 -1
  194. package/es/Select/Option.vue.js +2 -2
  195. package/es/Select/Select.vue.d.ts +45 -27
  196. package/es/Select/Select.vue.js +2 -2
  197. package/es/Select/SelectIcon.vue.js +2 -2
  198. package/es/Select/SelectRealList.vue.js +2 -2
  199. package/es/Select/SelectView.vue.js +2 -2
  200. package/es/Select/SelectVirtualList.vue.js +3 -3
  201. package/es/Select/hooks/useContext.d.ts +4 -4
  202. package/es/Select/hooks/useContext.js +3 -3
  203. package/es/Select/hooks/useSelectOptions.d.ts +2 -2
  204. package/es/Select/index.d.ts +33 -24
  205. package/es/Skeleton/SkeletonShape.vue.d.ts +2 -2
  206. package/es/Skeleton/index.d.ts +2 -2
  207. package/es/Skeleton/type.d.ts +2 -4
  208. package/es/Slider/Slider.vue.js +2 -2
  209. package/es/Slider/SliderBtn.vue.js +2 -2
  210. package/es/Slider/SliderInput.vue.js +2 -2
  211. package/es/Slider/SliderTicks.vue.js +2 -2
  212. package/es/Slider/hooks/useContext.d.ts +2 -2
  213. package/es/Slider/hooks/useContext.js +3 -3
  214. package/es/Space/index.d.ts +6 -6
  215. package/es/Space/index.vue.d.ts +2 -2
  216. package/es/Space/type.d.ts +5 -4
  217. package/es/Spin/index.vue.js +1 -1
  218. package/es/Steps/Step.vue.js +2 -2
  219. package/es/Steps/Steps.vue.js +2 -2
  220. package/es/Steps/hooks/useContext.d.ts +1 -2
  221. package/es/Steps/hooks/useContext.js +3 -3
  222. package/es/Switch/index.d.ts +14 -14
  223. package/es/Switch/index.vue.d.ts +5 -5
  224. package/es/Switch/type.d.ts +4 -4
  225. package/es/Tabs/TabPane.vue.js +2 -2
  226. package/es/Tabs/Tabs.vue.d.ts +1 -1
  227. package/es/Tabs/Tabs.vue.js +2 -2
  228. package/es/Tabs/TabsNavInk.vue.js +2 -2
  229. package/es/Tabs/TabsTab.vue.js +2 -2
  230. package/es/Tabs/hooks/useContext.d.ts +6 -6
  231. package/es/Tabs/hooks/useContext.js +3 -3
  232. package/es/Tabs/index.d.ts +3 -3
  233. package/es/Tabs/type.d.ts +2 -3
  234. package/es/Tag/index.d.ts +3 -3
  235. package/es/Tag/index.vue.d.ts +1 -1
  236. package/es/Tag/type.d.ts +1 -2
  237. package/es/Textarea/hooks/useTextareaHeight.js +1 -1
  238. package/es/Textarea/index.d.ts +5 -5
  239. package/es/Textarea/index.vue.d.ts +2 -2
  240. package/es/Textarea/type.d.ts +2 -2
  241. package/es/TimePicker/TimePicker.vue.d.ts +5 -5
  242. package/es/TimePicker/TimePicker.vue.js +2 -2
  243. package/es/TimePicker/TimePickerPanel.vue.js +2 -2
  244. package/es/TimePicker/hooks/useContext.d.ts +2 -2
  245. package/es/TimePicker/hooks/useContext.js +3 -3
  246. package/es/TimePicker/index.d.ts +13 -13
  247. package/es/Timeline/Timeline.vue.js +2 -2
  248. package/es/Timeline/TimelineItem.vue.d.ts +1 -1
  249. package/es/Timeline/TimelineItem.vue.js +2 -2
  250. package/es/Timeline/hooks/useContext.d.ts +2 -2
  251. package/es/Timeline/hooks/useContext.js +3 -3
  252. package/es/Timeline/index.d.ts +3 -3
  253. package/es/Timeline/type.d.ts +3 -4
  254. package/es/Transfer/Transfer.vue.js +2 -2
  255. package/es/Transfer/TransferPanel.vue.js +3 -3
  256. package/es/Transfer/hooks/useContext.d.ts +2 -2
  257. package/es/Transfer/hooks/useContext.js +3 -3
  258. package/es/Trigger/hooks/useContext.d.ts +2 -3
  259. package/es/Trigger/hooks/useContext.js +4 -4
  260. package/es/Trigger/hooks/useTriggerPosition.js +1 -1
  261. package/es/Trigger/hooks/useTriggerVisible.js +2 -2
  262. package/es/Typography/TypographyBase.vue.d.ts +17 -17
  263. package/es/Typography/TypographyBase.vue.js +1 -1
  264. package/es/Typography/TypographyParagraph.vue.d.ts +1 -1
  265. package/es/Typography/TypographyTitle.vue.d.ts +1 -1
  266. package/es/Typography/type.d.ts +5 -4
  267. package/es/Upload/Upload.vue.d.ts +53 -0
  268. package/es/Upload/Upload.vue.js +110 -0
  269. package/es/Upload/Upload.vue3.js +5 -0
  270. package/es/Upload/UploadButton.vue.d.ts +2 -0
  271. package/es/Upload/UploadButton.vue.js +39 -0
  272. package/es/Upload/UploadButton.vue3.js +5 -0
  273. package/es/Upload/UploadDrag.vue.d.ts +2 -0
  274. package/es/Upload/UploadDrag.vue.js +37 -0
  275. package/es/Upload/UploadDrag.vue3.js +5 -0
  276. package/es/Upload/UploadFileList.vue.d.ts +24 -0
  277. package/es/Upload/UploadFileList.vue.js +7 -0
  278. package/es/Upload/UploadFileList.vue2.js +126 -0
  279. package/es/Upload/UploadPictureCard.vue.d.ts +4 -0
  280. package/es/Upload/UploadPictureCard.vue.js +7 -0
  281. package/es/Upload/UploadPictureCard.vue2.js +132 -0
  282. package/es/Upload/hooks/useContext.d.ts +49 -0
  283. package/es/Upload/hooks/useContext.js +92 -0
  284. package/es/Upload/hooks/useUpload.d.ts +47 -0
  285. package/es/Upload/hooks/useUpload.js +80 -0
  286. package/es/Upload/index.css +1 -0
  287. package/es/Upload/index.d.ts +123 -0
  288. package/es/Upload/index.js +10 -0
  289. package/es/Upload/type.d.ts +72 -0
  290. package/es/VerificationCode/index.d.ts +3 -3
  291. package/es/VerificationCode/index.vue.d.ts +1 -1
  292. package/es/VerificationCode/type.d.ts +5 -4
  293. package/es/Watermark/index.vue.js +1 -1
  294. package/es/_shared/icons/IconDelete.vue.js +19 -1
  295. package/es/_shared/icons/IconDelete.vue2.js +1 -19
  296. package/es/_shared/icons/IconEyeOpen.vue.js +1 -20
  297. package/es/_shared/icons/IconEyeOpen.vue2.js +20 -1
  298. package/es/_shared/icons/IconFile.vue.d.ts +2 -0
  299. package/es/_shared/icons/IconFile.vue.js +22 -0
  300. package/es/_shared/icons/IconFile.vue2.js +4 -0
  301. package/es/_shared/icons/IconSeparator.vue.js +1 -19
  302. package/es/_shared/icons/IconSeparator.vue2.js +19 -1
  303. package/es/_shared/icons/IconUpload.vue.d.ts +2 -0
  304. package/es/_shared/icons/IconUpload.vue.js +22 -0
  305. package/es/_shared/icons/IconUpload.vue2.js +4 -0
  306. package/es/_shared/icons/index.d.ts +2 -0
  307. package/es/_shared/type/index.d.ts +3 -1
  308. package/es/_shared/utils/is.d.ts +0 -15
  309. package/es/_shared/utils/vue-utils.d.ts +1 -0
  310. package/es/_virtual/_plugin-vue_export-helper.js +10 -0
  311. package/es/index.d.ts +36 -35
  312. package/es/index.js +5 -3
  313. package/es/node_modules/@vueuse/core/index.js +171 -9
  314. package/es/node_modules/@vueuse/shared/index.js +29 -0
  315. package/es/style.css +1 -1
  316. package/lib/Affix/index.vue.js +1 -1
  317. package/lib/Alert/index.d.ts +3 -3
  318. package/lib/Alert/index.vue.d.ts +1 -1
  319. package/lib/Alert/type.d.ts +2 -2
  320. package/lib/Anchor/Anchor.vue.d.ts +1 -1
  321. package/lib/Anchor/hooks/useContext.d.ts +3 -3
  322. package/lib/Anchor/hooks/useContext.js +1 -1
  323. package/lib/Anchor/index.d.ts +3 -3
  324. package/lib/Anchor/type.d.ts +3 -2
  325. package/lib/AutoComplete/index.d.ts +40 -31
  326. package/lib/AutoComplete/index.vue.d.ts +72 -54
  327. package/lib/Avatar/Avatar.vue.d.ts +1 -1
  328. package/lib/Avatar/Avatar.vue.js +1 -1
  329. package/lib/Avatar/hooks/useContext.d.ts +1 -2
  330. package/lib/Avatar/hooks/useContext.js +1 -1
  331. package/lib/Avatar/index.d.ts +3 -3
  332. package/lib/Avatar/type.d.ts +3 -2
  333. package/lib/BackTop/index.vue.js +1 -1
  334. package/lib/Badge/index.d.ts +3 -3
  335. package/lib/Badge/index.vue.d.ts +1 -1
  336. package/lib/Badge/type.d.ts +2 -2
  337. package/lib/Breadcrumb/BreadcrumbSeparator.vue.js +1 -1
  338. package/lib/Button/Button.vue.d.ts +2 -2
  339. package/lib/Button/ButtonGroup.vue.d.ts +1 -1
  340. package/lib/Button/hooks/useContext.d.ts +4 -5
  341. package/lib/Button/hooks/useContext.js +1 -1
  342. package/lib/Button/index.d.ts +9 -9
  343. package/lib/Button/type.d.ts +6 -6
  344. package/lib/Card/Card.vue.d.ts +1 -1
  345. package/lib/Card/hooks/useContext.d.ts +2 -2
  346. package/lib/Card/hooks/useContext.js +1 -1
  347. package/lib/Card/index.d.ts +3 -3
  348. package/lib/Card/type.d.ts +1 -2
  349. package/lib/Carousel/Carousel.vue.d.ts +2 -2
  350. package/lib/Carousel/hooks/useContext.d.ts +5 -5
  351. package/lib/Carousel/hooks/useContext.js +1 -1
  352. package/lib/Carousel/index.d.ts +6 -6
  353. package/lib/Carousel/type.d.ts +6 -6
  354. package/lib/Cascader/Cascader.vue.d.ts +23 -23
  355. package/lib/Cascader/hooks/useContext.d.ts +2 -2
  356. package/lib/Cascader/hooks/useContext.js +1 -1
  357. package/lib/Cascader/index.d.ts +26 -26
  358. package/lib/Checkbox/hooks/useContext.d.ts +2 -2
  359. package/lib/Checkbox/hooks/useContext.js +1 -1
  360. package/lib/Collapse/hooks/useContext.d.ts +3 -15
  361. package/lib/Collapse/hooks/useContext.js +1 -1
  362. package/lib/Collapse/type.d.ts +2 -1
  363. package/lib/ColorPicker/ColorControl.vue.js +1 -1
  364. package/lib/ColorPicker/ColorPalette.vue.js +1 -1
  365. package/lib/ColorPicker/hooks/useContext.d.ts +2 -2
  366. package/lib/ColorPicker/hooks/useContext.js +1 -1
  367. package/lib/Comment/hooks/useContext.d.ts +1 -2
  368. package/lib/Comment/hooks/useContext.js +1 -1
  369. package/lib/Descriptions/Descriptions.vue.d.ts +3 -3
  370. package/lib/Descriptions/hooks/useContext.d.ts +3 -3
  371. package/lib/Descriptions/hooks/useContext.js +1 -1
  372. package/lib/Descriptions/index.d.ts +9 -9
  373. package/lib/Descriptions/type.d.ts +7 -6
  374. package/lib/Divider/index.d.ts +6 -6
  375. package/lib/Divider/index.vue.d.ts +2 -2
  376. package/lib/Divider/type.d.ts +4 -3
  377. package/lib/Drawer/Drawer.vue.d.ts +1 -1
  378. package/lib/Drawer/DrawerService.vue.d.ts +1 -1
  379. package/lib/Drawer/index.d.ts +5 -9
  380. package/lib/Drawer/type.d.ts +8 -4
  381. package/lib/Dropdown/Dropdown.vue.d.ts +3 -3
  382. package/lib/Dropdown/DropdownButton.vue.d.ts +3 -3
  383. package/lib/Dropdown/Dsubmenu.vue.d.ts +1 -1
  384. package/lib/Dropdown/Dsubmenu.vue.js +1 -1
  385. package/lib/Dropdown/hooks/useContext.d.ts +2 -2
  386. package/lib/Dropdown/hooks/useContext.js +1 -1
  387. package/lib/Dropdown/index.d.ts +19 -19
  388. package/lib/Dropdown/type.d.ts +4 -6
  389. package/lib/Grid/hooks/useContext.d.ts +1 -13
  390. package/lib/Grid/hooks/useContext.js +1 -1
  391. package/lib/Image/Image.vue.d.ts +2 -2
  392. package/lib/Image/ImagePreview.vue.js +1 -1
  393. package/lib/Image/hooks/useContext.d.ts +2 -2
  394. package/lib/Image/hooks/useContext.js +1 -1
  395. package/lib/Image/index.d.ts +6 -6
  396. package/lib/Image/type.d.ts +3 -2
  397. package/lib/Input/Input.vue.d.ts +3 -3
  398. package/lib/Input/InputSuffix.vue.js +1 -1
  399. package/lib/Input/index.d.ts +8 -8
  400. package/lib/InputNumber/InputNumber.vue.d.ts +20 -20
  401. package/lib/InputNumber/InputOperaBtn.vue.d.ts +2 -2
  402. package/lib/InputNumber/index.d.ts +19 -19
  403. package/lib/InputNumber/type.d.ts +5 -4
  404. package/lib/InputTag/index.d.ts +20 -11
  405. package/lib/InputTag/index.vue.d.ts +7 -4
  406. package/lib/InputTag/index.vue.js +1 -1
  407. package/lib/InputTag/type.d.ts +2 -1
  408. package/lib/Layout/LayoutSider.vue.d.ts +3 -3
  409. package/lib/Layout/hooks/useSiderContext.d.ts +1 -2
  410. package/lib/Layout/hooks/useSiderContext.js +1 -1
  411. package/lib/Layout/index.d.ts +8 -8
  412. package/lib/Layout/type.d.ts +3 -4
  413. package/lib/Link/index.d.ts +3 -3
  414. package/lib/Link/index.vue.d.ts +1 -1
  415. package/lib/Link/type.d.ts +2 -2
  416. package/lib/List/List.vue.d.ts +7 -7
  417. package/lib/List/hooks/useScrollReach.js +1 -1
  418. package/lib/List/index.d.ts +6 -6
  419. package/lib/List/type.d.ts +2 -3
  420. package/lib/Mention/index.d.ts +49 -40
  421. package/lib/Mention/index.vue.d.ts +85 -67
  422. package/lib/Mention/type.d.ts +3 -2
  423. package/lib/Menu/Menu.vue.d.ts +2 -2
  424. package/lib/Menu/MenuItem.vue.js +1 -1
  425. package/lib/Menu/hooks/useContext.d.ts +2 -2
  426. package/lib/Menu/hooks/useContext.js +1 -1
  427. package/lib/Menu/index.d.ts +5 -5
  428. package/lib/Menu/type.d.ts +2 -2
  429. package/lib/Message/type.d.ts +3 -3
  430. package/lib/Modal/Modal.vue.d.ts +1 -1
  431. package/lib/Modal/ModalService.vue.d.ts +1 -1
  432. package/lib/Modal/index.d.ts +13 -13
  433. package/lib/Modal/index.js +1 -1
  434. package/lib/Modal/type.d.ts +6 -9
  435. package/lib/Notification/Notification.vue.d.ts +1 -1
  436. package/lib/Notification/index.d.ts +4 -4
  437. package/lib/Notification/type.d.ts +3 -4
  438. package/lib/OverflowList/index.d.ts +3 -3
  439. package/lib/OverflowList/index.vue.d.ts +1 -1
  440. package/lib/OverflowList/index.vue.js +1 -1
  441. package/lib/OverflowList/type.d.ts +3 -2
  442. package/lib/Pagination/hooks/useContext.d.ts +2 -2
  443. package/lib/Pagination/hooks/useContext.js +1 -1
  444. package/lib/Popconfirm/index.d.ts +8 -8
  445. package/lib/Popconfirm/index.vue.d.ts +3 -3
  446. package/lib/Popconfirm/type.d.ts +2 -3
  447. package/lib/Progress/Progress.vue.d.ts +1 -1
  448. package/lib/Progress/ProgressCircle.vue.d.ts +3 -3
  449. package/lib/Progress/ProgressLine.vue.d.ts +3 -3
  450. package/lib/Progress/index.d.ts +3 -3
  451. package/lib/Progress/type.d.ts +2 -3
  452. package/lib/Radio/hooks/useContext.d.ts +2 -2
  453. package/lib/Radio/hooks/useContext.js +1 -1
  454. package/lib/Radio/type.d.ts +1 -1
  455. package/lib/ResizeBox/index.d.ts +3 -3
  456. package/lib/ResizeBox/index.vue.d.ts +2 -2
  457. package/lib/ResizeBox/type.d.ts +4 -4
  458. package/lib/Result/index.d.ts +3 -3
  459. package/lib/Result/index.vue.d.ts +1 -1
  460. package/lib/Result/type.d.ts +3 -2
  461. package/lib/Scrollbar/Scrollbar.vue.d.ts +1 -1
  462. package/lib/Scrollbar/hooks/useContext.d.ts +2 -2
  463. package/lib/Scrollbar/hooks/useContext.js +1 -1
  464. package/lib/Scrollbar/index.d.ts +3 -3
  465. package/lib/Scrollbar/type.d.ts +2 -1
  466. package/lib/Select/Select.vue.d.ts +45 -27
  467. package/lib/Select/SelectVirtualList.vue.js +1 -1
  468. package/lib/Select/hooks/useContext.d.ts +4 -4
  469. package/lib/Select/hooks/useContext.js +1 -1
  470. package/lib/Select/hooks/useSelectOptions.d.ts +2 -2
  471. package/lib/Select/index.d.ts +33 -24
  472. package/lib/Skeleton/SkeletonShape.vue.d.ts +2 -2
  473. package/lib/Skeleton/index.d.ts +2 -2
  474. package/lib/Skeleton/type.d.ts +2 -4
  475. package/lib/Slider/hooks/useContext.d.ts +2 -2
  476. package/lib/Slider/hooks/useContext.js +1 -1
  477. package/lib/Space/index.d.ts +6 -6
  478. package/lib/Space/index.vue.d.ts +2 -2
  479. package/lib/Space/type.d.ts +5 -4
  480. package/lib/Spin/index.vue.js +1 -1
  481. package/lib/Steps/hooks/useContext.d.ts +1 -2
  482. package/lib/Steps/hooks/useContext.js +1 -1
  483. package/lib/Switch/index.d.ts +14 -14
  484. package/lib/Switch/index.vue.d.ts +5 -5
  485. package/lib/Switch/type.d.ts +4 -4
  486. package/lib/Tabs/Tabs.vue.d.ts +1 -1
  487. package/lib/Tabs/hooks/useContext.d.ts +6 -6
  488. package/lib/Tabs/hooks/useContext.js +1 -1
  489. package/lib/Tabs/index.d.ts +3 -3
  490. package/lib/Tabs/type.d.ts +2 -3
  491. package/lib/Tag/index.d.ts +3 -3
  492. package/lib/Tag/index.vue.d.ts +1 -1
  493. package/lib/Tag/type.d.ts +1 -2
  494. package/lib/Textarea/hooks/useTextareaHeight.js +1 -1
  495. package/lib/Textarea/index.d.ts +5 -5
  496. package/lib/Textarea/index.vue.d.ts +2 -2
  497. package/lib/Textarea/type.d.ts +2 -2
  498. package/lib/TimePicker/TimePicker.vue.d.ts +5 -5
  499. package/lib/TimePicker/hooks/useContext.d.ts +2 -2
  500. package/lib/TimePicker/hooks/useContext.js +1 -1
  501. package/lib/TimePicker/index.d.ts +13 -13
  502. package/lib/Timeline/TimelineItem.vue.d.ts +1 -1
  503. package/lib/Timeline/hooks/useContext.d.ts +2 -2
  504. package/lib/Timeline/hooks/useContext.js +1 -1
  505. package/lib/Timeline/index.d.ts +3 -3
  506. package/lib/Timeline/type.d.ts +3 -4
  507. package/lib/Transfer/TransferPanel.vue.js +1 -1
  508. package/lib/Transfer/hooks/useContext.d.ts +2 -2
  509. package/lib/Transfer/hooks/useContext.js +1 -1
  510. package/lib/Trigger/hooks/useContext.d.ts +2 -3
  511. package/lib/Trigger/hooks/useContext.js +1 -1
  512. package/lib/Trigger/hooks/useTriggerPosition.js +1 -1
  513. package/lib/Trigger/hooks/useTriggerVisible.js +1 -1
  514. package/lib/Typography/TypographyBase.vue.d.ts +17 -17
  515. package/lib/Typography/TypographyBase.vue.js +1 -1
  516. package/lib/Typography/TypographyParagraph.vue.d.ts +1 -1
  517. package/lib/Typography/TypographyTitle.vue.d.ts +1 -1
  518. package/lib/Typography/type.d.ts +5 -4
  519. package/lib/Upload/Upload.vue.d.ts +53 -0
  520. package/lib/Upload/Upload.vue.js +1 -0
  521. package/lib/Upload/Upload.vue3.js +1 -0
  522. package/lib/Upload/UploadButton.vue.d.ts +2 -0
  523. package/lib/Upload/UploadButton.vue.js +1 -0
  524. package/lib/Upload/UploadButton.vue3.js +1 -0
  525. package/lib/Upload/UploadDrag.vue.d.ts +2 -0
  526. package/lib/Upload/UploadDrag.vue.js +1 -0
  527. package/lib/Upload/UploadDrag.vue3.js +1 -0
  528. package/lib/Upload/UploadFileList.vue.d.ts +24 -0
  529. package/lib/Upload/UploadFileList.vue.js +1 -0
  530. package/lib/Upload/UploadFileList.vue2.js +1 -0
  531. package/lib/Upload/UploadPictureCard.vue.d.ts +4 -0
  532. package/lib/Upload/UploadPictureCard.vue.js +1 -0
  533. package/lib/Upload/UploadPictureCard.vue2.js +1 -0
  534. package/lib/Upload/hooks/useContext.d.ts +49 -0
  535. package/lib/Upload/hooks/useContext.js +1 -0
  536. package/lib/Upload/hooks/useUpload.d.ts +47 -0
  537. package/lib/Upload/hooks/useUpload.js +1 -0
  538. package/lib/Upload/index.css +1 -0
  539. package/lib/Upload/index.d.ts +123 -0
  540. package/lib/Upload/index.js +1 -0
  541. package/lib/Upload/type.d.ts +72 -0
  542. package/lib/VerificationCode/index.d.ts +3 -3
  543. package/lib/VerificationCode/index.vue.d.ts +1 -1
  544. package/lib/VerificationCode/type.d.ts +5 -4
  545. package/lib/Watermark/index.vue.js +1 -1
  546. package/lib/_shared/icons/IconDelete.vue.js +1 -1
  547. package/lib/_shared/icons/IconDelete.vue2.js +1 -1
  548. package/lib/_shared/icons/IconEyeOpen.vue.js +1 -1
  549. package/lib/_shared/icons/IconEyeOpen.vue2.js +1 -1
  550. package/lib/_shared/icons/IconFile.vue.d.ts +2 -0
  551. package/lib/_shared/icons/IconFile.vue.js +1 -0
  552. package/lib/_shared/icons/IconFile.vue2.js +1 -0
  553. package/lib/_shared/icons/IconSeparator.vue.js +1 -1
  554. package/lib/_shared/icons/IconSeparator.vue2.js +1 -1
  555. package/lib/_shared/icons/IconUpload.vue.d.ts +2 -0
  556. package/lib/_shared/icons/IconUpload.vue.js +1 -0
  557. package/lib/_shared/icons/IconUpload.vue2.js +1 -0
  558. package/lib/_shared/icons/index.d.ts +2 -0
  559. package/lib/_shared/type/index.d.ts +3 -1
  560. package/lib/_shared/utils/is.d.ts +0 -15
  561. package/lib/_shared/utils/vue-utils.d.ts +1 -0
  562. package/lib/_virtual/_plugin-vue_export-helper.js +1 -0
  563. package/lib/index.d.ts +36 -35
  564. package/lib/index.js +1 -1
  565. package/lib/node_modules/@vueuse/core/index.js +1 -1
  566. package/lib/node_modules/@vueuse/shared/index.js +1 -1
  567. package/lib/style.css +1 -1
  568. package/package.json +1 -1
@@ -9,7 +9,7 @@ declare const Badge: {
9
9
  dot: boolean;
10
10
  offset: number[];
11
11
  maxCount: number;
12
- status: import('./type').BadgeStatus;
12
+ status: import('..').Status<"processing">;
13
13
  dotStyle: import('vue').CSSProperties;
14
14
  count: number;
15
15
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
@@ -25,7 +25,7 @@ declare const Badge: {
25
25
  dot: boolean;
26
26
  offset: number[];
27
27
  maxCount: number;
28
- status: import('./type').BadgeStatus;
28
+ status: import('..').Status<"processing">;
29
29
  dotStyle: import('vue').CSSProperties;
30
30
  count: number;
31
31
  }>;
@@ -38,7 +38,7 @@ declare const Badge: {
38
38
  dot: boolean;
39
39
  offset: number[];
40
40
  maxCount: number;
41
- status: import('./type').BadgeStatus;
41
+ status: import('..').Status<"processing">;
42
42
  dotStyle: import('vue').CSSProperties;
43
43
  count: number;
44
44
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
@@ -12,7 +12,7 @@ declare const __VLS_component: import('vue').DefineComponent<BadgeProps, {}, {},
12
12
  dot: boolean;
13
13
  offset: number[];
14
14
  maxCount: number;
15
- status: import('./type').BadgeStatus;
15
+ status: import('..').Status<"processing">;
16
16
  dotStyle: import('vue').CSSProperties;
17
17
  count: number;
18
18
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
@@ -1,4 +1,5 @@
1
1
  import { CSSProperties, VNode } from 'vue';
2
+ import { Status } from '../_shared/type';
2
3
  export interface BadgeProps {
3
4
  text?: string;
4
5
  dot?: boolean;
@@ -6,11 +7,10 @@ export interface BadgeProps {
6
7
  maxCount?: number;
7
8
  offset?: number[];
8
9
  color?: string;
9
- status?: BadgeStatus;
10
+ status?: Status<'processing'>;
10
11
  count?: number;
11
12
  }
12
13
  export interface BadgeSlots {
13
14
  default?: () => VNode[];
14
15
  content?: () => VNode[];
15
16
  }
16
- export type BadgeStatus = 'success' | 'warning' | 'danger' | 'normal' | 'processing';
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../_shared/utils/dom.js"),/* empty css */,/* empty css */;/* empty css */const r=require("../_shared/icons/IconSeparator.vue.js"),o=require("../_shared/utils/is.js"),t={class:"yc-breadcrumb-item-separator"},a=e.defineComponent({__name:"BreadcrumbSeparator",props:{separatorSlots:{type:Function},separator:{},itemSeparatorSlots:{type:Function},itemSeparator:{}},setup(a){const s=a,n=e.computed(()=>o.isUndefined(s.itemSeparatorSlots)?s.separatorSlots||s.separator:s.itemSeparatorSlots||s.itemSeparator||s.separatorSlots||s.separator),l=()=>{var e,r,t;return o.isUndefined(s.itemSeparatorSlots)?(null==(e=s.separatorSlots)?void 0:e.call(s))||s.separator:(null==(r=s.itemSeparatorSlots)?void 0:r.call(s))||s.itemSeparator||(null==(t=s.separatorSlots)?void 0:t.call(s))||s.separator};return(o,a)=>(e.openBlock(),e.createElementBlock("span",t,[n.value?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l),{key:0})):(e.openBlock(),e.createBlock(e.unref(r.default),{key:1}))]))}});exports.default=a;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../_shared/utils/dom.js"),/* empty css */,/* empty css */;/* empty css */const r=require("../_shared/icons/IconSeparator.vue2.js"),o=require("../_shared/utils/is.js"),t={class:"yc-breadcrumb-item-separator"},a=e.defineComponent({__name:"BreadcrumbSeparator",props:{separatorSlots:{type:Function},separator:{},itemSeparatorSlots:{type:Function},itemSeparator:{}},setup(a){const s=a,n=e.computed(()=>o.isUndefined(s.itemSeparatorSlots)?s.separatorSlots||s.separator:s.itemSeparatorSlots||s.itemSeparator||s.separatorSlots||s.separator),l=()=>{var e,r,t;return o.isUndefined(s.itemSeparatorSlots)?(null==(e=s.separatorSlots)?void 0:e.call(s))||s.separator:(null==(r=s.itemSeparatorSlots)?void 0:r.call(s))||s.itemSeparator||(null==(t=s.separatorSlots)?void 0:t.call(s))||s.separator};return(o,a)=>(e.openBlock(),e.createElementBlock("span",t,[n.value?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l),{key:0})):(e.openBlock(),e.createBlock(e.unref(r.default),{key:1}))]))}});exports.default=a;
@@ -25,9 +25,9 @@ declare const __VLS_component: import('vue').DefineComponent<ButtonProps, {}, {}
25
25
  loading: boolean;
26
26
  href: string;
27
27
  shape: import('..').Shape;
28
- status: import('./type').ButtonStatus;
28
+ status: import('..').Status;
29
29
  long: boolean;
30
- htmlType: import('./type').ButtonHtmlType;
30
+ htmlType: "button" | "reset" | "submit";
31
31
  autofocus: boolean;
32
32
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
33
33
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -11,7 +11,7 @@ declare const __VLS_component: import('vue').DefineComponent<ButtonGroupProps, {
11
11
  type: import('./type').ButtonType;
12
12
  disabled: boolean;
13
13
  shape: import('..').Shape;
14
- status: import('./type').ButtonStatus;
14
+ status: import('..').Status;
15
15
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
16
16
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
17
17
  export default _default;
@@ -1,13 +1,12 @@
1
- import { ButtonType, ButtonStatus } from '../type';
2
- import { Size, Shape, RecordType } from '../../_shared/type';
3
- declare const _default: () => {
1
+ import { ButtonType } from '../type';
2
+ import { Size, Shape, Status, RecordType } from '../../_shared/type';
3
+ export default function useButtonContext(): {
4
4
  provide: (props: RecordType) => void;
5
5
  inject: (props: RecordType) => {
6
6
  disabled: import('vue').ComputedRef<boolean>;
7
7
  type: import('vue').ComputedRef<ButtonType>;
8
- status: import('vue').ComputedRef<ButtonStatus>;
8
+ status: import('vue').ComputedRef<Status>;
9
9
  shape: import('vue').ComputedRef<Shape>;
10
10
  size: import('vue').ComputedRef<Size>;
11
11
  };
12
12
  };
13
- export default _default;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=require("../../_shared/utils/global-config.js"),s="button-group-context";exports.default=()=>({provide:a=>{const{type:u,status:l,shape:o,disabled:i}=e.toRefs(a),{size:d}=t.getGlobalConfig(a);e.provide(s,{type:u,status:l,size:d,shape:o,disabled:i})},inject:a=>{const{size:u}=t.getGlobalConfig(a),{type:l,status:o,shape:i,size:d,disabled:p}=e.toRefs(a),{type:r,status:v,shape:n,disabled:c,size:b}=e.inject(s,{type:e.ref("secondary"),status:e.ref("normal"),shape:e.ref("square"),disabled:e.ref(!1)});return{disabled:e.computed(()=>p.value??c.value),type:e.computed(()=>l.value??r.value),status:e.computed(()=>o.value??v.value),shape:e.computed(()=>i.value??n.value),size:e.computed(()=>d.value??(null==b?void 0:b.value)??u.value)}}});
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=require("../../_shared/utils/global-config.js"),s="button-group-context";exports.default=function(){return{provide:a=>{const{type:u,status:l,shape:o,disabled:i}=e.toRefs(a),{size:d}=t.getGlobalConfig(a);e.provide(s,{type:u,status:l,size:d,shape:o,disabled:i})},inject:a=>{const{size:u}=t.getGlobalConfig(a),{type:l,status:o,shape:i,size:d,disabled:r}=e.toRefs(a),{type:p,status:n,shape:v,disabled:c,size:b}=e.inject(s,{type:e.ref("secondary"),status:e.ref("normal"),shape:e.ref("square"),disabled:e.ref(!1)});return{disabled:e.computed(()=>r.value??c.value),type:e.computed(()=>l.value??p.value),status:e.computed(()=>o.value??n.value),shape:e.computed(()=>i.value??v.value),size:e.computed(()=>d.value??(null==b?void 0:b.value)??u.value)}}}};
@@ -24,9 +24,9 @@ declare const Button: {
24
24
  loading: boolean;
25
25
  href: string;
26
26
  shape: import('..').Shape;
27
- status: import('./type').ButtonStatus;
27
+ status: import('..').Status;
28
28
  long: boolean;
29
- htmlType: import('./type').ButtonHtmlType;
29
+ htmlType: "button" | "reset" | "submit";
30
30
  autofocus: boolean;
31
31
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
32
32
  P: {};
@@ -48,9 +48,9 @@ declare const Button: {
48
48
  loading: boolean;
49
49
  href: string;
50
50
  shape: import('..').Shape;
51
- status: import('./type').ButtonStatus;
51
+ status: import('..').Status;
52
52
  long: boolean;
53
- htmlType: import('./type').ButtonHtmlType;
53
+ htmlType: "button" | "reset" | "submit";
54
54
  autofocus: boolean;
55
55
  }>;
56
56
  __isFragment?: never;
@@ -75,9 +75,9 @@ declare const Button: {
75
75
  loading: boolean;
76
76
  href: string;
77
77
  shape: import('..').Shape;
78
- status: import('./type').ButtonStatus;
78
+ status: import('..').Status;
79
79
  long: boolean;
80
- htmlType: import('./type').ButtonHtmlType;
80
+ htmlType: "button" | "reset" | "submit";
81
81
  autofocus: boolean;
82
82
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
83
83
  $slots: any;
@@ -88,7 +88,7 @@ declare const Button: {
88
88
  type: import('./type').ButtonType;
89
89
  disabled: boolean;
90
90
  shape: import('..').Shape;
91
- status: import('./type').ButtonStatus;
91
+ status: import('..').Status;
92
92
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
93
93
  P: {};
94
94
  B: {};
@@ -101,7 +101,7 @@ declare const Button: {
101
101
  type: import('./type').ButtonType;
102
102
  disabled: boolean;
103
103
  shape: import('..').Shape;
104
- status: import('./type').ButtonStatus;
104
+ status: import('..').Status;
105
105
  }>;
106
106
  __isFragment?: never;
107
107
  __isTeleport?: never;
@@ -111,7 +111,7 @@ declare const Button: {
111
111
  type: import('./type').ButtonType;
112
112
  disabled: boolean;
113
113
  shape: import('..').Shape;
114
- status: import('./type').ButtonStatus;
114
+ status: import('..').Status;
115
115
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
116
116
  $slots: Readonly<import('./type').ButtonGroupSlots> & import('./type').ButtonGroupSlots;
117
117
  });
@@ -1,14 +1,14 @@
1
1
  import { VNode } from 'vue';
2
- import { Shape, Size } from '../_shared/type';
2
+ import { Shape, Size, Status } from '../_shared/type';
3
3
  export interface ButtonProps {
4
4
  type?: ButtonType;
5
5
  shape?: Shape;
6
- status?: ButtonStatus;
6
+ status?: Status;
7
7
  size?: Size;
8
8
  long?: boolean;
9
9
  loading?: boolean;
10
10
  disabled?: boolean;
11
- htmlType?: ButtonHtmlType;
11
+ htmlType?: HtmlType;
12
12
  autofocus?: boolean;
13
13
  href?: string;
14
14
  }
@@ -25,7 +25,7 @@ export interface ButtonSlots {
25
25
  }
26
26
  export interface ButtonGroupProps {
27
27
  type?: ButtonType;
28
- status?: ButtonStatus;
28
+ status?: Status;
29
29
  shape?: Shape;
30
30
  size?: Size;
31
31
  disabled?: boolean;
@@ -33,6 +33,6 @@ export interface ButtonGroupProps {
33
33
  export interface ButtonGroupSlots {
34
34
  default?: () => VNode[];
35
35
  }
36
- export type ButtonStatus = 'success' | 'warning' | 'danger' | 'normal';
37
36
  export type ButtonType = 'primary' | 'secondary' | 'dashed' | 'outline' | 'text';
38
- export type ButtonHtmlType = 'button' | 'reset' | 'submit';
37
+ type HtmlType = 'button' | 'reset' | 'submit';
38
+ export {};
@@ -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<CardProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CardProps> & Readonly<{}>, {
10
- size: import('./type').CardSize;
10
+ size: Exclude<import('..').Size, "mini" | "large">;
11
11
  title: string;
12
12
  hoverable: boolean;
13
13
  loading: boolean;
@@ -2,8 +2,8 @@ import { Slots } from 'vue';
2
2
  type CardContext = {
3
3
  slots: Slots;
4
4
  };
5
- declare const _default: () => {
5
+ export default function useCardContext(): {
6
6
  provide: () => void;
7
7
  inject: () => CardContext;
8
8
  };
9
- export default _default;
9
+ export {};
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t="card-context";exports.default=()=>({provide:()=>{const o=e.useSlots();e.provide(t,{slots:o})},inject:()=>e.inject(t,{slots:{}})});
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t="card-context";exports.default=function(){return{provide:()=>{const o=e.useSlots();e.provide(t,{slots:o})},inject:()=>e.inject(t,{slots:{}})}};
@@ -8,7 +8,7 @@ export type CardGridInstance = InstanceType<typeof _CardGrid>;
8
8
  export * from './type';
9
9
  declare const Card: {
10
10
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').CardProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
11
- size: import('./type').CardSize;
11
+ size: Exclude<import('..').Size, "mini" | "large">;
12
12
  title: string;
13
13
  hoverable: boolean;
14
14
  loading: boolean;
@@ -24,7 +24,7 @@ declare const Card: {
24
24
  M: {};
25
25
  Defaults: {};
26
26
  }, Readonly<import('./type').CardProps> & Readonly<{}>, {}, {}, {}, {}, {
27
- size: import('./type').CardSize;
27
+ size: Exclude<import('..').Size, "mini" | "large">;
28
28
  title: string;
29
29
  hoverable: boolean;
30
30
  loading: boolean;
@@ -37,7 +37,7 @@ declare const Card: {
37
37
  __isTeleport?: never;
38
38
  __isSuspense?: never;
39
39
  } & import('vue').ComponentOptionsBase<Readonly<import('./type').CardProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
40
- size: import('./type').CardSize;
40
+ size: Exclude<import('..').Size, "mini" | "large">;
41
41
  title: string;
42
42
  hoverable: boolean;
43
43
  loading: boolean;
@@ -4,7 +4,7 @@ export interface CardProps {
4
4
  bordered?: boolean;
5
5
  loading?: boolean;
6
6
  hoverable?: boolean;
7
- size?: CardSize;
7
+ size?: Exclude<Size, 'mini' | 'large'>;
8
8
  headerStyle?: CSSProperties;
9
9
  bodyStyle?: CSSProperties;
10
10
  title?: string;
@@ -32,4 +32,3 @@ export interface CardGridProps {
32
32
  export interface CardGridSlots {
33
33
  default?: () => VNode[];
34
34
  }
35
- export type CardSize = Exclude<Size, 'mini' | 'large'>;
@@ -14,9 +14,9 @@ declare const __VLS_component: import('vue').DefineComponent<CarouselProps, {},
14
14
  "onUpdate:current"?: ((index: number) => any) | undefined;
15
15
  }>, {
16
16
  trigger: import('..').EventTrigger;
17
- showArrow: import('./type').CarouselShowArrow;
17
+ showArrow: import('./type').ShowArrow;
18
18
  arrowClass: import('..').ClassName;
19
- animationName: import('./type').CarouselAnimationName;
19
+ animationName: import('./type').AnimationName;
20
20
  direction: import('..').Direction;
21
21
  transitionTimingFunction: string;
22
22
  moveSpeed: number;
@@ -1,21 +1,21 @@
1
1
  import { Ref } from 'vue';
2
- import { CarouselAnimationName, CarouselEmits, CarouselShowArrow } from '../type';
2
+ import { CarouselEmits, AnimationName, ShowArrow } from '../type';
3
3
  import { ClassName, Direction, RecordType } from '../../_shared/type';
4
4
  type CarouselContext = {
5
5
  length: Ref<number>;
6
6
  computedCurrent: Ref<number>;
7
7
  transitionTimingFunction: Ref<string>;
8
- animationName: Ref<CarouselAnimationName>;
8
+ animationName: Ref<AnimationName>;
9
9
  moveType: Ref<MoveType>;
10
10
  preIndex: Ref<number>;
11
11
  moveSpeed: Ref<number>;
12
12
  direction: Ref<Direction>;
13
- showArrow: Ref<CarouselShowArrow>;
13
+ showArrow: Ref<ShowArrow>;
14
14
  arrowClass: Ref<ClassName>;
15
15
  getValidIndex: (val: number) => number;
16
16
  };
17
17
  type MoveType = 'positive' | 'negative';
18
- declare const _default: () => {
18
+ export default function useCarouselContext(): {
19
19
  provide: (props: RecordType, emits: CarouselEmits) => {
20
20
  carouselItems: import('vue').ComputedRef<RecordType[]>;
21
21
  computedCurrent: import('vue').WritableComputedRef<number, number>;
@@ -25,4 +25,4 @@ declare const _default: () => {
25
25
  };
26
26
  inject: () => CarouselContext;
27
27
  };
28
- export default _default;
28
+ export {};
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("../../_shared/utils/dom.js"),t=require("../../_shared/utils/control.js"),o=require("../../_shared/utils/vue-utils.js"),a=require("../CarouselItem.vue.js");;/* empty css */const u="carousel-context";exports.default=()=>({provide:(i,n)=>{const{current:l,defaultCurrent:s,transitionTimingFunction:d,animationName:v,moveSpeed:c,direction:m,showArrow:p,arrowClass:f,autoPlay:g}=e.toRefs(i),h=e.useSlots(),w=e.computed(()=>{var e;return o.findComponentsFromVnodes((null==(e=h.default)?void 0:e.call(h))||[],a.default.name)}),C=e.computed(()=>w.value.length),j=t.useControlValue(l,s.value,e=>{n("update:current",e)}),x=e.ref("positive"),y=e.ref(j.value);let I=!1;const T=e=>e<0?C.value-1:e>C.value?e%C.value:e;return e.provide(u,{length:C,computedCurrent:j,transitionTimingFunction:d,animationName:v,moveSpeed:c,direction:m,showArrow:p,arrowClass:f,moveType:x,preIndex:y,getValidIndex:T}),{carouselItems:w,computedCurrent:j,length:C,autoPlay:g,slideTo:async e=>{I||e==j.value||(x.value=e>j.value?"positive":"negative",y.value=j.value,j.value=T(e),n("change",j.value,y.value,!0),I=!0,await r.sleep(c.value),I=!1)}}},inject:()=>e.inject(u,{length:e.ref(0),computedCurrent:e.ref(1),transitionTimingFunction:e.ref("cubic-bezier(0.34, 0.69, 0.1, 1)"),animationName:e.ref("slide"),moveSpeed:e.ref(500),direction:e.ref("horizontal"),showArrow:e.ref("always"),arrowClass:e.ref(""),preIndex:e.ref(0),moveType:e.ref("positive"),getValidIndex:()=>0})});
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("../../_shared/utils/dom.js"),t=require("../../_shared/utils/control.js"),o=require("../../_shared/utils/vue-utils.js"),u=require("../CarouselItem.vue.js");;/* empty css */const a="carousel-context";exports.default=function(){return{provide:(n,i)=>{const{current:l,defaultCurrent:s,transitionTimingFunction:d,animationName:v,moveSpeed:c,direction:m,showArrow:p,arrowClass:f,autoPlay:g}=e.toRefs(n),h=e.useSlots(),w=e.computed(()=>{var e;return o.findComponentsFromVnodes((null==(e=h.default)?void 0:e.call(h))||[],u.default.name)}),C=e.computed(()=>w.value.length),j=t.useControlValue(l,s.value,e=>{i("update:current",e)}),x=e.ref("positive"),y=e.ref(j.value);let I=!1;const T=e=>e<0?C.value-1:e>C.value?e%C.value:e;return e.provide(a,{length:C,computedCurrent:j,transitionTimingFunction:d,animationName:v,moveSpeed:c,direction:m,showArrow:p,arrowClass:f,moveType:x,preIndex:y,getValidIndex:T}),{carouselItems:w,computedCurrent:j,length:C,autoPlay:g,slideTo:async e=>{I||e==j.value||(x.value=e>j.value?"positive":"negative",y.value=j.value,j.value=T(e),i("change",j.value,y.value,!0),I=!0,await r.sleep(c.value),I=!1)}}},inject:()=>e.inject(a,{length:e.ref(0),computedCurrent:e.ref(1),transitionTimingFunction:e.ref("cubic-bezier(0.34, 0.69, 0.1, 1)"),animationName:e.ref("slide"),moveSpeed:e.ref(500),direction:e.ref("horizontal"),showArrow:e.ref("always"),arrowClass:e.ref(""),preIndex:e.ref(0),moveType:e.ref("positive"),getValidIndex:()=>0})}};
@@ -13,9 +13,9 @@ declare const Carousel: {
13
13
  "update:current": (index: number) => any;
14
14
  }, import('vue').PublicProps, {
15
15
  trigger: import('..').EventTrigger;
16
- showArrow: import('./type').CarouselShowArrow;
16
+ showArrow: import('./type').ShowArrow;
17
17
  arrowClass: import('..').ClassName;
18
- animationName: import('./type').CarouselAnimationName;
18
+ animationName: import('./type').AnimationName;
19
19
  direction: import('..').Direction;
20
20
  transitionTimingFunction: string;
21
21
  moveSpeed: number;
@@ -37,9 +37,9 @@ declare const Carousel: {
37
37
  "onUpdate:current"?: ((index: number) => any) | undefined;
38
38
  }>, {}, {}, {}, {}, {
39
39
  trigger: import('..').EventTrigger;
40
- showArrow: import('./type').CarouselShowArrow;
40
+ showArrow: import('./type').ShowArrow;
41
41
  arrowClass: import('..').ClassName;
42
- animationName: import('./type').CarouselAnimationName;
42
+ animationName: import('./type').AnimationName;
43
43
  direction: import('..').Direction;
44
44
  transitionTimingFunction: string;
45
45
  moveSpeed: number;
@@ -61,9 +61,9 @@ declare const Carousel: {
61
61
  "update:current": (index: number) => any;
62
62
  }, string, {
63
63
  trigger: import('..').EventTrigger;
64
- showArrow: import('./type').CarouselShowArrow;
64
+ showArrow: import('./type').ShowArrow;
65
65
  arrowClass: import('..').ClassName;
66
- animationName: import('./type').CarouselAnimationName;
66
+ animationName: import('./type').AnimationName;
67
67
  direction: import('..').Direction;
68
68
  transitionTimingFunction: string;
69
69
  moveSpeed: number;
@@ -1,14 +1,14 @@
1
1
  import { VNode } from 'vue';
2
- import { ClassName, Direction, EventTrigger } from '../_shared/type';
2
+ import { ClassName, Direction, EventTrigger, Position } from '../_shared/type';
3
3
  export interface CarouselProps {
4
4
  current?: number;
5
5
  defaultCurrent?: number;
6
6
  autoPlay?: AutoPlay;
7
7
  moveSpeed?: number;
8
- animationName?: CarouselAnimationName;
8
+ animationName?: AnimationName;
9
9
  trigger?: EventTrigger;
10
10
  direction?: Direction;
11
- showArrow?: CarouselShowArrow;
11
+ showArrow?: ShowArrow;
12
12
  arrowClass?: ClassName;
13
13
  indicatorType?: IndicatorType;
14
14
  indicatorPosition?: IndicatorPosition;
@@ -25,11 +25,11 @@ export interface CarouselSlots {
25
25
  export interface CarouselItemSlots {
26
26
  default?: () => VNode[];
27
27
  }
28
- export type CarouselAnimationName = 'slide' | 'fade';
29
- export type CarouselShowArrow = 'always' | 'hover' | 'never';
28
+ export type AnimationName = 'slide' | 'fade';
29
+ export type ShowArrow = 'always' | 'hover' | 'never';
30
30
  export type AutoPlay = boolean | {
31
31
  interval?: number;
32
32
  hoverToPause?: boolean;
33
33
  };
34
- export type IndicatorPosition = 'bottom' | 'top' | 'left' | 'right' | 'outer';
34
+ export type IndicatorPosition = Position | 'outer';
35
35
  export type IndicatorType = 'line' | 'dot' | 'slider' | 'never';
@@ -33,10 +33,10 @@ declare function __VLS_template(): {
33
33
  readonly invisibleButton?: boolean | undefined;
34
34
  readonly showInput?: boolean | undefined;
35
35
  readonly onChange?: ((value: string, ev: Event) => any) | undefined;
36
- readonly onFocus?: ((ev: FocusEvent) => any) | undefined;
37
36
  readonly onClear?: ((ev: MouseEvent) => any) | undefined;
38
37
  readonly onInput?: ((value: string, ev: Event) => any) | undefined;
39
38
  readonly onBlur?: ((ev: FocusEvent) => any) | undefined;
39
+ readonly onFocus?: ((ev: FocusEvent) => any) | undefined;
40
40
  readonly onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
41
41
  readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
42
42
  readonly "onUpdate:visibility"?: ((value: boolean) => any) | undefined;
@@ -57,14 +57,14 @@ declare function __VLS_template(): {
57
57
  $root: import('vue').ComponentPublicInstance | null;
58
58
  $parent: import('vue').ComponentPublicInstance | null;
59
59
  $host: Element | null;
60
- $emit: ((event: "change", value: string, ev: Event) => void) & ((event: "focus", ev: FocusEvent) => void) & ((event: "clear", ev: MouseEvent) => void) & ((event: "input", value: string, ev: Event) => void) & ((event: "blur", ev: FocusEvent) => void) & ((event: "keydown", ev: KeyboardEvent) => void) & ((event: "update:modelValue", value: string) => void) & ((event: "update:visibility", value: boolean) => void) & ((event: "visibility-change", value: boolean) => void) & ((event: "pressEnter", ev: KeyboardEvent) => void);
60
+ $emit: ((event: "change", value: string, ev: Event) => void) & ((event: "clear", ev: MouseEvent) => void) & ((event: "input", value: string, ev: Event) => void) & ((event: "blur", ev: FocusEvent) => void) & ((event: "focus", ev: FocusEvent) => void) & ((event: "keydown", ev: KeyboardEvent) => void) & ((event: "update:modelValue", value: string) => void) & ((event: "update:visibility", value: boolean) => void) & ((event: "visibility-change", value: boolean) => void) & ((event: "pressEnter", ev: KeyboardEvent) => void);
61
61
  $el: HTMLDivElement;
62
62
  $options: import('vue').ComponentOptionsBase<Readonly<import('../Input').InputProps> & Readonly<{
63
63
  onChange?: ((value: string, ev: Event) => any) | undefined;
64
- onFocus?: ((ev: FocusEvent) => any) | undefined;
65
64
  onClear?: ((ev: MouseEvent) => any) | undefined;
66
65
  onInput?: ((value: string, ev: Event) => any) | undefined;
67
66
  onBlur?: ((ev: FocusEvent) => any) | undefined;
67
+ onFocus?: ((ev: FocusEvent) => any) | undefined;
68
68
  onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
69
69
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
70
70
  "onUpdate:visibility"?: ((value: boolean) => any) | undefined;
@@ -76,18 +76,18 @@ declare function __VLS_template(): {
76
76
  getInputRef(): HTMLInputElement;
77
77
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
78
78
  change: (value: string, ev: Event) => any;
79
- focus: (ev: FocusEvent) => any;
80
79
  clear: (ev: MouseEvent) => any;
81
80
  input: (value: string, ev: Event) => any;
82
81
  blur: (ev: FocusEvent) => any;
82
+ focus: (ev: FocusEvent) => any;
83
83
  keydown: (ev: KeyboardEvent) => any;
84
84
  "update:modelValue": (value: string) => any;
85
85
  "update:visibility": (value: boolean) => any;
86
86
  "visibility-change": (value: boolean) => any;
87
87
  pressEnter: (ev: KeyboardEvent) => any;
88
88
  }, string, {
89
- size: import('..').Size;
90
89
  error: boolean;
90
+ size: import('..').Size;
91
91
  disabled: boolean;
92
92
  placeholder: string;
93
93
  modelValue: string;
@@ -125,8 +125,8 @@ declare function __VLS_template(): {
125
125
  $nextTick: typeof import('vue').nextTick;
126
126
  $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;
127
127
  } & Readonly<{
128
- size: import('..').Size;
129
128
  error: boolean;
129
+ size: import('..').Size;
130
130
  disabled: boolean;
131
131
  placeholder: string;
132
132
  modelValue: string;
@@ -145,16 +145,16 @@ declare function __VLS_template(): {
145
145
  showInput: boolean;
146
146
  }> & Omit<Readonly<import('../Input').InputProps> & Readonly<{
147
147
  onChange?: ((value: string, ev: Event) => any) | undefined;
148
- onFocus?: ((ev: FocusEvent) => any) | undefined;
149
148
  onClear?: ((ev: MouseEvent) => any) | undefined;
150
149
  onInput?: ((value: string, ev: Event) => any) | undefined;
151
150
  onBlur?: ((ev: FocusEvent) => any) | undefined;
151
+ onFocus?: ((ev: FocusEvent) => any) | undefined;
152
152
  onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
153
153
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
154
154
  "onUpdate:visibility"?: ((value: boolean) => any) | undefined;
155
155
  "onVisibility-change"?: ((value: boolean) => any) | undefined;
156
156
  onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
157
- }>, "focus" | "blur" | "getInputRef" | ("size" | "error" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "maxLength" | "showWordLimit" | "allowClear" | "readonly" | "wordLength" | "wordSlice" | "inputAttrs" | "isPassword" | "visibility" | "defaultVisibility" | "invisibleButton" | "showInput")> & import('vue').ShallowUnwrapRef<{
157
+ }>, "blur" | "focus" | "getInputRef" | ("error" | "size" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "maxLength" | "showWordLimit" | "allowClear" | "readonly" | "wordLength" | "wordSlice" | "inputAttrs" | "isPassword" | "visibility" | "defaultVisibility" | "invisibleButton" | "showInput")> & import('vue').ShallowUnwrapRef<{
158
158
  focus(): void;
159
159
  blur(): void;
160
160
  getInputRef(): HTMLInputElement;
@@ -167,29 +167,29 @@ declare function __VLS_template(): {
167
167
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
168
168
  declare const __VLS_component: import('vue').DefineComponent<CascaderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
169
169
  change: (value: import('./type').CascaderValue) => any;
170
- focus: (ev: FocusEvent) => any;
171
- "update:popupVisible": (value: boolean) => any;
172
- "popup-visible-change": (value: boolean) => any;
173
170
  clear: () => any;
174
171
  search: (value: string) => any;
175
172
  blur: (ev: FocusEvent) => any;
173
+ focus: (ev: FocusEvent) => any;
174
+ "update:popupVisible": (value: boolean) => any;
175
+ "popup-visible-change": (value: boolean) => any;
176
176
  "update:modelValue": (value: import('./type').CascaderValue) => any;
177
177
  "update:inputValue": (value: string) => any;
178
178
  "input-value-change": (value: string) => any;
179
179
  }, string, import('vue').PublicProps, Readonly<CascaderProps> & Readonly<{
180
180
  onChange?: ((value: import('./type').CascaderValue) => any) | undefined;
181
- onFocus?: ((ev: FocusEvent) => any) | undefined;
182
- "onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
183
- "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
184
181
  onClear?: (() => any) | undefined;
185
182
  onSearch?: ((value: string) => any) | undefined;
186
183
  onBlur?: ((ev: FocusEvent) => any) | undefined;
184
+ onFocus?: ((ev: FocusEvent) => any) | undefined;
185
+ "onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
186
+ "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
187
187
  "onUpdate:modelValue"?: ((value: import('./type').CascaderValue) => any) | undefined;
188
188
  "onUpdate:inputValue"?: ((value: string) => any) | undefined;
189
189
  "onInput-value-change"?: ((value: string) => any) | undefined;
190
190
  }>, {
191
- size: import('..').Size;
192
191
  error: boolean;
192
+ size: import('..').Size;
193
193
  popupContainer: import('..').PopupContainer;
194
194
  popupVisible: boolean;
195
195
  defaultPopupVisible: boolean;
@@ -242,10 +242,10 @@ declare const __VLS_component: import('vue').DefineComponent<CascaderProps, {},
242
242
  readonly invisibleButton?: boolean | undefined;
243
243
  readonly showInput?: boolean | undefined;
244
244
  readonly onChange?: ((value: string, ev: Event) => any) | undefined;
245
- readonly onFocus?: ((ev: FocusEvent) => any) | undefined;
246
245
  readonly onClear?: ((ev: MouseEvent) => any) | undefined;
247
246
  readonly onInput?: ((value: string, ev: Event) => any) | undefined;
248
247
  readonly onBlur?: ((ev: FocusEvent) => any) | undefined;
248
+ readonly onFocus?: ((ev: FocusEvent) => any) | undefined;
249
249
  readonly onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
250
250
  readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
251
251
  readonly "onUpdate:visibility"?: ((value: boolean) => any) | undefined;
@@ -266,14 +266,14 @@ declare const __VLS_component: import('vue').DefineComponent<CascaderProps, {},
266
266
  $root: import('vue').ComponentPublicInstance | null;
267
267
  $parent: import('vue').ComponentPublicInstance | null;
268
268
  $host: Element | null;
269
- $emit: ((event: "change", value: string, ev: Event) => void) & ((event: "focus", ev: FocusEvent) => void) & ((event: "clear", ev: MouseEvent) => void) & ((event: "input", value: string, ev: Event) => void) & ((event: "blur", ev: FocusEvent) => void) & ((event: "keydown", ev: KeyboardEvent) => void) & ((event: "update:modelValue", value: string) => void) & ((event: "update:visibility", value: boolean) => void) & ((event: "visibility-change", value: boolean) => void) & ((event: "pressEnter", ev: KeyboardEvent) => void);
269
+ $emit: ((event: "change", value: string, ev: Event) => void) & ((event: "clear", ev: MouseEvent) => void) & ((event: "input", value: string, ev: Event) => void) & ((event: "blur", ev: FocusEvent) => void) & ((event: "focus", ev: FocusEvent) => void) & ((event: "keydown", ev: KeyboardEvent) => void) & ((event: "update:modelValue", value: string) => void) & ((event: "update:visibility", value: boolean) => void) & ((event: "visibility-change", value: boolean) => void) & ((event: "pressEnter", ev: KeyboardEvent) => void);
270
270
  $el: HTMLDivElement;
271
271
  $options: import('vue').ComponentOptionsBase<Readonly<import('../Input').InputProps> & Readonly<{
272
272
  onChange?: ((value: string, ev: Event) => any) | undefined;
273
- onFocus?: ((ev: FocusEvent) => any) | undefined;
274
273
  onClear?: ((ev: MouseEvent) => any) | undefined;
275
274
  onInput?: ((value: string, ev: Event) => any) | undefined;
276
275
  onBlur?: ((ev: FocusEvent) => any) | undefined;
276
+ onFocus?: ((ev: FocusEvent) => any) | undefined;
277
277
  onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
278
278
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
279
279
  "onUpdate:visibility"?: ((value: boolean) => any) | undefined;
@@ -285,18 +285,18 @@ declare const __VLS_component: import('vue').DefineComponent<CascaderProps, {},
285
285
  getInputRef(): HTMLInputElement;
286
286
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
287
287
  change: (value: string, ev: Event) => any;
288
- focus: (ev: FocusEvent) => any;
289
288
  clear: (ev: MouseEvent) => any;
290
289
  input: (value: string, ev: Event) => any;
291
290
  blur: (ev: FocusEvent) => any;
291
+ focus: (ev: FocusEvent) => any;
292
292
  keydown: (ev: KeyboardEvent) => any;
293
293
  "update:modelValue": (value: string) => any;
294
294
  "update:visibility": (value: boolean) => any;
295
295
  "visibility-change": (value: boolean) => any;
296
296
  pressEnter: (ev: KeyboardEvent) => any;
297
297
  }, string, {
298
- size: import('..').Size;
299
298
  error: boolean;
299
+ size: import('..').Size;
300
300
  disabled: boolean;
301
301
  placeholder: string;
302
302
  modelValue: string;
@@ -334,8 +334,8 @@ declare const __VLS_component: import('vue').DefineComponent<CascaderProps, {},
334
334
  $nextTick: typeof import('vue').nextTick;
335
335
  $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;
336
336
  } & Readonly<{
337
- size: import('..').Size;
338
337
  error: boolean;
338
+ size: import('..').Size;
339
339
  disabled: boolean;
340
340
  placeholder: string;
341
341
  modelValue: string;
@@ -354,16 +354,16 @@ declare const __VLS_component: import('vue').DefineComponent<CascaderProps, {},
354
354
  showInput: boolean;
355
355
  }> & Omit<Readonly<import('../Input').InputProps> & Readonly<{
356
356
  onChange?: ((value: string, ev: Event) => any) | undefined;
357
- onFocus?: ((ev: FocusEvent) => any) | undefined;
358
357
  onClear?: ((ev: MouseEvent) => any) | undefined;
359
358
  onInput?: ((value: string, ev: Event) => any) | undefined;
360
359
  onBlur?: ((ev: FocusEvent) => any) | undefined;
360
+ onFocus?: ((ev: FocusEvent) => any) | undefined;
361
361
  onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
362
362
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
363
363
  "onUpdate:visibility"?: ((value: boolean) => any) | undefined;
364
364
  "onVisibility-change"?: ((value: boolean) => any) | undefined;
365
365
  onPressEnter?: ((ev: KeyboardEvent) => any) | undefined;
366
- }>, "focus" | "blur" | "getInputRef" | ("size" | "error" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "maxLength" | "showWordLimit" | "allowClear" | "readonly" | "wordLength" | "wordSlice" | "inputAttrs" | "isPassword" | "visibility" | "defaultVisibility" | "invisibleButton" | "showInput")> & import('vue').ShallowUnwrapRef<{
366
+ }>, "blur" | "focus" | "getInputRef" | ("error" | "size" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "maxLength" | "showWordLimit" | "allowClear" | "readonly" | "wordLength" | "wordSlice" | "inputAttrs" | "isPassword" | "visibility" | "defaultVisibility" | "invisibleButton" | "showInput")> & import('vue').ShallowUnwrapRef<{
367
367
  focus(): void;
368
368
  blur(): void;
369
369
  getInputRef(): HTMLInputElement;
@@ -27,7 +27,7 @@ export declare const flattenOptions: (options: CascaderOptionProps[]) => Cascade
27
27
  export declare const findOptions: (options: CascaderOptionProps[], level: number, parentPath: number[]) => CascaderOptionProps[];
28
28
  export declare function findOptionByValueAndLevel(options: CascaderOption[], value: CascaderOptionValue, level: number, currentLevel?: number): CascaderOption | undefined;
29
29
  export declare const getLeafNodes: (nodes: CascaderOptionProps[]) => CascaderOptionProps[];
30
- declare const _default: () => {
30
+ export default function useCascaderContext(): {
31
31
  provide: (props: RecordType, emits: CascaderEmits, inputRef: Ref<InputInstance | undefined>) => {
32
32
  computedValue: import('vue').WritableComputedRef<CascaderValue, CascaderValue>;
33
33
  computedInputValue: import('vue').WritableComputedRef<string, string>;
@@ -50,4 +50,4 @@ declare const _default: () => {
50
50
  };
51
51
  inject: () => CascaderContext;
52
52
  };
53
- export default _default;
53
+ export {};