yc-design-vue 2.0.1 → 2.0.3

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 (514) hide show
  1. package/es/Affix/type.d.ts +1 -1
  2. package/es/Alert/index.vue.js +2 -2
  3. package/es/Alert/type.d.ts +1 -1
  4. package/es/Anchor/hooks/useContext.d.ts +2 -2
  5. package/es/Anchor/type.d.ts +1 -1
  6. package/es/AutoComplete/index.d.ts +27 -27
  7. package/es/AutoComplete/index.vue.d.ts +49 -49
  8. package/es/AutoComplete/type.d.ts +6 -8
  9. package/es/Avatar/Avatar.vue.d.ts +1 -1
  10. package/es/Avatar/Avatar.vue.js +1 -1
  11. package/es/Avatar/hooks/useContext.d.ts +3 -3
  12. package/es/Avatar/index.d.ts +3 -3
  13. package/es/Avatar/type.d.ts +2 -2
  14. package/es/BackTop/index.vue.js +1 -1
  15. package/es/BackTop/type.d.ts +1 -1
  16. package/es/Badge/type.d.ts +1 -1
  17. package/es/Breadcrumb/BreadcrumbItem.vue.js +1 -1
  18. package/es/Breadcrumb/BreadcrumbMore.vue.js +1 -1
  19. package/es/Breadcrumb/BreadcrumbSeparator.vue.js +1 -1
  20. package/es/Breadcrumb/type.d.ts +1 -1
  21. package/es/Button/Button.vue.d.ts +1 -1
  22. package/es/Button/ButtonGroup.vue.d.ts +1 -1
  23. package/es/Button/hooks/useContext.d.ts +5 -5
  24. package/es/Button/index.d.ts +6 -6
  25. package/es/Button/type.d.ts +4 -5
  26. package/es/Calendar/Calendar.vue.js +2 -2
  27. package/es/Card/type.d.ts +2 -1
  28. package/es/Carousel/Carousel.vue.d.ts +3 -3
  29. package/es/Carousel/CarouselArrow.vue.js +1 -1
  30. package/es/Carousel/CarouselIndicator.vue.d.ts +3 -3
  31. package/es/Carousel/hooks/useContext.d.ts +3 -3
  32. package/es/Carousel/index.d.ts +9 -9
  33. package/es/Carousel/type.d.ts +2 -3
  34. package/es/Cascader/Cascader.vue.d.ts +13 -25
  35. package/es/Cascader/Cascader.vue.js +1 -1
  36. package/es/Cascader/CascaderIcon.vue.js +2 -2
  37. package/es/Cascader/CascaderOption.vue.js +1 -1
  38. package/es/Cascader/hooks/useContext.d.ts +5 -17
  39. package/es/Cascader/index.d.ts +17 -29
  40. package/es/Cascader/type.d.ts +5 -7
  41. package/es/Checkbox/Checkbox.vue.js +2 -2
  42. package/es/Checkbox/hooks/useContext.d.ts +3 -3
  43. package/es/Checkbox/type.d.ts +3 -3
  44. package/es/Collapse/CollapseItem.vue.js +2 -2
  45. package/es/Collapse/hooks/useContext.d.ts +5 -5
  46. package/es/Collapse/type.d.ts +2 -2
  47. package/es/ColorPicker/hooks/useContext.d.ts +2 -2
  48. package/es/ConfigProvider/index.d.ts +3 -3
  49. package/es/ConfigProvider/index.vue.d.ts +1 -1
  50. package/es/ConfigProvider/type.d.ts +2 -3
  51. package/es/Descriptions/hooks/useContext.d.ts +2 -2
  52. package/es/Descriptions/type.d.ts +1 -2
  53. package/es/Drawer/Drawer.vue.js +2 -2
  54. package/es/Drawer/DrawerService.vue.d.ts +1 -1
  55. package/es/Dropdown/Doption.vue.js +1 -1
  56. package/es/Dropdown/Dropdown.vue.d.ts +1 -1
  57. package/es/Dropdown/Dropdown.vue.js +1 -1
  58. package/es/Dropdown/DropdownButton.vue.js +1 -1
  59. package/es/Dropdown/Dsubmenu.vue.d.ts +20 -20
  60. package/es/Dropdown/Dsubmenu.vue.js +2 -2
  61. package/es/Dropdown/hooks/useContext.d.ts +2 -2
  62. package/es/Dropdown/index.d.ts +18 -18
  63. package/es/Dropdown/type.d.ts +5 -6
  64. package/es/Empty/index.vue.js +1 -1
  65. package/es/Grid/Grid.vue.d.ts +3 -3
  66. package/es/Grid/GridCol.vue.d.ts +2 -2
  67. package/es/Grid/GridItem.vue.d.ts +2 -2
  68. package/es/Grid/GridRow.vue.d.ts +1 -1
  69. package/es/Grid/hooks/useContext.d.ts +4 -4
  70. package/es/Grid/index.d.ts +24 -24
  71. package/es/Grid/type.d.ts +4 -12
  72. package/es/Image/Image.vue.d.ts +1 -1
  73. package/es/Image/Image.vue.js +1 -1
  74. package/es/Image/ImagePreview.vue.js +1 -1
  75. package/es/Image/ImagePreviewArrow.vue.js +1 -1
  76. package/es/Image/ImagePreviewToolbar.vue.js +1 -1
  77. package/es/Image/hooks/useContext.d.ts +2 -2
  78. package/es/Image/index.d.ts +3 -3
  79. package/es/Image/type.d.ts +2 -3
  80. package/es/Input/Input.vue.d.ts +1 -1
  81. package/es/Input/Input.vue.js +2 -2
  82. package/es/Input/InputSuffix.vue.js +2 -2
  83. package/es/Input/hooks/useLimitedInput.d.ts +3 -3
  84. package/es/Input/index.d.ts +3 -3
  85. package/es/Input/type.d.ts +2 -2
  86. package/es/InputNumber/InputNumber.vue.d.ts +7 -7
  87. package/es/InputNumber/InputOperaBtn.vue.js +1 -1
  88. package/es/InputNumber/index.d.ts +6 -6
  89. package/es/InputNumber/type.d.ts +3 -4
  90. package/es/InputTag/index.vue.js +2 -2
  91. package/es/InputTag/type.d.ts +5 -6
  92. package/es/Layout/LayoutSider.vue.d.ts +7 -7
  93. package/es/Layout/LayoutSider.vue.js +1 -1
  94. package/es/Layout/hooks/useSiderContext.d.ts +2 -2
  95. package/es/Layout/index.d.ts +19 -19
  96. package/es/Layout/type.d.ts +4 -5
  97. package/es/Link/index.vue.js +1 -1
  98. package/es/Link/type.d.ts +1 -1
  99. package/es/List/List.vue.d.ts +15 -15
  100. package/es/List/ListVirtual.vue.d.ts +3 -3
  101. package/es/List/index.d.ts +10 -10
  102. package/es/List/type.d.ts +3 -3
  103. package/es/Mention/index.d.ts +35 -35
  104. package/es/Mention/index.vue.d.ts +46 -46
  105. package/es/Mention/type.d.ts +6 -5
  106. package/es/Menu/Menu.vue.d.ts +6 -6
  107. package/es/Menu/Menu.vue.js +1 -1
  108. package/es/Menu/MenuEllipsis.vue.js +1 -1
  109. package/es/Menu/SubMenu.vue.d.ts +1 -1
  110. package/es/Menu/SubMenu.vue.js +1 -1
  111. package/es/Menu/hooks/useContext.d.ts +5 -5
  112. package/es/Menu/index.d.ts +20 -20
  113. package/es/Menu/type.d.ts +3 -6
  114. package/es/Message/Message.vue.d.ts +1 -1
  115. package/es/Message/Message.vue.js +2 -2
  116. package/es/Message/index.d.ts +3 -3
  117. package/es/Message/type.d.ts +5 -5
  118. package/es/Modal/Modal.vue.d.ts +2 -2
  119. package/es/Modal/Modal.vue.js +2 -2
  120. package/es/Modal/ModalService.vue.d.ts +4 -4
  121. package/es/Modal/index.d.ts +6 -6
  122. package/es/Modal/index.js +1 -1
  123. package/es/Modal/type.d.ts +8 -8
  124. package/es/Notification/Notification.vue.d.ts +3 -3
  125. package/es/Notification/Notification.vue.js +2 -2
  126. package/es/Notification/index.d.ts +9 -9
  127. package/es/Notification/type.d.ts +4 -4
  128. package/es/PageHeader/index.vue.js +2 -2
  129. package/es/Pagination/PaginationItem.vue.js +1 -1
  130. package/es/Pagination/hooks/useContext.d.ts +2 -2
  131. package/es/Popconfirm/index.d.ts +18 -18
  132. package/es/Popconfirm/index.vue.d.ts +21 -21
  133. package/es/Popconfirm/type.d.ts +4 -4
  134. package/es/Popover/index.d.ts +9 -9
  135. package/es/Popover/index.vue.d.ts +3 -3
  136. package/es/Popover/type.d.ts +3 -3
  137. package/es/Progress/ProgressCircle.vue.js +1 -1
  138. package/es/Progress/type.d.ts +1 -1
  139. package/es/Radio/Radio.vue.js +2 -2
  140. package/es/Radio/hooks/useContext.d.ts +3 -3
  141. package/es/Radio/type.d.ts +2 -2
  142. package/es/Rate/index.vue.js +1 -1
  143. package/es/ResizeBox/index.vue.js +3 -3
  144. package/es/Result/type.d.ts +1 -1
  145. package/es/Scrollbar/Scrollbar.vue.d.ts +1 -1
  146. package/es/Scrollbar/index.d.ts +3 -3
  147. package/es/Select/Option.vue.d.ts +1 -1
  148. package/es/Select/Option.vue.js +1 -1
  149. package/es/Select/Select.vue.d.ts +27 -27
  150. package/es/Select/Select.vue.js +2 -2
  151. package/es/Select/SelectIcon.vue.js +2 -2
  152. package/es/Select/SelectRealList.vue.js +1 -1
  153. package/es/Select/hooks/useContext.d.ts +13 -13
  154. package/es/Select/hooks/useSelectOptions.d.ts +13 -13
  155. package/es/Select/index.d.ts +26 -26
  156. package/es/Select/type.d.ts +13 -16
  157. package/es/Skeleton/type.d.ts +3 -2
  158. package/es/Slider/Slider.vue.d.ts +1 -1
  159. package/es/Slider/SliderTicks.vue.d.ts +2 -2
  160. package/es/Slider/hooks/useContext.d.ts +4 -4
  161. package/es/Slider/index.d.ts +3 -3
  162. package/es/Slider/type.d.ts +2 -3
  163. package/es/Space/index.d.ts +3 -3
  164. package/es/Space/index.vue.d.ts +1 -1
  165. package/es/Spin/index.vue.js +1 -1
  166. package/es/Split/index.vue.js +1 -1
  167. package/es/Steps/Step.vue.js +1 -1
  168. package/es/Steps/hooks/useContext.d.ts +3 -3
  169. package/es/Switch/type.d.ts +2 -1
  170. package/es/Tabs/TabButton.vue.js +2 -2
  171. package/es/Tabs/Tabs.vue.d.ts +1 -1
  172. package/es/Tabs/Tabs.vue.js +1 -1
  173. package/es/Tabs/TabsNavInk.vue.d.ts +2 -2
  174. package/es/Tabs/hooks/useContext.d.ts +5 -5
  175. package/es/Tabs/hooks/useTabsScroll.d.ts +2 -2
  176. package/es/Tabs/index.d.ts +3 -3
  177. package/es/Tabs/type.d.ts +2 -3
  178. package/es/Tag/index.vue.js +2 -2
  179. package/es/Tag/type.d.ts +2 -1
  180. package/es/Textarea/index.vue.js +2 -2
  181. package/es/TimePicker/TimePicker.vue.js +2 -2
  182. package/es/TimePicker/hooks/useContext.d.ts +2 -2
  183. package/es/TimePicker/type.d.ts +1 -1
  184. package/es/Timeline/hooks/useContext.d.ts +4 -4
  185. package/es/Tooltip/index.d.ts +9 -9
  186. package/es/Tooltip/index.vue.d.ts +3 -3
  187. package/es/Tooltip/type.d.ts +3 -3
  188. package/es/Transfer/Transfer.vue.js +1 -1
  189. package/es/Transfer/TransferPanel.vue.js +2 -2
  190. package/es/Transfer/hooks/useContext.d.ts +2 -2
  191. package/es/Trigger/hooks/useContext.d.ts +2 -2
  192. package/es/Trigger/hooks/useTriggerPosition.d.ts +3 -4
  193. package/es/Trigger/hooks/useTriggerVisible.d.ts +2 -2
  194. package/es/Trigger/index.d.ts +9 -9
  195. package/es/Trigger/index.vue.d.ts +3 -3
  196. package/es/Trigger/index.vue.js +1 -1
  197. package/es/Trigger/type.d.ts +3 -4
  198. package/es/Typography/TypographyBase.vue.d.ts +6 -7
  199. package/es/Typography/TypographyBase.vue.js +3 -4
  200. package/es/Typography/TypographyParagraph.vue.d.ts +1 -1
  201. package/es/Typography/TypographyParagraph.vue.js +0 -7
  202. package/es/Typography/TypographyText.vue.js +0 -7
  203. package/es/Typography/TypographyTitle.vue.d.ts +1 -1
  204. package/es/Typography/TypographyTitle.vue.js +0 -7
  205. package/es/Typography/type.d.ts +4 -14
  206. package/es/_shared/components/ExpandTransition/index.vue2.js +6 -2
  207. package/es/_shared/components/IconButton/{index.vue.js → index.vue2.js} +1 -1
  208. package/es/_shared/components/IconButton/index.vue3.js +2 -2
  209. package/es/_shared/constants/index.d.ts +4 -4
  210. package/es/_shared/constants/index.js +1 -1
  211. package/es/_shared/icons/IconArrowDown.vue.js +1 -1
  212. package/es/_shared/icons/IconArrowRight.vue.js +1 -1
  213. package/es/_shared/icons/IconCheck.vue.js +1 -1
  214. package/es/_shared/icons/IconCheckboxChecked.vue.js +1 -1
  215. package/es/_shared/icons/IconClose.vue.js +1 -1
  216. package/es/_shared/icons/IconCopy.vue.js +23 -1
  217. package/es/_shared/icons/IconCopy.vue2.js +1 -23
  218. package/es/_shared/icons/IconDelete.vue2.js +1 -1
  219. package/es/_shared/icons/IconDragDot.vue.js +1 -1
  220. package/es/_shared/icons/IconEdit.vue.js +23 -1
  221. package/es/_shared/icons/IconEdit.vue2.js +1 -23
  222. package/es/_shared/icons/IconEmpty.vue.js +1 -1
  223. package/es/_shared/icons/IconError.vue.js +1 -1
  224. package/es/_shared/icons/IconExclamation.vue2.js +1 -1
  225. package/es/_shared/icons/IconEyeClose.vue2.js +1 -1
  226. package/es/_shared/icons/IconEyeOpen.vue2.js +1 -1
  227. package/es/_shared/icons/IconFaceSmile.vue.js +1 -1
  228. package/es/_shared/icons/IconFullScreen.vue2.js +1 -1
  229. package/es/_shared/icons/IconImageClose.vue.js +1 -1
  230. package/es/_shared/icons/IconInfo.vue.js +1 -1
  231. package/es/_shared/icons/IconInfoLine.vue.js +1 -1
  232. package/es/_shared/icons/IconLink.vue.js +1 -1
  233. package/es/_shared/icons/IconLoading.vue.js +1 -1
  234. package/es/_shared/icons/IconMenuFold.vue.js +1 -1
  235. package/es/_shared/icons/IconMenuUnfold.vue.js +1 -1
  236. package/es/_shared/icons/IconMinus.vue2.js +1 -1
  237. package/es/_shared/icons/IconMore.vue.js +1 -1
  238. package/es/_shared/icons/IconOriginSize.vue2.js +1 -1
  239. package/es/_shared/icons/IconPlus.vue.js +1 -1
  240. package/es/_shared/icons/IconRight.vue.js +1 -1
  241. package/es/_shared/icons/IconRotateLeft.vue2.js +1 -1
  242. package/es/_shared/icons/IconRotateRight.vue2.js +1 -1
  243. package/es/_shared/icons/IconSearch.vue2.js +1 -1
  244. package/es/_shared/icons/IconSeparator.vue2.js +1 -1
  245. package/es/_shared/icons/IconStar.vue.js +1 -1
  246. package/es/_shared/icons/IconSuccess.vue.js +1 -1
  247. package/es/_shared/icons/IconTime.vue.js +1 -1
  248. package/es/_shared/icons/IconToTop.vue.js +1 -1
  249. package/es/_shared/icons/IconWarning.vue.js +1 -1
  250. package/es/_shared/icons/IconZoomIn.vue2.js +1 -1
  251. package/es/_shared/icons/IconZoomOut.vue2.js +1 -1
  252. package/es/_shared/type/index.d.ts +22 -5
  253. package/es/_shared/utils/dom.d.ts +1 -1
  254. package/es/_shared/utils/dom.js +1 -1
  255. package/es/_shared/utils/global-config.d.ts +4 -4
  256. package/es/_shared/utils/vue-utils.d.ts +3 -3
  257. package/es/index.d.ts +59 -59
  258. package/lib/Affix/type.d.ts +1 -1
  259. package/lib/Alert/index.vue.js +1 -1
  260. package/lib/Alert/type.d.ts +1 -1
  261. package/lib/Anchor/hooks/useContext.d.ts +2 -2
  262. package/lib/Anchor/type.d.ts +1 -1
  263. package/lib/AutoComplete/index.d.ts +27 -27
  264. package/lib/AutoComplete/index.vue.d.ts +49 -49
  265. package/lib/AutoComplete/type.d.ts +6 -8
  266. package/lib/Avatar/Avatar.vue.d.ts +1 -1
  267. package/lib/Avatar/Avatar.vue.js +1 -1
  268. package/lib/Avatar/hooks/useContext.d.ts +3 -3
  269. package/lib/Avatar/index.d.ts +3 -3
  270. package/lib/Avatar/type.d.ts +2 -2
  271. package/lib/BackTop/index.vue.js +1 -1
  272. package/lib/BackTop/type.d.ts +1 -1
  273. package/lib/Badge/type.d.ts +1 -1
  274. package/lib/Breadcrumb/BreadcrumbItem.vue.js +1 -1
  275. package/lib/Breadcrumb/BreadcrumbMore.vue.js +1 -1
  276. package/lib/Breadcrumb/BreadcrumbSeparator.vue.js +1 -1
  277. package/lib/Breadcrumb/type.d.ts +1 -1
  278. package/lib/Button/Button.vue.d.ts +1 -1
  279. package/lib/Button/ButtonGroup.vue.d.ts +1 -1
  280. package/lib/Button/hooks/useContext.d.ts +5 -5
  281. package/lib/Button/index.d.ts +6 -6
  282. package/lib/Button/type.d.ts +4 -5
  283. package/lib/Calendar/Calendar.vue.js +1 -1
  284. package/lib/Card/type.d.ts +2 -1
  285. package/lib/Carousel/Carousel.vue.d.ts +3 -3
  286. package/lib/Carousel/CarouselArrow.vue.js +1 -1
  287. package/lib/Carousel/CarouselIndicator.vue.d.ts +3 -3
  288. package/lib/Carousel/hooks/useContext.d.ts +3 -3
  289. package/lib/Carousel/index.d.ts +9 -9
  290. package/lib/Carousel/type.d.ts +2 -3
  291. package/lib/Cascader/Cascader.vue.d.ts +13 -25
  292. package/lib/Cascader/Cascader.vue.js +1 -1
  293. package/lib/Cascader/CascaderIcon.vue.js +1 -1
  294. package/lib/Cascader/CascaderOption.vue.js +1 -1
  295. package/lib/Cascader/hooks/useContext.d.ts +5 -17
  296. package/lib/Cascader/index.d.ts +17 -29
  297. package/lib/Cascader/type.d.ts +5 -7
  298. package/lib/Checkbox/Checkbox.vue.js +1 -1
  299. package/lib/Checkbox/hooks/useContext.d.ts +3 -3
  300. package/lib/Checkbox/type.d.ts +3 -3
  301. package/lib/Collapse/CollapseItem.vue.js +1 -1
  302. package/lib/Collapse/hooks/useContext.d.ts +5 -5
  303. package/lib/Collapse/type.d.ts +2 -2
  304. package/lib/ColorPicker/hooks/useContext.d.ts +2 -2
  305. package/lib/ConfigProvider/index.d.ts +3 -3
  306. package/lib/ConfigProvider/index.vue.d.ts +1 -1
  307. package/lib/ConfigProvider/type.d.ts +2 -3
  308. package/lib/Descriptions/hooks/useContext.d.ts +2 -2
  309. package/lib/Descriptions/type.d.ts +1 -2
  310. package/lib/Drawer/Drawer.vue.js +1 -1
  311. package/lib/Drawer/DrawerService.vue.d.ts +1 -1
  312. package/lib/Dropdown/Doption.vue.js +1 -1
  313. package/lib/Dropdown/Dropdown.vue.d.ts +1 -1
  314. package/lib/Dropdown/Dropdown.vue.js +1 -1
  315. package/lib/Dropdown/DropdownButton.vue.js +1 -1
  316. package/lib/Dropdown/Dsubmenu.vue.d.ts +20 -20
  317. package/lib/Dropdown/Dsubmenu.vue.js +1 -1
  318. package/lib/Dropdown/hooks/useContext.d.ts +2 -2
  319. package/lib/Dropdown/index.d.ts +18 -18
  320. package/lib/Dropdown/type.d.ts +5 -6
  321. package/lib/Empty/index.vue.js +1 -1
  322. package/lib/Grid/Grid.vue.d.ts +3 -3
  323. package/lib/Grid/GridCol.vue.d.ts +2 -2
  324. package/lib/Grid/GridItem.vue.d.ts +2 -2
  325. package/lib/Grid/GridRow.vue.d.ts +1 -1
  326. package/lib/Grid/hooks/useContext.d.ts +4 -4
  327. package/lib/Grid/index.d.ts +24 -24
  328. package/lib/Grid/type.d.ts +4 -12
  329. package/lib/Image/Image.vue.d.ts +1 -1
  330. package/lib/Image/Image.vue.js +1 -1
  331. package/lib/Image/ImagePreview.vue.js +1 -1
  332. package/lib/Image/ImagePreviewArrow.vue.js +1 -1
  333. package/lib/Image/ImagePreviewToolbar.vue.js +1 -1
  334. package/lib/Image/hooks/useContext.d.ts +2 -2
  335. package/lib/Image/index.d.ts +3 -3
  336. package/lib/Image/type.d.ts +2 -3
  337. package/lib/Input/Input.vue.d.ts +1 -1
  338. package/lib/Input/Input.vue.js +1 -1
  339. package/lib/Input/InputSuffix.vue.js +1 -1
  340. package/lib/Input/hooks/useLimitedInput.d.ts +3 -3
  341. package/lib/Input/index.d.ts +3 -3
  342. package/lib/Input/type.d.ts +2 -2
  343. package/lib/InputNumber/InputNumber.vue.d.ts +7 -7
  344. package/lib/InputNumber/InputOperaBtn.vue.js +1 -1
  345. package/lib/InputNumber/index.d.ts +6 -6
  346. package/lib/InputNumber/type.d.ts +3 -4
  347. package/lib/InputTag/index.vue.js +1 -1
  348. package/lib/InputTag/type.d.ts +5 -6
  349. package/lib/Layout/LayoutSider.vue.d.ts +7 -7
  350. package/lib/Layout/LayoutSider.vue.js +1 -1
  351. package/lib/Layout/hooks/useSiderContext.d.ts +2 -2
  352. package/lib/Layout/index.d.ts +19 -19
  353. package/lib/Layout/type.d.ts +4 -5
  354. package/lib/Link/index.vue.js +1 -1
  355. package/lib/Link/type.d.ts +1 -1
  356. package/lib/List/List.vue.d.ts +15 -15
  357. package/lib/List/ListVirtual.vue.d.ts +3 -3
  358. package/lib/List/index.d.ts +10 -10
  359. package/lib/List/type.d.ts +3 -3
  360. package/lib/Mention/index.d.ts +35 -35
  361. package/lib/Mention/index.vue.d.ts +46 -46
  362. package/lib/Mention/type.d.ts +6 -5
  363. package/lib/Menu/Menu.vue.d.ts +6 -6
  364. package/lib/Menu/Menu.vue.js +1 -1
  365. package/lib/Menu/MenuEllipsis.vue.js +1 -1
  366. package/lib/Menu/SubMenu.vue.d.ts +1 -1
  367. package/lib/Menu/SubMenu.vue.js +1 -1
  368. package/lib/Menu/hooks/useContext.d.ts +5 -5
  369. package/lib/Menu/index.d.ts +20 -20
  370. package/lib/Menu/type.d.ts +3 -6
  371. package/lib/Message/Message.vue.d.ts +1 -1
  372. package/lib/Message/Message.vue.js +1 -1
  373. package/lib/Message/index.d.ts +3 -3
  374. package/lib/Message/type.d.ts +5 -5
  375. package/lib/Modal/Modal.vue.d.ts +2 -2
  376. package/lib/Modal/Modal.vue.js +1 -1
  377. package/lib/Modal/ModalService.vue.d.ts +4 -4
  378. package/lib/Modal/index.d.ts +6 -6
  379. package/lib/Modal/type.d.ts +8 -8
  380. package/lib/Notification/Notification.vue.d.ts +3 -3
  381. package/lib/Notification/Notification.vue.js +1 -1
  382. package/lib/Notification/index.d.ts +9 -9
  383. package/lib/Notification/type.d.ts +4 -4
  384. package/lib/PageHeader/index.vue.js +1 -1
  385. package/lib/Pagination/PaginationItem.vue.js +1 -1
  386. package/lib/Pagination/hooks/useContext.d.ts +2 -2
  387. package/lib/Popconfirm/index.d.ts +18 -18
  388. package/lib/Popconfirm/index.vue.d.ts +21 -21
  389. package/lib/Popconfirm/type.d.ts +4 -4
  390. package/lib/Popover/index.d.ts +9 -9
  391. package/lib/Popover/index.vue.d.ts +3 -3
  392. package/lib/Popover/type.d.ts +3 -3
  393. package/lib/Progress/ProgressCircle.vue.js +1 -1
  394. package/lib/Progress/type.d.ts +1 -1
  395. package/lib/Radio/Radio.vue.js +1 -1
  396. package/lib/Radio/hooks/useContext.d.ts +3 -3
  397. package/lib/Radio/type.d.ts +2 -2
  398. package/lib/Rate/index.vue.js +1 -1
  399. package/lib/ResizeBox/index.vue.js +1 -1
  400. package/lib/Result/type.d.ts +1 -1
  401. package/lib/Scrollbar/Scrollbar.vue.d.ts +1 -1
  402. package/lib/Scrollbar/index.d.ts +3 -3
  403. package/lib/Select/Option.vue.d.ts +1 -1
  404. package/lib/Select/Option.vue.js +1 -1
  405. package/lib/Select/Select.vue.d.ts +27 -27
  406. package/lib/Select/Select.vue.js +1 -1
  407. package/lib/Select/SelectIcon.vue.js +1 -1
  408. package/lib/Select/SelectRealList.vue.js +1 -1
  409. package/lib/Select/hooks/useContext.d.ts +13 -13
  410. package/lib/Select/hooks/useSelectOptions.d.ts +13 -13
  411. package/lib/Select/index.d.ts +26 -26
  412. package/lib/Select/type.d.ts +13 -16
  413. package/lib/Skeleton/type.d.ts +3 -2
  414. package/lib/Slider/Slider.vue.d.ts +1 -1
  415. package/lib/Slider/SliderTicks.vue.d.ts +2 -2
  416. package/lib/Slider/hooks/useContext.d.ts +4 -4
  417. package/lib/Slider/index.d.ts +3 -3
  418. package/lib/Slider/type.d.ts +2 -3
  419. package/lib/Space/index.d.ts +3 -3
  420. package/lib/Space/index.vue.d.ts +1 -1
  421. package/lib/Spin/index.vue.js +1 -1
  422. package/lib/Split/index.vue.js +1 -1
  423. package/lib/Steps/Step.vue.js +1 -1
  424. package/lib/Steps/hooks/useContext.d.ts +3 -3
  425. package/lib/Switch/type.d.ts +2 -1
  426. package/lib/Tabs/TabButton.vue.js +1 -1
  427. package/lib/Tabs/Tabs.vue.d.ts +1 -1
  428. package/lib/Tabs/Tabs.vue.js +1 -1
  429. package/lib/Tabs/TabsNavInk.vue.d.ts +2 -2
  430. package/lib/Tabs/hooks/useContext.d.ts +5 -5
  431. package/lib/Tabs/hooks/useTabsScroll.d.ts +2 -2
  432. package/lib/Tabs/index.d.ts +3 -3
  433. package/lib/Tabs/type.d.ts +2 -3
  434. package/lib/Tag/index.vue.js +1 -1
  435. package/lib/Tag/type.d.ts +2 -1
  436. package/lib/Textarea/index.vue.js +1 -1
  437. package/lib/TimePicker/TimePicker.vue.js +1 -1
  438. package/lib/TimePicker/hooks/useContext.d.ts +2 -2
  439. package/lib/TimePicker/type.d.ts +1 -1
  440. package/lib/Timeline/hooks/useContext.d.ts +4 -4
  441. package/lib/Tooltip/index.d.ts +9 -9
  442. package/lib/Tooltip/index.vue.d.ts +3 -3
  443. package/lib/Tooltip/type.d.ts +3 -3
  444. package/lib/Transfer/Transfer.vue.js +1 -1
  445. package/lib/Transfer/TransferPanel.vue.js +1 -1
  446. package/lib/Transfer/hooks/useContext.d.ts +2 -2
  447. package/lib/Trigger/hooks/useContext.d.ts +2 -2
  448. package/lib/Trigger/hooks/useTriggerPosition.d.ts +3 -4
  449. package/lib/Trigger/hooks/useTriggerVisible.d.ts +2 -2
  450. package/lib/Trigger/index.d.ts +9 -9
  451. package/lib/Trigger/index.vue.d.ts +3 -3
  452. package/lib/Trigger/index.vue.js +1 -1
  453. package/lib/Trigger/type.d.ts +3 -4
  454. package/lib/Typography/TypographyBase.vue.d.ts +6 -7
  455. package/lib/Typography/TypographyBase.vue.js +1 -1
  456. package/lib/Typography/TypographyParagraph.vue.d.ts +1 -1
  457. package/lib/Typography/TypographyParagraph.vue.js +1 -1
  458. package/lib/Typography/TypographyText.vue.js +1 -1
  459. package/lib/Typography/TypographyTitle.vue.d.ts +1 -1
  460. package/lib/Typography/TypographyTitle.vue.js +1 -1
  461. package/lib/Typography/type.d.ts +4 -14
  462. package/lib/_shared/components/IconButton/index.vue2.js +1 -0
  463. package/lib/_shared/components/IconButton/index.vue3.js +1 -1
  464. package/lib/_shared/constants/index.d.ts +4 -4
  465. package/lib/_shared/constants/index.js +1 -1
  466. package/lib/_shared/icons/IconArrowDown.vue.js +1 -1
  467. package/lib/_shared/icons/IconArrowRight.vue.js +1 -1
  468. package/lib/_shared/icons/IconCheck.vue.js +1 -1
  469. package/lib/_shared/icons/IconCheckboxChecked.vue.js +1 -1
  470. package/lib/_shared/icons/IconClose.vue.js +1 -1
  471. package/lib/_shared/icons/IconCopy.vue.js +1 -1
  472. package/lib/_shared/icons/IconCopy.vue2.js +1 -1
  473. package/lib/_shared/icons/IconDelete.vue2.js +1 -1
  474. package/lib/_shared/icons/IconDragDot.vue.js +1 -1
  475. package/lib/_shared/icons/IconEdit.vue.js +1 -1
  476. package/lib/_shared/icons/IconEdit.vue2.js +1 -1
  477. package/lib/_shared/icons/IconEmpty.vue.js +1 -1
  478. package/lib/_shared/icons/IconError.vue.js +1 -1
  479. package/lib/_shared/icons/IconExclamation.vue2.js +1 -1
  480. package/lib/_shared/icons/IconEyeClose.vue2.js +1 -1
  481. package/lib/_shared/icons/IconEyeOpen.vue2.js +1 -1
  482. package/lib/_shared/icons/IconFaceSmile.vue.js +1 -1
  483. package/lib/_shared/icons/IconFullScreen.vue2.js +1 -1
  484. package/lib/_shared/icons/IconImageClose.vue.js +1 -1
  485. package/lib/_shared/icons/IconInfo.vue.js +1 -1
  486. package/lib/_shared/icons/IconInfoLine.vue.js +1 -1
  487. package/lib/_shared/icons/IconLink.vue.js +1 -1
  488. package/lib/_shared/icons/IconLoading.vue.js +1 -1
  489. package/lib/_shared/icons/IconMenuFold.vue.js +1 -1
  490. package/lib/_shared/icons/IconMenuUnfold.vue.js +1 -1
  491. package/lib/_shared/icons/IconMinus.vue2.js +1 -1
  492. package/lib/_shared/icons/IconMore.vue.js +1 -1
  493. package/lib/_shared/icons/IconOriginSize.vue2.js +1 -1
  494. package/lib/_shared/icons/IconPlus.vue.js +1 -1
  495. package/lib/_shared/icons/IconRight.vue.js +1 -1
  496. package/lib/_shared/icons/IconRotateLeft.vue2.js +1 -1
  497. package/lib/_shared/icons/IconRotateRight.vue2.js +1 -1
  498. package/lib/_shared/icons/IconSearch.vue2.js +1 -1
  499. package/lib/_shared/icons/IconSeparator.vue2.js +1 -1
  500. package/lib/_shared/icons/IconStar.vue.js +1 -1
  501. package/lib/_shared/icons/IconSuccess.vue.js +1 -1
  502. package/lib/_shared/icons/IconTime.vue.js +1 -1
  503. package/lib/_shared/icons/IconToTop.vue.js +1 -1
  504. package/lib/_shared/icons/IconWarning.vue.js +1 -1
  505. package/lib/_shared/icons/IconZoomIn.vue2.js +1 -1
  506. package/lib/_shared/icons/IconZoomOut.vue2.js +1 -1
  507. package/lib/_shared/type/index.d.ts +22 -5
  508. package/lib/_shared/utils/dom.d.ts +1 -1
  509. package/lib/_shared/utils/dom.js +1 -1
  510. package/lib/_shared/utils/global-config.d.ts +4 -4
  511. package/lib/_shared/utils/vue-utils.d.ts +3 -3
  512. package/lib/index.d.ts +59 -59
  513. package/package.json +1 -1
  514. package/lib/_shared/components/IconButton/index.vue.js +0 -1
