yc-design-vue 1.0.2 → 1.0.4

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 (577) hide show
  1. package/es/Affix/index.vue.js +1 -1
  2. package/es/Affix/type.d.ts +3 -2
  3. package/es/Alert/index.vue2.js +1 -1
  4. package/es/Alert/type.d.ts +6 -5
  5. package/es/Anchor/Anchor.vue2.js +1 -1
  6. package/es/Anchor/AnchorLink.vue2.js +1 -1
  7. package/es/Anchor/hooks/useContext.js +1 -1
  8. package/es/Anchor/type.d.ts +4 -3
  9. package/es/AutoComplete/index.d.ts +65 -2
  10. package/es/AutoComplete/index.vue.d.ts +130 -4
  11. package/es/AutoComplete/index.vue.js +1 -1
  12. package/es/AutoComplete/type.d.ts +5 -4
  13. package/es/Avatar/Avatar.vue2.js +1 -1
  14. package/es/Avatar/AvatarGroup.vue.js +1 -1
  15. package/es/Avatar/AvatarGroup.vue2.js +3 -3
  16. package/es/Avatar/type.d.ts +4 -4
  17. package/es/BackTop/index.vue2.js +1 -1
  18. package/es/BackTop/type.d.ts +2 -1
  19. package/es/Badge/index.vue.js +1 -1
  20. package/es/Badge/index.vue2.js +3 -3
  21. package/es/Badge/type.d.ts +3 -3
  22. package/es/Breadcrumb/Breadcrumb.vue2.js +1 -1
  23. package/es/Breadcrumb/BreadcrumbItem.vue2.js +1 -1
  24. package/es/Breadcrumb/BreadcrumbMore.vue.js +1 -1
  25. package/es/Breadcrumb/BreadcrumbSeparator.vue2.js +1 -1
  26. package/es/Breadcrumb/type.d.ts +9 -8
  27. package/es/Button/Button.vue.js +1 -1
  28. package/es/Button/Button.vue2.js +2 -2
  29. package/es/Button/type.d.ts +4 -3
  30. package/es/Calendar/Calendar.vue2.js +1 -1
  31. package/es/Calendar/CalendarMonth.vue2.js +1 -1
  32. package/es/Calendar/CalendarYear.vue2.js +1 -1
  33. package/es/Calendar/type.d.ts +5 -4
  34. package/es/Card/CardMeta.vue2.js +1 -1
  35. package/es/Card/type.d.ts +10 -10
  36. package/es/Carousel/Carousel.vue2.js +1 -1
  37. package/es/Carousel/CarouselArrow.vue2.js +1 -1
  38. package/es/Carousel/CarouselIndicator.vue2.js +1 -1
  39. package/es/Carousel/hooks/useContext.js +1 -1
  40. package/es/Carousel/type.d.ts +3 -2
  41. package/es/Cascader/Cascader.vue2.js +1 -1
  42. package/es/Cascader/CascaderIcon.vue2.js +1 -1
  43. package/es/Cascader/CascaderOption.vue2.js +1 -1
  44. package/es/Cascader/hooks/useContext.js +1 -1
  45. package/es/Cascader/type.d.ts +10 -10
  46. package/es/Checkbox/Checkbox.vue2.js +1 -1
  47. package/es/Checkbox/hooks/useContext.d.ts +2 -5
  48. package/es/Checkbox/hooks/useContext.js +1 -1
  49. package/es/Checkbox/type.d.ts +9 -8
  50. package/es/Collapse/CollapseItem.vue2.js +1 -1
  51. package/es/Collapse/hooks/useContext.js +1 -1
  52. package/es/Collapse/type.d.ts +9 -8
  53. package/es/ColorPicker/ColorControl.vue2.js +1 -1
  54. package/es/ColorPicker/ColorInput.vue2.js +1 -1
  55. package/es/ColorPicker/ColorPalette.vue2.js +1 -1
  56. package/es/Comment/index.vue2.js +1 -1
  57. package/es/Comment/type.d.ts +7 -6
  58. package/es/ConfigProvider/index.vue.js +2 -2
  59. package/es/ConfigProvider/type.d.ts +5 -4
  60. package/es/Descriptions/ReuseItem.vue2.js +1 -1
  61. package/es/Descriptions/ReuseTd.vue2.js +1 -1
  62. package/es/Descriptions/type.d.ts +9 -9
  63. package/es/Divider/index.vue2.js +1 -1
  64. package/es/Divider/type.d.ts +2 -1
  65. package/es/Drawer/Drawer.vue2.js +1 -0
  66. package/es/Drawer/DrawerService.vue.js +1 -1
  67. package/es/Drawer/type.d.ts +5 -5
  68. package/es/Dropdown/Dropdown.vue.js +1 -1
  69. package/es/Dropdown/DropdownButton.vue.js +1 -1
  70. package/es/Dropdown/Dsubmenu.vue.d.ts +130 -4
  71. package/es/Dropdown/Dsubmenu.vue2.js +1 -1
  72. package/es/Dropdown/hooks/useContext.js +1 -1
  73. package/es/Dropdown/index.d.ts +65 -2
  74. package/es/Dropdown/type.d.ts +15 -14
  75. package/es/Empty/index.vue2.js +1 -1
  76. package/es/Empty/type.d.ts +2 -1
  77. package/es/Grid/Grid.vue2.js +1 -1
  78. package/es/Grid/GridCol.vue.js +1 -1
  79. package/es/Grid/GridItem.vue.js +1 -1
  80. package/es/Grid/GridRow.vue2.js +1 -1
  81. package/es/Grid/hooks/useContext.js +1 -1
  82. package/es/Grid/type.d.ts +6 -5
  83. package/es/Icon/index.js +1 -1
  84. package/es/Icon/index.vue2.js +1 -1
  85. package/es/Icon/type.d.ts +2 -1
  86. package/es/Image/Image.vue2.js +1 -1
  87. package/es/Image/ImagePreview.vue2.js +1 -1
  88. package/es/Image/ImagePreviewArrow.vue2.js +1 -1
  89. package/es/Image/ImagePreviewToolbar.vue2.js +1 -1
  90. package/es/Image/hooks/useContext.js +1 -1
  91. package/es/Image/type.d.ts +11 -10
  92. package/es/Input/Input.vue2.js +1 -0
  93. package/es/Input/InputSuffix.vue2.js +1 -1
  94. package/es/Input/hooks/useCursor.d.ts +2 -1
  95. package/es/Input/hooks/useCursor.js +2 -2
  96. package/es/Input/hooks/useLimitedInput.js +1 -1
  97. package/es/Input/type.d.ts +6 -5
  98. package/es/InputNumber/InputNumber.vue2.js +1 -1
  99. package/es/InputNumber/InputOperaBtn.vue2.js +1 -1
  100. package/es/InputNumber/type.d.ts +8 -8
  101. package/es/InputTag/index.vue2.js +1 -0
  102. package/es/InputTag/type.d.ts +5 -4
  103. package/es/Layout/Layout.vue.js +1 -1
  104. package/es/Layout/Layout.vue2.js +3 -3
  105. package/es/Layout/LayoutSider.vue2.js +1 -1
  106. package/es/Layout/type.d.ts +8 -7
  107. package/es/Link/index.vue2.js +1 -1
  108. package/es/Link/type.d.ts +3 -2
  109. package/es/List/hooks/useScrollReach.js +1 -1
  110. package/es/List/type.d.ts +15 -14
  111. package/es/Mention/index.d.ts +65 -2
  112. package/es/Mention/index.vue.d.ts +130 -4
  113. package/es/Mention/index.vue.js +1 -1
  114. package/es/Mention/type.d.ts +3 -2
  115. package/es/Menu/Menu.vue2.js +1 -1
  116. package/es/Menu/MenuEllipsis.vue2.js +1 -1
  117. package/es/Menu/MenuItem.vue2.js +1 -1
  118. package/es/Menu/MenuItemGroup.vue2.js +1 -1
  119. package/es/Menu/SubMenu.vue2.js +1 -1
  120. package/es/Menu/hooks/useContext.js +1 -1
  121. package/es/Menu/type.d.ts +11 -10
  122. package/es/Message/Message.vue2.js +1 -1
  123. package/es/Message/index.js +1 -1
  124. package/es/Message/type.d.ts +1 -1
  125. package/es/Modal/Modal.vue2.js +1 -0
  126. package/es/Modal/ModalService.vue.js +1 -1
  127. package/es/Modal/hooks/useModalClose.js +1 -1
  128. package/es/Modal/hooks/useModalDraggable.js +1 -1
  129. package/es/Modal/hooks/useOnBeforeClose.js +1 -1
  130. package/es/Modal/type.d.ts +5 -5
  131. package/es/Notification/Notification.vue2.js +1 -1
  132. package/es/Notification/index.js +1 -1
  133. package/es/Notification/type.d.ts +1 -1
  134. package/es/OverflowList/index.vue.js +1 -1
  135. package/es/OverflowList/index.vue2.js +3 -3
  136. package/es/OverflowList/type.d.ts +3 -2
  137. package/es/PageHeader/index.vue2.js +1 -1
  138. package/es/PageHeader/type.d.ts +7 -6
  139. package/es/Pagination/Pagination.vue2.js +1 -1
  140. package/es/Pagination/PaginationItem.vue2.js +1 -1
  141. package/es/Pagination/type.d.ts +8 -8
  142. package/es/Popconfirm/index.d.ts +65 -2
  143. package/es/Popconfirm/index.vue.d.ts +130 -4
  144. package/es/Popconfirm/index.vue.js +1 -1
  145. package/es/Popconfirm/type.d.ts +4 -4
  146. package/es/Popover/index.vue.js +1 -1
  147. package/es/Popover/type.d.ts +4 -4
  148. package/es/Progress/ProgressCircle.vue2.js +2 -2
  149. package/es/Progress/ProgressLine.vue2.js +1 -1
  150. package/es/Progress/ProgressSteps.vue.js +1 -1
  151. package/es/Radio/Radio.vue2.js +1 -1
  152. package/es/Radio/hooks/useContext.d.ts +3 -6
  153. package/es/Radio/type.d.ts +9 -8
  154. package/es/Rate/index.vue2.js +1 -1
  155. package/es/Rate/type.d.ts +3 -2
  156. package/es/ResizeBox/index.vue2.js +1 -1
  157. package/es/ResizeBox/type.d.ts +6 -5
  158. package/es/Result/type.d.ts +6 -5
  159. package/es/Scrollbar/ScrollbarTrack.vue2.js +1 -1
  160. package/es/Scrollbar/type.d.ts +2 -2
  161. package/es/Select/Option.vue2.js +1 -1
  162. package/es/Select/Select.vue.d.ts +130 -4
  163. package/es/Select/Select.vue2.js +1 -1
  164. package/es/Select/SelectIcon.vue2.js +1 -1
  165. package/es/Select/SelectRealList.vue2.js +1 -1
  166. package/es/Select/SelectVirtualList.vue2.js +1 -1
  167. package/es/Select/hooks/useContext.js +1 -1
  168. package/es/Select/hooks/useSelectOptions.js +1 -1
  169. package/es/Select/index.d.ts +65 -2
  170. package/es/Select/type.d.ts +19 -18
  171. package/es/Skeleton/SkeletonLine.vue2.js +1 -1
  172. package/es/Skeleton/type.d.ts +3 -2
  173. package/es/Slider/SliderBtn.vue2.js +1 -1
  174. package/es/Slider/hooks/useContext.js +1 -1
  175. package/es/Slider/hooks/useSliderDraggable.js +1 -1
  176. package/es/Space/index.vue.js +1 -1
  177. package/es/Space/index.vue2.js +3 -3
  178. package/es/Space/type.d.ts +3 -2
  179. package/es/Spin/type.d.ts +4 -3
  180. package/es/Split/index.vue2.js +1 -1
  181. package/es/Split/type.d.ts +5 -4
  182. package/es/Statistic/Countdown.vue.js +1 -1
  183. package/es/Statistic/Statistic.vue2.js +1 -1
  184. package/es/Statistic/type.d.ts +7 -7
  185. package/es/Steps/Step.vue2.js +1 -1
  186. package/es/Steps/hooks/useContext.js +1 -1
  187. package/es/Steps/type.d.ts +8 -7
  188. package/es/Switch/index.vue.js +1 -1
  189. package/es/Switch/index.vue2.js +3 -3
  190. package/es/Switch/type.d.ts +5 -4
  191. package/es/Tabs/TabButton.vue2.js +1 -1
  192. package/es/Tabs/TabPane.vue.js +1 -1
  193. package/es/Tabs/Tabs.vue.js +1 -1
  194. package/es/Tabs/Tabs.vue2.js +3 -3
  195. package/es/Tabs/TabsNavInk.vue2.js +1 -1
  196. package/es/Tabs/TabsTab.vue2.js +1 -1
  197. package/es/Tabs/hooks/useTabsScroll.js +1 -1
  198. package/es/Tabs/type.d.ts +5 -4
  199. package/es/Tag/index.vue2.js +1 -0
  200. package/es/Tag/type.d.ts +4 -3
  201. package/es/Textarea/hooks/useTextareaHeight.js +1 -1
  202. package/es/Textarea/index.vue2.js +1 -1
  203. package/es/TimePicker/TimePicker.vue2.js +1 -1
  204. package/es/TimePicker/TimePickerPanel.vue2.js +1 -1
  205. package/es/TimePicker/hooks/useContext.js +1 -1
  206. package/es/TimePicker/type.d.ts +4 -3
  207. package/es/Timeline/Timeline.vue2.js +1 -1
  208. package/es/Timeline/hooks/useContext.js +1 -1
  209. package/es/Timeline/type.d.ts +6 -5
  210. package/es/Tooltip/index.vue.js +1 -1
  211. package/es/Tooltip/type.d.ts +3 -3
  212. package/es/Transfer/Transfer.vue2.js +1 -1
  213. package/es/Transfer/TransferPanel.vue2.js +3 -3
  214. package/es/Transfer/hooks/useContext.js +1 -1
  215. package/es/Transfer/type.d.ts +13 -12
  216. package/es/Trigger/hooks/useContext.js +1 -1
  217. package/es/Trigger/hooks/useTriggerPosition.d.ts +2 -2
  218. package/es/Trigger/hooks/useTriggerPosition.js +11 -20
  219. package/es/Trigger/index.d.ts +63 -2
  220. package/es/Trigger/index.vue.d.ts +130 -3
  221. package/es/Trigger/index.vue.js +1 -1
  222. package/es/Trigger/index.vue2.js +3 -3
  223. package/es/Trigger/type.d.ts +3 -3
  224. package/es/Typography/TypographyBase.vue2.js +3 -3
  225. package/es/Typography/type.d.ts +8 -7
  226. package/es/Watermark/index.vue2.js +1 -1
  227. package/es/Watermark/type.d.ts +2 -1
  228. package/es/_shared/components/ExpandTransition.vue3.js +1 -1
  229. package/es/_shared/{icons/_Icon.vue2.js → components/Icon.vue2.js} +3 -3
  230. package/es/_shared/{icons/_Icon.vue3.js → components/Icon.vue3.js} +2 -2
  231. package/es/_shared/components/IconButton.vue3.js +1 -1
  232. package/es/_shared/components/index.d.ts +1 -0
  233. package/es/_shared/constants/index.js +1 -1
  234. package/es/_shared/icons/IconArrowDown.vue.js +1 -1
  235. package/es/_shared/icons/IconArrowRight.vue.js +1 -1
  236. package/es/_shared/icons/IconCheck.vue.js +1 -1
  237. package/es/_shared/icons/IconCheckboxChecked.vue.js +1 -1
  238. package/es/_shared/icons/IconClose.vue.js +1 -1
  239. package/es/_shared/icons/IconCopy.vue.js +16 -1
  240. package/es/_shared/icons/IconCopy.vue2.js +1 -16
  241. package/es/_shared/icons/IconDelete.vue.js +1 -16
  242. package/es/_shared/icons/IconDelete.vue2.js +16 -1
  243. package/es/_shared/icons/IconDragDot.vue.js +1 -1
  244. package/es/_shared/icons/IconEdit.vue.js +16 -1
  245. package/es/_shared/icons/IconEdit.vue2.js +1 -16
  246. package/es/_shared/icons/IconEmpty.vue.js +1 -1
  247. package/es/_shared/icons/IconError.vue.js +1 -1
  248. package/es/_shared/icons/IconExclamation.vue.js +27 -1
  249. package/es/_shared/icons/IconExclamation.vue2.js +1 -27
  250. package/es/_shared/icons/IconEyeClose.vue2.js +1 -1
  251. package/es/_shared/icons/IconEyeOpen.vue2.js +1 -1
  252. package/es/_shared/icons/IconFaceSmile.vue.js +1 -1
  253. package/es/_shared/icons/IconFullScreen.vue2.js +1 -1
  254. package/es/_shared/icons/IconImageClose.vue.js +1 -1
  255. package/es/_shared/icons/IconInfo.vue.js +1 -1
  256. package/es/_shared/icons/IconInfoLine.vue.js +1 -1
  257. package/es/_shared/icons/IconLink.vue.js +1 -1
  258. package/es/_shared/icons/IconLoading.vue.js +1 -1
  259. package/es/_shared/icons/IconMenuFold.vue.js +1 -1
  260. package/es/_shared/icons/IconMenuUnfold.vue.js +1 -1
  261. package/es/_shared/icons/IconMinus.vue2.js +1 -1
  262. package/es/_shared/icons/IconMore.vue.js +1 -1
  263. package/es/_shared/icons/IconOriginSize.vue2.js +1 -1
  264. package/es/_shared/icons/IconPlus.vue.js +1 -1
  265. package/es/_shared/icons/IconRight.vue.js +1 -1
  266. package/es/_shared/icons/IconRotateLeft.vue2.js +1 -1
  267. package/es/_shared/icons/IconRotateRight.vue2.js +1 -1
  268. package/es/_shared/icons/IconSearch.vue.js +1 -16
  269. package/es/_shared/icons/IconSearch.vue2.js +16 -1
  270. package/es/_shared/icons/IconSeparator.vue2.js +1 -1
  271. package/es/_shared/icons/IconStar.vue.js +1 -1
  272. package/es/_shared/icons/IconSuccess.vue.js +1 -1
  273. package/es/_shared/icons/IconTime.vue.js +1 -1
  274. package/es/_shared/icons/IconToTop.vue.js +1 -1
  275. package/es/_shared/icons/IconWarning.vue.js +1 -1
  276. package/es/_shared/icons/IconZoomIn.vue2.js +1 -1
  277. package/es/_shared/icons/IconZoomOut.vue2.js +1 -1
  278. package/es/_shared/utils/control.js +1 -1
  279. package/es/_shared/utils/dom.d.ts +4 -4
  280. package/es/_shared/utils/dom.js +6 -6
  281. package/es/_shared/utils/fn.d.ts +3 -3
  282. package/es/_shared/utils/fn.js +6 -6
  283. package/es/_shared/utils/global-config.d.ts +4 -2
  284. package/es/_shared/utils/global-config.js +1 -1
  285. package/es/index.d.ts +65 -2
  286. package/es/style.css +1 -1
  287. package/lib/Affix/index.vue.js +1 -1
  288. package/lib/Affix/type.d.ts +3 -2
  289. package/lib/Alert/index.vue2.js +1 -1
  290. package/lib/Alert/type.d.ts +6 -5
  291. package/lib/Anchor/Anchor.vue2.js +1 -1
  292. package/lib/Anchor/AnchorLink.vue2.js +1 -1
  293. package/lib/Anchor/hooks/useContext.js +1 -1
  294. package/lib/Anchor/type.d.ts +4 -3
  295. package/lib/AutoComplete/index.d.ts +65 -2
  296. package/lib/AutoComplete/index.vue.d.ts +130 -4
  297. package/lib/AutoComplete/index.vue.js +1 -1
  298. package/lib/AutoComplete/type.d.ts +5 -4
  299. package/lib/Avatar/Avatar.vue2.js +1 -1
  300. package/lib/Avatar/AvatarGroup.vue.js +1 -1
  301. package/lib/Avatar/AvatarGroup.vue2.js +1 -1
  302. package/lib/Avatar/type.d.ts +4 -4
  303. package/lib/BackTop/index.vue2.js +1 -1
  304. package/lib/BackTop/type.d.ts +2 -1
  305. package/lib/Badge/index.vue.js +1 -1
  306. package/lib/Badge/index.vue2.js +1 -1
  307. package/lib/Badge/type.d.ts +3 -3
  308. package/lib/Breadcrumb/Breadcrumb.vue2.js +1 -1
  309. package/lib/Breadcrumb/BreadcrumbItem.vue2.js +1 -1
  310. package/lib/Breadcrumb/BreadcrumbMore.vue.js +1 -1
  311. package/lib/Breadcrumb/BreadcrumbSeparator.vue2.js +1 -1
  312. package/lib/Breadcrumb/type.d.ts +9 -8
  313. package/lib/Button/Button.vue.js +1 -1
  314. package/lib/Button/Button.vue2.js +1 -1
  315. package/lib/Button/type.d.ts +4 -3
  316. package/lib/Calendar/Calendar.vue2.js +1 -1
  317. package/lib/Calendar/CalendarMonth.vue2.js +1 -1
  318. package/lib/Calendar/CalendarYear.vue2.js +1 -1
  319. package/lib/Calendar/type.d.ts +5 -4
  320. package/lib/Card/CardMeta.vue2.js +1 -1
  321. package/lib/Card/type.d.ts +10 -10
  322. package/lib/Carousel/Carousel.vue2.js +1 -1
  323. package/lib/Carousel/CarouselArrow.vue2.js +1 -1
  324. package/lib/Carousel/CarouselIndicator.vue2.js +1 -1
  325. package/lib/Carousel/hooks/useContext.js +1 -1
  326. package/lib/Carousel/type.d.ts +3 -2
  327. package/lib/Cascader/Cascader.vue2.js +1 -1
  328. package/lib/Cascader/CascaderIcon.vue2.js +1 -1
  329. package/lib/Cascader/CascaderOption.vue2.js +1 -1
  330. package/lib/Cascader/hooks/useContext.js +1 -1
  331. package/lib/Cascader/type.d.ts +10 -10
  332. package/lib/Checkbox/Checkbox.vue2.js +1 -1
  333. package/lib/Checkbox/hooks/useContext.d.ts +2 -5
  334. package/lib/Checkbox/hooks/useContext.js +1 -1
  335. package/lib/Checkbox/type.d.ts +9 -8
  336. package/lib/Collapse/CollapseItem.vue2.js +1 -1
  337. package/lib/Collapse/hooks/useContext.js +1 -1
  338. package/lib/Collapse/type.d.ts +9 -8
  339. package/lib/ColorPicker/ColorControl.vue2.js +1 -1
  340. package/lib/ColorPicker/ColorInput.vue2.js +1 -1
  341. package/lib/ColorPicker/ColorPalette.vue2.js +1 -1
  342. package/lib/Comment/index.vue2.js +1 -1
  343. package/lib/Comment/type.d.ts +7 -6
  344. package/lib/ConfigProvider/index.vue.js +1 -1
  345. package/lib/ConfigProvider/type.d.ts +5 -4
  346. package/lib/Descriptions/ReuseItem.vue2.js +1 -1
  347. package/lib/Descriptions/ReuseTd.vue2.js +1 -1
  348. package/lib/Descriptions/type.d.ts +9 -9
  349. package/lib/Divider/index.vue2.js +1 -1
  350. package/lib/Divider/type.d.ts +2 -1
  351. package/lib/Drawer/Drawer.vue2.js +1 -1
  352. package/lib/Drawer/DrawerService.vue.js +1 -1
  353. package/lib/Drawer/type.d.ts +5 -5
  354. package/lib/Dropdown/Dropdown.vue.js +1 -1
  355. package/lib/Dropdown/DropdownButton.vue.js +1 -1
  356. package/lib/Dropdown/Dsubmenu.vue.d.ts +130 -4
  357. package/lib/Dropdown/Dsubmenu.vue2.js +1 -1
  358. package/lib/Dropdown/hooks/useContext.js +1 -1
  359. package/lib/Dropdown/index.d.ts +65 -2
  360. package/lib/Dropdown/type.d.ts +15 -14
  361. package/lib/Empty/index.vue2.js +1 -1
  362. package/lib/Empty/type.d.ts +2 -1
  363. package/lib/Grid/Grid.vue2.js +1 -1
  364. package/lib/Grid/GridCol.vue.js +1 -1
  365. package/lib/Grid/GridItem.vue.js +1 -1
  366. package/lib/Grid/GridRow.vue2.js +1 -1
  367. package/lib/Grid/hooks/useContext.js +1 -1
  368. package/lib/Grid/type.d.ts +6 -5
  369. package/lib/Icon/index.js +1 -1
  370. package/lib/Icon/index.vue2.js +1 -1
  371. package/lib/Icon/type.d.ts +2 -1
  372. package/lib/Image/Image.vue2.js +1 -1
  373. package/lib/Image/ImagePreview.vue2.js +1 -1
  374. package/lib/Image/ImagePreviewArrow.vue2.js +1 -1
  375. package/lib/Image/ImagePreviewToolbar.vue2.js +1 -1
  376. package/lib/Image/hooks/useContext.js +1 -1
  377. package/lib/Image/type.d.ts +11 -10
  378. package/lib/Input/Input.vue2.js +1 -1
  379. package/lib/Input/InputSuffix.vue2.js +1 -1
  380. package/lib/Input/hooks/useCursor.d.ts +2 -1
  381. package/lib/Input/hooks/useCursor.js +1 -1
  382. package/lib/Input/hooks/useLimitedInput.js +1 -1
  383. package/lib/Input/type.d.ts +6 -5
  384. package/lib/InputNumber/InputNumber.vue2.js +1 -1
  385. package/lib/InputNumber/InputOperaBtn.vue2.js +1 -1
  386. package/lib/InputNumber/type.d.ts +8 -8
  387. package/lib/InputTag/index.vue2.js +1 -1
  388. package/lib/InputTag/type.d.ts +5 -4
  389. package/lib/Layout/Layout.vue.js +1 -1
  390. package/lib/Layout/Layout.vue2.js +1 -1
  391. package/lib/Layout/LayoutSider.vue2.js +1 -1
  392. package/lib/Layout/type.d.ts +8 -7
  393. package/lib/Link/index.vue2.js +1 -1
  394. package/lib/Link/type.d.ts +3 -2
  395. package/lib/List/hooks/useScrollReach.js +1 -1
  396. package/lib/List/type.d.ts +15 -14
  397. package/lib/Mention/index.d.ts +65 -2
  398. package/lib/Mention/index.vue.d.ts +130 -4
  399. package/lib/Mention/index.vue.js +1 -1
  400. package/lib/Mention/type.d.ts +3 -2
  401. package/lib/Menu/Menu.vue2.js +1 -1
  402. package/lib/Menu/MenuEllipsis.vue2.js +1 -1
  403. package/lib/Menu/MenuItem.vue2.js +1 -1
  404. package/lib/Menu/MenuItemGroup.vue2.js +1 -1
  405. package/lib/Menu/SubMenu.vue2.js +1 -1
  406. package/lib/Menu/hooks/useContext.js +1 -1
  407. package/lib/Menu/type.d.ts +11 -10
  408. package/lib/Message/Message.vue2.js +1 -1
  409. package/lib/Message/index.js +1 -1
  410. package/lib/Message/type.d.ts +1 -1
  411. package/lib/Modal/Modal.vue2.js +1 -1
  412. package/lib/Modal/ModalService.vue.js +1 -1
  413. package/lib/Modal/hooks/useModalClose.js +1 -1
  414. package/lib/Modal/hooks/useModalDraggable.js +1 -1
  415. package/lib/Modal/hooks/useOnBeforeClose.js +1 -1
  416. package/lib/Modal/type.d.ts +5 -5
  417. package/lib/Notification/Notification.vue2.js +1 -1
  418. package/lib/Notification/index.js +1 -1
  419. package/lib/Notification/type.d.ts +1 -1
  420. package/lib/OverflowList/index.vue.js +1 -1
  421. package/lib/OverflowList/index.vue2.js +1 -1
  422. package/lib/OverflowList/type.d.ts +3 -2
  423. package/lib/PageHeader/index.vue2.js +1 -1
  424. package/lib/PageHeader/type.d.ts +7 -6
  425. package/lib/Pagination/Pagination.vue2.js +1 -1
  426. package/lib/Pagination/PaginationItem.vue2.js +1 -1
  427. package/lib/Pagination/type.d.ts +8 -8
  428. package/lib/Popconfirm/index.d.ts +65 -2
  429. package/lib/Popconfirm/index.vue.d.ts +130 -4
  430. package/lib/Popconfirm/index.vue.js +1 -1
  431. package/lib/Popconfirm/type.d.ts +4 -4
  432. package/lib/Popover/index.vue.js +1 -1
  433. package/lib/Popover/type.d.ts +4 -4
  434. package/lib/Progress/ProgressCircle.vue2.js +1 -1
  435. package/lib/Progress/ProgressLine.vue2.js +1 -1
  436. package/lib/Progress/ProgressSteps.vue.js +1 -1
  437. package/lib/Radio/Radio.vue2.js +1 -1
  438. package/lib/Radio/hooks/useContext.d.ts +3 -6
  439. package/lib/Radio/type.d.ts +9 -8
  440. package/lib/Rate/index.vue2.js +1 -1
  441. package/lib/Rate/type.d.ts +3 -2
  442. package/lib/ResizeBox/index.vue2.js +1 -1
  443. package/lib/ResizeBox/type.d.ts +6 -5
  444. package/lib/Result/type.d.ts +6 -5
  445. package/lib/Scrollbar/ScrollbarTrack.vue2.js +1 -1
  446. package/lib/Scrollbar/type.d.ts +2 -2
  447. package/lib/Select/Option.vue2.js +1 -1
  448. package/lib/Select/Select.vue.d.ts +130 -4
  449. package/lib/Select/Select.vue2.js +1 -1
  450. package/lib/Select/SelectIcon.vue2.js +1 -1
  451. package/lib/Select/SelectRealList.vue2.js +1 -1
  452. package/lib/Select/SelectVirtualList.vue2.js +1 -1
  453. package/lib/Select/hooks/useContext.js +1 -1
  454. package/lib/Select/hooks/useSelectOptions.js +1 -1
  455. package/lib/Select/index.d.ts +65 -2
  456. package/lib/Select/type.d.ts +19 -18
  457. package/lib/Skeleton/SkeletonLine.vue2.js +1 -1
  458. package/lib/Skeleton/type.d.ts +3 -2
  459. package/lib/Slider/SliderBtn.vue2.js +1 -1
  460. package/lib/Slider/hooks/useContext.js +1 -1
  461. package/lib/Slider/hooks/useSliderDraggable.js +1 -1
  462. package/lib/Space/index.vue.js +1 -1
  463. package/lib/Space/index.vue2.js +1 -1
  464. package/lib/Space/type.d.ts +3 -2
  465. package/lib/Spin/type.d.ts +4 -3
  466. package/lib/Split/index.vue2.js +1 -1
  467. package/lib/Split/type.d.ts +5 -4
  468. package/lib/Statistic/Countdown.vue.js +1 -1
  469. package/lib/Statistic/Statistic.vue2.js +1 -1
  470. package/lib/Statistic/type.d.ts +7 -7
  471. package/lib/Steps/Step.vue2.js +1 -1
  472. package/lib/Steps/hooks/useContext.js +1 -1
  473. package/lib/Steps/type.d.ts +8 -7
  474. package/lib/Switch/index.vue.js +1 -1
  475. package/lib/Switch/index.vue2.js +1 -1
  476. package/lib/Switch/type.d.ts +5 -4
  477. package/lib/Tabs/TabButton.vue2.js +1 -1
  478. package/lib/Tabs/TabPane.vue.js +1 -1
  479. package/lib/Tabs/Tabs.vue.js +1 -1
  480. package/lib/Tabs/Tabs.vue2.js +1 -1
  481. package/lib/Tabs/TabsNavInk.vue2.js +1 -1
  482. package/lib/Tabs/TabsTab.vue2.js +1 -1
  483. package/lib/Tabs/hooks/useTabsScroll.js +1 -1
  484. package/lib/Tabs/type.d.ts +5 -4
  485. package/lib/Tag/index.vue2.js +1 -1
  486. package/lib/Tag/type.d.ts +4 -3
  487. package/lib/Textarea/hooks/useTextareaHeight.js +1 -1
  488. package/lib/Textarea/index.vue2.js +1 -1
  489. package/lib/TimePicker/TimePicker.vue2.js +1 -1
  490. package/lib/TimePicker/TimePickerPanel.vue2.js +1 -1
  491. package/lib/TimePicker/hooks/useContext.js +1 -1
  492. package/lib/TimePicker/type.d.ts +4 -3
  493. package/lib/Timeline/Timeline.vue2.js +1 -1
  494. package/lib/Timeline/hooks/useContext.js +1 -1
  495. package/lib/Timeline/type.d.ts +6 -5
  496. package/lib/Tooltip/index.vue.js +1 -1
  497. package/lib/Tooltip/type.d.ts +3 -3
  498. package/lib/Transfer/Transfer.vue2.js +1 -1
  499. package/lib/Transfer/TransferPanel.vue2.js +1 -1
  500. package/lib/Transfer/hooks/useContext.js +1 -1
  501. package/lib/Transfer/type.d.ts +13 -12
  502. package/lib/Trigger/hooks/useContext.js +1 -1
  503. package/lib/Trigger/hooks/useTriggerPosition.d.ts +2 -2
  504. package/lib/Trigger/hooks/useTriggerPosition.js +1 -1
  505. package/lib/Trigger/index.d.ts +63 -2
  506. package/lib/Trigger/index.vue.d.ts +130 -3
  507. package/lib/Trigger/index.vue.js +1 -1
  508. package/lib/Trigger/index.vue2.js +1 -1
  509. package/lib/Trigger/type.d.ts +3 -3
  510. package/lib/Typography/TypographyBase.vue2.js +1 -1
  511. package/lib/Typography/type.d.ts +8 -7
  512. package/lib/Watermark/index.vue2.js +1 -1
  513. package/lib/Watermark/type.d.ts +2 -1
  514. package/lib/_shared/components/ExpandTransition.vue3.js +1 -1
  515. package/lib/_shared/components/Icon.vue2.js +1 -0
  516. package/lib/_shared/components/Icon.vue3.js +1 -0
  517. package/lib/_shared/components/IconButton.vue3.js +1 -1
  518. package/lib/_shared/components/index.d.ts +1 -0
  519. package/lib/_shared/constants/index.js +1 -1
  520. package/lib/_shared/icons/IconArrowDown.vue.js +1 -1
  521. package/lib/_shared/icons/IconArrowRight.vue.js +1 -1
  522. package/lib/_shared/icons/IconCheck.vue.js +1 -1
  523. package/lib/_shared/icons/IconCheckboxChecked.vue.js +1 -1
  524. package/lib/_shared/icons/IconClose.vue.js +1 -1
  525. package/lib/_shared/icons/IconCopy.vue.js +1 -1
  526. package/lib/_shared/icons/IconCopy.vue2.js +1 -1
  527. package/lib/_shared/icons/IconDelete.vue.js +1 -1
  528. package/lib/_shared/icons/IconDelete.vue2.js +1 -1
  529. package/lib/_shared/icons/IconDragDot.vue.js +1 -1
  530. package/lib/_shared/icons/IconEdit.vue.js +1 -1
  531. package/lib/_shared/icons/IconEdit.vue2.js +1 -1
  532. package/lib/_shared/icons/IconEmpty.vue.js +1 -1
  533. package/lib/_shared/icons/IconError.vue.js +1 -1
  534. package/lib/_shared/icons/IconExclamation.vue.js +1 -1
  535. package/lib/_shared/icons/IconExclamation.vue2.js +1 -1
  536. package/lib/_shared/icons/IconEyeClose.vue2.js +1 -1
  537. package/lib/_shared/icons/IconEyeOpen.vue2.js +1 -1
  538. package/lib/_shared/icons/IconFaceSmile.vue.js +1 -1
  539. package/lib/_shared/icons/IconFullScreen.vue2.js +1 -1
  540. package/lib/_shared/icons/IconImageClose.vue.js +1 -1
  541. package/lib/_shared/icons/IconInfo.vue.js +1 -1
  542. package/lib/_shared/icons/IconInfoLine.vue.js +1 -1
  543. package/lib/_shared/icons/IconLink.vue.js +1 -1
  544. package/lib/_shared/icons/IconLoading.vue.js +1 -1
  545. package/lib/_shared/icons/IconMenuFold.vue.js +1 -1
  546. package/lib/_shared/icons/IconMenuUnfold.vue.js +1 -1
  547. package/lib/_shared/icons/IconMinus.vue2.js +1 -1
  548. package/lib/_shared/icons/IconMore.vue.js +1 -1
  549. package/lib/_shared/icons/IconOriginSize.vue2.js +1 -1
  550. package/lib/_shared/icons/IconPlus.vue.js +1 -1
  551. package/lib/_shared/icons/IconRight.vue.js +1 -1
  552. package/lib/_shared/icons/IconRotateLeft.vue2.js +1 -1
  553. package/lib/_shared/icons/IconRotateRight.vue2.js +1 -1
  554. package/lib/_shared/icons/IconSearch.vue.js +1 -1
  555. package/lib/_shared/icons/IconSearch.vue2.js +1 -1
  556. package/lib/_shared/icons/IconSeparator.vue2.js +1 -1
  557. package/lib/_shared/icons/IconStar.vue.js +1 -1
  558. package/lib/_shared/icons/IconSuccess.vue.js +1 -1
  559. package/lib/_shared/icons/IconTime.vue.js +1 -1
  560. package/lib/_shared/icons/IconToTop.vue.js +1 -1
  561. package/lib/_shared/icons/IconWarning.vue.js +1 -1
  562. package/lib/_shared/icons/IconZoomIn.vue2.js +1 -1
  563. package/lib/_shared/icons/IconZoomOut.vue2.js +1 -1
  564. package/lib/_shared/utils/control.js +1 -1
  565. package/lib/_shared/utils/dom.d.ts +4 -4
  566. package/lib/_shared/utils/dom.js +1 -1
  567. package/lib/_shared/utils/fn.d.ts +3 -3
  568. package/lib/_shared/utils/fn.js +1 -1
  569. package/lib/_shared/utils/global-config.d.ts +4 -2
  570. package/lib/_shared/utils/global-config.js +1 -1
  571. package/lib/index.d.ts +65 -2
  572. package/lib/style.css +1 -1
  573. package/package.json +2 -2
  574. package/lib/_shared/icons/_Icon.vue2.js +0 -1
  575. package/lib/_shared/icons/_Icon.vue3.js +0 -1
  576. /package/es/_shared/{icons/_Icon.vue.d.ts → components/Icon.vue.d.ts} +0 -0
  577. /package/lib/_shared/{icons/_Icon.vue.d.ts → components/Icon.vue.d.ts} +0 -0
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),a=require("../node_modules/@vueuse/core/index.js"),o=require("../_shared/utils/color.js");require("../_shared/utils/dom.js");const l=require("../_shared/utils/fn.js");require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const r=e.defineComponent({__name:"ColorControl",props:{color:{},baseColor:{},popupVisible:{type:Boolean},disabled:{type:Boolean},hideTrigger:{type:Boolean},mode:{}},emits:["update:color","update:alpha","update:baseColor","change"],setup(r,{expose:t,emit:s}){const i=r,u=s,{color:n,mode:c,popupVisible:d,disabled:p,hideTrigger:v}=e.toRefs(i),m=e.ref(),f=e.ref(),g=e.ref({min:0,max:0}),h=new o.GradientColorCalculator,{x:b}=a.useDraggable(m,{disabled:p,onMove(){y()}}),C=e=>{const{max:a,min:l}=g.value;if("alpha"==c.value){const r=100*o.parseColor(e).getAlpha();b.value=l+r/100*(a-l),u("update:alpha",r)}else b.value=h.getPositionForColor(e,a-l)+l},y=()=>{const{min:e,max:a}=g.value;b.value=b.value<e?e:b.value,b.value=b.value>a?a:b.value;let l="";if("alpha"==c.value){const r=+((b.value-e)/(a-e)).toFixed(2);l=o.parseColor(n.value).setAlpha(r).toRgbString(),u("update:alpha",r)}else l=h.getColorAtPosition(b.value-e,a-e),u("update:baseColor",l),u("change",l);u("update:color",l)},x=e=>{p.value||(b.value=e.pageX,y())};return e.watch(()=>d.value,async e=>{if(e||v.value){await l.sleep(0);const{left:e,right:a}=f.value.getBoundingClientRect();g.value={min:e,max:a},C(n.value)}},{immediate:!0}),t({setPosition:C}),(a,o)=>(e.openBlock(),e.createElementBlock("div",{class:"yc-color-picker-control-bar",style:e.normalizeStyle({background:"alpha"==e.unref(c)?`linear-gradient(to right, rgba(0, 0, 0, 0), ${a.baseColor})`:""}),ref_key:"barRef",ref:f,onClick:x},[e.createElementVNode("div",{class:"yc-color-picker-control-bar-handler",style:e.normalizeStyle({color:e.unref(n),transform:`translate(calc(${e.unref(l.valueToPx)(e.unref(b)-g.value.min)} - 50%),-50%)`}),ref_key:"btnRef",ref:m},null,4)],4))}});module.exports=r;
1
+ "use strict";const e=require("vue"),o=require("../node_modules/@vueuse/core/index.js"),a=require("../_shared/utils/color.js");require("../_shared/utils/dom.js");const l=require("../_shared/utils/fn.js");require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const r=e.defineComponent({__name:"ColorControl",props:{color:{},baseColor:{},popupVisible:{type:Boolean},disabled:{type:Boolean},hideTrigger:{type:Boolean},mode:{}},emits:["update:color","update:alpha","update:baseColor","change"],setup(r,{expose:t,emit:s}){const i=r,n=s,{color:u,mode:c,popupVisible:d,disabled:p,hideTrigger:v}=e.toRefs(i),m=e.ref(),f=e.ref(),g=e.ref({min:0,max:0}),h=new a.GradientColorCalculator,{x:b}=o.useDraggable(m,{disabled:p,onMove(){y()}}),C=e=>{const{max:o,min:l}=g.value;if("alpha"==c.value){const r=100*a.parseColor(e).getAlpha();b.value=l+r/100*(o-l),n("update:alpha",r)}else b.value=h.getPositionForColor(e,o-l)+l},y=()=>{const{min:e,max:o}=g.value;b.value=b.value<e?e:b.value,b.value=b.value>o?o:b.value;let l="";if("alpha"==c.value){const r=+((b.value-e)/(o-e)).toFixed(2);l=a.parseColor(u.value).setAlpha(r).toRgbString(),n("update:alpha",r)}else l=h.getColorAtPosition(b.value-e,o-e),n("update:baseColor",l),n("change",l);n("update:color",l)},x=e=>{p.value||(b.value=e.pageX,y())};return e.watch(()=>d.value,async e=>{if(e||v.value){await l.sleep(0);const{left:e,right:o}=f.value.getBoundingClientRect();g.value={min:e,max:o},C(u.value)}},{immediate:!0}),t({setPosition:C}),(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:"yc-color-picker-control-bar",style:e.normalizeStyle({background:"alpha"==e.unref(c)?`linear-gradient(to right, rgba(0, 0, 0, 0), ${o.baseColor})`:""}),ref_key:"barRef",ref:f,onClick:x},[e.createElementVNode("div",{class:"yc-color-picker-control-bar-handler",style:e.normalizeStyle({color:e.unref(u),transform:`translate(calc(${e.unref(l.valueToPx)(e.unref(b)-g.value.min)} - 50%),-50%)`}),ref_key:"btnRef",ref:m},null,4)],4))}});module.exports=r;
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),l=require("../_shared/utils/color.js");require("../_shared/utils/dom.js"),require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const a=require("../_shared/constants/index.js"),o=require("../Select/index.js"),r=require("../Input/index.js"),t=require("../InputNumber/index.js"),u={class:"yc-color-picker-input-wrapper"},s={class:"yc-color-picker-format"},d={class:"yc-color-picker-color"},n=e.defineComponent({__name:"ColorInput",props:{color:{},baseColor:{},alpha:{},disabled:{type:Boolean},disabledAlpha:{type:Boolean}},emits:["update:color","update:baseColor","update:alpha","change"],setup(n,{emit:i}){const c=n,p=i,{color:m,alpha:b}=e.toRefs(c),h=e.ref("hex"),v=e.ref(""),V=e.ref({}),g=e.ref(b.value),x=e=>{if("hex"==e){const e=l.parseColor(m.value).getAlpha(),a=l.parseColor(v.value).setAlpha(e).toHex8();p("update:color",a),p("update:baseColor",a),p("change",a,"color")}else if("rgb"==e){const{r:e,g:l,b:a}=V.value,o=`rgb(${e},${l},${a})`;p("update:color",o),p("update:baseColor",o),p("change",o,"color")}else{const e=+(g.value/100).toFixed(2),a=l.parseColor(m.value).setAlpha(e).toRgbString();p("update:color",a),p("update:alpha",g.value),p("change",a,"alpha")}};return e.watch(()=>m.value,()=>{v.value=l.parseColor(m.value).toHex(),V.value=l.parseColor(m.value).toRgb()},{immediate:!0}),e.watch(()=>b.value,()=>{g.value=100*b.value}),(l,n)=>(e.openBlock(),e.createElementBlock("div",u,[e.createElementVNode("div",s,[e.createVNode(e.unref(o.default),{modelValue:h.value,"onUpdate:modelValue":n[0]||(n[0]=e=>h.value=e),options:e.unref(a.COLOR_PICKER_FORMAT_OPTIONS),"trigger-props":{contentClass:"yc-color-picker-format-popup-content"},size:"mini"},null,8,["modelValue","options"])]),e.createElementVNode("div",d,["hex"==h.value?(e.openBlock(),e.createBlock(e.unref(r),{key:0,modelValue:v.value,"onUpdate:modelValue":n[1]||(n[1]=e=>v.value=e),"max-length":6,disabled:l.disabled,size:"mini",class:"hex-input",onBlur:n[2]||(n[2]=e=>x("hex")),onPressEnter:n[3]||(n[3]=e=>x("hex"))},{prefix:e.withCtx(()=>n[16]||(n[16]=[e.createTextVNode(" # ",-1)])),_:1},8,["modelValue","disabled"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(e.unref(t),{modelValue:V.value.r,"onUpdate:modelValue":n[4]||(n[4]=e=>V.value.r=e),min:0,max:255,disabled:l.disabled,size:"mini",class:"rgb-input","hide-button":"",onBlur:n[5]||(n[5]=e=>x("rgb")),onPressEnter:n[6]||(n[6]=e=>x("rgb"))},null,8,["modelValue","disabled"]),e.createVNode(e.unref(t),{modelValue:V.value.g,"onUpdate:modelValue":n[7]||(n[7]=e=>V.value.g=e),min:0,max:255,disabled:l.disabled,size:"mini",class:"rgb-input","hide-button":"",onBlur:n[8]||(n[8]=e=>x("rgb")),onPressEnter:n[9]||(n[9]=e=>x("rgb"))},null,8,["modelValue","disabled"]),e.createVNode(e.unref(t),{modelValue:V.value.b,"onUpdate:modelValue":n[10]||(n[10]=e=>V.value.b=e),min:0,max:255,disabled:l.disabled,class:"rgb-input",size:"mini","hide-button":"",onBlur:n[11]||(n[11]=e=>x("rgb")),onPressEnter:n[12]||(n[12]=e=>x("rgb"))},null,8,["modelValue","disabled"])],64)),l.disabledAlpha?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(t),{key:2,modelValue:g.value,"onUpdate:modelValue":n[13]||(n[13]=e=>g.value=e),min:0,max:100,disabled:l.disabled,size:"mini","hide-button":"",class:"alpha-input",onBlur:n[14]||(n[14]=e=>x("alpha")),onPressEnter:n[15]||(n[15]=e=>x("alpha"))},{suffix:e.withCtx(()=>n[17]||(n[17]=[e.createTextVNode(" % ",-1)])),_:1},8,["modelValue","disabled"]))])]))}});module.exports=n;
1
+ "use strict";const e=require("vue"),l=require("../_shared/utils/color.js");require("../_shared/utils/dom.js"),require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const a=require("../_shared/constants/index.js"),o=require("../Select/index.js"),r=require("../Input/index.js"),t=require("../InputNumber/index.js"),u={class:"yc-color-picker-input-wrapper"},s={class:"yc-color-picker-format"},d={class:"yc-color-picker-color"},n=e.defineComponent({__name:"ColorInput",props:{color:{},baseColor:{},alpha:{},disabled:{type:Boolean},disabledAlpha:{type:Boolean}},emits:["update:color","update:baseColor","update:alpha","change"],setup(n,{emit:i}){const c=n,p=i,{color:m,alpha:b}=e.toRefs(c),h=e.ref("hex"),v=e.ref(""),V=e.ref({}),g=e.ref(b.value),x=e=>{if("hex"==e){const e=l.parseColor(m.value).getAlpha(),a=l.parseColor(v.value).setAlpha(e).toHex8();p("update:color",a),p("update:baseColor",a),p("change",a,"color")}else if("rgb"==e){const{r:e,g:l,b:a}=V.value,o=`rgb(${e},${l},${a})`;p("update:color",o),p("update:baseColor",o),p("change",o,"color")}else{const e=+(g.value/100).toFixed(2),a=l.parseColor(m.value).setAlpha(e).toRgbString();p("update:color",a),p("update:alpha",g.value),p("change",a,"alpha")}};return e.watch(()=>m.value,()=>{v.value=l.parseColor(m.value).toHex(),V.value=l.parseColor(m.value).toRgb()},{immediate:!0}),e.watch(()=>b.value,()=>{g.value=100*b.value}),(l,n)=>(e.openBlock(),e.createElementBlock("div",u,[e.createElementVNode("div",s,[e.createVNode(e.unref(o.default),{modelValue:h.value,"onUpdate:modelValue":n[0]||(n[0]=e=>h.value=e),options:e.unref(a.COLOR_PICKER_FORMAT_OPTIONS),"trigger-props":{contentClass:"yc-color-picker-format-popup-content"},size:"mini"},null,8,["modelValue","options"])]),e.createElementVNode("div",d,["hex"==h.value?(e.openBlock(),e.createBlock(e.unref(r),{key:0,modelValue:v.value,"onUpdate:modelValue":n[1]||(n[1]=e=>v.value=e),"max-length":6,disabled:l.disabled,size:"mini",class:"hex-input",onBlur:n[2]||(n[2]=e=>x("hex")),onPressEnter:n[3]||(n[3]=e=>x("hex"))},{prefix:e.withCtx(()=>n[16]||(n[16]=[e.createTextVNode(" # ",-1)])),_:1},8,["modelValue","disabled"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(e.unref(t),{modelValue:V.value.r,"onUpdate:modelValue":n[4]||(n[4]=e=>V.value.r=e),min:0,max:255,disabled:l.disabled,size:"mini",class:"rgb-input","hide-button":"",onBlur:n[5]||(n[5]=e=>x("rgb")),onPressEnter:n[6]||(n[6]=e=>x("rgb"))},null,8,["modelValue","disabled"]),e.createVNode(e.unref(t),{modelValue:V.value.g,"onUpdate:modelValue":n[7]||(n[7]=e=>V.value.g=e),min:0,max:255,disabled:l.disabled,size:"mini",class:"rgb-input","hide-button":"",onBlur:n[8]||(n[8]=e=>x("rgb")),onPressEnter:n[9]||(n[9]=e=>x("rgb"))},null,8,["modelValue","disabled"]),e.createVNode(e.unref(t),{modelValue:V.value.b,"onUpdate:modelValue":n[10]||(n[10]=e=>V.value.b=e),min:0,max:255,disabled:l.disabled,class:"rgb-input",size:"mini","hide-button":"",onBlur:n[11]||(n[11]=e=>x("rgb")),onPressEnter:n[12]||(n[12]=e=>x("rgb"))},null,8,["modelValue","disabled"])],64)),l.disabledAlpha?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(t),{key:2,modelValue:g.value,"onUpdate:modelValue":n[13]||(n[13]=e=>g.value=e),min:0,max:100,disabled:l.disabled,size:"mini","hide-button":"",class:"alpha-input",onBlur:n[14]||(n[14]=e=>x("alpha")),onPressEnter:n[15]||(n[15]=e=>x("alpha"))},{suffix:e.withCtx(()=>n[17]||(n[17]=[e.createTextVNode(" % ",-1)])),_:1},8,["modelValue","disabled"]))])]))}});module.exports=n;
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),l=require("../node_modules/@vueuse/core/index.js"),a=require("../_shared/utils/color.js");require("../_shared/utils/dom.js");const u=require("../_shared/utils/fn.js");require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const o=e.defineComponent({__name:"ColorPalette",props:{color:{},baseColor:{},popupVisible:{type:Boolean},disabled:{type:Boolean},hideTrigger:{type:Boolean}},emits:["update:color","update:baseColor"],setup(o,{expose:r,emit:s}){const t=o,i=s,{popupVisible:n,baseColor:v,disabled:c,hideTrigger:d}=e.toRefs(t),p=e.ref(),f=e.ref(),{width:m,height:y,top:g,left:h}=l.useElementBounding(f,{updateTiming:"next-frame"}),b=e.computed(()=>a.parseColor(v.value).toHsv()),{x:_,y:C}=l.useDraggable(p,{disabled:c,onMove(){k()}}),x=e=>{c.value||(_.value=e.pageX,C.value=e.pageY,k())},k=()=>{_.value=(_.value-h.value)/m.value,_.value=_.value<0?0:_.value,_.value=_.value>1?1:_.value,C.value=(C.value-g.value)/y.value,C.value=C.value<0?0:C.value,C.value=C.value>1?1:C.value;const e=a.parseColor({...b.value,s:_.value,v:1-C.value}).toHexString();i("update:color",e)};return e.watch(()=>n.value,async e=>{(e||d.value)&&(await u.sleep(0),_.value=b.value.s,C.value=1-b.value.v)},{immediate:!0}),r({setPosition(e){const{s:l,v:u}=a.parseColor(e).toHsv();_.value=l,C.value=1-u}}),(l,a)=>(e.openBlock(),e.createElementBlock("div",{class:"yc-color-picker-palette",style:e.normalizeStyle({backgroundColor:e.unref(v)}),ref_key:"paletteRef",ref:f,onClick:x},[e.createElementVNode("div",{class:"yc-color-picker-handler",style:e.normalizeStyle({transform:`translate(calc(${e.unref(u.valueToPx)(e.unref(_)*e.unref(m))} - 50%),calc(${e.unref(u.valueToPx)(e.unref(C)*e.unref(y))} - 50%))`}),ref_key:"btnRef",ref:p},null,4)],4))}});module.exports=o;
1
+ "use strict";const e=require("vue"),l=require("../node_modules/@vueuse/core/index.js"),a=require("../_shared/utils/color.js");require("../_shared/utils/dom.js");const o=require("../_shared/utils/fn.js");require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const u=e.defineComponent({__name:"ColorPalette",props:{color:{},baseColor:{},popupVisible:{type:Boolean},disabled:{type:Boolean},hideTrigger:{type:Boolean}},emits:["update:color","update:baseColor"],setup(u,{expose:r,emit:s}){const t=u,n=s,{popupVisible:i,baseColor:v,disabled:c,hideTrigger:p}=e.toRefs(t),d=e.ref(),f=e.ref(),{width:m,height:y,top:g,left:h}=l.useElementBounding(f,{updateTiming:"next-frame"}),b=e.computed(()=>a.parseColor(v.value).toHsv()),{x:C,y:_}=l.useDraggable(d,{disabled:c,onMove(){k()}}),x=e=>{c.value||(C.value=e.pageX,_.value=e.pageY,k())},k=()=>{C.value=(C.value-h.value)/m.value,C.value=C.value<0?0:C.value,C.value=C.value>1?1:C.value,_.value=(_.value-g.value)/y.value,_.value=_.value<0?0:_.value,_.value=_.value>1?1:_.value;const e=a.parseColor({...b.value,s:C.value,v:1-_.value}).toHexString();n("update:color",e)};return e.watch(()=>i.value,async e=>{(e||p.value)&&(await o.sleep(0),C.value=b.value.s,_.value=1-b.value.v)},{immediate:!0}),r({setPosition(e){const{s:l,v:o}=a.parseColor(e).toHsv();C.value=l,_.value=1-o}}),(l,a)=>(e.openBlock(),e.createElementBlock("div",{class:"yc-color-picker-palette",style:e.normalizeStyle({backgroundColor:e.unref(v)}),ref_key:"paletteRef",ref:f,onClick:x},[e.createElementVNode("div",{class:"yc-color-picker-handler",style:e.normalizeStyle({transform:`translate(calc(${e.unref(o.valueToPx)(e.unref(C)*e.unref(m))} - 50%),calc(${e.unref(o.valueToPx)(e.unref(_)*e.unref(y))} - 50%))`}),ref_key:"btnRef",ref:d},null,4)],4))}});module.exports=u;
@@ -1 +1 @@
1
- "use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const t=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const n=require("./hooks/useContext.js"),o=require("../Avatar/index.js"),a={Comment:"",class:"yc-comment"},l={key:0,class:"yc-comment-avatar"},c={class:"yc-comment-inner"},r={class:"yc-comment-inner-content"},s={key:0,class:"yc-comment-author"},i={key:1,class:"yc-comment-datetime"},m={key:0,class:"yc-comment-content"},d={key:0,class:"yc-comment-inner-comment"},u=e.defineComponent({name:"Comment",__name:"index",props:{author:{default:""},avatar:{default:""},content:{default:""},datetime:{default:""},align:{default:"left"}},setup(u){const{hasChildren:g}=n();return(n,u)=>(e.openBlock(),e.createElementBlock("div",a,[n.$slots.avatar||n.avatar?(e.openBlock(),e.createElementBlock("div",l,[e.renderSlot(n.$slots,"avatar",{},()=>[e.createVNode(e.unref(o.default),{"image-url":n.avatar,size:e.unref(g)?32:40},null,8,["image-url","size"])],!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",c,[e.createElementVNode("div",r,[e.createElementVNode("div",{class:e.normalizeClass(["yc-comment-title",{"yc-comment-title-align-left":"left"==n.align||e.unref(t.isObject)(n.align)&&"left"==n.align.datetime,"yc-comment-title-align-right":"right"==n.align||e.unref(t.isObject)(n.align)&&"right"==n.align.datetime}])},[n.$slots.author||n.author?(e.openBlock(),e.createElementBlock("span",s,[e.renderSlot(n.$slots,"author",{},()=>[e.createTextVNode(e.toDisplayString(n.author),1)],!0)])):e.createCommentVNode("",!0),n.$slots.datetime||n.datetime?(e.openBlock(),e.createElementBlock("span",i,[e.renderSlot(n.$slots,"datetime",{},()=>[e.createTextVNode(e.toDisplayString(n.datetime),1)],!0)])):e.createCommentVNode("",!0)],2),n.$slots.content||n.content?(e.openBlock(),e.createElementBlock("div",m,[e.renderSlot(n.$slots,"content",{},()=>[e.createTextVNode(e.toDisplayString(n.content),1)],!0)])):e.createCommentVNode("",!0),n.$slots.actions?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["yc-comment-actions",{"yc-comment-actions-align-left":"left"==n.align||e.unref(t.isObject)(n.align)&&"left"==n.align.datetime,"yc-comment-actions-align-right":"right"==n.align||e.unref(t.isObject)(n.align)&&"right"==n.align.datetime}])},[e.renderSlot(n.$slots,"actions",{},void 0,!0)],2)):e.createCommentVNode("",!0)]),n.$slots.default?(e.openBlock(),e.createElementBlock("div",d,[e.renderSlot(n.$slots,"default",{},void 0,!0)])):e.createCommentVNode("",!0)])]))}});module.exports=u;
1
+ "use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const t=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const n=require("./hooks/useContext.js"),o=require("../Avatar/index.js"),a={Comment:"",class:"yc-comment"},l={key:0,class:"yc-comment-avatar"},c={class:"yc-comment-inner"},r={class:"yc-comment-inner-content"},s={key:0,class:"yc-comment-author"},i={key:1,class:"yc-comment-datetime"},m={key:0,class:"yc-comment-content"},d={key:0,class:"yc-comment-inner-comment"},u=e.defineComponent({name:"Comment",__name:"index",props:{author:{default:""},avatar:{default:""},content:{default:""},datetime:{default:""},align:{default:"left"}},setup(u){const{hasChildren:g}=n();return(n,u)=>(e.openBlock(),e.createElementBlock("div",a,[n.$slots.avatar||n.avatar?(e.openBlock(),e.createElementBlock("div",l,[e.renderSlot(n.$slots,"avatar",{},()=>[e.createVNode(e.unref(o.default),{"image-url":n.avatar,size:e.unref(g)?32:40},null,8,["image-url","size"])],!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",c,[e.createElementVNode("div",r,[e.createElementVNode("div",{class:e.normalizeClass(["yc-comment-title",{"yc-comment-title-align-left":"left"==n.align||e.unref(t.isObject)(n.align)&&"left"==n.align.datetime,"yc-comment-title-align-right":"right"==n.align||e.unref(t.isObject)(n.align)&&"right"==n.align.datetime}])},[n.$slots.author||n.author?(e.openBlock(),e.createElementBlock("span",s,[e.renderSlot(n.$slots,"author",{},()=>[e.createTextVNode(e.toDisplayString(n.author),1)],!0)])):e.createCommentVNode("",!0),n.$slots.datetime||n.datetime?(e.openBlock(),e.createElementBlock("span",i,[e.renderSlot(n.$slots,"datetime",{},()=>[e.createTextVNode(e.toDisplayString(n.datetime),1)],!0)])):e.createCommentVNode("",!0)],2),n.$slots.content||n.content?(e.openBlock(),e.createElementBlock("div",m,[e.renderSlot(n.$slots,"content",{},()=>[e.createTextVNode(e.toDisplayString(n.content),1)],!0)])):e.createCommentVNode("",!0),n.$slots.actions?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["yc-comment-actions",{"yc-comment-actions-align-left":"left"==n.align||e.unref(t.isObject)(n.align)&&"left"==n.align.datetime,"yc-comment-actions-align-right":"right"==n.align||e.unref(t.isObject)(n.align)&&"right"==n.align.datetime}])},[e.renderSlot(n.$slots,"actions",{},void 0,!0)],2)):e.createCommentVNode("",!0)]),n.$slots.default?(e.openBlock(),e.createElementBlock("div",d,[e.renderSlot(n.$slots,"default",{},void 0,!0)])):e.createCommentVNode("",!0)])]))}});module.exports=u;
@@ -1,3 +1,4 @@
1
+ import { VNode } from 'vue';
1
2
  export interface CommentProps {
2
3
  author?: string;
3
4
  avatar?: string;
@@ -6,12 +7,12 @@ export interface CommentProps {
6
7
  align?: CommentAlign;
7
8
  }
8
9
  export interface CommentSlots {
9
- avatar(): void;
10
- author(): void;
11
- datetime(): void;
12
- content(): void;
13
- actions(): void;
14
- default(): void;
10
+ avatar?: () => VNode[];
11
+ author?: () => VNode[];
12
+ datetime?: () => VNode[];
13
+ content?: () => VNode[];
14
+ actions?: () => VNode[];
15
+ default?: () => VNode[][];
15
16
  }
16
17
  export type CommentAlign = 'left' | 'right' | {
17
18
  datetime?: 'left' | 'right';
@@ -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 o=require("../_shared/utils/global-config.js"),t=e.defineComponent({name:"ConfigProvider",__name:"index",props:{zIndex:{default:1001},size:{default:"medium"},popupContainer:{default:"body"},updateAtScroll:{type:Boolean,default:!0},scrollToClose:{type:Boolean,default:!1},exchangeTime:{type:Boolean,default:!0}},setup(t){const l=t,{zIndex:s,size:r,updateAtScroll:n,scrollToClose:u,exchangeTime:i,popupContainer:d}=e.toRefs(l),a=e.useSlots();return e.provide(o.CONFIG_PROVIDER_PROVIDE_KEY,{slots:a,zIndex:s,size:r,updateAtScroll:n,scrollToClose:u,exchangeTime:i,popupContainer:d}),(o,t)=>e.renderSlot(o.$slots,"default")}});module.exports=t;
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 o=require("../_shared/utils/global-config.js"),t=e.defineComponent({name:"ConfigProvider",__name:"index",props:{zIndex:{default:1001},size:{default:"medium"},popupContainer:{default:"body"},updateAtScroll:{type:Boolean,default:!0},scrollToClose:{type:Boolean,default:!1},exchangeTime:{type:Boolean,default:!0}},setup(t){const l=e.useSlots(),s=t,{zIndex:r,size:n,updateAtScroll:u,scrollToClose:i,exchangeTime:d,popupContainer:a}=e.toRefs(s);return e.provide(o.CONFIG_PROVIDER_PROVIDE_KEY,{slots:l,zIndex:r,size:n,updateAtScroll:u,scrollToClose:i,exchangeTime:d,popupContainer:a}),(o,t)=>e.renderSlot(o.$slots,"default")}});module.exports=t;
@@ -1,4 +1,5 @@
1
1
  import { Size, PopupContainer } from '../_shared/type';
2
+ import { VNode } from 'vue';
2
3
  export interface ConfigProviderProps {
3
4
  zIndex?: number;
4
5
  size?: Size;
@@ -8,10 +9,10 @@ export interface ConfigProviderProps {
8
9
  exchangeTime?: boolean;
9
10
  }
10
11
  export interface ConfigconfigSlots {
11
- default(): void;
12
- loading(): void;
13
- empty(scope: {
12
+ default?: () => VNode[];
13
+ loading?: () => VNode[];
14
+ empty?: (scope: {
14
15
  component: EmptyComponent;
15
- }): void;
16
+ }) => VNode[];
16
17
  }
17
18
  export type EmptyComponent = 'Select' | 'List' | 'Transfer';
@@ -1 +1 @@
1
- "use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const t=require("../_shared/utils/is.js");require("../_shared/utils/time.js");const l=require("../_shared/utils/vue-utils.js");require("../Empty/index.js");/* empty css */const n=require("./hooks/useContext.js"),r={class:"yc-descriptions-item"},s=e.defineComponent({__name:"ReuseItem",props:{data:{},index:{}},setup(s){const{labelStyle:a,valueStyle:i,slots:o,align:u}=n().inject();return(n,s)=>{var c,d,m,f;return e.openBlock(),e.createElementBlock("td",r,[e.createElementVNode("div",{class:"yc-descriptions-item-label",style:e.normalizeStyle({...e.unref(a),textAlign:e.unref(t.isObject)(e.unref(u))?e.unref(u).label??"left":e.unref(u)})},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(l.getSlotFunction)((null==(d=(c=e.unref(o)).label)?void 0:d.call(c,{label:n.data.label,index:n.index,data:n.data}))??n.data.label))))],4),e.createElementVNode("div",{class:"yc-descriptions-item-value",style:e.normalizeStyle({...e.unref(i),textAlign:e.unref(t.isObject)(e.unref(u))?e.unref(u).value??"left":e.unref(u)})},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(l.getSlotFunction)((null==(f=(m=e.unref(o)).value)?void 0:f.call(m,{value:n.data.value,index:n.index,data:n.data}))??n.data.value))))],4)])}}});module.exports=s;
1
+ "use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const t=require("../_shared/utils/is.js");require("../_shared/utils/time.js");const l=require("../_shared/utils/vue-utils.js");require("../Empty/index.js");/* empty css */const n=require("./hooks/useContext.js"),r={class:"yc-descriptions-item"},s=e.defineComponent({__name:"ReuseItem",props:{data:{},index:{}},setup(s){const{labelStyle:a,valueStyle:o,slots:i,align:u}=n().inject();return(n,s)=>{var c,d,m,f;return e.openBlock(),e.createElementBlock("td",r,[e.createElementVNode("div",{class:"yc-descriptions-item-label",style:e.normalizeStyle({...e.unref(a),textAlign:e.unref(t.isObject)(e.unref(u))?e.unref(u).label??"left":e.unref(u)})},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(l.getSlotFunction)((null==(d=(c=e.unref(i)).label)?void 0:d.call(c,{label:n.data.label,index:n.index,data:n.data}))??n.data.label))))],4),e.createElementVNode("div",{class:"yc-descriptions-item-value",style:e.normalizeStyle({...e.unref(o),textAlign:e.unref(t.isObject)(e.unref(u))?e.unref(u).value??"left":e.unref(u)})},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(l.getSlotFunction)((null==(f=(m=e.unref(i)).value)?void 0:f.call(m,{value:n.data.value,index:n.index,data:n.data}))??n.data.value))))],4)])}}});module.exports=s;
@@ -1 +1 @@
1
- "use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const l=require("../_shared/utils/is.js");require("../_shared/utils/time.js");const t=require("../_shared/utils/vue-utils.js");require("../Empty/index.js");/* empty css */const s=require("./hooks/useContext.js"),n=["colspan"],r=e.defineComponent({__name:"ReuseTd",props:{data:{},index:{},type:{},colspan:{}},setup(r){const{labelStyle:a,valueStyle:i,bordered:o,size:u,align:c,slots:d}=s().inject();return(s,r)=>{var p,m,y,f;return e.openBlock(),e.createElementBlock("td",{class:e.normalizeClass(["label"==s.type?"yc-descriptions-item-label":"yc-descriptions-item-value",`yc-descriptions-item-cell-size-${e.unref(u)}`,{"yc-descriptions-item-cell-bordered":e.unref(o)}]),style:e.normalizeStyle({..."label"==s.type?e.unref(a):e.unref(i),textAlign:e.unref(l.isObject)(e.unref(c))?e.unref(c)[s.type]??"left":e.unref(c)}),colspan:s.colspan},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(t.getSlotFunction)("label"==s.type?(null==(m=(p=e.unref(d)).label)?void 0:m.call(p,{label:s.data.label,index:s.index,data:s.data}))??s.data.label:(null==(f=(y=e.unref(d)).value)?void 0:f.call(y,{value:s.data.value,index:s.index,data:s.data}))??s.data.value))))],14,n)}}});module.exports=r;
1
+ "use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const l=require("../_shared/utils/is.js");require("../_shared/utils/time.js");const t=require("../_shared/utils/vue-utils.js");require("../Empty/index.js");/* empty css */const n=require("./hooks/useContext.js"),s=["colspan"],r=e.defineComponent({__name:"ReuseTd",props:{data:{},index:{},type:{},colspan:{}},setup(r){const{labelStyle:a,valueStyle:i,bordered:o,size:u,align:c,slots:d}=n().inject();return(n,r)=>{var p,m,y,f;return e.openBlock(),e.createElementBlock("td",{class:e.normalizeClass(["label"==n.type?"yc-descriptions-item-label":"yc-descriptions-item-value",`yc-descriptions-item-cell-size-${e.unref(u)}`,{"yc-descriptions-item-cell-bordered":e.unref(o)}]),style:e.normalizeStyle({..."label"==n.type?e.unref(a):e.unref(i),textAlign:e.unref(l.isObject)(e.unref(c))?e.unref(c)[n.type]??"left":e.unref(c)}),colspan:n.colspan},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(t.getSlotFunction)("label"==n.type?(null==(m=(p=e.unref(d)).label)?void 0:m.call(p,{label:n.data.label,index:n.index,data:n.data}))??n.data.label:(null==(f=(y=e.unref(d)).value)?void 0:f.call(y,{value:n.data.value,index:n.index,data:n.data}))??n.data.value))))],14,s)}}});module.exports=r;
@@ -1,6 +1,6 @@
1
1
  import { RenderContent, Size } from '../_shared/type';
2
2
  import { ResponsiveValue } from '../Grid';
3
- import { CSSProperties } from 'vue';
3
+ import { CSSProperties, VNode } from 'vue';
4
4
  export interface DescriptionsProps {
5
5
  data?: DescData[];
6
6
  column?: DescriptionsColumn;
@@ -14,26 +14,26 @@ export interface DescriptionsProps {
14
14
  tableLayout?: TableLayout;
15
15
  }
16
16
  export interface DescriptionsSlots {
17
- default(): void;
18
- value(scope: {
17
+ default?: () => VNode[];
18
+ value?: (scope: {
19
19
  value: string;
20
20
  index: number;
21
21
  data: DescData;
22
- }): void;
23
- label(scope: {
22
+ }) => VNode[];
23
+ label?: (scope: {
24
24
  label: string;
25
25
  index: number;
26
26
  data: DescData;
27
- }): void;
28
- title(): void;
27
+ }) => VNode[];
28
+ title?: () => VNode[];
29
29
  }
30
30
  export interface DescriptionsItemProps {
31
31
  span?: number;
32
32
  label?: string;
33
33
  }
34
34
  export interface DescriptionsItemSlots {
35
- default(): void;
36
- label(): void;
35
+ default?: () => VNode[];
36
+ label?: () => VNode[];
37
37
  }
38
38
  export interface DescData {
39
39
  label?: string | RenderContent;
@@ -1 +1 @@
1
- "use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const r=require("../_shared/utils/fn.js"),t=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const i=e.defineComponent({name:"Divider",__name:"index",props:{direction:{default:"horizontal"},orientation:{default:"center"},type:{default:"solid"},size:{default:1},margin:{default:void 0}},setup(i){const o=i,{size:l,margin:a,direction:n,type:s}=e.toRefs(o),u=e.computed(()=>t.isUndefined(a.value)?"horizontal"==n.value?"20px 0":"0 12px":"horizontal"==n.value?`${r.valueToPx(a.value)} 0`:`0 ${r.valueToPx(a.value)}`),d=e.computed(()=>`${r.valueToPx(l.value)} ${s.value} rgb(229, 230, 235)`);return(r,t)=>(e.openBlock(),e.createElementBlock("div",{role:"separator",class:e.normalizeClass(["yc-divider",`yc-divider-direction-${e.unref(n)}`]),style:e.normalizeStyle({margin:u.value,borderLeft:"vertical"==e.unref(n)?d.value:"",borderBottom:"horizontal"==e.unref(n)?d.value:""})},[r.$slots.default&&"vertical"!=e.unref(n)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["yc-divider-text",`yc-divider-text-${r.orientation}`])},[e.renderSlot(r.$slots,"default",{},void 0,!0)],2)):e.createCommentVNode("",!0)],6))}});module.exports=i;
1
+ "use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const r=require("../_shared/utils/fn.js"),t=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const o=e.defineComponent({name:"Divider",__name:"index",props:{direction:{default:"horizontal"},orientation:{default:"center"},type:{default:"solid"},size:{default:1},margin:{default:void 0}},setup(o){const i=o,{size:l,margin:a,direction:n,type:s}=e.toRefs(i),u=e.computed(()=>t.isUndefined(a.value)?"horizontal"==n.value?"20px 0":"0 12px":"horizontal"==n.value?`${r.valueToPx(a.value)} 0`:`0 ${r.valueToPx(a.value)}`),d=e.computed(()=>`${r.valueToPx(l.value)} ${s.value} rgb(229, 230, 235)`);return(r,t)=>(e.openBlock(),e.createElementBlock("div",{role:"separator",class:e.normalizeClass(["yc-divider",`yc-divider-direction-${e.unref(n)}`]),style:e.normalizeStyle({margin:u.value,borderLeft:"vertical"==e.unref(n)?d.value:"",borderBottom:"horizontal"==e.unref(n)?d.value:""})},[r.$slots.default&&"vertical"!=e.unref(n)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["yc-divider-text",`yc-divider-text-${r.orientation}`])},[e.renderSlot(r.$slots,"default",{},void 0,!0)],2)):e.createCommentVNode("",!0)],6))}});module.exports=o;
@@ -1,4 +1,5 @@
1
1
  import { Direction } from '../_shared/type';
2
+ import { VNode } from 'vue';
2
3
  export interface DividerProps {
3
4
  direction?: Direction;
4
5
  orientation?: Orientation;
@@ -7,7 +8,7 @@ export interface DividerProps {
7
8
  margin?: number;
8
9
  }
9
10
  export interface DividerSlots {
10
- default(): void;
11
+ default?: () => VNode[];
11
12
  }
12
13
  export type Orientation = 'left' | 'center' | 'right';
13
14
  export type DividerType = 'solid' | 'dashed' | 'dotted' | 'double';
@@ -1 +1 @@
1
- "use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const o=require("../_shared/utils/fn.js");require("../_shared/utils/time.js");const t=require("../_shared/utils/global-config.js"),l=require("../Modal/hooks/useModalClose.js"),a=require("../Button/index.js"),r=require("../_shared/components/IconButton.vue.js");;/* empty css */const n={key:0,class:"yc-drawer-header"},s={class:"yc-drawer-title text-ellipsis"},i={class:"yc-drawer-body"},d={key:0,class:"yc-drawer-footer"},c=e.defineComponent({name:"Drawer",inheritAttrs:!1,__name:"Drawer",props:{visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!1},placement:{default:"right"},title:{default:""},mask:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},closable:{type:Boolean,default:!0},okText:{default:"确认"},cancelText:{default:"取消"},okLoading:{type:Boolean,default:!1},okButtonProps:{default:()=>({})},cancelButtonProps:{default:()=>({})},unmountOnClose:{type:Boolean,default:!1},width:{default:250},height:{default:250},popupContainer:{default:void 0},drawerStyle:{default:()=>({})},escToClose:{type:Boolean,default:!0},renderToBody:{type:Boolean,default:!0},header:{type:Boolean,default:!0},footer:{type:Boolean,default:!0},hideCancel:{type:Boolean,default:!1},onBeforeCancel:{type:Function,default:()=>!0},onBeforeOk:{type:Function,default:()=>!0}},emits:["update:visible","ok","cancel","before-open","open","before-close","close"],setup(c,{emit:u}){const f=c,p=u,{visible:m,defaultVisible:y,width:B,height:k,placement:h,maskClosable:v,escToClose:C,drawerStyle:w,renderToBody:b}=e.toRefs(f),{onBeforeOk:g,onBeforeCancel:V}=f,{zIndex:x,popupContainer:T}=t.getGlobalConfig(f),N=e.computed(()=>({height:"left"==h.value||"right"==h.value?"100%":o.valueToPx(k.value),width:"left"==h.value||"right"==h.value?o.valueToPx(B.value):"100%",...w.value})),{outerVisible:S,innerVisible:_,asyncLoading:$,handleClose:q,handleAfterLeave:E}=l({visible:m,defaultVisible:y,escToClose:C,maskClosable:v,onBeforeCancel:V,onBeforeOk:g,emits:p});return(o,t)=>(e.openBlock(),e.createBlock(e.Teleport,{to:e.unref(T),disabled:!e.unref(b)},[!o.unmountOnClose||e.unref(S)?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["yc-drawer-wrapper",`yc-drawer-placement-${e.unref(h)}`,o.$attrs.class,{"yc-drawer-position-absolute":e.unref(T)||!e.unref(b)}]),style:e.normalizeStyle({zIndex:e.unref(x),...o.$attrs.style??{}})},[e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[o.mask?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,class:"yc-drawer-mask",onClick:t[0]||(t[0]=o=>e.unref(q)("mask",o))},null,512)),[[e.vShow,e.unref(_)]]):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:`slide-drawer-${e.unref(h)}`,onBeforeEnter:t[4]||(t[4]=e=>o.$emit("before-open")),onBeforeLeave:t[5]||(t[5]=e=>o.$emit("before-close")),onAfterEnter:t[6]||(t[6]=e=>o.$emit("open")),onAfterLeave:e.unref(E)},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:"yc-drawer-container",style:e.normalizeStyle(N.value)},[e.renderSlot(o.$slots,"header",{},()=>[o.header?(e.openBlock(),e.createElementBlock("div",n,[e.createElementVNode("div",s,[e.renderSlot(o.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(o.title),1)],!0)]),o.closable?(e.openBlock(),e.createBlock(e.unref(r),{key:0,class:"yc-modal-close-button",onClick:t[1]||(t[1]=o=>e.unref(q)("closeBtn",o))})):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],!0),e.createElementVNode("div",i,[e.renderSlot(o.$slots,"default",{},void 0,!0)]),e.renderSlot(o.$slots,"footer",{},()=>[o.footer?(e.openBlock(),e.createElementBlock("div",d,[o.hideCancel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(a.default),e.mergeProps({key:0},o.cancelButtonProps,{onClick:t[2]||(t[2]=o=>e.unref(q)("cancelBtn",o))}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.cancelText),1)]),_:1},16)),e.createVNode(e.unref(a.default),e.mergeProps({type:"primary",loading:o.okLoading||e.unref($)},o.okButtonProps,{onClick:t[3]||(t[3]=o=>e.unref(q)("confirmBtn",o))}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.okText),1)]),_:1},16,["loading"])])):e.createCommentVNode("",!0)],!0)],4),[[e.vShow,e.unref(_)]])]),_:3},8,["name","onAfterLeave"])],6)),[[e.vShow,e.unref(S)]]):e.createCommentVNode("",!0)],8,["to","disabled"]))}});module.exports=c;
1
+ "use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const o=require("../_shared/utils/fn.js");require("../_shared/utils/time.js");const t=require("../_shared/utils/global-config.js"),l=require("../Modal/hooks/useModalClose.js"),a=require("../Button/index.js"),r=require("../_shared/components/IconButton.vue.js");,/* empty css */;/* empty css */const n={key:0,class:"yc-drawer-header"},s={class:"yc-drawer-title text-ellipsis"},i={class:"yc-drawer-body"},d={key:0,class:"yc-drawer-footer"},c=e.defineComponent({name:"Drawer",inheritAttrs:!1,__name:"Drawer",props:{visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!1},placement:{default:"right"},title:{default:""},mask:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},closable:{type:Boolean,default:!0},okText:{default:"确认"},cancelText:{default:"取消"},okLoading:{type:Boolean,default:!1},okButtonProps:{default:()=>({})},cancelButtonProps:{default:()=>({})},unmountOnClose:{type:Boolean,default:!1},width:{default:250},height:{default:250},popupContainer:{default:void 0},drawerStyle:{default:()=>({})},escToClose:{type:Boolean,default:!0},renderToBody:{type:Boolean,default:!0},header:{type:Boolean,default:!0},footer:{type:Boolean,default:!0},hideCancel:{type:Boolean,default:!1},onBeforeCancel:{type:Function,default:()=>!0},onBeforeOk:{type:Function,default:()=>!0}},emits:["update:visible","ok","cancel","before-open","open","before-close","close"],setup(c,{emit:u}){const f=c,p=u,{visible:m,defaultVisible:y,width:B,height:k,placement:h,maskClosable:v,escToClose:C,drawerStyle:w,renderToBody:b}=e.toRefs(f),{onBeforeOk:g,onBeforeCancel:V}=f,{zIndex:x,popupContainer:T}=t.getGlobalConfig(f),N=e.computed(()=>({height:"left"==h.value||"right"==h.value?"100%":o.valueToPx(k.value),width:"left"==h.value||"right"==h.value?o.valueToPx(B.value):"100%",...w.value})),{outerVisible:S,innerVisible:_,asyncLoading:q,handleClose:$,handleAfterLeave:j}=l({visible:m,defaultVisible:y,escToClose:C,maskClosable:v,onBeforeCancel:V,onBeforeOk:g,emits:p});return(o,t)=>(e.openBlock(),e.createBlock(e.Teleport,{to:e.unref(T),disabled:!e.unref(b)},[!o.unmountOnClose||e.unref(S)?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["yc-drawer-wrapper",`yc-drawer-placement-${e.unref(h)}`,o.$attrs.class,{"yc-drawer-position-absolute":e.unref(T)||!e.unref(b)}]),style:e.normalizeStyle({zIndex:e.unref(x),...o.$attrs.style??{}})},[e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[o.mask?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,class:"yc-drawer-mask",onClick:t[0]||(t[0]=o=>e.unref($)("mask",o))},null,512)),[[e.vShow,e.unref(_)]]):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:`slide-drawer-${e.unref(h)}`,onBeforeEnter:t[4]||(t[4]=e=>o.$emit("before-open")),onBeforeLeave:t[5]||(t[5]=e=>o.$emit("before-close")),onAfterEnter:t[6]||(t[6]=e=>o.$emit("open")),onAfterLeave:e.unref(j)},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:"yc-drawer-container",style:e.normalizeStyle(N.value)},[e.renderSlot(o.$slots,"header",{},()=>[o.header?(e.openBlock(),e.createElementBlock("div",n,[e.createElementVNode("div",s,[e.renderSlot(o.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(o.title),1)],!0)]),o.closable?(e.openBlock(),e.createBlock(e.unref(r),{key:0,class:"yc-modal-close-button",onClick:t[1]||(t[1]=o=>e.unref($)("closeBtn",o))})):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],!0),e.createElementVNode("div",i,[e.renderSlot(o.$slots,"default",{},void 0,!0)]),e.renderSlot(o.$slots,"footer",{},()=>[o.footer?(e.openBlock(),e.createElementBlock("div",d,[o.hideCancel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(a.default),e.mergeProps({key:0},o.cancelButtonProps,{onClick:t[2]||(t[2]=o=>e.unref($)("cancelBtn",o))}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.cancelText),1)]),_:1},16)),e.createVNode(e.unref(a.default),e.mergeProps({type:"primary",loading:o.okLoading||e.unref(q)},o.okButtonProps,{onClick:t[3]||(t[3]=o=>e.unref($)("confirmBtn",o))}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.okText),1)]),_:1},16,["loading"])])):e.createCommentVNode("",!0)],!0)],4),[[e.vShow,e.unref(_)]])]),_:3},8,["name","onAfterLeave"])],6)),[[e.vShow,e.unref(S)]]):e.createCommentVNode("",!0)],8,["to","disabled"]))}});module.exports=c;
@@ -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 o=require("../_shared/utils/vue-utils.js");require("../Empty/index.js");/* empty css */const n=require("./Drawer.vue.js"),l={class:"yc-drawer-body-content"},t=e.defineComponent({__name:"DrawerService",props:{placement:{default:"right"},title:{type:[String,Array,Function],default:""},mask:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},closable:{type:Boolean,default:!0},okText:{default:"确认"},cancelText:{default:"取消"},okLoading:{type:Boolean,default:!1},okButtonProps:{default:()=>({})},cancelButtonProps:{default:()=>({})},unmountOnClose:{type:Boolean,default:!1},width:{default:250},height:{default:250},popupContainer:{default:"yc-overlay-drawer"},drawerStyle:{default:()=>({})},escToClose:{type:Boolean,default:!0},renderToBody:{type:Boolean,default:!1},header:{type:Boolean,default:!0},footer:{type:Boolean,default:!0},hideCancel:{type:Boolean,default:!1},onBeforeCancel:{type:Function,default:()=>!0},onBeforeOk:{type:Function,default:()=>!0},content:{},onOk:{},onCancel:{},onOpen:{},onClose:{},onBeforeOpen:{},onBeforeClose:{},serviceClose:{}},setup(t){const r=t,{onClose:a,serviceClose:u}=r,s=e.ref(!1),i=()=>{null==u||u(),null==a||a()};return e.onMounted(()=>{s.value=!0}),(t,a)=>(e.openBlock(),e.createBlock(n,e.mergeProps(r,{visible:s.value,"onUpdate:visible":a[0]||(a[0]=e=>s.value=e),onOk:a[1]||(a[1]=e=>{var o;return null==(o=t.onOk)?void 0:o.call(t)}),onCancel:a[2]||(a[2]=e=>{var o;return null==(o=t.onCancel)?void 0:o.call(t)}),onBeforeOpen:a[3]||(a[3]=e=>{var o;return null==(o=t.onBeforeOpen)?void 0:o.call(t)}),onBeforeClose:a[4]||(a[4]=e=>{var o;return null==(o=t.onBeforeClose)?void 0:o.call(t)}),onOpen:a[5]||(a[5]=e=>{var o;return null==(o=t.onOpen)?void 0:o.call(t)}),onClose:i}),{title:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(o.getSlotFunction)(t.title))))]),default:e.withCtx(()=>[e.createElementVNode("div",l,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(o.getSlotFunction)(t.content))))])]),_:1},16,["visible"]))}});module.exports=t;
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 o=require("../_shared/utils/vue-utils.js");require("../Empty/index.js");/* empty css */const n=require("./Drawer.vue.js"),l={class:"yc-drawer-body-content"},t=e.defineComponent({__name:"DrawerService",props:{placement:{default:"right"},title:{type:[String,Array,Function],default:""},mask:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},closable:{type:Boolean,default:!0},okText:{default:"确认"},cancelText:{default:"取消"},okLoading:{type:Boolean,default:!1},okButtonProps:{default:()=>({})},cancelButtonProps:{default:()=>({})},unmountOnClose:{type:Boolean,default:!1},width:{default:250},height:{default:250},popupContainer:{default:"yc-overlay-drawer"},drawerStyle:{default:()=>({})},escToClose:{type:Boolean,default:!0},renderToBody:{type:Boolean,default:!1},header:{type:Boolean,default:!0},footer:{type:Boolean,default:!0},hideCancel:{type:Boolean,default:!1},onBeforeCancel:{type:Function,default:()=>!0},onBeforeOk:{type:Function,default:()=>!0},content:{},onOk:{},onCancel:{},onOpen:{},onClose:{},onBeforeOpen:{},onBeforeClose:{},serviceClose:{}},setup(t){const r=t,{onClose:a,serviceClose:u}=r,s=e.ref(!1),c=()=>{null==u||u(),null==a||a()};return e.onMounted(()=>{s.value=!0}),(t,a)=>(e.openBlock(),e.createBlock(n,e.mergeProps(r,{visible:s.value,"onUpdate:visible":a[0]||(a[0]=e=>s.value=e),onOk:a[1]||(a[1]=e=>{var o;return null==(o=t.onOk)?void 0:o.call(t)}),onCancel:a[2]||(a[2]=e=>{var o;return null==(o=t.onCancel)?void 0:o.call(t)}),onBeforeOpen:a[3]||(a[3]=e=>{var o;return null==(o=t.onBeforeOpen)?void 0:o.call(t)}),onBeforeClose:a[4]||(a[4]=e=>{var o;return null==(o=t.onBeforeClose)?void 0:o.call(t)}),onOpen:a[5]||(a[5]=e=>{var o;return null==(o=t.onOpen)?void 0:o.call(t)}),onClose:c}),{title:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(o.getSlotFunction)(t.title))))]),default:e.withCtx(()=>[e.createElementVNode("div",l,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(o.getSlotFunction)(t.content))))])]),_:1},16,["visible"]))}});module.exports=t;
@@ -1,4 +1,4 @@
1
- import { CSSProperties } from 'vue';
1
+ import { CSSProperties, VNode } from 'vue';
2
2
  import { ButtonProps } from '../Button';
