yc-design-vue 2.0.4 → 2.0.5

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 (291) hide show
  1. package/dist/index.umd.js +1 -0
  2. package/dist/style.css +1 -0
  3. package/es/Affix/index.vue.js +1 -1
  4. package/es/Anchor/Anchor.vue.js +2 -2
  5. package/es/Anchor/AnchorLink.vue.js +2 -2
  6. package/es/Anchor/hooks/useContext.d.ts +2 -2
  7. package/es/Anchor/hooks/useContext.js +3 -3
  8. package/es/AutoComplete/index.d.ts +24 -24
  9. package/es/AutoComplete/index.vue.d.ts +40 -40
  10. package/es/Avatar/Avatar.vue.js +3 -3
  11. package/es/Avatar/AvatarGroup.vue.js +2 -2
  12. package/es/Avatar/hooks/useContext.d.ts +1 -2
  13. package/es/Avatar/hooks/useContext.js +3 -3
  14. package/es/BackTop/index.vue.js +1 -1
  15. package/es/Breadcrumb/BreadcrumbSeparator.vue.js +1 -1
  16. package/es/Button/Button.vue.js +2 -2
  17. package/es/Button/ButtonGroup.vue.js +2 -2
  18. package/es/Button/hooks/useContext.d.ts +1 -2
  19. package/es/Button/hooks/useContext.js +3 -3
  20. package/es/Card/Card.vue.js +2 -2
  21. package/es/Card/CardMeta.vue.js +2 -2
  22. package/es/Card/hooks/useContext.d.ts +2 -2
  23. package/es/Card/hooks/useContext.js +3 -3
  24. package/es/Carousel/Carousel.vue.js +2 -2
  25. package/es/Carousel/CarouselArrow.vue.js +2 -2
  26. package/es/Carousel/CarouselIndicator.vue.js +2 -2
  27. package/es/Carousel/CarouselItem.vue.js +2 -2
  28. package/es/Carousel/hooks/useContext.d.ts +2 -2
  29. package/es/Carousel/hooks/useContext.js +3 -3
  30. package/es/Cascader/Cascader.vue.d.ts +18 -18
  31. package/es/Cascader/Cascader.vue.js +2 -2
  32. package/es/Cascader/CascaderIcon.vue.js +2 -2
  33. package/es/Cascader/CascaderOption.vue.js +2 -2
  34. package/es/Cascader/CascaderPanel.vue.js +2 -2
  35. package/es/Cascader/CascaderSearchPanel.vue.js +2 -2
  36. package/es/Cascader/hooks/useContext.d.ts +2 -2
  37. package/es/Cascader/hooks/useContext.js +3 -3
  38. package/es/Cascader/index.d.ts +21 -21
  39. package/es/Checkbox/Checkbox.vue.js +2 -2
  40. package/es/Checkbox/CheckboxGroup.vue.js +2 -2
  41. package/es/Checkbox/hooks/useContext.d.ts +2 -2
  42. package/es/Checkbox/hooks/useContext.js +3 -3
  43. package/es/Collapse/Collapse.vue.js +2 -2
  44. package/es/Collapse/CollapseItem.vue.js +2 -2
  45. package/es/Collapse/hooks/useContext.d.ts +1 -2
  46. package/es/Collapse/hooks/useContext.js +3 -3
  47. package/es/ColorPicker/ColorControl.vue.js +1 -1
  48. package/es/ColorPicker/ColorPalette.vue.js +1 -1
  49. package/es/ColorPicker/ColorPanel.vue.js +2 -2
  50. package/es/ColorPicker/ColorPicker.vue.js +2 -2
  51. package/es/ColorPicker/hooks/useContext.d.ts +2 -2
  52. package/es/ColorPicker/hooks/useContext.js +3 -3
  53. package/es/Comment/hooks/useContext.d.ts +1 -2
  54. package/es/Comment/hooks/useContext.js +3 -3
  55. package/es/Comment/index.vue.js +2 -2
  56. package/es/Descriptions/Descriptions.vue.js +2 -2
  57. package/es/Descriptions/ReuseItem.vue.js +2 -2
  58. package/es/Descriptions/ReuseTd.vue.js +2 -2
  59. package/es/Descriptions/hooks/useContext.d.ts +2 -2
  60. package/es/Descriptions/hooks/useContext.js +3 -3
  61. package/es/Dropdown/Doption.vue.js +2 -2
  62. package/es/Dropdown/Dropdown.vue.d.ts +2 -2
  63. package/es/Dropdown/Dropdown.vue.js +2 -2
  64. package/es/Dropdown/DropdownButton.vue.d.ts +2 -2
  65. package/es/Dropdown/Dsubmenu.vue.js +1 -1
  66. package/es/Dropdown/hooks/useContext.d.ts +2 -2
  67. package/es/Dropdown/hooks/useContext.js +3 -3
  68. package/es/Dropdown/index.d.ts +10 -10
  69. package/es/Grid/Grid.vue.js +2 -2
  70. package/es/Grid/GridCol.vue.js +2 -2
  71. package/es/Grid/GridItem.vue.js +2 -2
  72. package/es/Grid/GridRow.vue.js +2 -2
  73. package/es/Grid/hooks/useContext.d.ts +1 -2
  74. package/es/Grid/hooks/useContext.js +3 -3
  75. package/es/Image/Image.vue.js +2 -2
  76. package/es/Image/ImagePreview.vue.js +1 -1
  77. package/es/Image/ImagePreviewGroup.vue.js +2 -2
  78. package/es/Image/hooks/useContext.d.ts +2 -2
  79. package/es/Image/hooks/useContext.js +3 -3
  80. package/es/Input/Input.vue.d.ts +2 -2
  81. package/es/Input/InputSuffix.vue.js +2 -2
  82. package/es/Input/index.d.ts +5 -5
  83. package/es/InputNumber/InputNumber.vue.d.ts +14 -14
  84. package/es/InputNumber/index.d.ts +11 -11
  85. package/es/InputTag/index.d.ts +5 -5
  86. package/es/InputTag/index.vue.d.ts +2 -2
  87. package/es/InputTag/index.vue.js +1 -1
  88. package/es/Layout/LayoutSider.vue.js +2 -2
  89. package/es/Layout/hooks/useSiderContext.d.ts +1 -2
  90. package/es/Layout/hooks/useSiderContext.js +3 -3
  91. package/es/List/hooks/useScrollReach.js +1 -0
  92. package/es/Mention/index.d.ts +30 -30
  93. package/es/Mention/index.vue.d.ts +52 -52
  94. package/es/Menu/MenuItem.vue.js +1 -1
  95. package/es/Menu/hooks/useContext.d.ts +2 -2
  96. package/es/Menu/hooks/useContext.js +5 -5
  97. package/es/OverflowList/index.vue.js +2 -2
  98. package/es/Pagination/Pagination.vue.js +2 -2
  99. package/es/Pagination/PaginationItem.vue.js +2 -2
  100. package/es/Pagination/hooks/useContext.d.ts +2 -2
  101. package/es/Pagination/hooks/useContext.js +3 -3
  102. package/es/Popconfirm/index.d.ts +5 -5
  103. package/es/Popconfirm/index.vue.d.ts +2 -2
  104. package/es/Radio/Radio.vue.js +2 -2
  105. package/es/Radio/RadioGroup.vue.js +2 -2
  106. package/es/Radio/hooks/useContext.d.ts +2 -2
  107. package/es/Radio/hooks/useContext.js +3 -3
  108. package/es/Scrollbar/Scrollbar.vue.js +2 -2
  109. package/es/Scrollbar/ScrollbarTrack.vue.js +2 -2
  110. package/es/Scrollbar/hooks/useContext.d.ts +2 -2
  111. package/es/Scrollbar/hooks/useContext.js +3 -3
  112. package/es/Select/Option.vue.js +2 -2
  113. package/es/Select/Select.vue.d.ts +16 -16
  114. package/es/Select/Select.vue.js +2 -2
  115. package/es/Select/SelectIcon.vue.js +2 -2
  116. package/es/Select/SelectRealList.vue.js +2 -2
  117. package/es/Select/SelectView.vue.js +2 -2
  118. package/es/Select/SelectVirtualList.vue.js +3 -3
  119. package/es/Select/hooks/useContext.d.ts +2 -2
  120. package/es/Select/hooks/useContext.js +3 -3
  121. package/es/Select/index.d.ts +16 -16
  122. package/es/Slider/Slider.vue.js +2 -2
  123. package/es/Slider/SliderBtn.vue.js +2 -2
  124. package/es/Slider/SliderInput.vue.js +2 -2
  125. package/es/Slider/SliderTicks.vue.js +2 -2
  126. package/es/Slider/hooks/useContext.d.ts +2 -2
  127. package/es/Slider/hooks/useContext.js +3 -3
  128. package/es/Spin/index.vue.js +1 -1
  129. package/es/Steps/Step.vue.js +2 -2
  130. package/es/Steps/Steps.vue.js +2 -2
  131. package/es/Steps/hooks/useContext.d.ts +1 -2
  132. package/es/Steps/hooks/useContext.js +3 -3
  133. package/es/Switch/index.d.ts +5 -5
  134. package/es/Switch/index.vue.d.ts +2 -2
  135. package/es/Tabs/TabPane.vue.js +2 -2
  136. package/es/Tabs/Tabs.vue.js +2 -2
  137. package/es/Tabs/TabsNavInk.vue.js +2 -2
  138. package/es/Tabs/TabsTab.vue.js +2 -2
  139. package/es/Tabs/hooks/useContext.d.ts +2 -2
  140. package/es/Tabs/hooks/useContext.js +3 -3
  141. package/es/Textarea/hooks/useTextareaHeight.js +1 -1
  142. package/es/Textarea/index.d.ts +5 -5
  143. package/es/Textarea/index.vue.d.ts +2 -2
  144. package/es/TimePicker/TimePicker.vue.d.ts +4 -4
  145. package/es/TimePicker/TimePicker.vue.js +2 -2
  146. package/es/TimePicker/TimePickerPanel.vue.js +2 -2
  147. package/es/TimePicker/hooks/useContext.d.ts +2 -2
  148. package/es/TimePicker/hooks/useContext.js +3 -3
  149. package/es/TimePicker/index.d.ts +10 -10
  150. package/es/Timeline/Timeline.vue.js +2 -2
  151. package/es/Timeline/TimelineItem.vue.js +2 -2
  152. package/es/Timeline/hooks/useContext.d.ts +2 -2
  153. package/es/Timeline/hooks/useContext.js +3 -3
  154. package/es/Transfer/Transfer.vue.js +2 -2
  155. package/es/Transfer/TransferPanel.vue.js +2 -2
  156. package/es/Transfer/hooks/useContext.d.ts +2 -2
  157. package/es/Transfer/hooks/useContext.js +3 -3
  158. package/es/Trigger/hooks/useContext.d.ts +2 -3
  159. package/es/Trigger/hooks/useContext.js +4 -4
  160. package/es/Trigger/hooks/useTriggerPosition.js +1 -1
  161. package/es/Trigger/hooks/useTriggerVisible.js +2 -2
  162. package/es/Typography/TypographyBase.vue.d.ts +12 -12
  163. package/es/Typography/TypographyBase.vue.js +3 -3
  164. package/es/Watermark/index.vue.js +1 -1
  165. package/es/_shared/icons/IconCopy.vue.js +19 -1
  166. package/es/_shared/icons/IconCopy.vue2.js +1 -19
  167. package/es/_shared/icons/IconEdit.vue.js +19 -1
  168. package/es/_shared/icons/IconEdit.vue2.js +1 -19
  169. package/es/_shared/icons/IconEyeClose.vue.js +1 -23
  170. package/es/_shared/icons/IconEyeClose.vue2.js +23 -1
  171. package/es/_shared/icons/IconEyeOpen.vue.js +1 -20
  172. package/es/_shared/icons/IconEyeOpen.vue2.js +20 -1
  173. package/es/_shared/icons/IconSeparator.vue.js +1 -19
  174. package/es/_shared/icons/IconSeparator.vue2.js +19 -1
  175. package/es/_shared/utils/is.d.ts +0 -15
  176. package/es/_shared/utils/vue-utils.d.ts +1 -0
  177. package/es/index.d.ts +5 -5
  178. package/lib/Affix/index.vue.js +1 -1
  179. package/lib/Anchor/hooks/useContext.d.ts +2 -2
  180. package/lib/Anchor/hooks/useContext.js +1 -1
  181. package/lib/AutoComplete/index.d.ts +24 -24
  182. package/lib/AutoComplete/index.vue.d.ts +40 -40
  183. package/lib/Avatar/Avatar.vue.js +1 -1
  184. package/lib/Avatar/hooks/useContext.d.ts +1 -2
  185. package/lib/Avatar/hooks/useContext.js +1 -1
  186. package/lib/BackTop/index.vue.js +1 -1
  187. package/lib/Breadcrumb/BreadcrumbSeparator.vue.js +1 -1
  188. package/lib/Button/hooks/useContext.d.ts +1 -2
  189. package/lib/Button/hooks/useContext.js +1 -1
  190. package/lib/Card/hooks/useContext.d.ts +2 -2
  191. package/lib/Card/hooks/useContext.js +1 -1
  192. package/lib/Carousel/hooks/useContext.d.ts +2 -2
  193. package/lib/Carousel/hooks/useContext.js +1 -1
  194. package/lib/Cascader/Cascader.vue.d.ts +18 -18
  195. package/lib/Cascader/hooks/useContext.d.ts +2 -2
  196. package/lib/Cascader/hooks/useContext.js +1 -1
  197. package/lib/Cascader/index.d.ts +21 -21
  198. package/lib/Checkbox/hooks/useContext.d.ts +2 -2
  199. package/lib/Checkbox/hooks/useContext.js +1 -1
  200. package/lib/Collapse/hooks/useContext.d.ts +1 -2
  201. package/lib/Collapse/hooks/useContext.js +1 -1
  202. package/lib/ColorPicker/ColorControl.vue.js +1 -1
  203. package/lib/ColorPicker/ColorPalette.vue.js +1 -1
  204. package/lib/ColorPicker/hooks/useContext.d.ts +2 -2
  205. package/lib/ColorPicker/hooks/useContext.js +1 -1
  206. package/lib/Comment/hooks/useContext.d.ts +1 -2
  207. package/lib/Comment/hooks/useContext.js +1 -1
  208. package/lib/Descriptions/hooks/useContext.d.ts +2 -2
  209. package/lib/Descriptions/hooks/useContext.js +1 -1
  210. package/lib/Dropdown/Dropdown.vue.d.ts +2 -2
  211. package/lib/Dropdown/DropdownButton.vue.d.ts +2 -2
  212. package/lib/Dropdown/Dsubmenu.vue.js +1 -1
  213. package/lib/Dropdown/hooks/useContext.d.ts +2 -2
  214. package/lib/Dropdown/hooks/useContext.js +1 -1
  215. package/lib/Dropdown/index.d.ts +10 -10
  216. package/lib/Grid/hooks/useContext.d.ts +1 -2
  217. package/lib/Grid/hooks/useContext.js +1 -1
  218. package/lib/Image/ImagePreview.vue.js +1 -1
  219. package/lib/Image/hooks/useContext.d.ts +2 -2
  220. package/lib/Image/hooks/useContext.js +1 -1
  221. package/lib/Input/Input.vue.d.ts +2 -2
  222. package/lib/Input/InputSuffix.vue.js +1 -1
  223. package/lib/Input/index.d.ts +5 -5
  224. package/lib/InputNumber/InputNumber.vue.d.ts +14 -14
  225. package/lib/InputNumber/index.d.ts +11 -11
  226. package/lib/InputTag/index.d.ts +5 -5
  227. package/lib/InputTag/index.vue.d.ts +2 -2
  228. package/lib/InputTag/index.vue.js +1 -1
  229. package/lib/Layout/hooks/useSiderContext.d.ts +1 -2
  230. package/lib/Layout/hooks/useSiderContext.js +1 -1
  231. package/lib/List/hooks/useScrollReach.js +1 -1
  232. package/lib/Mention/index.d.ts +30 -30
  233. package/lib/Mention/index.vue.d.ts +52 -52
  234. package/lib/Menu/MenuItem.vue.js +1 -1
  235. package/lib/Menu/hooks/useContext.d.ts +2 -2
  236. package/lib/Menu/hooks/useContext.js +1 -1
  237. package/lib/OverflowList/index.vue.js +1 -1
  238. package/lib/Pagination/hooks/useContext.d.ts +2 -2
  239. package/lib/Pagination/hooks/useContext.js +1 -1
  240. package/lib/Popconfirm/index.d.ts +5 -5
  241. package/lib/Popconfirm/index.vue.d.ts +2 -2
  242. package/lib/Radio/hooks/useContext.d.ts +2 -2
  243. package/lib/Radio/hooks/useContext.js +1 -1
  244. package/lib/Scrollbar/hooks/useContext.d.ts +2 -2
  245. package/lib/Scrollbar/hooks/useContext.js +1 -1
  246. package/lib/Select/Select.vue.d.ts +16 -16
  247. package/lib/Select/SelectVirtualList.vue.js +1 -1
  248. package/lib/Select/hooks/useContext.d.ts +2 -2
  249. package/lib/Select/hooks/useContext.js +1 -1
  250. package/lib/Select/index.d.ts +16 -16
  251. package/lib/Slider/hooks/useContext.d.ts +2 -2
  252. package/lib/Slider/hooks/useContext.js +1 -1
  253. package/lib/Spin/index.vue.js +1 -1
  254. package/lib/Steps/hooks/useContext.d.ts +1 -2
  255. package/lib/Steps/hooks/useContext.js +1 -1
  256. package/lib/Switch/index.d.ts +5 -5
  257. package/lib/Switch/index.vue.d.ts +2 -2
  258. package/lib/Tabs/hooks/useContext.d.ts +2 -2
  259. package/lib/Tabs/hooks/useContext.js +1 -1
  260. package/lib/Textarea/hooks/useTextareaHeight.js +1 -1
  261. package/lib/Textarea/index.d.ts +5 -5
  262. package/lib/Textarea/index.vue.d.ts +2 -2
  263. package/lib/TimePicker/TimePicker.vue.d.ts +4 -4
  264. package/lib/TimePicker/hooks/useContext.d.ts +2 -2
  265. package/lib/TimePicker/hooks/useContext.js +1 -1
  266. package/lib/TimePicker/index.d.ts +10 -10
  267. package/lib/Timeline/hooks/useContext.d.ts +2 -2
  268. package/lib/Timeline/hooks/useContext.js +1 -1
  269. package/lib/Transfer/hooks/useContext.d.ts +2 -2
  270. package/lib/Transfer/hooks/useContext.js +1 -1
  271. package/lib/Trigger/hooks/useContext.d.ts +2 -3
  272. package/lib/Trigger/hooks/useContext.js +1 -1
  273. package/lib/Trigger/hooks/useTriggerPosition.js +1 -1
  274. package/lib/Trigger/hooks/useTriggerVisible.js +1 -1
  275. package/lib/Typography/TypographyBase.vue.d.ts +12 -12
  276. package/lib/Typography/TypographyBase.vue.js +1 -1
  277. package/lib/Watermark/index.vue.js +1 -1
  278. package/lib/_shared/icons/IconCopy.vue.js +1 -1
  279. package/lib/_shared/icons/IconCopy.vue2.js +1 -1
  280. package/lib/_shared/icons/IconEdit.vue.js +1 -1
  281. package/lib/_shared/icons/IconEdit.vue2.js +1 -1
  282. package/lib/_shared/icons/IconEyeClose.vue.js +1 -1
  283. package/lib/_shared/icons/IconEyeClose.vue2.js +1 -1
  284. package/lib/_shared/icons/IconEyeOpen.vue.js +1 -1
  285. package/lib/_shared/icons/IconEyeOpen.vue2.js +1 -1
  286. package/lib/_shared/icons/IconSeparator.vue.js +1 -1
  287. package/lib/_shared/icons/IconSeparator.vue2.js +1 -1
  288. package/lib/_shared/utils/is.d.ts +0 -15
  289. package/lib/_shared/utils/vue-utils.d.ts +1 -0
  290. package/lib/index.d.ts +5 -5
  291. package/package.json +1 -1