@@ -1,5 +1,5 @@
1
- import { SelectProps, SelectSlots, OptionValue } from './type';
2
- import { InputTagValue } from '../InputTag';
1
+ import { SelectProps, SelectSlots, SelectOptionValue } from './type';
2
+ import { InputTagValue, TagData } from '../InputTag';
3
3
  import { TriggerInstance } from '../Trigger';
4
4
  declare function __VLS_template(): {
5
5
  attrs: Partial<{}>;
@@ -12,7 +12,7 @@ declare function __VLS_template(): {
12
12
  readonly popupVisible?: boolean | undefined;
13
13
  readonly defaultPopupVisible?: boolean | undefined;
14
14
  readonly trigger?: import('../Trigger').TriggerType | undefined;
15
- readonly position?: import('../Trigger').TriggerPostion | undefined;
15
+ readonly position?: import('..').PopupPosition | undefined;
16
16
  readonly disabled?: boolean | undefined;
17
17
  readonly popupOffset?: number | undefined;
18
18
  readonly popupTranslate?: number[] | undefined;
@@ -22,9 +22,9 @@ declare function __VLS_template(): {
22
22
  readonly clickToClose?: boolean | undefined;
23
23
  readonly clickOutsideToClose?: boolean | undefined;
24
24
  readonly unmountOnClose?: boolean | undefined;
25
- readonly contentClass?: import('../_shared/type').ClassName | undefined;
25
+ readonly contentClass?: import('..').ClassName | undefined;
26
26
  readonly contentStyle?: import('vue').CSSProperties | undefined;
27
- readonly arrowClass?: import('../_shared/type').ClassName | undefined;
27
+ readonly arrowClass?: import('..').ClassName | undefined;
28
28
  readonly arrowStyle?: import('vue').CSSProperties | undefined;
29
29
  readonly animationName?: string | undefined;
30
30
  readonly duration?: number | undefined;
@@ -158,14 +158,14 @@ declare function __VLS_template(): {
158
158
  scrollToClose: boolean;
159
159
  autoSetPosition: boolean;
160
160
  alignPoint: boolean;
161
- position: import('../Trigger').TriggerPostion;
161
+ position: import('..').PopupPosition;
162
162
  popupOffset: number;
163
163
  popupTranslate: number[];
164
164
  showArrow: boolean;
165
165
  unmountOnClose: boolean;
166
- contentClass: import('../_shared/type').ClassName;
166
+ contentClass: import('..').ClassName;
167
167
  contentStyle: import('vue').CSSProperties;
168
- arrowClass: import('../_shared/type').ClassName;
168
+ arrowClass: import('..').ClassName;
169
169
  arrowStyle: import('vue').CSSProperties;
170
170
  animationName: string;
171
171
  duration: number;
@@ -212,14 +212,14 @@ declare function __VLS_template(): {
212
212
  scrollToClose: boolean;
213
213
  autoSetPosition: boolean;
214
214
  alignPoint: boolean;
215
- position: import('../Trigger').TriggerPostion;
215
+ position: import('..').PopupPosition;
216
216
  popupOffset: number;
217
217
  popupTranslate: number[];
218
218
  showArrow: boolean;
219
219
  unmountOnClose: boolean;
220
- contentClass: import('../_shared/type').ClassName;
220
+ contentClass: import('..').ClassName;
221
221
  contentStyle: import('vue').CSSProperties;
222
- arrowClass: import('../_shared/type').ClassName;
222
+ arrowClass: import('..').ClassName;
223
223
  arrowStyle: import('vue').CSSProperties;
224
224
  animationName: string;
225
225
  duration: number;
@@ -259,7 +259,7 @@ declare function __VLS_template(): {
259
259
  readonly size?: import('..').Size | undefined;
260
260
  readonly maxTagCount?: number | undefined;
261
261
  readonly retainInputValue?: import('../InputTag').InputRetainValue | undefined;
262
- readonly formatTag?: import('../InputTag').FormatTag | undefined;
262
+ readonly formatTag?: import('..').Format<TagData> | undefined;
263
263
  readonly uniqueValue?: boolean | undefined;
264
264
  readonly tagNowrap?: boolean | undefined;
265
265
  readonly fieldNames?: Record<string, string> | undefined;
@@ -397,13 +397,13 @@ declare const __VLS_component: import('vue').DefineComponent<SelectProps, {
397
397
  "update:popupVisible": (value: boolean) => any;
398
398
  "popup-visible-change": (value: boolean) => any;
399
399
  clear: () => any;
400
- select: (value: OptionValue) => any;
400
+ select: (value: SelectOptionValue) => any;
401
401
  search: (value: string) => any;
402
402
  "update:modelValue": (value: import('./type').SelectValue) => any;
403
403
  "update:inputValue": (value: string) => any;
404
404
  "input-value-change": (value: string) => any;
405
405
  remove: (index: string | number, ev: Event) => any;
406
- exceedLimit: (value: OptionValue, ev?: MouseEvent | undefined) => any;
406
+ exceedLimit: (value: SelectOptionValue, ev?: MouseEvent | undefined) => any;
407
407
  "dropdown-scroll": (ev: Event) => any;
408
408
  "dropdown-reach-bottom": (ev: Event) => any;
409
409
  }, string, import('vue').PublicProps, Readonly<SelectProps> & Readonly<{
@@ -411,13 +411,13 @@ declare const __VLS_component: import('vue').DefineComponent<SelectProps, {
411
411
  "onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
412
412
  "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
413
413
  onClear?: (() => any) | undefined;
414
- onSelect?: ((value: OptionValue) => any) | undefined;
414
+ onSelect?: ((value: SelectOptionValue) => any) | undefined;
415
415
  onSearch?: ((value: string) => any) | undefined;
416
416
  "onUpdate:modelValue"?: ((value: import('./type').SelectValue) => any) | undefined;
417
417
  "onUpdate:inputValue"?: ((value: string) => any) | undefined;
418
418
  "onInput-value-change"?: ((value: string) => any) | undefined;
419
419
  onRemove?: ((index: string | number, ev: Event) => any) | undefined;
420
- onExceedLimit?: ((value: OptionValue, ev?: MouseEvent | undefined) => any) | undefined;
420
+ onExceedLimit?: ((value: SelectOptionValue, ev?: MouseEvent | undefined) => any) | undefined;
421
421
  "onDropdown-scroll"?: ((ev: Event) => any) | undefined;
422
422
  "onDropdown-reach-bottom"?: ((ev: Event) => any) | undefined;
423
423
  }>, {
@@ -446,7 +446,7 @@ declare const __VLS_component: import('vue').DefineComponent<SelectProps, {
446
446
  showEmpty: boolean;
447
447
  allowCreate: boolean;
448
448
  maxTagCount: number;
449
- filterOption: import('./type').FilterOption;
449
+ filterOption: boolean | import('..').FilterOption<import('./type').SelectOptionData>;
450
450
  virtualListProps: import('./type').VirtualListProps;
451
451
  triggerProps: import('../Trigger').TriggerProps;
452
452
  searchDelay: number;
@@ -461,7 +461,7 @@ declare const __VLS_component: import('vue').DefineComponent<SelectProps, {
461
461
  readonly popupVisible?: boolean | undefined;
462
462
  readonly defaultPopupVisible?: boolean | undefined;
463
463
  readonly trigger?: import('../Trigger').TriggerType | undefined;
464
- readonly position?: import('../Trigger').TriggerPostion | undefined;
464
+ readonly position?: import('..').PopupPosition | undefined;
465
465
  readonly disabled?: boolean | undefined;
466
466
  readonly popupOffset?: number | undefined;
467
467
  readonly popupTranslate?: number[] | undefined;
@@ -471,9 +471,9 @@ declare const __VLS_component: import('vue').DefineComponent<SelectProps, {
471
471
  readonly clickToClose?: boolean | undefined;
472
472
  readonly clickOutsideToClose?: boolean | undefined;
473
473
  readonly unmountOnClose?: boolean | undefined;
474
- readonly contentClass?: import('../_shared/type').ClassName | undefined;
474
+ readonly contentClass?: import('..').ClassName | undefined;
475
475
  readonly contentStyle?: import('vue').CSSProperties | undefined;
476
- readonly arrowClass?: import('../_shared/type').ClassName | undefined;
476
+ readonly arrowClass?: import('..').ClassName | undefined;
477
477
  readonly arrowStyle?: import('vue').CSSProperties | undefined;
478
478
  readonly animationName?: string | undefined;
479
479
  readonly duration?: number | undefined;
@@ -607,14 +607,14 @@ declare const __VLS_component: import('vue').DefineComponent<SelectProps, {
607
607
  scrollToClose: boolean;
608
608
  autoSetPosition: boolean;
609
609
  alignPoint: boolean;
610
- position: import('../Trigger').TriggerPostion;
610
+ position: import('..').PopupPosition;
611
611
  popupOffset: number;
612
612
  popupTranslate: number[];
613
613
  showArrow: boolean;
614
614
  unmountOnClose: boolean;
615
- contentClass: import('../_shared/type').ClassName;
615
+ contentClass: import('..').ClassName;
616
616
  contentStyle: import('vue').CSSProperties;
617
- arrowClass: import('../_shared/type').ClassName;
617
+ arrowClass: import('..').ClassName;
618
618
  arrowStyle: import('vue').CSSProperties;
619
619
  animationName: string;
620
620
  duration: number;
@@ -661,14 +661,14 @@ declare const __VLS_component: import('vue').DefineComponent<SelectProps, {
661
661
  scrollToClose: boolean;
662
662
  autoSetPosition: boolean;
663
663
  alignPoint: boolean;
664
- position: import('../Trigger').TriggerPostion;
664
+ position: import('..').PopupPosition;
665
665
  popupOffset: number;
666
666
  popupTranslate: number[];
667
667
  showArrow: boolean;
668
668
  unmountOnClose: boolean;
669
- contentClass: import('../_shared/type').ClassName;
669
+ contentClass: import('..').ClassName;
670
670
  contentStyle: import('vue').CSSProperties;
671
- arrowClass: import('../_shared/type').ClassName;
671
+ arrowClass: import('..').ClassName;
672
672
  arrowStyle: import('vue').CSSProperties;
673
673
  animationName: string;
674
674
  duration: number;
@@ -708,7 +708,7 @@ declare const __VLS_component: import('vue').DefineComponent<SelectProps, {
708
708
  readonly size?: import('..').Size | undefined;
709
709
  readonly maxTagCount?: number | undefined;
710
710
  readonly retainInputValue?: import('../InputTag').InputRetainValue | undefined;
711
- readonly formatTag?: import('../InputTag').FormatTag | undefined;
711
+ readonly formatTag?: import('..').Format<TagData> | undefined;
712
712
  readonly uniqueValue?: boolean | undefined;
713
713
  readonly tagNowrap?: boolean | undefined;
714
714
  readonly fieldNames?: Record<string, string> | undefined;
@@ -1 +1 @@
1
- "use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js");const l=require("../_shared/utils/dom.js"),a=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../_shared/utils/locale.js");const o=require("./hooks/useContext.js"),t=require("./SelectIcon.vue.js");;/* empty css */const r=require("./SelectView.vue.js");;/* empty css */const u=require("../Input/index.js"),n=require("../InputTag/index.js"),s=require("../Trigger/index.js"),i=e.defineComponent({name:"Select",__name:"Select",props:{multiple:{type:Boolean,default:!1},modelValue:{type:[String,Number,Boolean,Object,Array],default:void 0},defaultValue:{type:[String,Number,Boolean,Object,Array],default:e=>e.multiple?[]:""},inputValue:{default:void 0},defaultInputValue:{default:""},size:{default:void 0},placeholder:{default:""},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!1},allowSearch:{type:Boolean,default:e=>e.multiple},allowCreate:{type:Boolean,default:!1},maxTagCount:{default:0},popupContainer:{default:void 0},bordered:{type:Boolean,default:!0},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},unmountonClose:{type:Boolean},filterOption:{type:[Boolean,Function],default:void 0},options:{default:()=>[]},virtualListProps:{default:void 0},triggerProps:{default:()=>({contentStyle:{}})},formatLabel:{},fallbackOption:{},showExtraOptions:{type:Boolean,default:!0},valueKey:{default:""},searchDelay:{default:500},limit:{default:0},fieldNames:{default:()=>({})},scrollbar:{type:Boolean,default:!0},showHeaderOnEmpty:{type:Boolean,default:!1},showFooterOnEmpty:{type:Boolean,default:!1},tagNowrap:{type:Boolean,default:!1},hotkeys:{type:Boolean},showEmpty:{type:Boolean,default:!0}},emits:["update:modelValue","update:inputValue","update:popupVisible","change","input-value-change","clear","remove","search","exceedLimit","popup-visible-change","dropdown-scroll","dropdown-reach-bottom","select"],setup(i,{expose:p,emit:d}){const c=i,f=d,{allowClear:v,disabled:m,loading:h,searchDelay:y,showFooterOnEmpty:b,showHeaderOnEmpty:w,multiple:g,allowSearch:B,allowCreate:V,virtualListProps:C}=e.toRefs(c),k=e.ref(),x=e.ref(),{computedVisible:S,computedValue:j,computedInputValue:q,selectOptions:_,createOptions:O}=o().provide(c,f,k),N=e.computed(()=>{const e=g.value?j.value.length:String(j.value).length;return v.value&&!m.value&&!h.value&&!!e}),z=e.computed(()=>(!B.value||h.value)&&!V.value&&a.isUndefined(c.filterOption)),E=async(e,a="")=>{var o,t,r;switch(e){case"create":if(!V.value)return;if(O.value.find(e=>e==q.value))return;O.value.push({label:q.value,value:q.value}),B.value&&(null==(o=k.value)||o.blur());break;case"clear":j.value=g.value?[]:"",f("clear");break;case"search":await l.sleep(y.value),f("search",a);break;case"focus":if(m.value)return;if(S.value)return null==(t=k.value)?void 0:t.blur();S.value=!0,await l.sleep(0),null==(r=k.value)||r.focus();break;case"blur":S.value=!1;break;case"updateValue":j.value=a.map(e=>e.value)}};return p({focus(){var e;null==(e=k.value)||e.focus()},blur(){var e;null==(e=k.value)||e.blur()},getPopupRef:()=>x.value}),(l,a)=>(e.openBlock(),e.createBlock(e.unref(s),e.mergeProps({"popup-visible":e.unref(S),"onUpdate:popupVisible":a[14]||(a[14]=l=>e.isRef(S)?S.value=l:null),"unmount-on-close":l.unmountonClose,"popup-container":l.popupContainer,disabled:e.unref(m),"popup-offset":4,trigger:"focus",position:"bl","animation-name":"slide-dynamic-origin","need-transform-origin":"","auto-fit-popup-width":"","prevent-focus":"",ref_key:"popupRef",ref:x},l.triggerProps),{content:e.withCtx(()=>[e.createVNode(r,{loading:e.unref(h),scrollbar:l.scrollbar,"virtual-list-props":e.unref(C),"show-footer-on-empty":e.unref(b),"show-header-on-empty":e.unref(w)},null,8,["loading","scrollbar","virtual-list-props","show-footer-on-empty","show-header-on-empty"])]),default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["yc-select",{"yc-select-allow-search":e.unref(B),"yc-select-allow-clear":N.value,"yc-select-no-border":!l.bordered},l.$attrs.class]),style:e.normalizeStyle(l.$attrs.style)},[e.renderSlot(l.$slots,"trigger",{},()=>{var o;return[e.unref(g)?(e.openBlock(),e.createBlock(e.unref(n),{key:1,"input-value":e.unref(q),"onUpdate:inputValue":a[7]||(a[7]=l=>e.isRef(q)?q.value=l:null),"model-value":e.unref(_),placeholder:l.placeholder,readonly:z.value,disabled:e.unref(m),size:l.size,error:l.error,"max-tag-count":l.maxTagCount,"tag-nowrap":l.tagNowrap,ref_key:"inputRef",ref:k,onFocus:a[8]||(a[8]=e=>E("focus")),onBlur:a[9]||(a[9]=e=>E("blur")),onInput:a[10]||(a[10]=e=>E("search",e)),onRemove:a[11]||(a[11]=(e,a)=>l.$emit("remove",e,a)),onPressEnter:a[12]||(a[12]=e=>E("create")),"onUpdate:modelValue":a[13]||(a[13]=e=>E("updateValue",e))},{tag:e.withCtx(({tag:a})=>[l.$slots.label?e.renderSlot(l.$slots,"label",{key:0,data:a}):e.createCommentVNode("",!0)]),suffix:e.withCtx(()=>[e.createVNode(t,{"popup-visible":e.unref(S),"allow-search":e.unref(B),loading:e.unref(h),"show-clear-btn":N.value,onClear:a[6]||(a[6]=e=>E("clear"))},null,8,["popup-visible","allow-search","loading","show-clear-btn"])]),_:3},8,["input-value","model-value","placeholder","readonly","disabled","size","error","max-tag-count","tag-nowrap"])):(e.openBlock(),e.createBlock(e.unref(u),{key:0,modelValue:e.unref(q),"onUpdate:modelValue":a[1]||(a[1]=l=>e.isRef(q)?q.value=l:null),"show-input":e.unref(S),readonly:z.value,disabled:e.unref(m),size:l.size,error:l.error,placeholder:(null==(o=e.unref(_)[0])?void 0:o.label)||"",ref_key:"inputRef",ref:k,onClick:a[2]||(a[2]=e=>E("focus")),onBlur:a[3]||(a[3]=e=>E("blur")),onInput:a[4]||(a[4]=e=>E("search",e)),onPressEnter:a[5]||(a[5]=e=>E("create"))},{label:e.withCtx(()=>[e.renderSlot(l.$slots,"label",{data:e.unref(_)[0]},()=>{var a;return[e.createElementVNode("span",{class:e.normalizeClass([{"yc-input-placeholder":!e.unref(_).length}])},e.toDisplayString((null==(a=e.unref(_)[0])?void 0:a.label)||l.placeholder),3)]})]),suffix:e.withCtx(()=>[e.createVNode(t,{"popup-visible":e.unref(S),"allow-search":e.unref(B),loading:e.unref(h),"show-clear-btn":N.value,onClear:a[0]||(a[0]=e=>E("clear"))},null,8,["popup-visible","allow-search","loading","show-clear-btn"])]),_:3},8,["modelValue","show-input","readonly","disabled","size","error","placeholder"]))]})],6)]),_:3},16,["popup-visible","unmount-on-close","popup-container","disabled"]))}});module.exports=i;
1
+ "use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js");const l=require("../_shared/utils/dom.js"),a=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../_shared/utils/locale.js");const o=require("./hooks/useContext.js"),r=require("./SelectIcon.vue.js");;/* empty css */const t=require("./SelectView.vue.js");;/* empty css */const u=require("../Input/index.js"),n=require("../InputTag/index.js"),s=require("../Trigger/index.js"),i=e.defineComponent({name:"Select",__name:"Select",props:{multiple:{type:Boolean,default:!1},modelValue:{type:[String,Number,Boolean,Array],default:void 0},defaultValue:{type:[String,Number,Boolean,Array],default:e=>e.multiple?[]:""},inputValue:{default:void 0},defaultInputValue:{default:""},size:{default:void 0},placeholder:{default:""},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!1},allowSearch:{type:Boolean,default:e=>e.multiple},allowCreate:{type:Boolean,default:!1},maxTagCount:{default:0},popupContainer:{default:void 0},bordered:{type:Boolean,default:!0},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},unmountonClose:{type:Boolean},filterOption:{type:[Boolean,Function],default:void 0},options:{default:()=>[]},virtualListProps:{default:void 0},triggerProps:{default:()=>({contentStyle:{}})},formatLabel:{},fallbackOption:{},showExtraOptions:{type:Boolean,default:!0},valueKey:{default:""},searchDelay:{default:500},limit:{default:0},fieldNames:{default:()=>({})},scrollbar:{type:Boolean,default:!0},showHeaderOnEmpty:{type:Boolean,default:!1},showFooterOnEmpty:{type:Boolean,default:!1},tagNowrap:{type:Boolean,default:!1},hotkeys:{type:Boolean},showEmpty:{type:Boolean,default:!0}},emits:["update:modelValue","update:inputValue","update:popupVisible","change","input-value-change","clear","remove","search","exceedLimit","popup-visible-change","dropdown-scroll","dropdown-reach-bottom","select"],setup(i,{expose:p,emit:d}){const c=i,f=d,{allowClear:v,disabled:m,loading:h,searchDelay:y,showFooterOnEmpty:b,showHeaderOnEmpty:w,multiple:g,allowSearch:B,allowCreate:V,virtualListProps:C}=e.toRefs(c),k=e.ref(),x=e.ref(),{computedVisible:S,computedValue:q,computedInputValue:j,selectOptions:_,createOptions:N}=o().provide(c,f,k),z=e.computed(()=>{const e=g.value?q.value.length:String(q.value).length;return v.value&&!m.value&&!h.value&&!!e}),E=e.computed(()=>(!B.value||h.value)&&!V.value&&a.isUndefined(c.filterOption)),O=async(e,a="")=>{var o,r,t;switch(e){case"create":if(!V.value)return;if(N.value.find(e=>e==j.value))return;N.value.push({label:j.value,value:j.value}),B.value&&(null==(o=k.value)||o.blur());break;case"clear":q.value=g.value?[]:"",f("clear");break;case"search":await l.sleep(y.value),f("search",a);break;case"focus":if(m.value)return;if(S.value)return null==(r=k.value)?void 0:r.blur();S.value=!0,await l.sleep(0),null==(t=k.value)||t.focus();break;case"blur":S.value=!1;break;case"updateValue":q.value=a.map(e=>e.value)}};return p({focus(){var e;null==(e=k.value)||e.focus()},blur(){var e;null==(e=k.value)||e.blur()},getPopupRef:()=>x.value}),(l,a)=>(e.openBlock(),e.createBlock(e.unref(s),e.mergeProps({"popup-visible":e.unref(S),"onUpdate:popupVisible":a[14]||(a[14]=l=>e.isRef(S)?S.value=l:null),"unmount-on-close":l.unmountonClose,"popup-container":l.popupContainer,disabled:e.unref(m),"popup-offset":4,trigger:"focus",position:"bl","animation-name":"slide-dynamic-origin","need-transform-origin":"","auto-fit-popup-width":"","prevent-focus":"",ref_key:"popupRef",ref:x},l.triggerProps),{content:e.withCtx(()=>[e.createVNode(t,{loading:e.unref(h),scrollbar:l.scrollbar,"virtual-list-props":e.unref(C),"show-footer-on-empty":e.unref(b),"show-header-on-empty":e.unref(w)},null,8,["loading","scrollbar","virtual-list-props","show-footer-on-empty","show-header-on-empty"])]),default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["yc-select",{"yc-select-allow-search":e.unref(B),"yc-select-allow-clear":z.value,"yc-select-no-border":!l.bordered},l.$attrs.class]),style:e.normalizeStyle(l.$attrs.style)},[e.renderSlot(l.$slots,"trigger",{},()=>{var o;return[e.unref(g)?(e.openBlock(),e.createBlock(e.unref(n),{key:1,"input-value":e.unref(j),"onUpdate:inputValue":a[7]||(a[7]=l=>e.isRef(j)?j.value=l:null),"model-value":e.unref(_),placeholder:l.placeholder,readonly:E.value,disabled:e.unref(m),size:l.size,error:l.error,"max-tag-count":l.maxTagCount,"tag-nowrap":l.tagNowrap,ref_key:"inputRef",ref:k,onFocus:a[8]||(a[8]=e=>O("focus")),onBlur:a[9]||(a[9]=e=>O("blur")),onInput:a[10]||(a[10]=e=>O("search",e)),onRemove:a[11]||(a[11]=(e,a)=>l.$emit("remove",e,a)),onPressEnter:a[12]||(a[12]=e=>O("create")),"onUpdate:modelValue":a[13]||(a[13]=e=>O("updateValue",e))},{tag:e.withCtx(({tag:a})=>[l.$slots.label?e.renderSlot(l.$slots,"label",{key:0,data:a}):e.createCommentVNode("",!0)]),suffix:e.withCtx(()=>[e.createVNode(r,{"popup-visible":e.unref(S),"allow-search":e.unref(B),loading:e.unref(h),"show-clear-btn":z.value,onClear:a[6]||(a[6]=e=>O("clear"))},null,8,["popup-visible","allow-search","loading","show-clear-btn"])]),_:3},8,["input-value","model-value","placeholder","readonly","disabled","size","error","max-tag-count","tag-nowrap"])):(e.openBlock(),e.createBlock(e.unref(u),{key:0,modelValue:e.unref(j),"onUpdate:modelValue":a[1]||(a[1]=l=>e.isRef(j)?j.value=l:null),"show-input":e.unref(S),readonly:E.value,disabled:e.unref(m),size:l.size,error:l.error,placeholder:(null==(o=e.unref(_)[0])?void 0:o.label)||"",ref_key:"inputRef",ref:k,onClick:a[2]||(a[2]=e=>O("focus")),onBlur:a[3]||(a[3]=e=>O("blur")),onInput:a[4]||(a[4]=e=>O("search",e)),onPressEnter:a[5]||(a[5]=e=>O("create"))},{label:e.withCtx(()=>[e.renderSlot(l.$slots,"label",{data:e.unref(_)[0]},()=>{var a;return[e.createElementVNode("span",{class:e.normalizeClass([{"yc-input-placeholder":!e.unref(_).length}])},e.toDisplayString((null==(a=e.unref(_)[0])?void 0:a.label)||l.placeholder),3)]})]),suffix:e.withCtx(()=>[e.createVNode(r,{"popup-visible":e.unref(S),"allow-search":e.unref(B),loading:e.unref(h),"show-clear-btn":z.value,onClear:a[0]||(a[0]=e=>O("clear"))},null,8,["popup-visible","allow-search","loading","show-clear-btn"])]),_:3},8,["modelValue","show-input","readonly","disabled","size","error","placeholder"]))]})],6)]),_:3},16,["popup-visible","unmount-on-close","popup-container","disabled"]))}});module.exports=i;
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),o=require("./hooks/useContext.js"),n=require("../_shared/icons/IconArrowDown.vue.js"),c=;/* empty css */,/* empty css */require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js"),require("../_shared/utils/locale.js"),/* empty css */;/* empty css */const r=require("../Spin/index.js"),t={class:"yc-select-suffix-icon"},s={key:0,class:"yc-select-search-icon"},l=e.defineComponent({__name:"SelectIcon",props:{loading:{type:Boolean},popupVisible:{type:Boolean},showClearBtn:{type:Boolean},allowSearch:{type:Boolean}},emits:["clear"],setup(l){const{slots:i}=o().inject(),a=e=>i[e];return(o,l)=>{const u=e.resolveComponent("icon-search");return o.loading?(e.openBlock(),e.createBlock(e.unref(r),{key:0,size:12,class:"yc-select-loading-icon"},e.createSlots({_:2},[o.$slots["loading-icon"]?{name:"icon",fn:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a("loading-icon"))))]),key:"0"}:void 0]),1024)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",t,[e.unref(i)["arrow-icon"]?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a("arrow-icon")),{key:0})):(e.openBlock(),e.createBlock(e.unref(n),{key:1,rotate:o.popupVisible?180:0},null,8,["rotate"]))]),o.allowSearch?(e.openBlock(),e.createElementBlock("div",s,[e.unref(i)["search-icon"]?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a("search-icon")),{key:0})):(e.openBlock(),e.createBlock(u,{key:1}))])):e.createCommentVNode("",!0),o.showClearBtn?(e.openBlock(),e.createBlock(e.unref(c),{key:1,class:"yc-select-clear-icon",onClick:l[0]||(l[0]=e.withModifiers(e=>o.$emit("clear"),["stop"]))})):e.createCommentVNode("",!0)],64))}}});module.exports=l;
1
+ "use strict";const e=require("vue"),o=require("./hooks/useContext.js"),n=require("../_shared/icons/IconArrowDown.vue.js"),c=;/* empty css */,/* empty css */require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js"),require("../_shared/utils/locale.js"),/* empty css */;/* empty css */const r=require("../Spin/index.js"),t={class:"yc-select-suffix-icon"},s={key:0,class:"yc-select-search-icon"},l=e.defineComponent({__name:"SelectIcon",props:{loading:{type:Boolean},popupVisible:{type:Boolean},showClearBtn:{type:Boolean},allowSearch:{type:Boolean}},emits:["clear"],setup(l){const{slots:i}=o().inject(),a=e=>i[e];return(o,l)=>{const u=e.resolveComponent("icon-search");return o.loading?(e.openBlock(),e.createBlock(e.unref(r),{key:0,size:12,class:"yc-select-loading-icon"},e.createSlots({_:2},[o.$slots["loading-icon"]?{name:"icon",fn:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a("loading-icon"))))]),key:"0"}:void 0]),1024)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",t,[e.unref(i)["arrow-icon"]?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a("arrow-icon")),{key:0})):(e.openBlock(),e.createBlock(e.unref(n),{key:1,rotate:o.popupVisible?180:0},null,8,["rotate"]))]),o.allowSearch?(e.openBlock(),e.createElementBlock("div",s,[e.unref(i)["search-icon"]?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a("search-icon")),{key:0})):(e.openBlock(),e.createBlock(u,{key:1}))])):e.createCommentVNode("",!0),o.showClearBtn?(e.openBlock(),e.createBlock(e.unref(c),{key:1,class:"yc-select-clear-icon",onClick:l[0]||(l[0]=e.withModifiers(e=>o.$emit("clear"),["stop"]))})):e.createCommentVNode("",!0)],64))}}});module.exports=l;
@@ -1 +1 @@
1
- "use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js");const l=require("../_shared/utils/vue-utils.js");require("../_shared/utils/locale.js");const o=require("./hooks/useContext.js"),r=require("./Option.vue.js");;/* empty css */const t=require("./Optgroup.vue.js");;/* empty css */const n=require("../Scrollbar/index.js"),a={class:"yc-select-dropdown-list"},s=e.defineComponent({__name:"SelectRealList",props:{scrollbar:{type:Boolean}},setup(s,{expose:i}){const{fieldKey:c,renderOptions:u,slots:p,emits:d}=o().inject(),k=e.ref(),f=e=>{if(p.option)return()=>{var l;return(null==(l=p.option)?void 0:l.call(p,{data:e}))||[]};const{render:o,label:r}=c.value;return l.getSlotFunction(e[o]?e[o]:e[r])};return i({getScrollRef(){var e;return null==(e=k.value)?void 0:e.getScrollRef()}}),(l,o)=>(e.openBlock(),e.createBlock(e.unref(n),{scrollbar:l.scrollbar,class:"yc-select-dropdown-list-wrapper"},{default:e.withCtx(()=>[e.createElementVNode("div",a,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(p).default))),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(u),l=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:l.id},[l.isGroup?(e.openBlock(),e.createBlock(t,{key:0,label:l.label},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.options,l=>(e.openBlock(),e.createBlock(r,{key:l[e.unref(c).value],value:l[e.unref(c).value],disabled:l[e.unref(c).disabled],"tag-props":l[e.unref(c).tagProps],"is-fallback-option":l[e.unref(c).isFallbackOption]},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(f(l))))]),_:2},1032,["value","disabled","tag-props","is-fallback-option"]))),128))]),_:2},1032,["label"])):(e.openBlock(),e.createBlock(r,{key:1,value:l[e.unref(c).value],disabled:l[e.unref(c).disabled],"tag-props":l[e.unref(c).tagProps],"is-fallback-option":l[e.unref(c).isFallbackOption]},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(f(l))))]),_:2},1032,["value","disabled","tag-props","is-fallback-option"]))],64))),128))])]),_:1},8,["scrollbar"]))}});module.exports=s;
1
+ "use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js");const l=require("../_shared/utils/vue-utils.js");require("../_shared/utils/locale.js");const o=require("./hooks/useContext.js"),r=require("./Option.vue.js");;/* empty css */const t=require("./Optgroup.vue.js");;/* empty css */const n=require("../Scrollbar/index.js"),a={class:"yc-select-dropdown-list"},s=e.defineComponent({__name:"SelectRealList",props:{scrollbar:{type:Boolean}},setup(s,{expose:c}){const{fieldKey:i,renderOptions:u,slots:p}=o().inject(),d=e.ref(),k=e=>{if(p.option)return()=>{var l;return(null==(l=p.option)?void 0:l.call(p,{data:e}))||[]};const{render:o,label:r}=i.value;return l.getSlotFunction(e[o]?e[o]:e[r])};return c({getScrollRef(){var e;return null==(e=d.value)?void 0:e.getScrollRef()}}),(l,o)=>(e.openBlock(),e.createBlock(e.unref(n),{scrollbar:l.scrollbar,class:"yc-select-dropdown-list-wrapper"},{default:e.withCtx(()=>[e.createElementVNode("div",a,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(p).default))),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(u),l=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:l.id},[l.isGroup?(e.openBlock(),e.createBlock(t,{key:0,label:l.label},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.options,l=>(e.openBlock(),e.createBlock(r,{key:l[e.unref(i).value],value:l[e.unref(i).value],disabled:l[e.unref(i).disabled],"tag-props":l[e.unref(i).tagProps],"is-fallback-option":l[e.unref(i).isFallbackOption]},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(k(l))))]),_:2},1032,["value","disabled","tag-props","is-fallback-option"]))),128))]),_:2},1032,["label"])):(e.openBlock(),e.createBlock(r,{key:1,value:l[e.unref(i).value],disabled:l[e.unref(i).disabled],"tag-props":l[e.unref(i).tagProps],"is-fallback-option":l[e.unref(i).isFallbackOption]},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(k(l))))]),_:2},1032,["value","disabled","tag-props","is-fallback-option"]))],64))),128))])]),_:1},8,["scrollbar"]))}});module.exports=s;
@@ -1,7 +1,7 @@
1
1
  import { Ref, Slots } from 'vue';