3
3
  import { OnBeforeCancel, OnBeforeOk } from '../Modal';
4
4
  import { RenderContent, PopupContainer } from '../_shared/type';
@@ -29,10 +29,10 @@ export interface DrawerProps {
29
29
  onBeforeOk?: OnBeforeOk;
30
30
  }
31
31
  export interface DrawerSlots {
32
- default(): void;
33
- header(): void;
34
- footer(): void;
35
- title(): void;
32
+ default?: () => VNode[];
33
+ header?: () => VNode[];
34
+ footer?: () => VNode[];
35
+ title?: () => VNode[];
36
36
  }
37
37
  export interface DrawerEmits {
38
38
  (e: 'update:visible', value: boolean): void;
@@ -1 +1 @@
1
- "use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const o=require("../_shared/utils/fn.js"),t=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const i=require("./hooks/useContext.js"),l=require("../Trigger/index.js"),r=require("../Scrollbar/index.js"),s={class:"yc-dropdown"},n={class:"yc-dropdown-list"},u={key:0,class:"yc-dropdown-footer"},a=e.defineComponent({name:"Dropdown",__name:"Dropdown",props:{popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},trigger:{default:"click"},position:{default:"bottom"},popupContainer:{default:void 0},hideOnSelect:{type:Boolean,default:!0},alignPoint:{type:Boolean,default:!1},triggerProps:{default:()=>({})},popupMaxHeight:{type:[Number,Boolean],default:200},theme:{default:"light"}},emits:["update:popupVisible","popup-visible-change","select"],setup(a,{expose:p,emit:d}){const c=a,m=d,{trigger:f,position:g,popupMaxHeight:v}=e.toRefs(c),{computedVisible:y}=i().provide(c,m),h=e.computed(()=>["top","tl","tr","bottom","bl","br"].includes(g.value)?g.value:"bottom"),b=e.computed(()=>t.isBoolean(v.value)&&!v.value||t.isUndefined(v)?"":o.valueToPx(t.isBoolean(v.value)?200:v.value));return p({show(){y.value=!0},hide(){y.value=!0}}),(o,t)=>(e.openBlock(),e.createBlock(e.unref(l),e.mergeProps({"popup-visible":e.unref(y),"onUpdate:popupVisible":t[0]||(t[0]=o=>e.isRef(y)?y.value=o:null),trigger:e.unref(f),position:h.value,"popup-offset":4,"mouse-enter-delay":150,"mouse-leave-delay":150,alignPoint:o.alignPoint,"auto-fit-popup-min-width":!o.alignPoint&&["top","bottom"].includes(h.value),class:["yc-dropdown-popup",,`yc-dropdown-theme-${o.theme}`,o.$attrs.class],style:o.$attrs.style,"animation-name":"slide-dynamic-origin","need-transform-origin":""},o.triggerProps),{content:e.withCtx(()=>[e.createElementVNode("div",s,[e.createVNode(e.unref(r),{style:e.normalizeStyle({maxHeight:b.value})},{default:e.withCtx(()=>[e.createElementVNode("div",n,[e.renderSlot(o.$slots,"content")])]),_:3},8,["style"]),o.$slots.footer?(e.openBlock(),e.createElementBlock("div",u,[e.renderSlot(o.$slots,"footer")])):e.createCommentVNode("",!0)])]),default:e.withCtx(()=>[e.renderSlot(o.$slots,"default")]),_:3},16,["popup-visible","trigger","position","alignPoint","auto-fit-popup-min-width","class","style"]))}});module.exports=a;
1
+ "use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const o=require("../_shared/utils/fn.js"),t=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const i=require("./hooks/useContext.js"),l=require("../Trigger/index.js"),r=require("../Scrollbar/index.js"),s={class:"yc-dropdown"},n={class:"yc-dropdown-list"},u={key:0,class:"yc-dropdown-footer"},a=e.defineComponent({name:"Dropdown",__name:"Dropdown",props:{popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},trigger:{default:"click"},position:{default:"bottom"},popupContainer:{default:void 0},hideOnSelect:{type:Boolean,default:!0},alignPoint:{type:Boolean,default:!1},triggerProps:{default:()=>({})},popupMaxHeight:{type:[Number,Boolean],default:200},theme:{default:"light"}},emits:["update:popupVisible","popup-visible-change","select"],setup(a,{expose:p,emit:d}){const c=a,m=d,{trigger:f,position:g,popupMaxHeight:v}=e.toRefs(c),{computedVisible:y}=i().provide(c,m),h=e.computed(()=>["top","tl","tr","bottom","bl","br"].includes(g.value)?g.value:"bottom"),b=e.computed(()=>t.isBoolean(v.value)&&!v.value||t.isUndefined(v)?"":o.valueToPx(t.isBoolean(v.value)?200:v.value));return p({show(){y.value=!0},hide(){y.value=!0}}),(o,t)=>(e.openBlock(),e.createBlock(e.unref(l),e.mergeProps({"popup-visible":e.unref(y),"onUpdate:popupVisible":t[0]||(t[0]=o=>e.isRef(y)?y.value=o:null),trigger:e.unref(f),position:h.value,"popup-offset":4,"mouse-enter-delay":150,"mouse-leave-delay":150,alignPoint:o.alignPoint,"auto-fit-popup-min-width":!o.alignPoint&&["top","bottom"].includes(h.value),class:["yc-dropdown-popup",,`yc-dropdown-theme-${o.theme}`,o.$attrs.class],style:o.$attrs.style,"animation-name":"slide-dynamic-origin","need-transform-origin":""},o.triggerProps),{content:e.withCtx(()=>[e.createElementVNode("div",s,[e.createVNode(e.unref(r),{style:e.normalizeStyle({maxHeight:b.value})},{default:e.withCtx(()=>[e.createElementVNode("div",n,[e.renderSlot(o.$slots,"content")])]),_:3},8,["style"]),o.$slots.footer?(e.openBlock(),e.createElementBlock("div",u,[e.renderSlot(o.$slots,"footer")])):e.createCommentVNode("",!0)])]),default:e.withCtx(()=>[e.renderSlot(o.$slots,"default")]),_:3},16,["popup-visible","trigger","position","alignPoint","auto-fit-popup-min-width","class","style"]))}});module.exports=a;
@@ -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"),require("../Empty/index.js");/* empty css */const t=require("../_shared/icons/IconMore.vue.js"),o=require("./Dropdown.vue.js");;/* empty css */const i=require("../Button/index.js"),r=require("../Button/ButtonGroup.vue.js");;/* empty css */const u=e.defineComponent({name:"DropdownButton",__name:"DropdownButton",props:{popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},trigger:{default:"click"},position:{default:"br"},popupContainer:{default:void 0},disabled:{type:Boolean,default:!1},type:{default:"secondary"},size:{default:void 0},buttonProps:{default:()=>({})},hideOnSelect:{type:Boolean,default:!0}},emits:["popup-visible-change","click","select"],setup:u=>(u,s)=>(e.openBlock(),e.createBlock(e.unref(r),{disabled:u.disabled,type:u.type,size:u.size},{default:e.withCtx(()=>[e.createVNode(e.unref(i.default),e.mergeProps(u.buttonProps,{onClick:s[0]||(s[0]=e=>u.$emit("click",e))}),{default:e.withCtx(()=>[e.renderSlot(u.$slots,"default")]),_:3},16),e.createVNode(o,e.mergeProps({"popup-visible":u.popupVisible,"default-popup-visible":u.defaultPopupVisible,trigger:u.trigger,position:u.position,"popup-container":u.popupContainer,"hide-on-select":u.hideOnSelect,disabled:u.disabled},u.$attrs,{onSelect:s[1]||(s[1]=e=>u.$emit("select",e)),onPopupVisibleChange:s[2]||(s[2]=e=>u.$emit("popup-visible-change",e))}),{content:e.withCtx(()=>[e.renderSlot(u.$slots,"content")]),default:e.withCtx(()=>[e.createVNode(e.unref(i.default),e.normalizeProps(e.guardReactiveProps(u.buttonProps)),{icon:e.withCtx(()=>[e.renderSlot(u.$slots,"icon",{},()=>[e.createVNode(e.unref(t))])]),_:3},16)]),_:3},16,["popup-visible","default-popup-visible","trigger","position","popup-container","hide-on-select","disabled"])]),_:3},8,["disabled","type","size"]))});module.exports=u;
1
+ "use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const t=require("../_shared/icons/IconMore.vue.js"),o=require("./Dropdown.vue.js");;/* empty css */const i=require("../Button/index.js"),r=require("../Button/ButtonGroup.vue.js");;/* empty css */const u=e.defineComponent({name:"DropdownButton",__name:"DropdownButton",props:{popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},trigger:{default:"click"},position:{default:"br"},popupContainer:{default:void 0},disabled:{type:Boolean,default:!1},type:{default:"secondary"},size:{default:void 0},buttonProps:{default:()=>({})},hideOnSelect:{type:Boolean,default:!0}},emits:["popup-visible-change","click","select"],setup:u=>(u,s)=>(e.openBlock(),e.createBlock(e.unref(r),{disabled:u.disabled,type:u.type,size:u.size},{default:e.withCtx(()=>[e.createVNode(e.unref(i.default),e.mergeProps(u.buttonProps,{onClick:s[0]||(s[0]=e=>u.$emit("click",e))}),{default:e.withCtx(()=>[e.renderSlot(u.$slots,"default")]),_:3},16),e.createVNode(o,e.mergeProps({"popup-visible":u.popupVisible,"default-popup-visible":u.defaultPopupVisible,trigger:u.trigger,position:u.position,"popup-container":u.popupContainer,"hide-on-select":u.hideOnSelect,disabled:u.disabled},u.$attrs,{onSelect:s[1]||(s[1]=e=>u.$emit("select",e)),onPopupVisibleChange:s[2]||(s[2]=e=>u.$emit("popup-visible-change",e))}),{content:e.withCtx(()=>[e.renderSlot(u.$slots,"content")]),default:e.withCtx(()=>[e.createVNode(e.unref(i.default),e.normalizeProps(e.guardReactiveProps(u.buttonProps)),{icon:e.withCtx(()=>[e.renderSlot(u.$slots,"icon",{},()=>[e.createVNode(e.unref(t))])]),_:3},16)]),_:3},16,["popup-visible","default-popup-visible","trigger","position","popup-container","hide-on-select","disabled"])]),_:3},8,["disabled","type","size"]))});module.exports=u;
@@ -56,7 +56,70 @@ declare function __VLS_template(): {
56
56
  $attrs: {
57
57
  [x: string]: unknown;
58
58
  };
59
- $refs: any;
59
+ $refs: {
60
+ [x: string]: unknown;
61
+ } & {
62
+ triggerRef: unknown;
63
+ popupRef: ({
64
+ $: import('vue').ComponentInternalInstance;
65
+ $data: {};
66
+ $props: {
67
+ readonly preventFocus?: boolean | undefined;
68
+ readonly tag?: string | undefined;
69
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
70
+ $attrs: {
71
+ [x: string]: unknown;
72
+ };
73
+ $refs: {
74
+ [x: string]: unknown;
75
+ };
76
+ $slots: Readonly<{
77
+ [name: string]: import('vue').Slot<any> | undefined;
78
+ }>;
79
+ $root: import('vue').ComponentPublicInstance | null;
80
+ $parent: import('vue').ComponentPublicInstance | null;
81
+ $host: Element | null;
82
+ $emit: (event: string, ...args: any[]) => void;
83
+ $el: any;
84
+ $options: import('vue').ComponentOptionsBase<Readonly<{
85
+ preventFocus?: boolean;
86
+ tag?: string;
87
+ }> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
88
+ preventFocus: boolean;
89
+ tag: string;
90
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
91
+ beforeCreate?: (() => void) | (() => void)[];
92
+ created?: (() => void) | (() => void)[];
93
+ beforeMount?: (() => void) | (() => void)[];
94
+ mounted?: (() => void) | (() => void)[];
95
+ beforeUpdate?: (() => void) | (() => void)[];
96
+ updated?: (() => void) | (() => void)[];
97
+ activated?: (() => void) | (() => void)[];
98
+ deactivated?: (() => void) | (() => void)[];
99
+ beforeDestroy?: (() => void) | (() => void)[];
100
+ beforeUnmount?: (() => void) | (() => void)[];
101
+ destroyed?: (() => void) | (() => void)[];
102
+ unmounted?: (() => void) | (() => void)[];
103
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
104
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
105
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
106
+ };
107
+ $forceUpdate: () => void;
108
+ $nextTick: typeof nextTick;
109
+ $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;
110
+ } & Readonly<{
111
+ preventFocus: boolean;
112
+ tag: string;
113
+ }> & Omit<Readonly<{
114
+ preventFocus?: boolean;
115
+ tag?: string;
116
+ }> & Readonly<{}>, "preventFocus" | "tag"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
117
+ $slots: {
118
+ default?(_: {}): any;
119
+ };
120
+ }) | null;
121
+ arrowRef: HTMLDivElement;
122
+ };
60
123
  $slots: Readonly<{
61
124
  [name: string]: import('vue').Slot<any> | undefined;
62
125
  }>;
@@ -177,7 +240,7 @@ declare function __VLS_template(): {
177
240
  show(): void;
178
241
  updatePosition(x: number, y: number): void;
179
242
  }> & {} & import('vue').ComponentCustomProperties & {} & {
180
- $slots: any;
243
+ $slots: Readonly<import('../Trigger').TriggerSlots> & import('../Trigger').TriggerSlots;
181
244
  }) | null;
182
245
  optionRef: ({
183
246
  $: import('vue').ComponentInternalInstance;
@@ -314,7 +377,70 @@ declare const __VLS_component: import('vue').DefineComponent<DsubmenuProps, {
314
377
  $attrs: {
315
378
  [x: string]: unknown;
316
379
  };
317
- $refs: any;
380
+ $refs: {
381
+ [x: string]: unknown;
382
+ } & {
383
+ triggerRef: unknown;
384
+ popupRef: ({
385
+ $: import('vue').ComponentInternalInstance;
386
+ $data: {};
387
+ $props: {
388
+ readonly preventFocus?: boolean | undefined;
389
+ readonly tag?: string | undefined;
390
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
391
+ $attrs: {
392
+ [x: string]: unknown;
393
+ };
394
+ $refs: {
395
+ [x: string]: unknown;
396
+ };
397
+ $slots: Readonly<{
398
+ [name: string]: import('vue').Slot<any> | undefined;
399
+ }>;
400
+ $root: import('vue').ComponentPublicInstance | null;
401
+ $parent: import('vue').ComponentPublicInstance | null;
402
+ $host: Element | null;
403
+ $emit: (event: string, ...args: any[]) => void;
404
+ $el: any;
405
+ $options: import('vue').ComponentOptionsBase<Readonly<{
406
+ preventFocus?: boolean;
407
+ tag?: string;
408
+ }> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
409
+ preventFocus: boolean;
410
+ tag: string;
411
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
412
+ beforeCreate?: (() => void) | (() => void)[];
413
+ created?: (() => void) | (() => void)[];
414
+ beforeMount?: (() => void) | (() => void)[];
415
+ mounted?: (() => void) | (() => void)[];
416
+ beforeUpdate?: (() => void) | (() => void)[];
417
+ updated?: (() => void) | (() => void)[];
418
+ activated?: (() => void) | (() => void)[];
419
+ deactivated?: (() => void) | (() => void)[];
420
+ beforeDestroy?: (() => void) | (() => void)[];
421
+ beforeUnmount?: (() => void) | (() => void)[];
422
+ destroyed?: (() => void) | (() => void)[];
423
+ unmounted?: (() => void) | (() => void)[];
424
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
425
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
426
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
427
+ };
428
+ $forceUpdate: () => void;
429
+ $nextTick: typeof nextTick;
430
+ $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;
431
+ } & Readonly<{
432
+ preventFocus: boolean;
433
+ tag: string;
434
+ }> & Omit<Readonly<{
435
+ preventFocus?: boolean;
436
+ tag?: string;
437
+ }> & Readonly<{}>, "preventFocus" | "tag"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
438
+ $slots: {
439
+ default?(_: {}): any;
440
+ };
441
+ }) | null;
442
+ arrowRef: HTMLDivElement;
443
+ };
318
444
  $slots: Readonly<{
319
445
  [name: string]: import('vue').Slot<any> | undefined;
320
446
  }>;
@@ -435,7 +561,7 @@ declare const __VLS_component: import('vue').DefineComponent<DsubmenuProps, {
435
561
  show(): void;
436
562
  updatePosition(x: number, y: number): void;
437
563
  }> & {} & import('vue').ComponentCustomProperties & {} & {
438
- $slots: any;
564
+ $slots: Readonly<import('../Trigger').TriggerSlots> & import('../Trigger').TriggerSlots;
439
565
  }) | null;
440
566
  optionRef: ({
441
567
  $: import('vue').ComponentInternalInstance;
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),t=require("../node_modules/@vueuse/core/index.js");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const o=require("../_shared/utils/fn.js"),i=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const r=require("../_shared/icons/IconArrowRight.vue.js"),s=require("../_shared/utils/control.js"),l=require("./hooks/useContext.js");require("./index.js");const u=require("../Trigger/index.js"),n=require("../Scrollbar/index.js"),a=require("./Doption.vue.js"),d={class:"yc-dropdown-list"},p={key:0,class:"yc-dropdown-footer"},c=e.defineComponent({name:"Dsubmenu",__name:"Dsubmenu",props:{disabled:{type:Boolean,default:!1},trigger:{default:"click"},position:{default:"rt"},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},triggerProps:{default:()=>({})},popupMaxHeight:{default:200}},emits:["update:popupVisible","popup-visible-change"],setup(c,{expose:f,emit:m}){const v=c,g=m,{defaultPopupVisible:h,popupVisible:y,trigger:b,position:x,popupMaxHeight:_}=e.toRefs(v),{theme:j}=l().inject(),q=s(y,h.value,e=>{g("update:popupVisible",e),g("popup-visible-change",e)}),w=e.ref(),V=e.ref(),k=e.computed(()=>["rt","lt"].includes(x.value)?x.value:"rt"),C=e.computed(()=>["hover","click"].includes(b.value)?b.value:"hover"),B=e.computed(()=>i.isBoolean(_.value)&&!_.value||i.isUndefined(_)?"":o.valueToPx(i.isBoolean(_.value)?200:_.value)),P=async()=>{var o;await e.nextTick();const i=t.unrefElement(w);if(!i)return;const{left:r,top:s,right:l,width:u}=i.getBoundingClientRect(),n="rt"==k.value?l:r-u,a=s-5;null==(o=V.value)||o.updatePosition(n,a)};return f({show(){q.value=!0},hide(){q.value=!1}}),(t,o)=>(e.openBlock(),e.createBlock(e.unref(u),e.mergeProps({"popup-visible":e.unref(q),"onUpdate:popupVisible":o[0]||(o[0]=t=>e.isRef(q)?q.value=t:null),trigger:C.value,position:k.value,"popup-offset":4,disabled:t.disabled,"mouse-enter-delay":150,"mouse-leave-delay":150,"on-trigger-mouseenter":P,"on-trigger-mouseclick":P,"need-transform-origin":"","auto-set-position":"","auto-fit-popup-min-width":"",ref_key:"triggerRef",ref:V},t.triggerProps),{content:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["yc-dropdown",`yc-dropdown-theme-${e.unref(j)}`])},[e.createVNode(e.unref(n),{style:e.normalizeStyle({maxHeight:B.value})},{default:e.withCtx(()=>[e.createElementVNode("div",d,[e.renderSlot(t.$slots,"content",{},void 0,!0)])]),_:3},8,["style"]),t.$slots.footer?(e.openBlock(),e.createElementBlock("div",p,[e.renderSlot(t.$slots,"footer",{},void 0,!0)])):e.createCommentVNode("",!0)],2)]),default:e.withCtx(()=>[e.createVNode(e.unref(a),{disabled:t.disabled,theme:e.unref(j),class:e.normalizeClass(t.$attrs.class),style:e.normalizeStyle(t.$attrs.style),"is-submenu":"",ref_key:"optionRef",ref:w},{suffix:e.withCtx(()=>[e.createVNode(e.unref(r))]),default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3},8,["disabled","theme","class","style"])]),_:3},16,["popup-visible","trigger","position","disabled"]))}});module.exports=c;
1
+ "use strict";const e=require("vue"),t=require("../node_modules/@vueuse/core/index.js");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const o=require("../_shared/utils/fn.js"),i=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const r=require("../_shared/icons/IconArrowRight.vue.js"),s=require("../_shared/utils/control.js"),l=require("./hooks/useContext.js");require("./index.js");const u=require("../Trigger/index.js"),n=require("../Scrollbar/index.js"),a=require("./Doption.vue.js"),d={class:"yc-dropdown-list"},p={key:0,class:"yc-dropdown-footer"},c=e.defineComponent({name:"Dsubmenu",__name:"Dsubmenu",props:{disabled:{type:Boolean,default:!1},trigger:{default:"click"},position:{default:"rt"},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},triggerProps:{default:()=>({})},popupMaxHeight:{default:200}},emits:["update:popupVisible","popup-visible-change"],setup(c,{expose:f,emit:m}){const v=c,g=m,{defaultPopupVisible:h,popupVisible:y,trigger:b,position:x,popupMaxHeight:j}=e.toRefs(v),{theme:q}=l().inject(),_=s(y,h.value,e=>{g("update:popupVisible",e),g("popup-visible-change",e)}),w=e.ref(),V=e.ref(),k=e.computed(()=>["rt","lt"].includes(x.value)?x.value:"rt"),C=e.computed(()=>["hover","click"].includes(b.value)?b.value:"hover"),B=e.computed(()=>i.isBoolean(j.value)&&!j.value||i.isUndefined(j)?"":o.valueToPx(i.isBoolean(j.value)?200:j.value)),P=async()=>{var o;await e.nextTick();const i=t.unrefElement(w);if(!i)return;const{left:r,top:s,right:l,width:u}=i.getBoundingClientRect(),n="rt"==k.value?l:r-u,a=s-5;null==(o=V.value)||o.updatePosition(n,a)};return f({show(){_.value=!0},hide(){_.value=!1}}),(t,o)=>(e.openBlock(),e.createBlock(e.unref(u),e.mergeProps({"popup-visible":e.unref(_),"onUpdate:popupVisible":o[0]||(o[0]=t=>e.isRef(_)?_.value=t:null),trigger:C.value,position:k.value,"popup-offset":4,disabled:t.disabled,"mouse-enter-delay":150,"mouse-leave-delay":150,"on-trigger-mouseenter":P,"on-trigger-mouseclick":P,"need-transform-origin":"","auto-set-position":"","auto-fit-popup-min-width":"",ref_key:"triggerRef",ref:V},t.triggerProps),{content:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["yc-dropdown",`yc-dropdown-theme-${e.unref(q)}`])},[e.createVNode(e.unref(n),{style:e.normalizeStyle({maxHeight:B.value})},{default:e.withCtx(()=>[e.createElementVNode("div",d,[e.renderSlot(t.$slots,"content",{},void 0,!0)])]),_:3},8,["style"]),t.$slots.footer?(e.openBlock(),e.createElementBlock("div",p,[e.renderSlot(t.$slots,"footer",{},void 0,!0)])):e.createCommentVNode("",!0)],2)]),default:e.withCtx(()=>[e.createVNode(e.unref(a),{disabled:t.disabled,theme:e.unref(q),class:e.normalizeClass(t.$attrs.class),style:e.normalizeStyle(t.$attrs.style),"is-submenu":"",ref_key:"optionRef",ref:w},{suffix:e.withCtx(()=>[e.createVNode(e.unref(r))]),default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3},8,["disabled","theme","class","style"])]),_:3},16,["popup-visible","trigger","position","disabled"]))}});module.exports=c;
@@ -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"),require("../../Empty/index.js");/* empty css */const i=require("../../_shared/utils/control.js"),s="dropdown-context";module.exports=()=>({provide:(t,o)=>{const{popupVisible:r,defaultPopupVisible:u,hideOnSelect:l,theme:p,position:c}=e.toRefs(t),n=i(r,u.value,e=>{o("update:popupVisible",e),o("popup-visible-change",e)});return e.provide(s,{theme:p,select:(e,i)=>{o("select",e,i),l.value&&(n.value=!1)}}),{computedVisible:n}},inject:()=>e.inject(s,{theme:e.ref("light"),select:()=>{}})});
1
+ "use strict";const e=require("vue");require("../../node_modules/tinycolor2/esm/tinycolor.js"),require("../../_shared/utils/dom.js"),require("../../_shared/utils/time.js"),require("../../Empty/index.js");/* empty css */const i=require("../../_shared/utils/control.js"),t="dropdown-context";module.exports=()=>({provide:(s,o)=>{const{popupVisible:r,defaultPopupVisible:u,hideOnSelect:l,theme:p,position:n}=e.toRefs(s),c=i(r,u.value,e=>{o("update:popupVisible",e),o("popup-visible-change",e)});return e.provide(t,{theme:p,select:(e,i)=>{o("select",e,i),l.value&&(c.value=!1)}}),{computedVisible:c}},inject:()=>e.inject(t,{theme:e.ref("light"),select:()=>{}})});
@@ -278,7 +278,70 @@ declare const Dropdown: {
278
278
  $attrs: {
279
279
  [x: string]: unknown;
280
280
  };
281
- $refs: any;
281
+ $refs: {
282
+ [x: string]: unknown;
283
+ } & {
284
+ triggerRef: unknown;
285
+ popupRef: ({
286
+ $: import('vue').ComponentInternalInstance;
287
+ $data: {};
288
+ $props: {
289
+ readonly preventFocus?: boolean | undefined;
290
+ readonly tag?: string | undefined;
291
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
292
+ $attrs: {
293
+ [x: string]: unknown;
294
+ };
295
+ $refs: {
296
+ [x: string]: unknown;
297
+ };
298
+ $slots: Readonly<{
299
+ [name: string]: import('vue').Slot<any> | undefined;
300
+ }>;
301
+ $root: import('vue').ComponentPublicInstance | null;
302
+ $parent: import('vue').ComponentPublicInstance | null;
303
+ $host: Element | null;
304
+ $emit: (event: string, ...args: any[]) => void;
305
+ $el: any;
306
+ $options: import('vue').ComponentOptionsBase<Readonly<{
307
+ preventFocus?: boolean;
308
+ tag?: string;
309
+ }> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
310
+ preventFocus: boolean;
311
+ tag: string;
312
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
313
+ beforeCreate?: (() => void) | (() => void)[];
314
+ created?: (() => void) | (() => void)[];
315
+ beforeMount?: (() => void) | (() => void)[];
316
+ mounted?: (() => void) | (() => void)[];
317
+ beforeUpdate?: (() => void) | (() => void)[];
318
+ updated?: (() => void) | (() => void)[];
319
+ activated?: (() => void) | (() => void)[];
320
+ deactivated?: (() => void) | (() => void)[];
321
+ beforeDestroy?: (() => void) | (() => void)[];
322
+ beforeUnmount?: (() => void) | (() => void)[];
323
+ destroyed?: (() => void) | (() => void)[];
324
+ unmounted?: (() => void) | (() => void)[];
325
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
326
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
327
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
328
+ };
329
+ $forceUpdate: () => void;
330
+ $nextTick: typeof import('vue').nextTick;
331
+ $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;
332
+ } & Readonly<{
333
+ preventFocus: boolean;
334
+ tag: string;
335
+ }> & Omit<Readonly<{
336
+ preventFocus?: boolean;
337
+ tag?: string;
338
+ }> & Readonly<{}>, "preventFocus" | "tag"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
339
+ $slots: {
340
+ default?(_: {}): any;
341
+ };
342
+ }) | null;
343
+ arrowRef: HTMLDivElement;
344
+ };
282
345
  $slots: Readonly<{
283
346
  [name: string]: import('vue').Slot<any> | undefined;
284
347
  }>;
@@ -399,7 +462,7 @@ declare const Dropdown: {
399
462
  show(): void;
400
463
  updatePosition(x: number, y: number): void;
401
464
  }> & {} & import('vue').ComponentCustomProperties & {} & {
402
- $slots: any;
465
+ $slots: Readonly<import('..').TriggerSlots> & import('..').TriggerSlots;
403
466
  }) | null;
404
467
  optionRef: ({
405
468
  $: import('vue').ComponentInternalInstance;