@@ -23,12 +23,12 @@ declare function __VLS_template(): {
23
23
  readonly isSearch?: boolean | undefined;
24
24
  readonly type?: "textarea" | "input" | undefined;
25
25
  readonly onChange?: ((value: string) => any) | undefined;
26
- readonly onFocus?: ((ev: FocusEvent) => any) | undefined;
27
26
  readonly onClear?: ((ev?: Event | undefined) => any) | undefined;
28
27
  readonly onInput?: ((value: string, ev: Event) => any) | undefined;
29
28
  readonly onSearch?: ((value: string) => any) | undefined;
30
29
  readonly onSelect?: ((value: string) => any) | undefined;
31
30
  readonly onBlur?: ((ev: FocusEvent) => any) | undefined;
31
+ readonly onFocus?: ((ev: FocusEvent) => any) | undefined;
32
32
  readonly onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
33
33
  readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
34
34
  readonly "onDropdown-scroll"?: ((ev?: Event | undefined) => any) | undefined;
@@ -81,12 +81,12 @@ declare function __VLS_template(): {
81
81
  readonly hotkeys?: boolean | undefined;
82
82
  readonly showEmpty?: boolean | undefined;
83
83
  readonly onChange?: ((value: import('../Select').SelectValue) => any) | undefined;
84
- readonly "onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
85
- readonly "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
86
84
  readonly onClear?: (() => any) | undefined;
87
85
  readonly onSearch?: ((value: string) => any) | undefined;
88
86
  readonly onSelect?: ((value: SelectOptionValue) => any) | undefined;
89
87
  readonly onRemove?: ((index: string | number, ev: Event) => any) | undefined;
88
+ readonly "onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
89
+ readonly "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
90
90
  readonly "onUpdate:modelValue"?: ((value: import('../Select').SelectValue) => any) | undefined;
91
91
  readonly "onUpdate:inputValue"?: ((value: string) => any) | undefined;
92
92
  readonly "onInput-value-change"?: ((value: string) => any) | undefined;
@@ -359,10 +359,10 @@ declare function __VLS_template(): {
359
359
  readonly tagNowrap?: boolean | undefined;
360
360
  readonly fieldNames?: Record<string, string> | undefined;
361
361
  readonly allowCreate?: boolean | undefined;
362
- readonly onFocus?: ((ev: FocusEvent) => any) | undefined;
363
362
  readonly onClear?: ((ev: MouseEvent) => any) | undefined;
364
363
  readonly onInput?: ((value: string) => any) | undefined;
365
364
  readonly onBlur?: ((ev: FocusEvent) => any) | undefined;
365
+ readonly onFocus?: ((ev: FocusEvent) => any) | undefined;
366
366
  readonly onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
367
367
  readonly "onUpdate:modelValue"?: ((value: import('..').InputTagValue) => any) | undefined;
368
368
  readonly "onUpdate:inputValue"?: ((value: string) => any) | undefined;
@@ -384,13 +384,13 @@ declare function __VLS_template(): {
384
384
  $root: import('vue').ComponentPublicInstance | null;
385
385
  $parent: import('vue').ComponentPublicInstance | null;
386
386
  $host: Element | null;
387
- $emit: ((event: "focus", ev: FocusEvent) => void) & ((event: "clear", ev: MouseEvent) => void) & ((event: "input", value: string) => void) & ((event: "blur", ev: FocusEvent) => void) & ((event: "remove", value: string | number, ev: MouseEvent | KeyboardEvent) => void) & ((event: "update:modelValue", value: import('..').InputTagValue) => void) & ((event: "update:inputValue", value: string) => void) & ((event: "input-value-change", value: string, ev: Event) => void) & ((event: "press-enter", ev: KeyboardEvent) => void);
387
+ $emit: ((event: "clear", ev: MouseEvent) => void) & ((event: "input", value: string) => void) & ((event: "blur", ev: FocusEvent) => void) & ((event: "focus", ev: FocusEvent) => void) & ((event: "remove", value: string | number, ev: MouseEvent | KeyboardEvent) => void) & ((event: "update:modelValue", value: import('..').InputTagValue) => void) & ((event: "update:inputValue", value: string) => void) & ((event: "input-value-change", value: string, ev: Event) => void) & ((event: "press-enter", ev: KeyboardEvent) => void);
388
388
  $el: HTMLDivElement;
389
389
  $options: import('vue').ComponentOptionsBase<Readonly<import('..').InputTagProps> & Readonly<{
390
- onFocus?: ((ev: FocusEvent) => any) | undefined;
391
390
  onClear?: ((ev: MouseEvent) => any) | undefined;
392
391
  onInput?: ((value: string) => any) | undefined;
393
392
  onBlur?: ((ev: FocusEvent) => any) | undefined;
393
+ onFocus?: ((ev: FocusEvent) => any) | undefined;
394
394
  onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
395
395
  "onUpdate:modelValue"?: ((value: import('..').InputTagValue) => any) | undefined;
396
396
  "onUpdate:inputValue"?: ((value: string) => any) | undefined;
@@ -400,10 +400,10 @@ declare function __VLS_template(): {
400
400
  focus(): void;
401
401
  blur(): void;
402
402
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
403
- focus: (ev: FocusEvent) => any;
404
403
  clear: (ev: MouseEvent) => any;
405
404
  input: (value: string) => any;
406
405
  blur: (ev: FocusEvent) => any;
406
+ focus: (ev: FocusEvent) => any;
407
407
  remove: (value: string | number, ev: MouseEvent | KeyboardEvent) => any;
408
408
  "update:modelValue": (value: import('..').InputTagValue) => any;
409
409
  "update:inputValue": (value: string) => any;
@@ -464,16 +464,16 @@ declare function __VLS_template(): {
464
464
  retainInputValue: import('..').InputRetainValue;
465
465
  uniqueValue: boolean;
466
466
  }> & Omit<Readonly<import('..').InputTagProps> & Readonly<{
467
- onFocus?: ((ev: FocusEvent) => any) | undefined;
468
467
  onClear?: ((ev: MouseEvent) => any) | undefined;
469
468
  onInput?: ((value: string) => any) | undefined;
470
469
  onBlur?: ((ev: FocusEvent) => any) | undefined;
470
+ onFocus?: ((ev: FocusEvent) => any) | undefined;
471
471
  onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
472
472
  "onUpdate:modelValue"?: ((value: import('..').InputTagValue) => any) | undefined;
473
473
  "onUpdate:inputValue"?: ((value: string) => any) | undefined;
474
474
  "onInput-value-change"?: ((value: string, ev: Event) => any) | undefined;
475
475
  "onPress-enter"?: ((ev: KeyboardEvent) => any) | undefined;
476
- }>, "focus" | "blur" | ("size" | "error" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "allowClear" | "readonly" | "inputValue" | "defaultInputValue" | "fieldNames" | "allowCreate" | "maxTagCount" | "tagNowrap" | "retainInputValue" | "uniqueValue")> & import('vue').ShallowUnwrapRef<{
476
+ }>, "blur" | "focus" | ("size" | "error" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "allowClear" | "readonly" | "inputValue" | "defaultInputValue" | "fieldNames" | "allowCreate" | "maxTagCount" | "tagNowrap" | "retainInputValue" | "uniqueValue")> & import('vue').ShallowUnwrapRef<{
477
477
  focus(): void;
478
478
  blur(): void;
479
479
  }> & {} & import('@vue/runtime-core').ComponentCustomProperties & {} & {
@@ -486,16 +486,16 @@ declare function __VLS_template(): {
486
486
  $root: import('vue').ComponentPublicInstance | null;
487
487
  $parent: import('vue').ComponentPublicInstance | null;
488
488
  $host: Element | null;
489
- $emit: ((event: "change", value: import('../Select').SelectValue) => void) & ((event: "update:popupVisible", value: boolean) => void) & ((event: "popup-visible-change", value: boolean) => void) & ((event: "clear") => void) & ((event: "search", value: string) => void) & ((event: "select", value: SelectOptionValue) => void) & ((event: "remove", index: string | number, ev: Event) => void) & ((event: "update:modelValue", value: import('../Select').SelectValue) => void) & ((event: "update:inputValue", value: string) => void) & ((event: "input-value-change", value: string) => void) & ((event: "exceedLimit", value: SelectOptionValue, ev?: MouseEvent | undefined) => void) & ((event: "dropdown-scroll", ev: Event) => void) & ((event: "dropdown-reach-bottom", ev: Event) => void);
489
+ $emit: ((event: "change", value: import('../Select').SelectValue) => void) & ((event: "clear") => void) & ((event: "search", value: string) => void) & ((event: "select", value: SelectOptionValue) => void) & ((event: "remove", index: string | number, ev: Event) => void) & ((event: "update:popupVisible", value: boolean) => void) & ((event: "popup-visible-change", value: boolean) => void) & ((event: "update:modelValue", value: import('../Select').SelectValue) => void) & ((event: "update:inputValue", value: string) => void) & ((event: "input-value-change", value: string) => void) & ((event: "exceedLimit", value: SelectOptionValue, ev?: MouseEvent | undefined) => void) & ((event: "dropdown-scroll", ev: Event) => void) & ((event: "dropdown-reach-bottom", ev: Event) => void);
490
490
  $el: any;
491
491
  $options: import('vue').ComponentOptionsBase<Readonly<import('../Select').SelectProps> & Readonly<{
492
492
  onChange?: ((value: import('../Select').SelectValue) => any) | undefined;
493
- "onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
494
- "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
495
493
  onClear?: (() => any) | undefined;
496
494
  onSearch?: ((value: string) => any) | undefined;
497
495
  onSelect?: ((value: SelectOptionValue) => any) | undefined;
498
496
  onRemove?: ((index: string | number, ev: Event) => any) | undefined;
497
+ "onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
498
+ "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
499
499
  "onUpdate:modelValue"?: ((value: import('../Select').SelectValue) => any) | undefined;
500
500
  "onUpdate:inputValue"?: ((value: string) => any) | undefined;
501
501
  "onInput-value-change"?: ((value: string) => any) | undefined;
@@ -508,12 +508,12 @@ declare function __VLS_template(): {
508
508
  getPopupRef(): import('..').TriggerInstance;
509
509
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
510
510
  change: (value: import('../Select').SelectValue) => any;
511
- "update:popupVisible": (value: boolean) => any;
512
- "popup-visible-change": (value: boolean) => any;
513
511
  clear: () => any;
514
512
  search: (value: string) => any;
515
513
  select: (value: SelectOptionValue) => any;
516
514
  remove: (index: string | number, ev: Event) => any;
515
+ "update:popupVisible": (value: boolean) => any;
516
+ "popup-visible-change": (value: boolean) => any;
517
517
  "update:modelValue": (value: import('../Select').SelectValue) => any;
518
518
  "update:inputValue": (value: string) => any;
519
519
  "input-value-change": (value: string) => any;
@@ -608,19 +608,19 @@ declare function __VLS_template(): {
608
608
  tagNowrap: boolean;
609
609
  }> & Omit<Readonly<import('../Select').SelectProps> & Readonly<{
610
610
  onChange?: ((value: import('../Select').SelectValue) => any) | undefined;
611
- "onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
612
- "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
613
611
  onClear?: (() => any) | undefined;
614
612
  onSearch?: ((value: string) => any) | undefined;
615
613
  onSelect?: ((value: SelectOptionValue) => any) | undefined;
616
614
  onRemove?: ((index: string | number, ev: Event) => any) | undefined;
615
+ "onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
616
+ "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
617
617
  "onUpdate:modelValue"?: ((value: import('../Select').SelectValue) => any) | undefined;
618
618
  "onUpdate:inputValue"?: ((value: string) => any) | undefined;
619
619
  "onInput-value-change"?: ((value: string) => any) | undefined;
620
620
  onExceedLimit?: ((value: SelectOptionValue, ev?: MouseEvent | undefined) => any) | undefined;
621
621
  "onDropdown-scroll"?: ((ev: Event) => any) | undefined;
622
622
  "onDropdown-reach-bottom"?: ((ev: Event) => any) | undefined;
623
- }>, "focus" | "blur" | ("size" | "error" | "popupContainer" | "popupVisible" | "defaultPopupVisible" | "disabled" | "scrollbar" | "multiple" | "placeholder" | "loading" | "bordered" | "modelValue" | "defaultValue" | "allowClear" | "showExtraOptions" | "options" | "limit" | "inputValue" | "defaultInputValue" | "fieldNames" | "allowSearch" | "valueKey" | "showEmpty" | "allowCreate" | "maxTagCount" | "filterOption" | "virtualListProps" | "triggerProps" | "searchDelay" | "showHeaderOnEmpty" | "showFooterOnEmpty" | "tagNowrap") | "getPopupRef"> & import('vue').ShallowUnwrapRef<{
623
+ }>, "blur" | "focus" | ("size" | "error" | "popupContainer" | "popupVisible" | "defaultPopupVisible" | "disabled" | "scrollbar" | "multiple" | "placeholder" | "loading" | "bordered" | "modelValue" | "defaultValue" | "allowClear" | "showExtraOptions" | "options" | "limit" | "inputValue" | "defaultInputValue" | "fieldNames" | "allowSearch" | "valueKey" | "showEmpty" | "allowCreate" | "maxTagCount" | "filterOption" | "virtualListProps" | "triggerProps" | "searchDelay" | "showHeaderOnEmpty" | "showFooterOnEmpty" | "tagNowrap") | "getPopupRef"> & import('vue').ShallowUnwrapRef<{
624
624
  focus(): void;
625
625
  blur(): void;
626
626
  getPopupRef(): import('..').TriggerInstance;
@@ -629,10 +629,10 @@ declare function __VLS_template(): {
629
629
  }) | null;
630
630
  inputRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('..').TextareaProps> & Readonly<{
631
631
  onChange?: ((value: string, ev: Event) => any) | undefined;
632
- onFocus?: ((ev: FocusEvent) => any) | undefined;
633
632
  onClear?: ((ev: MouseEvent) => any) | undefined;
634
633
  onInput?: ((value: string, ev: Event) => any) | undefined;
635
634
  onBlur?: ((ev: FocusEvent) => any) | undefined;
635
+ onFocus?: ((ev: FocusEvent) => any) | undefined;
636
636
  onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
637
637
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
638
638
  }>, {
@@ -642,10 +642,10 @@ declare function __VLS_template(): {
642
642
  getMirrorRef(): HTMLDivElement;
643
643
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
644
644
  change: (value: string, ev: Event) => any;
645
- focus: (ev: FocusEvent) => any;
646
645
  clear: (ev: MouseEvent) => any;
647
646
  input: (value: string, ev: Event) => any;
648
647
  blur: (ev: FocusEvent) => any;
648
+ focus: (ev: FocusEvent) => any;
649
649
  keydown: (ev: KeyboardEvent) => any;
650
650
  "update:modelValue": (value: string) => any;
651
651
  }, import('vue').PublicProps, {
@@ -675,10 +675,10 @@ declare function __VLS_template(): {
675
675
  Defaults: {};
676
676
  }, Readonly<import('..').TextareaProps> & Readonly<{
677
677
  onChange?: ((value: string, ev: Event) => any) | undefined;
678
- onFocus?: ((ev: FocusEvent) => any) | undefined;
679
678
  onClear?: ((ev: MouseEvent) => any) | undefined;
680
679
  onInput?: ((value: string, ev: Event) => any) | undefined;
681
680
  onBlur?: ((ev: FocusEvent) => any) | undefined;
681
+ onFocus?: ((ev: FocusEvent) => any) | undefined;
682
682
  onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
683
683
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
684
684
  }>, {
@@ -709,16 +709,16 @@ declare function __VLS_template(): {
709
709
  $root: import('vue').ComponentPublicInstance | null;
710
710
  $parent: import('vue').ComponentPublicInstance | null;
711
711
  $host: Element | null;
712
- $emit: ((event: "change", value: string) => void) & ((event: "focus", ev: FocusEvent) => void) & ((event: "clear", ev?: Event | undefined) => void) & ((event: "input", value: string, ev: Event) => void) & ((event: "search", value: string) => void) & ((event: "select", value: string) => void) & ((event: "blur", ev: FocusEvent) => void) & ((event: "keydown", ev: KeyboardEvent) => void) & ((event: "update:modelValue", value: string) => void) & ((event: "dropdown-scroll", ev?: Event | undefined) => void) & ((event: "dropdown-reach-bottom", ev?: Event | undefined) => void);
712
+ $emit: ((event: "change", value: string) => void) & ((event: "clear", ev?: Event | undefined) => void) & ((event: "input", value: string, ev: Event) => void) & ((event: "search", value: string) => void) & ((event: "select", value: string) => void) & ((event: "blur", ev: FocusEvent) => void) & ((event: "focus", ev: FocusEvent) => void) & ((event: "keydown", ev: KeyboardEvent) => void) & ((event: "update:modelValue", value: string) => void) & ((event: "dropdown-scroll", ev?: Event | undefined) => void) & ((event: "dropdown-reach-bottom", ev?: Event | undefined) => void);
713
713
  $el: any;
714
714
  $options: import('vue').ComponentOptionsBase<Readonly<import('../AutoComplete').AutoCompleteProps> & Readonly<{
715
715
  onChange?: ((value: string) => any) | undefined;
716
- onFocus?: ((ev: FocusEvent) => any) | undefined;
717
716
  onClear?: ((ev?: Event | undefined) => any) | undefined;
718
717
  onInput?: ((value: string, ev: Event) => any) | undefined;
719
718
  onSearch?: ((value: string) => any) | undefined;
720
719
  onSelect?: ((value: string) => any) | undefined;
721
720
  onBlur?: ((ev: FocusEvent) => any) | undefined;
721
+ onFocus?: ((ev: FocusEvent) => any) | undefined;
722
722
  onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
723
723
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
724
724
  "onDropdown-scroll"?: ((ev?: Event | undefined) => any) | undefined;
@@ -731,12 +731,12 @@ declare function __VLS_template(): {
731
731
  updatePosition(x: number, y: number): void;
732
732
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
733
733
  change: (value: string) => any;
734
- focus: (ev: FocusEvent) => any;
735
734
  clear: (ev?: Event | undefined) => any;
736
735
  input: (value: string, ev: Event) => any;
737
736
  search: (value: string) => any;
738
737
  select: (value: string) => any;
739
738
  blur: (ev: FocusEvent) => any;
739
+ focus: (ev: FocusEvent) => any;
740
740
  keydown: (ev: KeyboardEvent) => any;
741
741
  "update:modelValue": (value: string) => any;
742
742
  "dropdown-scroll": (ev?: Event | undefined) => any;
@@ -789,17 +789,17 @@ declare function __VLS_template(): {
789
789
  isSearch: boolean;
790
790
  }> & Omit<Readonly<import('../AutoComplete').AutoCompleteProps> & Readonly<{
791
791
  onChange?: ((value: string) => any) | undefined;
792
- onFocus?: ((ev: FocusEvent) => any) | undefined;
793
792
  onClear?: ((ev?: Event | undefined) => any) | undefined;
794
793
  onInput?: ((value: string, ev: Event) => any) | undefined;
795
794
  onSearch?: ((value: string) => any) | undefined;
796
795
  onSelect?: ((value: string) => any) | undefined;
797
796
  onBlur?: ((ev: FocusEvent) => any) | undefined;
797
+ onFocus?: ((ev: FocusEvent) => any) | undefined;
798
798
  onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
799
799
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
800
800
  "onDropdown-scroll"?: ((ev?: Event | undefined) => any) | undefined;
801
801
  "onDropdown-reach-bottom"?: ((ev?: Event | undefined) => any) | undefined;
802
- }>, "focus" | "blur" | "updatePosition" | "getInputRef" | "getMirrorRef" | ("type" | "data" | "popupContainer" | "disabled" | "strict" | "modelValue" | "defaultValue" | "allowClear" | "filterOption" | "triggerProps" | "isSelectSetValue" | "isSearch")> & import('vue').ShallowUnwrapRef<{
802
+ }>, "blur" | "focus" | "updatePosition" | "getInputRef" | "getMirrorRef" | ("type" | "data" | "popupContainer" | "disabled" | "strict" | "modelValue" | "defaultValue" | "allowClear" | "filterOption" | "triggerProps" | "isSelectSetValue" | "isSearch")> & import('vue').ShallowUnwrapRef<{
803
803
  focus(): void;
804
804
  blur(): void;
805
805
  getInputRef(): HTMLInputElement | HTMLTextAreaElement | undefined;
@@ -817,21 +817,21 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
817
817
  blur(): void;
818
818
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
819
819
  change: (value: string) => any;
820
- focus: (ev: FocusEvent) => any;
821
820
  clear: (ev: MouseEvent) => any;
822
821
  input: (value: string, ev: Event) => any;
823
822
  search: (value: string) => any;
824
823
  select: (value: SelectOptionValue) => any;
825
824
  blur: (ev: FocusEvent) => any;
825
+ focus: (ev: FocusEvent) => any;
826
826
  "update:modelValue": (value: string) => any;
827
827
  }, string, import('vue').PublicProps, Readonly<MentionProps> & Readonly<{
828
828
  onChange?: ((value: string) => any) | undefined;
829
- onFocus?: ((ev: FocusEvent) => any) | undefined;
830
829
  onClear?: ((ev: MouseEvent) => any) | undefined;
831
830
  onInput?: ((value: string, ev: Event) => any) | undefined;
832
831
  onSearch?: ((value: string) => any) | undefined;
833
832
  onSelect?: ((value: SelectOptionValue) => any) | undefined;
834
833
  onBlur?: ((ev: FocusEvent) => any) | undefined;
834
+ onFocus?: ((ev: FocusEvent) => any) | undefined;
835
835
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
836
836
  }>, {
837
837
  type: import('./type').MentionType;
@@ -861,12 +861,12 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
861
861
  readonly isSearch?: boolean | undefined;
862
862
  readonly type?: "textarea" | "input" | undefined;
863
863
  readonly onChange?: ((value: string) => any) | undefined;
864
- readonly onFocus?: ((ev: FocusEvent) => any) | undefined;
865
864
  readonly onClear?: ((ev?: Event | undefined) => any) | undefined;
866
865
  readonly onInput?: ((value: string, ev: Event) => any) | undefined;
867
866
  readonly onSearch?: ((value: string) => any) | undefined;
868
867
  readonly onSelect?: ((value: string) => any) | undefined;
869
868
  readonly onBlur?: ((ev: FocusEvent) => any) | undefined;
869
+ readonly onFocus?: ((ev: FocusEvent) => any) | undefined;
870
870
  readonly onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
871
871
  readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
872
872
  readonly "onDropdown-scroll"?: ((ev?: Event | undefined) => any) | undefined;
@@ -919,12 +919,12 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
919
919
  readonly hotkeys?: boolean | undefined;
920
920
  readonly showEmpty?: boolean | undefined;
921
921
  readonly onChange?: ((value: import('../Select').SelectValue) => any) | undefined;
922
- readonly "onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
923
- readonly "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
924
922
  readonly onClear?: (() => any) | undefined;
925
923
  readonly onSearch?: ((value: string) => any) | undefined;
926
924
  readonly onSelect?: ((value: SelectOptionValue) => any) | undefined;
927
925
  readonly onRemove?: ((index: string | number, ev: Event) => any) | undefined;
926
+ readonly "onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
927
+ readonly "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
928
928
  readonly "onUpdate:modelValue"?: ((value: import('../Select').SelectValue) => any) | undefined;
929
929
  readonly "onUpdate:inputValue"?: ((value: string) => any) | undefined;
930
930
  readonly "onInput-value-change"?: ((value: string) => any) | undefined;
@@ -1197,10 +1197,10 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
1197
1197
  readonly tagNowrap?: boolean | undefined;
1198
1198
  readonly fieldNames?: Record<string, string> | undefined;
1199
1199
  readonly allowCreate?: boolean | undefined;
1200
- readonly onFocus?: ((ev: FocusEvent) => any) | undefined;
1201
1200
  readonly onClear?: ((ev: MouseEvent) => any) | undefined;
1202
1201
  readonly onInput?: ((value: string) => any) | undefined;
1203
1202
  readonly onBlur?: ((ev: FocusEvent) => any) | undefined;
1203
+ readonly onFocus?: ((ev: FocusEvent) => any) | undefined;
1204
1204
  readonly onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
1205
1205
  readonly "onUpdate:modelValue"?: ((value: import('..').InputTagValue) => any) | undefined;
1206
1206
  readonly "onUpdate:inputValue"?: ((value: string) => any) | undefined;
@@ -1222,13 +1222,13 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
1222
1222
  $root: import('vue').ComponentPublicInstance | null;
1223
1223
  $parent: import('vue').ComponentPublicInstance | null;
1224
1224
  $host: Element | null;
1225
- $emit: ((event: "focus", ev: FocusEvent) => void) & ((event: "clear", ev: MouseEvent) => void) & ((event: "input", value: string) => void) & ((event: "blur", ev: FocusEvent) => void) & ((event: "remove", value: string | number, ev: MouseEvent | KeyboardEvent) => void) & ((event: "update:modelValue", value: import('..').InputTagValue) => void) & ((event: "update:inputValue", value: string) => void) & ((event: "input-value-change", value: string, ev: Event) => void) & ((event: "press-enter", ev: KeyboardEvent) => void);
1225
+ $emit: ((event: "clear", ev: MouseEvent) => void) & ((event: "input", value: string) => void) & ((event: "blur", ev: FocusEvent) => void) & ((event: "focus", ev: FocusEvent) => void) & ((event: "remove", value: string | number, ev: MouseEvent | KeyboardEvent) => void) & ((event: "update:modelValue", value: import('..').InputTagValue) => void) & ((event: "update:inputValue", value: string) => void) & ((event: "input-value-change", value: string, ev: Event) => void) & ((event: "press-enter", ev: KeyboardEvent) => void);
1226
1226
  $el: HTMLDivElement;
1227
1227
  $options: import('vue').ComponentOptionsBase<Readonly<import('..').InputTagProps> & Readonly<{
1228
- onFocus?: ((ev: FocusEvent) => any) | undefined;
1229
1228
  onClear?: ((ev: MouseEvent) => any) | undefined;
1230
1229
  onInput?: ((value: string) => any) | undefined;
1231
1230
  onBlur?: ((ev: FocusEvent) => any) | undefined;
1231
+ onFocus?: ((ev: FocusEvent) => any) | undefined;
1232
1232
  onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
1233
1233
  "onUpdate:modelValue"?: ((value: import('..').InputTagValue) => any) | undefined;
1234
1234
  "onUpdate:inputValue"?: ((value: string) => any) | undefined;
@@ -1238,10 +1238,10 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
1238
1238
  focus(): void;
1239
1239
  blur(): void;
1240
1240
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
1241
- focus: (ev: FocusEvent) => any;
1242
1241
  clear: (ev: MouseEvent) => any;
1243
1242
  input: (value: string) => any;
1244
1243
  blur: (ev: FocusEvent) => any;
1244
+ focus: (ev: FocusEvent) => any;
1245
1245
  remove: (value: string | number, ev: MouseEvent | KeyboardEvent) => any;
1246
1246
  "update:modelValue": (value: import('..').InputTagValue) => any;
1247
1247
  "update:inputValue": (value: string) => any;
@@ -1302,16 +1302,16 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
1302
1302
  retainInputValue: import('..').InputRetainValue;
1303
1303
  uniqueValue: boolean;
1304
1304
  }> & Omit<Readonly<import('..').InputTagProps> & Readonly<{
1305
- onFocus?: ((ev: FocusEvent) => any) | undefined;
1306
1305
  onClear?: ((ev: MouseEvent) => any) | undefined;
1307
1306
  onInput?: ((value: string) => any) | undefined;
1308
1307
  onBlur?: ((ev: FocusEvent) => any) | undefined;
1308
+ onFocus?: ((ev: FocusEvent) => any) | undefined;
1309
1309
  onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
1310
1310
  "onUpdate:modelValue"?: ((value: import('..').InputTagValue) => any) | undefined;
1311
1311
  "onUpdate:inputValue"?: ((value: string) => any) | undefined;
1312
1312
  "onInput-value-change"?: ((value: string, ev: Event) => any) | undefined;
1313
1313
  "onPress-enter"?: ((ev: KeyboardEvent) => any) | undefined;
1314
- }>, "focus" | "blur" | ("size" | "error" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "allowClear" | "readonly" | "inputValue" | "defaultInputValue" | "fieldNames" | "allowCreate" | "maxTagCount" | "tagNowrap" | "retainInputValue" | "uniqueValue")> & import('vue').ShallowUnwrapRef<{
1314
+ }>, "blur" | "focus" | ("size" | "error" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "allowClear" | "readonly" | "inputValue" | "defaultInputValue" | "fieldNames" | "allowCreate" | "maxTagCount" | "tagNowrap" | "retainInputValue" | "uniqueValue")> & import('vue').ShallowUnwrapRef<{
1315
1315
  focus(): void;
1316
1316
  blur(): void;
1317
1317
  }> & {} & import('@vue/runtime-core').ComponentCustomProperties & {} & {
@@ -1324,16 +1324,16 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
1324
1324
  $root: import('vue').ComponentPublicInstance | null;
1325
1325
  $parent: import('vue').ComponentPublicInstance | null;
1326
1326
  $host: Element | null;
1327
- $emit: ((event: "change", value: import('../Select').SelectValue) => void) & ((event: "update:popupVisible", value: boolean) => void) & ((event: "popup-visible-change", value: boolean) => void) & ((event: "clear") => void) & ((event: "search", value: string) => void) & ((event: "select", value: SelectOptionValue) => void) & ((event: "remove", index: string | number, ev: Event) => void) & ((event: "update:modelValue", value: import('../Select').SelectValue) => void) & ((event: "update:inputValue", value: string) => void) & ((event: "input-value-change", value: string) => void) & ((event: "exceedLimit", value: SelectOptionValue, ev?: MouseEvent | undefined) => void) & ((event: "dropdown-scroll", ev: Event) => void) & ((event: "dropdown-reach-bottom", ev: Event) => void);
1327
+ $emit: ((event: "change", value: import('../Select').SelectValue) => void) & ((event: "clear") => void) & ((event: "search", value: string) => void) & ((event: "select", value: SelectOptionValue) => void) & ((event: "remove", index: string | number, ev: Event) => void) & ((event: "update:popupVisible", value: boolean) => void) & ((event: "popup-visible-change", value: boolean) => void) & ((event: "update:modelValue", value: import('../Select').SelectValue) => void) & ((event: "update:inputValue", value: string) => void) & ((event: "input-value-change", value: string) => void) & ((event: "exceedLimit", value: SelectOptionValue, ev?: MouseEvent | undefined) => void) & ((event: "dropdown-scroll", ev: Event) => void) & ((event: "dropdown-reach-bottom", ev: Event) => void);
1328
1328
  $el: any;
1329
1329
  $options: import('vue').ComponentOptionsBase<Readonly<import('../Select').SelectProps> & Readonly<{
1330
1330
  onChange?: ((value: import('../Select').SelectValue) => any) | undefined;
1331
- "onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
1332
- "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
1333
1331
  onClear?: (() => any) | undefined;
1334
1332
  onSearch?: ((value: string) => any) | undefined;
1335
1333
  onSelect?: ((value: SelectOptionValue) => any) | undefined;
1336
1334
  onRemove?: ((index: string | number, ev: Event) => any) | undefined;
1335
+ "onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
1336
+ "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
1337
1337
  "onUpdate:modelValue"?: ((value: import('../Select').SelectValue) => any) | undefined;
1338
1338
  "onUpdate:inputValue"?: ((value: string) => any) | undefined;
1339
1339
  "onInput-value-change"?: ((value: string) => any) | undefined;
@@ -1346,12 +1346,12 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
1346
1346
  getPopupRef(): import('..').TriggerInstance;
1347
1347
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
1348
1348
  change: (value: import('../Select').SelectValue) => any;
1349
- "update:popupVisible": (value: boolean) => any;
1350
- "popup-visible-change": (value: boolean) => any;
1351
1349
  clear: () => any;
1352
1350
  search: (value: string) => any;
1353
1351
  select: (value: SelectOptionValue) => any;
1354
1352
  remove: (index: string | number, ev: Event) => any;
1353
+ "update:popupVisible": (value: boolean) => any;
1354
+ "popup-visible-change": (value: boolean) => any;
1355
1355
  "update:modelValue": (value: import('../Select').SelectValue) => any;
1356
1356
  "update:inputValue": (value: string) => any;
1357
1357
  "input-value-change": (value: string) => any;
@@ -1446,19 +1446,19 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
1446
1446
  tagNowrap: boolean;
1447
1447
  }> & Omit<Readonly<import('../Select').SelectProps> & Readonly<{
1448
1448
  onChange?: ((value: import('../Select').SelectValue) => any) | undefined;
1449
- "onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
1450
- "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
1451
1449
  onClear?: (() => any) | undefined;
1452
1450
  onSearch?: ((value: string) => any) | undefined;
1453
1451
  onSelect?: ((value: SelectOptionValue) => any) | undefined;
1454
1452
  onRemove?: ((index: string | number, ev: Event) => any) | undefined;
1453
+ "onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
1454
+ "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
1455
1455
  "onUpdate:modelValue"?: ((value: import('../Select').SelectValue) => any) | undefined;
1456
1456
  "onUpdate:inputValue"?: ((value: string) => any) | undefined;
1457
1457
  "onInput-value-change"?: ((value: string) => any) | undefined;
1458
1458
  onExceedLimit?: ((value: SelectOptionValue, ev?: MouseEvent | undefined) => any) | undefined;
1459
1459
  "onDropdown-scroll"?: ((ev: Event) => any) | undefined;
1460
1460
  "onDropdown-reach-bottom"?: ((ev: Event) => any) | undefined;
1461
- }>, "focus" | "blur" | ("size" | "error" | "popupContainer" | "popupVisible" | "defaultPopupVisible" | "disabled" | "scrollbar" | "multiple" | "placeholder" | "loading" | "bordered" | "modelValue" | "defaultValue" | "allowClear" | "showExtraOptions" | "options" | "limit" | "inputValue" | "defaultInputValue" | "fieldNames" | "allowSearch" | "valueKey" | "showEmpty" | "allowCreate" | "maxTagCount" | "filterOption" | "virtualListProps" | "triggerProps" | "searchDelay" | "showHeaderOnEmpty" | "showFooterOnEmpty" | "tagNowrap") | "getPopupRef"> & import('vue').ShallowUnwrapRef<{
1461
+ }>, "blur" | "focus" | ("size" | "error" | "popupContainer" | "popupVisible" | "defaultPopupVisible" | "disabled" | "scrollbar" | "multiple" | "placeholder" | "loading" | "bordered" | "modelValue" | "defaultValue" | "allowClear" | "showExtraOptions" | "options" | "limit" | "inputValue" | "defaultInputValue" | "fieldNames" | "allowSearch" | "valueKey" | "showEmpty" | "allowCreate" | "maxTagCount" | "filterOption" | "virtualListProps" | "triggerProps" | "searchDelay" | "showHeaderOnEmpty" | "showFooterOnEmpty" | "tagNowrap") | "getPopupRef"> & import('vue').ShallowUnwrapRef<{
1462
1462
  focus(): void;
1463
1463
  blur(): void;
1464
1464
  getPopupRef(): import('..').TriggerInstance;
@@ -1467,10 +1467,10 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
1467
1467
  }) | null;
1468
1468
  inputRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('..').TextareaProps> & Readonly<{
1469
1469
  onChange?: ((value: string, ev: Event) => any) | undefined;
1470
- onFocus?: ((ev: FocusEvent) => any) | undefined;
1471
1470
  onClear?: ((ev: MouseEvent) => any) | undefined;
1472
1471
  onInput?: ((value: string, ev: Event) => any) | undefined;
1473
1472
  onBlur?: ((ev: FocusEvent) => any) | undefined;
1473
+ onFocus?: ((ev: FocusEvent) => any) | undefined;
1474
1474
  onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
1475
1475
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
1476
1476
  }>, {
@@ -1480,10 +1480,10 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
1480
1480
  getMirrorRef(): HTMLDivElement;
1481
1481
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
1482
1482
  change: (value: string, ev: Event) => any;
1483
- focus: (ev: FocusEvent) => any;
1484
1483
  clear: (ev: MouseEvent) => any;
1485
1484
  input: (value: string, ev: Event) => any;
1486
1485
  blur: (ev: FocusEvent) => any;
1486
+ focus: (ev: FocusEvent) => any;
1487
1487
  keydown: (ev: KeyboardEvent) => any;
1488
1488
  "update:modelValue": (value: string) => any;
1489
1489
  }, import('vue').PublicProps, {
@@ -1513,10 +1513,10 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
1513
1513
  Defaults: {};
1514
1514
  }, Readonly<import('..').TextareaProps> & Readonly<{
1515
1515
  onChange?: ((value: string, ev: Event) => any) | undefined;
1516
- onFocus?: ((ev: FocusEvent) => any) | undefined;
1517
1516
  onClear?: ((ev: MouseEvent) => any) | undefined;
1518
1517
  onInput?: ((value: string, ev: Event) => any) | undefined;
1519
1518
  onBlur?: ((ev: FocusEvent) => any) | undefined;
1519
+ onFocus?: ((ev: FocusEvent) => any) | undefined;
1520
1520
  onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
1521
1521
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
1522
1522
  }>, {
@@ -1547,16 +1547,16 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
1547
1547
  $root: import('vue').ComponentPublicInstance | null;
1548
1548
  $parent: import('vue').ComponentPublicInstance | null;
1549
1549
  $host: Element | null;
1550
- $emit: ((event: "change", value: string) => void) & ((event: "focus", ev: FocusEvent) => void) & ((event: "clear", ev?: Event | undefined) => void) & ((event: "input", value: string, ev: Event) => void) & ((event: "search", value: string) => void) & ((event: "select", value: string) => void) & ((event: "blur", ev: FocusEvent) => void) & ((event: "keydown", ev: KeyboardEvent) => void) & ((event: "update:modelValue", value: string) => void) & ((event: "dropdown-scroll", ev?: Event | undefined) => void) & ((event: "dropdown-reach-bottom", ev?: Event | undefined) => void);
1550
+ $emit: ((event: "change", value: string) => void) & ((event: "clear", ev?: Event | undefined) => void) & ((event: "input", value: string, ev: Event) => void) & ((event: "search", value: string) => void) & ((event: "select", value: string) => void) & ((event: "blur", ev: FocusEvent) => void) & ((event: "focus", ev: FocusEvent) => void) & ((event: "keydown", ev: KeyboardEvent) => void) & ((event: "update:modelValue", value: string) => void) & ((event: "dropdown-scroll", ev?: Event | undefined) => void) & ((event: "dropdown-reach-bottom", ev?: Event | undefined) => void);
1551
1551
  $el: any;
1552
1552
  $options: import('vue').ComponentOptionsBase<Readonly<import('../AutoComplete').AutoCompleteProps> & Readonly<{
1553
1553
  onChange?: ((value: string) => any) | undefined;
1554
- onFocus?: ((ev: FocusEvent) => any) | undefined;
1555
1554
  onClear?: ((ev?: Event | undefined) => any) | undefined;
1556
1555
  onInput?: ((value: string, ev: Event) => any) | undefined;
1557
1556
  onSearch?: ((value: string) => any) | undefined;
1558
1557
  onSelect?: ((value: string) => any) | undefined;
1559
1558
  onBlur?: ((ev: FocusEvent) => any) | undefined;
1559
+ onFocus?: ((ev: FocusEvent) => any) | undefined;
1560
1560
  onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
1561
1561
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
1562
1562
  "onDropdown-scroll"?: ((ev?: Event | undefined) => any) | undefined;
@@ -1569,12 +1569,12 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
1569
1569
  updatePosition(x: number, y: number): void;
1570
1570
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
1571
1571
  change: (value: string) => any;
1572
- focus: (ev: FocusEvent) => any;
1573
1572
  clear: (ev?: Event | undefined) => any;
1574
1573
  input: (value: string, ev: Event) => any;
1575
1574
  search: (value: string) => any;
1576
1575
  select: (value: string) => any;
1577
1576
  blur: (ev: FocusEvent) => any;
1577
+ focus: (ev: FocusEvent) => any;
1578
1578
  keydown: (ev: KeyboardEvent) => any;
1579
1579
  "update:modelValue": (value: string) => any;
1580
1580
  "dropdown-scroll": (ev?: Event | undefined) => any;
@@ -1627,17 +1627,17 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
1627
1627
  isSearch: boolean;
1628
1628
  }> & Omit<Readonly<import('../AutoComplete').AutoCompleteProps> & Readonly<{
1629
1629
  onChange?: ((value: string) => any) | undefined;
1630
- onFocus?: ((ev: FocusEvent) => any) | undefined;
1631
1630
  onClear?: ((ev?: Event | undefined) => any) | undefined;
1632
1631
  onInput?: ((value: string, ev: Event) => any) | undefined;
1633
1632
  onSearch?: ((value: string) => any) | undefined;
1634
1633
  onSelect?: ((value: string) => any) | undefined;
1635
1634
  onBlur?: ((ev: FocusEvent) => any) | undefined;
1635
+ onFocus?: ((ev: FocusEvent) => any) | undefined;
1636
1636
  onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
1637
1637
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
1638
1638
  "onDropdown-scroll"?: ((ev?: Event | undefined) => any) | undefined;
1639
1639
  "onDropdown-reach-bottom"?: ((ev?: Event | undefined) => any) | undefined;
1640
- }>, "focus" | "blur" | "updatePosition" | "getInputRef" | "getMirrorRef" | ("type" | "data" | "popupContainer" | "disabled" | "strict" | "modelValue" | "defaultValue" | "allowClear" | "filterOption" | "triggerProps" | "isSelectSetValue" | "isSearch")> & import('vue').ShallowUnwrapRef<{
1640
+ }>, "blur" | "focus" | "updatePosition" | "getInputRef" | "getMirrorRef" | ("type" | "data" | "popupContainer" | "disabled" | "strict" | "modelValue" | "defaultValue" | "allowClear" | "filterOption" | "triggerProps" | "isSelectSetValue" | "isSearch")> & import('vue').ShallowUnwrapRef<{
1641
1641
  focus(): void;
1642
1642
  blur(): void;
1643
1643
  getInputRef(): HTMLInputElement | HTMLTextAreaElement | undefined;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=require("../node_modules/@vueuse/core/index.js"),l=require("../_shared/utils/is.js"),u=require("../_shared/utils/dom.js"),o=require("./hooks/useContext.js"),a=require("./MenuPopOption.vue.js"),n=require("../Dropdown/index.js"),r=require("../Tooltip/index.js"),i={key:1,class:"yc-menu-icon"},c={key:2,class:"yc-menu-icon-suffix"},s=e.defineComponent({name:"MenuItem",__name:"MenuItem",props:{path:{default:""},disabled:{type:Boolean,default:!1}},setup(s){const p=e.useSlots(),d=s,{path:v,disabled:m}=e.toRefs(d),{reuse:f,define:h}=t.createReusableTemplate(),k=e.useAttrs(),{computedSelectedKeys:y,computedOpenKeys:g,computedCollapsed:x,levelIndent:B,mode:w,theme:C,autoOpen:S,autoOpenSelected:z,accordion:M,triggerProps:N,tooltipProps:V,autoScrollIntoView:_,scrollConfig:b,popupMaxHeight:j,menuTreeNodes:I,menuTree:P,max:q,menuItemWidths:E,emits:O}=o.default().inject(),T=e.computed(()=>I.value.find(e=>e.path==v.value)||{type:"menuitem",level:0}),$=e.computed(()=>P.value.findIndex(e=>e.path==v.value)),A=e.computed(()=>{var e;return(null==(e=P.value[$.value])?void 0:e.children)||[]}),D=e.computed(()=>"submenu"==T.value.type),H=e.computed(()=>0===T.value.level),F=e.computed(()=>o.isMenuItemActive(P.value,v.value,y.value)),R=e.computed(()=>l.isUndefined(k.popupMaxHeight)?j.value:o.getPopupMaxHeight(k.popupMaxHeight)),K=e.ref(),W=e=>{y.value!=e&&(y.value=e,O("menu-item-click",e))},L=()=>{if(!("vertical"!=w.value&&D.value||x.value)){if(!D.value&&!m.value&&y.value!=v.value)return y.value=v.value,O("menu-item-click",v.value);g.value.includes(v.value)?g.value=g.value.filter(e=>e!=v.value):g.value=M.value?[v.value]:[...g.value,v.value],O("sub-menu-click",v.value,g.value)}};return e.onMounted(()=>{var e;H.value&&(E.value[$.value]=K.value.offsetWidth),_.value&&y.value==v.value&&(null==(e=K.value)||e.scrollIntoView(b.value)),D.value&&S.value&&z.value&&F.value&&g.value.push(v.value)}),(t,l)=>$.value<e.unref(q)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["yc-menu-item-wrapper",`yc-menu-item-${e.unref(C)}`,{"yc-menu-item-mode-horizontal":"horizontal"==e.unref(w)}])},[e.createVNode(e.unref(h),null,{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["yc-menu-item",{"yc-menu-item-selected":F.value,"yc-menu-item-disabled":e.unref(m),"yc-menu-item-collapsed":e.unref(x)}]),ref_key:"menuItemRef",ref:K,onClick:L},[H.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"yc-menu-indent",style:e.normalizeStyle({width:e.unref(u.valueToPx)(e.unref(B)*T.value.level),height:e.unref(u.valueToPx)(e.unref(B))})},null,4)),p.icon?(e.openBlock(),e.createElementBlock("div",i,[e.renderSlot(t.$slots,"icon")])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["yc-menu-item-title",{"text-ellipsis":"horizontal"!=e.unref(w)}])},[e.renderSlot(t.$slots,"default")],2),[[e.vShow,!e.unref(x)]]),p.suffix?e.withDirectives((e.openBlock(),e.createElementBlock("div",c,[e.renderSlot(t.$slots,"suffix")],512)),[[e.vShow,!e.unref(x)]]):e.createCommentVNode("",!0)],2)]),_:3}),D.value&&H.value&&("vertical"!=e.unref(w)||e.unref(x))?(e.openBlock(),e.createBlock(e.unref(n.default),{key:0,"popup-max-height":R.value,"trigger-props":{autoFitPosition:!1,position:"horizontal"==e.unref(w)?"bl":"rt",animationName:"horizontal"==e.unref(w)?"slide-dynamic-origin":"zoom-in-fade-out",popupOffset:"vertical"==e.unref(w)?14:20,showArrow:!0,...e.unref(N)},class:e.normalizeClass([`yc-dropdown-popup-${e.unref(C)}`]),onSelect:W},{content:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.value,t=>(e.openBlock(),e.createBlock(a.default,{key:t.path,"tree-node":t,"popup-max-height":R.value,"trigger-props":e.unref(N),"computed-selected-keys":e.unref(y)},null,8,["tree-node","popup-max-height","trigger-props","computed-selected-keys"]))),128))]),default:e.withCtx(()=>[e.createVNode(e.unref(f))]),_:1},8,["popup-max-height","trigger-props","class"])):!D.value&&H.value&&e.unref(x)?(e.openBlock(),e.createBlock(e.unref(r.default),{key:1,position:"rt","trigger-props":{autoFitPosition:!1,popupOffset:"vertical"==e.unref(w)?14:18,showArrow:!0,...e.unref(V),...e.unref(N)}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(p.default)))]),default:e.withCtx(()=>[e.createVNode(e.unref(f))]),_:1},8,["trigger-props"])):(e.openBlock(),e.createBlock(e.unref(f),{key:2}))],2)):e.createCommentVNode("",!0)}});exports.default=s;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=require("../_shared/utils/is.js"),l=require("../_shared/utils/dom.js"),u=require("../node_modules/@vueuse/core/index.js"),o=require("./hooks/useContext.js"),a=require("./MenuPopOption.vue.js"),n=require("../Dropdown/index.js"),r=require("../Tooltip/index.js"),i={key:1,class:"yc-menu-icon"},c={key:2,class:"yc-menu-icon-suffix"},s=e.defineComponent({name:"MenuItem",__name:"MenuItem",props:{path:{default:""},disabled:{type:Boolean,default:!1}},setup(s){const p=e.useSlots(),d=s,{path:v,disabled:m}=e.toRefs(d),{reuse:f,define:h}=u.createReusableTemplate(),k=e.useAttrs(),{computedSelectedKeys:y,computedOpenKeys:g,computedCollapsed:x,levelIndent:B,mode:w,theme:C,autoOpen:S,autoOpenSelected:z,accordion:M,triggerProps:N,tooltipProps:V,autoScrollIntoView:_,scrollConfig:b,popupMaxHeight:j,menuTreeNodes:I,menuTree:P,max:q,menuItemWidths:E,emits:O}=o.default().inject(),T=e.computed(()=>I.value.find(e=>e.path==v.value)||{type:"menuitem",level:0}),$=e.computed(()=>P.value.findIndex(e=>e.path==v.value)),A=e.computed(()=>{var e;return(null==(e=P.value[$.value])?void 0:e.children)||[]}),D=e.computed(()=>"submenu"==T.value.type),H=e.computed(()=>0===T.value.level),F=e.computed(()=>o.isMenuItemActive(P.value,v.value,y.value)),R=e.computed(()=>t.isUndefined(k.popupMaxHeight)?j.value:o.getPopupMaxHeight(k.popupMaxHeight)),K=e.ref(),W=e=>{y.value!=e&&(y.value=e,O("menu-item-click",e))},L=()=>{if(!("vertical"!=w.value&&D.value||x.value)){if(!D.value&&!m.value&&y.value!=v.value)return y.value=v.value,O("menu-item-click",v.value);g.value.includes(v.value)?g.value=g.value.filter(e=>e!=v.value):g.value=M.value?[v.value]:[...g.value,v.value],O("sub-menu-click",v.value,g.value)}};return e.onMounted(()=>{var e;H.value&&(E.value[$.value]=K.value.offsetWidth),_.value&&y.value==v.value&&(null==(e=K.value)||e.scrollIntoView(b.value)),D.value&&S.value&&z.value&&F.value&&g.value.push(v.value)}),(t,u)=>$.value<e.unref(q)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["yc-menu-item-wrapper",`yc-menu-item-${e.unref(C)}`,{"yc-menu-item-mode-horizontal":"horizontal"==e.unref(w)}])},[e.createVNode(e.unref(h),null,{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["yc-menu-item",{"yc-menu-item-selected":F.value,"yc-menu-item-disabled":e.unref(m),"yc-menu-item-collapsed":e.unref(x)}]),ref_key:"menuItemRef",ref:K,onClick:L},[H.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"yc-menu-indent",style:e.normalizeStyle({width:e.unref(l.valueToPx)(e.unref(B)*T.value.level),height:e.unref(l.valueToPx)(e.unref(B))})},null,4)),p.icon?(e.openBlock(),e.createElementBlock("div",i,[e.renderSlot(t.$slots,"icon")])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["yc-menu-item-title",{"text-ellipsis":"horizontal"!=e.unref(w)}])},[e.renderSlot(t.$slots,"default")],2),[[e.vShow,!e.unref(x)]]),p.suffix?e.withDirectives((e.openBlock(),e.createElementBlock("div",c,[e.renderSlot(t.$slots,"suffix")],512)),[[e.vShow,!e.unref(x)]]):e.createCommentVNode("",!0)],2)]),_:3}),D.value&&H.value&&("vertical"!=e.unref(w)||e.unref(x))?(e.openBlock(),e.createBlock(e.unref(n.default),{key:0,"popup-max-height":R.value,"trigger-props":{autoFitPosition:!1,position:"horizontal"==e.unref(w)?"bl":"rt",animationName:"horizontal"==e.unref(w)?"slide-dynamic-origin":"zoom-in-fade-out",popupOffset:"vertical"==e.unref(w)?14:20,showArrow:!0,...e.unref(N)},class:e.normalizeClass([`yc-dropdown-popup-${e.unref(C)}`]),onSelect:W},{content:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.value,t=>(e.openBlock(),e.createBlock(a.default,{key:t.path,"tree-node":t,"popup-max-height":R.value,"trigger-props":e.unref(N),"computed-selected-keys":e.unref(y)},null,8,["tree-node","popup-max-height","trigger-props","computed-selected-keys"]))),128))]),default:e.withCtx(()=>[e.createVNode(e.unref(f))]),_:1},8,["popup-max-height","trigger-props","class"])):!D.value&&H.value&&e.unref(x)?(e.openBlock(),e.createBlock(e.unref(r.default),{key:1,position:"rt","trigger-props":{autoFitPosition:!1,popupOffset:"vertical"==e.unref(w)?14:18,showArrow:!0,...e.unref(V),...e.unref(N)}},{content:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(p.default)))]),default:e.withCtx(()=>[e.createVNode(e.unref(f))]),_:1},8,["trigger-props"])):(e.openBlock(),e.createBlock(e.unref(f),{key:2}))],2)):e.createCommentVNode("",!0)}});exports.default=s;
@@ -37,7 +37,7 @@ export declare function FlattenMenuTree(vnodes: VNode[], componentName: string[]
37
37
  export declare function buildMenuTree(flatData: MenuTreeNode[]): MenuTreeNode[];
38
38
  export declare function isMenuItemActive(menuTree: MenuTreeNode[], currentPath: string, activePath: string): boolean;
39
39
  export declare const getPopupMaxHeight: (popupMaxHeight: PopupMaxHeight) => number | undefined;
40
- declare const _default: () => {
40
+ export default function useMenuContext(): {
41
41
  provide: (props: RecordType, emits: MenuEmits, menuRef: Ref<HTMLDivElement | undefined>) => {
42
42
  theme: import('vue').ComputedRef<import('../../_shared/type').Theme>;
43
43
  computedCollapsed: import('vue').WritableComputedRef<boolean, boolean>;
@@ -48,4 +48,4 @@ declare const _default: () => {
48
48
  };
49
49
  inject: () => MenuContext;
50
50
  };
51
- export default _default;
51
+ export {};
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=require("../../node_modules/nanoid/index.browser.js"),o=require("../../node_modules/@vueuse/core/index.js"),r=require("../../_shared/utils/is.js"),l=require("../../_shared/utils/dom.js"),u=require("../../_shared/utils/control.js");require("../index.js");const n=require("../../Layout/hooks/useSiderContext.js"),s=require("../SubMenu.vue.js");;/* empty css */const i=require("../MenuItem.vue.js");;/* empty css */const a="menu-context";function d(o,l){const u=[],n=(o,i=null,a=0)=>{var d,c,p;if(!o)return;const f=Array.isArray(o)?o:[o];for(const m of f){if(!e.isVNode(m))continue;const o=t.nanoid(8),f=null==(d=m.type)?void 0:d.name,v=f===s.default.name,h=m.props,g=m.children,x=null==(c=m.component)?void 0:c.subTree,y=v?o:i,j=v?a+1:a;if(l.includes(f)&&u.push({id:o,type:v?"submenu":"menuitem",label:()=>{var e,t;return v?(null==(e=g.title)?void 0:e.call(g))||h.title:null==(t=g.default)?void 0:t.call(g)},path:h.path,parentId:i,level:a}),x)n(x);else if(Array.isArray(g))n(g,y,j);else if(r.isObject(g))for(const e of Object.keys(g))r.isFunction(g[e])&&n((null==(p=g[e])?void 0:p.call(g))||[],y,j)}};return n(o),u}function c(e){const t=new Map,o=[];return e.forEach(e=>{t.set(e.id,{...e,children:[]})}),t.forEach(e=>{if(null===e.parentId)o.push(e);else{const o=t.get(e.parentId);o&&o.children.push(e)}}),o}const p=e=>r.isUndefined(e)||r.isBoolean(e)&&e?167:r.isNumber(e)?e:void 0;exports.FlattenMenuTree=d,exports.buildMenuTree=c,exports.default=()=>({provide:(t,r,f)=>{const{selectedKeys:m,defaultSelectedKeys:v,openKeys:h,defaultOpenKeys:g,levelIndent:x,collapsed:y,defaultCollapsed:j,breakpoint:b,accordion:S,autoOpen:I,triggerProps:M,tooltipProps:O,autoOpenSelected:q,mode:C,autoScrollIntoView:K,scrollConfig:T,collapsedWidth:P,theme:V,popupMaxHeight:_}=e.toRefs(t),{theme:k,collapsed:w}=n.default().inject(),A=u.useControlValue(m,v.value,e=>{r("update:selectedKeys",e)}),W=u.useControlValue(y,j.value,e=>{H.value=[],r("update:collapsed",e)},e=>e||w.value),H=u.useControlValue(h,g.value,e=>{r("update:openKeys",e)}),N=e.computed(()=>p(_.value)),z=e.useSlots(),E=e.computed(()=>{var e;return d((null==(e=z.default)?void 0:e.call(z))||[],[s.default.name??"",i.default.name??""])}),F=e.ref([]),R=e.computed(()=>c(E.value)),B=e.ref(1e6),L=e.computed(()=>V.value||k.value||"light");return"horizontal"==C.value&&o.useResizeObserver(f,l.throttle(()=>{const e=f.value.offsetWidth-52;let t=0,o=0;for(let r=0;r<R.value.length;r++){const l=o+(r>0?4:0)+F.value[r];if(l>e)break;o=l,t++}B.value=t},200)),e.provide(a,{computedSelectedKeys:A,computedOpenKeys:H,computedCollapsed:W,levelIndent:x,accordion:S,autoOpen:I,triggerProps:M,tooltipProps:O,mode:C,autoOpenSelected:q,popupMaxHeight:N,autoScrollIntoView:K,scrollConfig:T,theme:L,menuTreeNodes:E,menuTree:R,max:B,menuItemWidths:F,emits:r}),{theme:L,computedCollapsed:W,breakpoint:b,collapsedWidth:e.computed(()=>l.valueToPx(P.value)),menuTree:R,max:B}},inject:()=>e.inject(a,{computedSelectedKeys:e.ref(""),computedOpenKeys:e.ref([]),levelIndent:e.ref(20),computedCollapsed:e.ref(!1),accordion:e.ref(!1),autoOpen:e.ref(!1),tooltipProps:e.ref({}),triggerProps:e.ref({}),autoOpenSelected:e.ref(!1),mode:e.ref("vertical"),theme:e.ref("light"),popupMaxHeight:e.ref(),autoScrollIntoView:e.ref(!1),scrollConfig:e.ref({}),menuTreeNodes:e.ref([]),menuTree:e.ref([]),max:e.ref(1e4),menuItemWidths:e.ref([]),emits:()=>{}})}),exports.getPopupMaxHeight=p,exports.isMenuItemActive=function(e,t,o){if(t===o)return!0;const r=(e,t)=>{for(const o of e){if(o.path===t)return o;if(o.children&&o.children.length>0){const e=r(o.children,t);if(e)return e}}return null},l=r(e,t);if(!l)return!1;const u=(e,t)=>e.path===t||!!e.children&&e.children.some(e=>u(e,t));return u(l,o)};
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=require("../../node_modules/nanoid/index.browser.js"),o=require("../../_shared/utils/is.js"),r=require("../../_shared/utils/dom.js"),u=require("../../node_modules/@vueuse/core/index.js"),l=require("../../_shared/utils/control.js");require("../index.js");const n=require("../../Layout/hooks/useSiderContext.js"),s=require("../SubMenu.vue.js");;/* empty css */const i=require("../MenuItem.vue.js");;/* empty css */const a="menu-context";function d(r,u){const l=[],n=(r,i=null,a=0)=>{var d,c,p;if(!r)return;const f=Array.isArray(r)?r:[r];for(const m of f){if(!e.isVNode(m))continue;const r=t.nanoid(8),f=null==(d=m.type)?void 0:d.name,v=f===s.default.name,h=m.props,g=m.children,x=null==(c=m.component)?void 0:c.subTree,y=v?r:i,j=v?a+1:a;if(u.includes(f)&&l.push({id:r,type:v?"submenu":"menuitem",label:()=>{var e,t;return v?(null==(e=g.title)?void 0:e.call(g))||h.title:null==(t=g.default)?void 0:t.call(g)},path:h.path,parentId:i,level:a}),x)n(x);else if(Array.isArray(g))n(g,y,j);else if(o.isObject(g))for(const e of Object.keys(g))o.isFunction(g[e])&&n((null==(p=g[e])?void 0:p.call(g))||[],y,j)}};return n(r),l}function c(e){const t=new Map,o=[];return e.forEach(e=>{t.set(e.id,{...e,children:[]})}),t.forEach(e=>{if(null===e.parentId)o.push(e);else{const o=t.get(e.parentId);o&&o.children.push(e)}}),o}const p=e=>o.isUndefined(e)||o.isBoolean(e)&&e?167:o.isNumber(e)?e:void 0;exports.FlattenMenuTree=d,exports.buildMenuTree=c,exports.default=function(){return{provide:(t,o,f)=>{const{selectedKeys:m,defaultSelectedKeys:v,openKeys:h,defaultOpenKeys:g,levelIndent:x,collapsed:y,defaultCollapsed:j,breakpoint:b,accordion:S,autoOpen:I,triggerProps:M,tooltipProps:O,autoOpenSelected:q,mode:C,autoScrollIntoView:K,scrollConfig:T,collapsedWidth:P,theme:V,popupMaxHeight:_}=e.toRefs(t),{theme:k,collapsed:w}=n.default().inject(),A=l.useControlValue(m,v.value,e=>{o("update:selectedKeys",e)}),W=l.useControlValue(y,j.value,e=>{H.value=[],o("update:collapsed",e)},e=>e||w.value),H=l.useControlValue(h,g.value,e=>{o("update:openKeys",e)}),N=e.computed(()=>p(_.value)),z=e.useSlots(),E=e.computed(()=>{var e;return d((null==(e=z.default)?void 0:e.call(z))||[],[s.default.name??"",i.default.name??""])}),F=e.ref([]),R=e.computed(()=>c(E.value)),B=e.ref(1e6),L=e.computed(()=>V.value||k.value||"light");return"horizontal"==C.value&&u.useResizeObserver(f,r.throttle(()=>{const e=f.value.offsetWidth-52;let t=0,o=0;for(let r=0;r<R.value.length;r++){const u=o+(r>0?4:0)+F.value[r];if(u>e)break;o=u,t++}B.value=t},200)),e.provide(a,{computedSelectedKeys:A,computedOpenKeys:H,computedCollapsed:W,levelIndent:x,accordion:S,autoOpen:I,triggerProps:M,tooltipProps:O,mode:C,autoOpenSelected:q,popupMaxHeight:N,autoScrollIntoView:K,scrollConfig:T,theme:L,menuTreeNodes:E,menuTree:R,max:B,menuItemWidths:F,emits:o}),{theme:L,computedCollapsed:W,breakpoint:b,collapsedWidth:e.computed(()=>r.valueToPx(P.value)),menuTree:R,max:B}},inject:()=>e.inject(a,{computedSelectedKeys:e.ref(""),computedOpenKeys:e.ref([]),levelIndent:e.ref(20),computedCollapsed:e.ref(!1),accordion:e.ref(!1),autoOpen:e.ref(!1),tooltipProps:e.ref({}),triggerProps:e.ref({}),autoOpenSelected:e.ref(!1),mode:e.ref("vertical"),theme:e.ref("light"),popupMaxHeight:e.ref(),autoScrollIntoView:e.ref(!1),scrollConfig:e.ref({}),menuTreeNodes:e.ref([]),menuTree:e.ref([]),max:e.ref(1e4),menuItemWidths:e.ref([]),emits:()=>{}})}},exports.getPopupMaxHeight=p,exports.isMenuItemActive=function(e,t,o){if(t===o)return!0;const r=(e,t)=>{for(const o of e){if(o.path===t)return o;if(o.children&&o.children.length>0){const e=r(o.children,t);if(e)return e}}return null},u=r(e,t);if(!u)return!1;const l=(e,t)=>e.path===t||!!e.children&&e.children.some(e=>l(e,t));return l(u,o)};
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("../node_modules/@vueuse/core/index.js"),t=require("../_shared/utils/dom.js"),a=require("../_shared/utils/vue-utils.js"),o=require("../Tag/index.js"),r=e.defineComponent({name:"OverflowList",__name:"index",props:{min:{default:0},margin:{default:8},from:{default:"end"}},emits:["change"],setup(r,{emit:u}){const n=e.useSlots(),s=r,f=u,{min:i,margin:v,from:c}=e.toRefs(s),d=e.ref(1e4),m=e.ref([]),p=e.computed(()=>{var e;return a.findComponentsFromVnodes((null==(e=n.default)?void 0:e.call(n))||[],o.default.name)}),g=e.ref(),k=e.ref(),y=e.computed(()=>k.value?l.unrefElement(k).offsetWidth+v.value:v.value),h=e.computed(()=>p.value.length-d.value);return l.useResizeObserver(g,t.throttle(async()=>{await t.sleep(0);let e=0,l=0;const a=g.value.offsetWidth;for(let t=0;t<m.value.length;t++){const o=l+(t>0?v.value:0)+m.value[t];if(o>a)break;l=o,e++}d.value=e>i.value?e:i.value},180)),e.watch(()=>d.value,()=>{f("change",h.value)}),e.watch(()=>p.value.length,async()=>{d.value=1e5,await t.sleep(0);const e=[...document.querySelectorAll("#overflowTag")].map(e=>e.offsetWidth);m.value=e},{immediate:!0}),(l,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yc-overflow-list",`yc-overflow-list-from-${e.unref(c)}`]),style:e.normalizeStyle({gap:e.unref(t.valueToPx)(e.unref(v)),padding:"start"==e.unref(c)?`0 0 0 ${e.unref(t.valueToPx)(y.value)}`:` 0 ${e.unref(t.valueToPx)(y.value)} 0 0`}),ref_key:"listRef",ref:g},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(l,t)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:t},[t<d.value?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l),{key:0,id:"overflowTag"})):e.createCommentVNode("",!0)],64))),128)),d.value<p.value.length?(e.openBlock(),e.createElementBlock("div",{key:0,class:"yc-overflow-tag",ref_key:"overflowRef",ref:k},[e.renderSlot(l.$slots,"overflow",{number:h.value},()=>[e.createVNode(e.unref(o.default),null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(`+${h.value}`),1)]),_:1})])],512)):e.createCommentVNode("",!0)],6))}});exports.default=r;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("../_shared/utils/vue-utils.js"),t=require("../_shared/utils/dom.js"),a=require("../Tag/index.js"),o=require("../node_modules/@vueuse/core/index.js"),r=e.defineComponent({name:"OverflowList",__name:"index",props:{min:{default:0},margin:{default:8},from:{default:"end"}},emits:["change"],setup(r,{emit:u}){const n=e.useSlots(),s=r,f=u,{min:i,margin:v,from:c}=e.toRefs(s),d=e.ref(1e4),m=e.ref([]),p=e.computed(()=>{var e;return l.findComponentsFromVnodes((null==(e=n.default)?void 0:e.call(n))||[],a.default.name)}),g=e.ref(),k=e.ref(),y=e.computed(()=>k.value?o.unrefElement(k).offsetWidth+v.value:v.value),h=e.computed(()=>p.value.length-d.value);return o.useResizeObserver(g,t.throttle(async()=>{await t.sleep(0);let e=0,l=0;const a=g.value.offsetWidth;for(let t=0;t<m.value.length;t++){const o=l+(t>0?v.value:0)+m.value[t];if(o>a)break;l=o,e++}d.value=e>i.value?e:i.value},180)),e.watch(()=>d.value,()=>{f("change",h.value)}),e.watch(()=>p.value.length,async()=>{d.value=1e5,await t.sleep(0);const e=[...document.querySelectorAll("#overflowTag")].map(e=>e.offsetWidth);m.value=e},{immediate:!0}),(l,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yc-overflow-list",`yc-overflow-list-from-${e.unref(c)}`]),style:e.normalizeStyle({gap:e.unref(t.valueToPx)(e.unref(v)),padding:"start"==e.unref(c)?`0 0 0 ${e.unref(t.valueToPx)(y.value)}`:` 0 ${e.unref(t.valueToPx)(y.value)} 0 0`}),ref_key:"listRef",ref:g},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(l,t)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:t},[t<d.value?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l),{key:0,id:"overflowTag"})):e.createCommentVNode("",!0)],64))),128)),d.value<p.value.length?(e.openBlock(),e.createElementBlock("div",{key:0,class:"yc-overflow-tag",ref_key:"overflowRef",ref:k},[e.renderSlot(l.$slots,"overflow",{number:h.value},()=>[e.createVNode(e.unref(a.default),null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(`+${h.value}`),1)]),_:1})])],512)):e.createCommentVNode("",!0)],6))}});exports.default=r;