2
- import { SelectValue, SelectOptionData, SelectEmits, OptionValue } from '../type';
2
+ import { SelectValue, SelectOptionData, SelectEmits, SelectOptionValue } from '../type';
3
3
  import { InputInstance } from '../../Input';
4
- import { ObjectData, Props } from '../../_shared/type';
4
+ import { RecordType } from '../../_shared/type';
5
5
  type SelectContext = {
6
6
  computedValue: Ref<SelectValue | undefined>;
7
7
  computedInputValue: Ref<string>;
@@ -9,34 +9,34 @@ type SelectContext = {
9
9
  limit: Ref<number>;
10
10
  curIndex: Ref<number>;
11
11
  options: Ref<SelectOptionData[]>;
12
- renderOptions: Ref<ObjectData[]>;
12
+ renderOptions: Ref<RecordType[]>;
13
13
  fieldKey: Ref<Record<string, string>>;
14
14
  isEmpty: Ref<boolean>;
15
15
  slots: Slots;
16
16
  blur: () => void;
17
17
  filterOption: (option: SelectOptionData) => boolean;
18
- getValue: (value: OptionValue | ObjectData) => OptionValue;
19
- collectOption: (props: Props, optionLabel: Ref<string>) => void;
18
+ getValue: (value: SelectOptionValue | RecordType) => SelectOptionValue;
19
+ collectOption: (props: RecordType, optionLabel: Ref<string>) => void;
20
20
  emits: SelectEmits;
21
21
  };
22
22
  declare const _default: () => {
23
- provide: (props: Props, emits: SelectEmits, inputRef: Ref<InputInstance | undefined>) => {
23
+ provide: (props: RecordType, emits: SelectEmits, inputRef: Ref<InputInstance | undefined>) => {
24
24
  computedVisible: import('vue').WritableComputedRef<boolean, boolean>;
25
25
  computedValue: import('vue').WritableComputedRef<SelectValue, SelectValue>;
26
26
  computedInputValue: import('vue').WritableComputedRef<string, string>;
27
27
  selectOptions: import('vue').ComputedRef<{
28
28
  id: string;
29
- label: OptionValue | undefined;
29
+ label: SelectOptionValue | undefined;
30
30
  render?: import('../../_shared/type').RenderContent;
31
- value?: OptionValue;
31
+ value?: SelectOptionValue;
32
32
  disabled?: boolean;
33
33
  tagProps?: import('../..').TagProps;
34
34
  isFallbackOption?: boolean;
35
35
  }[]>;
36
36
  createOptions: Ref<{
37
- render?: string | import('vue').RenderFunction | ObjectData[] | undefined;
37
+ render?: string | import('vue').RenderFunction | RecordType<any>[] | undefined;
38
38
  label?: string | undefined;
39
- value?: OptionValue | undefined;
39
+ value?: SelectOptionValue | undefined;
40
40
  disabled?: boolean | undefined;
41
41
  tagProps?: {
42
42
  color?: string | undefined;
@@ -54,9 +54,9 @@ declare const _default: () => {
54
54
  id?: string | undefined;
55
55
  isFallbackOption?: boolean | undefined;
56
56
  }[], SelectOptionData[] | {
57
- render?: string | import('vue').RenderFunction | ObjectData[] | undefined;
57
+ render?: string | import('vue').RenderFunction | RecordType<any>[] | undefined;
58
58
  label?: string | undefined;
59
- value?: OptionValue | undefined;
59
+ value?: SelectOptionValue | undefined;
60
60
  disabled?: boolean | undefined;
61
61
  tagProps?: {
62
62
  color?: string | undefined;
@@ -74,7 +74,7 @@ declare const _default: () => {
74
74
  id?: string | undefined;
75
75
  isFallbackOption?: boolean | undefined;
76
76
  }[]>;
77
- options: import('vue').ComputedRef<ObjectData[]>;
77
+ options: import('vue').ComputedRef<RecordType[]>;
78
78
  };
79
79
  inject: () => SelectContext;
80
80
  };
@@ -1,20 +1,20 @@
1
1
  import { Ref } from 'vue';
2
- import { ObjectData, Props } from '../../_shared/type';
3
- import { SelectValue, SelectOption, FallbackOption, FormatLabel, SelectOptionData, OptionValue } from '../index';
2
+ import { RecordType } from '../../_shared/type';
3
+ import { SelectProps, SelectValue, SelectOption, SelectOptionData, SelectOptionValue } from '../index';
4
4
  declare const _default: (params: {
5
5
  multiple: Ref<boolean>;
6
6
  computedValue: Ref<SelectValue>;
7
7
  provideOptions: Ref<SelectOption[]>;
8
8
  showExtraOptions: Ref<boolean>;
9
- getValue: (value: OptionValue) => OptionValue;
10
- fallbackOption?: FallbackOption;
11
- formatLabel?: FormatLabel;
9
+ getValue: (value: SelectOptionValue) => SelectOptionValue;
10
+ fallbackOption?: SelectProps["fallbackOption"];
11
+ formatLabel?: SelectProps["formatLabel"];
12
12
  }) => {
13
- options: import('vue').ComputedRef<ObjectData[]>;
13
+ options: import('vue').ComputedRef<RecordType[]>;
14
14
  createOptions: Ref<{
15
- render?: string | import('vue').RenderFunction | ObjectData[] | undefined;
15
+ render?: string | import('vue').RenderFunction | RecordType<any>[] | undefined;
16
16
  label?: string | undefined;
17
- value?: OptionValue | undefined;
17
+ value?: SelectOptionValue | undefined;
18
18
  disabled?: boolean | undefined;
19
19
  tagProps?: {
20
20
  color?: string | undefined;
@@ -32,9 +32,9 @@ declare const _default: (params: {
32
32
  id?: string | undefined;
33
33
  isFallbackOption?: boolean | undefined;
34
34
  }[], SelectOptionData[] | {
35
- render?: string | import('vue').RenderFunction | ObjectData[] | undefined;
35
+ render?: string | import('vue').RenderFunction | RecordType<any>[] | undefined;
36
36
  label?: string | undefined;
37
- value?: OptionValue | undefined;
37
+ value?: SelectOptionValue | undefined;
38
38
  disabled?: boolean | undefined;
39
39
  tagProps?: {
40
40
  color?: string | undefined;
@@ -55,13 +55,13 @@ declare const _default: (params: {
55
55
  renderOptions: import('vue').ComputedRef<SelectOption[]>;
56
56
  selectOptions: import('vue').ComputedRef<{
57
57
  id: string;
58
- label: OptionValue | undefined;
58
+ label: SelectOptionValue | undefined;
59
59
  render?: import('../../_shared/type').RenderContent;
60
- value?: OptionValue;
60
+ value?: SelectOptionValue;
61
61
  disabled?: boolean;
62
62
  tagProps?: import('../..').TagProps;
63
63
  isFallbackOption?: boolean;
64
64
  }[]>;
65
- collectOption: (props: Props, optionLabel: Ref<string>) => void;
65
+ collectOption: (props: RecordType, optionLabel: Ref<string>) => void;
66
66
  };
67
67
  export default _default;
@@ -12,13 +12,13 @@ declare const Select: {
12
12
  "onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
13
13
  "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
14
14
  onClear?: (() => any) | undefined;
15
- onSelect?: ((value: import('./type').OptionValue) => any) | undefined;
15
+ onSelect?: ((value: import('./type').SelectOptionValue) => any) | undefined;
16
16
  onSearch?: ((value: string) => any) | undefined;
17
17
  "onUpdate:modelValue"?: ((value: import('./type').SelectValue) => any) | undefined;
18
18
  "onUpdate:inputValue"?: ((value: string) => any) | undefined;
19
19
  "onInput-value-change"?: ((value: string) => any) | undefined;
20
20
  onRemove?: ((index: string | number, ev: Event) => any) | undefined;
21
- onExceedLimit?: ((value: import('./type').OptionValue, ev?: MouseEvent | undefined) => any) | undefined;
21
+ onExceedLimit?: ((value: import('./type').SelectOptionValue, ev?: MouseEvent | undefined) => any) | undefined;
22
22
  "onDropdown-scroll"?: ((ev: Event) => any) | undefined;
23
23
  "onDropdown-reach-bottom"?: ((ev: Event) => any) | undefined;
24
24
  }>, {
@@ -30,13 +30,13 @@ declare const Select: {
30
30
  "update:popupVisible": (value: boolean) => any;
31
31
  "popup-visible-change": (value: boolean) => any;
32
32
  clear: () => any;
33
- select: (value: import('./type').OptionValue) => any;
33
+ select: (value: import('./type').SelectOptionValue) => any;
34
34
  search: (value: string) => any;
35
35
  "update:modelValue": (value: import('./type').SelectValue) => any;
36
36
  "update:inputValue": (value: string) => any;
37
37
  "input-value-change": (value: string) => any;
38
38
  remove: (index: string | number, ev: Event) => any;
39
- exceedLimit: (value: import('./type').OptionValue, ev?: MouseEvent | undefined) => any;
39
+ exceedLimit: (value: import('./type').SelectOptionValue, ev?: MouseEvent | undefined) => any;
40
40
  "dropdown-scroll": (ev: Event) => any;
41
41
  "dropdown-reach-bottom": (ev: Event) => any;
42
42
  }, import('vue').PublicProps, {
@@ -65,7 +65,7 @@ declare const Select: {
65
65
  showEmpty: boolean;
66
66
  allowCreate: boolean;
67
67
  maxTagCount: number;
68
- filterOption: import('./type').FilterOption;
68
+ filterOption: boolean | import('..').FilterOption<import('./type').SelectOptionData>;
69
69
  virtualListProps: import('./type').VirtualListProps;
70
70
  triggerProps: import('..').TriggerProps;
71
71
  searchDelay: number;
@@ -80,7 +80,7 @@ declare const Select: {
80
80
  readonly popupVisible?: boolean | undefined;
81
81
  readonly defaultPopupVisible?: boolean | undefined;
82
82
  readonly trigger?: import('..').TriggerType | undefined;
83
- readonly position?: import('..').TriggerPostion | undefined;
83
+ readonly position?: import('..').PopupPosition | undefined;
84
84
  readonly disabled?: boolean | undefined;
85
85
  readonly popupOffset?: number | undefined;
86
86
  readonly popupTranslate?: number[] | undefined;
@@ -90,9 +90,9 @@ declare const Select: {
90
90
  readonly clickToClose?: boolean | undefined;
91
91
  readonly clickOutsideToClose?: boolean | undefined;
92
92
  readonly unmountOnClose?: boolean | undefined;
93
- readonly contentClass?: import('../_shared/type').ClassName | undefined;
93
+ readonly contentClass?: import('..').ClassName | undefined;
94
94
  readonly contentStyle?: import('vue').CSSProperties | undefined;
95
- readonly arrowClass?: import('../_shared/type').ClassName | undefined;
95
+ readonly arrowClass?: import('..').ClassName | undefined;
96
96
  readonly arrowStyle?: import('vue').CSSProperties | undefined;
97
97
  readonly animationName?: string | undefined;
98
98
  readonly duration?: number | undefined;
@@ -226,14 +226,14 @@ declare const Select: {
226
226
  scrollToClose: boolean;
227
227
  autoSetPosition: boolean;
228
228
  alignPoint: boolean;
229
- position: import('..').TriggerPostion;
229
+ position: import('..').PopupPosition;
230
230
  popupOffset: number;
231
231
  popupTranslate: number[];
232
232
  showArrow: boolean;
233
233
  unmountOnClose: boolean;
234
- contentClass: import('../_shared/type').ClassName;
234
+ contentClass: import('..').ClassName;
235
235
  contentStyle: import('vue').CSSProperties;
236
- arrowClass: import('../_shared/type').ClassName;
236
+ arrowClass: import('..').ClassName;
237
237
  arrowStyle: import('vue').CSSProperties;
238
238
  animationName: string;
239
239
  duration: number;
@@ -280,14 +280,14 @@ declare const Select: {
280
280
  scrollToClose: boolean;
281
281
  autoSetPosition: boolean;
282
282
  alignPoint: boolean;
283
- position: import('..').TriggerPostion;
283
+ position: import('..').PopupPosition;
284
284
  popupOffset: number;
285
285
  popupTranslate: number[];
286
286
  showArrow: boolean;
287
287
  unmountOnClose: boolean;
288
- contentClass: import('../_shared/type').ClassName;
288
+ contentClass: import('..').ClassName;
289
289
  contentStyle: import('vue').CSSProperties;
290
- arrowClass: import('../_shared/type').ClassName;
290
+ arrowClass: import('..').ClassName;
291
291
  arrowStyle: import('vue').CSSProperties;
292
292
  animationName: string;
293
293
  duration: number;
@@ -327,7 +327,7 @@ declare const Select: {
327
327
  readonly size?: import('..').Size | undefined;
328
328
  readonly maxTagCount?: number | undefined;
329
329
  readonly retainInputValue?: import('..').InputRetainValue | undefined;
330
- readonly formatTag?: import('..').FormatTag | undefined;
330
+ readonly formatTag?: import('..').Format<import('..').TagData> | undefined;
331
331
  readonly uniqueValue?: boolean | undefined;
332
332
  readonly tagNowrap?: boolean | undefined;
333
333
  readonly fieldNames?: Record<string, string> | undefined;
@@ -464,13 +464,13 @@ declare const Select: {
464
464
  "onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
465
465
  "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
466
466
  onClear?: (() => any) | undefined;
467
- onSelect?: ((value: import('./type').OptionValue) => any) | undefined;
467
+ onSelect?: ((value: import('./type').SelectOptionValue) => any) | undefined;
468
468
  onSearch?: ((value: string) => any) | undefined;
469
469
  "onUpdate:modelValue"?: ((value: import('./type').SelectValue) => any) | undefined;
470
470
  "onUpdate:inputValue"?: ((value: string) => any) | undefined;
471
471
  "onInput-value-change"?: ((value: string) => any) | undefined;
472
472
  onRemove?: ((index: string | number, ev: Event) => any) | undefined;
473
- onExceedLimit?: ((value: import('./type').OptionValue, ev?: MouseEvent | undefined) => any) | undefined;
473
+ onExceedLimit?: ((value: import('./type').SelectOptionValue, ev?: MouseEvent | undefined) => any) | undefined;
474
474
  "onDropdown-scroll"?: ((ev: Event) => any) | undefined;
475
475
  "onDropdown-reach-bottom"?: ((ev: Event) => any) | undefined;
476
476
  }>, {
@@ -503,7 +503,7 @@ declare const Select: {
503
503
  showEmpty: boolean;
504
504
  allowCreate: boolean;
505
505
  maxTagCount: number;
506
- filterOption: import('./type').FilterOption;
506
+ filterOption: boolean | import('..').FilterOption<import('./type').SelectOptionData>;
507
507
  virtualListProps: import('./type').VirtualListProps;
508
508
  triggerProps: import('..').TriggerProps;
509
509
  searchDelay: number;
@@ -519,13 +519,13 @@ declare const Select: {
519
519
  "onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
520
520
  "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
521
521
  onClear?: (() => any) | undefined;
522
- onSelect?: ((value: import('./type').OptionValue) => any) | undefined;
522
+ onSelect?: ((value: import('./type').SelectOptionValue) => any) | undefined;
523
523
  onSearch?: ((value: string) => any) | undefined;
524
524
  "onUpdate:modelValue"?: ((value: import('./type').SelectValue) => any) | undefined;
525
525
  "onUpdate:inputValue"?: ((value: string) => any) | undefined;
526
526
  "onInput-value-change"?: ((value: string) => any) | undefined;
527
527
  onRemove?: ((index: string | number, ev: Event) => any) | undefined;
528
- onExceedLimit?: ((value: import('./type').OptionValue, ev?: MouseEvent | undefined) => any) | undefined;
528
+ onExceedLimit?: ((value: import('./type').SelectOptionValue, ev?: MouseEvent | undefined) => any) | undefined;
529
529
  "onDropdown-scroll"?: ((ev: Event) => any) | undefined;
530
530
  "onDropdown-reach-bottom"?: ((ev: Event) => any) | undefined;
531
531
  }>, {
@@ -537,13 +537,13 @@ declare const Select: {
537
537
  "update:popupVisible": (value: boolean) => any;
538
538
  "popup-visible-change": (value: boolean) => any;
539
539
  clear: () => any;
540
- select: (value: import('./type').OptionValue) => any;
540
+ select: (value: import('./type').SelectOptionValue) => any;
541
541
  search: (value: string) => any;
542
542
  "update:modelValue": (value: import('./type').SelectValue) => any;
543
543
  "update:inputValue": (value: string) => any;
544
544
  "input-value-change": (value: string) => any;
545
545
  remove: (index: string | number, ev: Event) => any;
546
- exceedLimit: (value: import('./type').OptionValue, ev?: MouseEvent | undefined) => any;
546
+ exceedLimit: (value: import('./type').SelectOptionValue, ev?: MouseEvent | undefined) => any;
547
547
  "dropdown-scroll": (ev: Event) => any;
548
548
  "dropdown-reach-bottom": (ev: Event) => any;
549
549
  }, string, {
@@ -572,7 +572,7 @@ declare const Select: {
572
572
  showEmpty: boolean;
573
573
  allowCreate: boolean;
574
574
  maxTagCount: number;
575
- filterOption: import('./type').FilterOption;
575
+ filterOption: boolean | import('..').FilterOption<import('./type').SelectOptionData>;
576
576
  virtualListProps: import('./type').VirtualListProps;
577
577
  triggerProps: import('..').TriggerProps;
578
578
  searchDelay: number;
@@ -585,7 +585,7 @@ declare const Select: {
585
585
  option: {
586
586
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').OptionProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
587
587
  disabled: boolean;
588
- value: import('./type').OptionValue;
588
+ value: import('./type').SelectOptionValue;
589
589
  label: string;
590
590
  isFallbackOption: boolean;
591
591
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
@@ -599,7 +599,7 @@ declare const Select: {
599
599
  Defaults: {};
600
600
  }, Readonly<import('./type').OptionProps> & Readonly<{}>, {}, {}, {}, {}, {
601
601
  disabled: boolean;
602
- value: import('./type').OptionValue;
602
+ value: import('./type').SelectOptionValue;
603
603
  label: string;
604
604
  isFallbackOption: boolean;
605
605
  }>;
@@ -608,7 +608,7 @@ declare const Select: {
608
608
  __isSuspense?: never;
609
609
  } & import('vue').ComponentOptionsBase<Readonly<import('./type').OptionProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
610
610
  disabled: boolean;
611
- value: import('./type').OptionValue;
611
+ value: import('./type').SelectOptionValue;
612
612
  label: string;
613
613
  isFallbackOption: boolean;
614
614
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {