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
@@ -5,7 +5,7 @@ import "../_shared/utils/dom.js";
5
5
  /* empty css */
6
6
  import _sfc_main$1 from "../_shared/icons/IconArrowRight.vue.js";
7
7
  import _sfc_main$2 from "../_shared/icons/IconMore.vue.js";
8
- import useContext from "./hooks/useContext.js";
8
+ import usePaginationContext from "./hooks/useContext.js";
9
9
  const _sfc_main = /* @__PURE__ */ defineComponent({
10
10
  __name: "PaginationItem",
11
11
  props: {
@@ -22,7 +22,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
22
22
  activePageItemStyle,
23
23
  bufferSize,
24
24
  disabled: _disabled
25
- } = useContext().inject();
25
+ } = usePaginationContext().inject();
26
26
  const active = computed(() => {
27
27
  return type.value == "item" ? computedCurrent.value == page.value : false;
28
28
  });
@@ -11,7 +11,7 @@ interface PaginationContext {
11
11
  baseSize: Ref<number>;
12
12
  bufferSize: Ref<number>;
13
13
  }
14
- declare const _default: () => {
14
+ export default function usePaginationContext(): {
15
15
  provide: (props: RecordType, emits: PaginationEmits) => {
16
16
  total: import('vue').WritableComputedRef<number, number>;
17
17
  size: import('vue').ComputedRef<any>;
@@ -27,4 +27,4 @@ declare const _default: () => {
27
27
  };
28
28
  inject: () => PaginationContext;
29
29
  };
30
- export default _default;
30
+ export {};
@@ -3,7 +3,7 @@ import { useControlValue } from "../../_shared/utils/control.js";
3
3
  import { getGlobalConfig } from "../../_shared/utils/global-config.js";
4
4
  import { useI18n } from "../../_shared/utils/locale.js";
5
5
  const PAGINATION_CONTEXT_KEY = "pagination-context";
6
- const useContext = () => {
6
+ function usePaginationContext() {
7
7
  const provide$1 = (props, emits) => {
8
8
  const {
9
9
  disabled,
@@ -123,7 +123,7 @@ const useContext = () => {
123
123
  provide: provide$1,
124
124
  inject: inject$1
125
125
  };
126
- };
126
+ }
127
127
  export {
128
- useContext as default
128
+ usePaginationContext as default
129
129
  };
@@ -4,17 +4,17 @@ export type PopconfirmInstance = InstanceType<typeof _Popconfirm>;
4
4
  export * from './type';
5
5
  declare const Popconfirm: {
6
6
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').PopconfirmProps> & Readonly<{
7
+ onCancel?: (() => any) | undefined;
7
8
  "onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
8
9
  "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
9
- onCancel?: (() => any) | undefined;
10
10
  onOk?: (() => any) | undefined;
11
11
  }>, {
12
12
  hide(): void;
13
13
  show(): void;
14
14
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
15
+ cancel: () => any;
15
16
  "update:popupVisible": (value: boolean) => any;
16
17
  "popup-visible-change": (value: boolean) => any;
17
- cancel: () => any;
18
18
  ok: () => any;
19
19
  }, import('vue').PublicProps, {
20
20
  type: import('./type').PopconfirmType;
@@ -282,9 +282,9 @@ declare const Popconfirm: {
282
282
  M: {};
283
283
  Defaults: {};
284
284
  }, Readonly<import('./type').PopconfirmProps> & Readonly<{
285
+ onCancel?: (() => any) | undefined;
285
286
  "onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
286
287
  "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
287
- onCancel?: (() => any) | undefined;
288
288
  onOk?: (() => any) | undefined;
289
289
  }>, {
290
290
  hide(): void;
@@ -313,17 +313,17 @@ declare const Popconfirm: {
313
313
  __isTeleport?: never;
314
314
  __isSuspense?: never;
315
315
  } & import('vue').ComponentOptionsBase<Readonly<import('./type').PopconfirmProps> & Readonly<{
316
+ onCancel?: (() => any) | undefined;
316
317
  "onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
317
318
  "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
318
- onCancel?: (() => any) | undefined;
319
319
  onOk?: (() => any) | undefined;
320
320
  }>, {
321
321
  hide(): void;
322
322
  show(): void;
323
323
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
324
+ cancel: () => any;
324
325
  "update:popupVisible": (value: boolean) => any;
325
326
  "popup-visible-change": (value: boolean) => any;
326
- cancel: () => any;
327
327
  ok: () => any;
328
328
  }, string, {
329
329
  type: import('./type').PopconfirmType;
@@ -249,14 +249,14 @@ declare const __VLS_component: import('vue').DefineComponent<PopconfirmProps, {
249
249
  hide(): void;
250
250
  show(): void;
251
251
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
252
+ cancel: () => any;
252
253
  "update:popupVisible": (value: boolean) => any;
253
254
  "popup-visible-change": (value: boolean) => any;
254
- cancel: () => any;
255
255
  ok: () => any;
256
256
  }, string, import('vue').PublicProps, Readonly<PopconfirmProps> & Readonly<{
257
+ onCancel?: (() => any) | undefined;
257
258
  "onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
258
259
  "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
259
- onCancel?: (() => any) | undefined;
260
260
  onOk?: (() => any) | undefined;
261
261
  }>, {
262
262
  type: import('./type').PopconfirmType;
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, useSlots, toRefs, computed, createElementBlock, openBlock, normalizeClass, unref, createElementVNode, renderSlot, Fragment, createVNode, createCommentVNode, withCtx } from "vue";
2
2
  import { useControlValue } from "../_shared/utils/control.js";
3
- import useContext from "./hooks/useContext.js";
3
+ import useRadioContext from "./hooks/useContext.js";
4
4
  import _sfc_main$1 from "../_shared/components/IconButton/index.vue.js";
5
5
  /* empty css */
6
6
  import "../_shared/utils/dom.js";
@@ -46,7 +46,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
46
46
  size,
47
47
  hasGroup,
48
48
  emits: _emits
49
- } = useContext().inject();
49
+ } = useRadioContext().inject();
50
50
  const computedValue = useControlValue(
51
51
  modelValue,
52
52
  defaultChecked.value,
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, useSlots, createElementBlock, openBlock, normalizeClass, renderSlot, Fragment, renderList, unref, createBlock, createSlots, withCtx, createTextVNode, toDisplayString, mergeProps } from "vue";
2
- import useContext from "./hooks/useContext.js";
2
+ import useRadioContext from "./hooks/useContext.js";
3
3
  import _sfc_main$1 from "./Radio.vue.js";
4
4
  /* empty css */
5
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -21,7 +21,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
21
21
  const $slots = useSlots();
22
22
  const props = __props;
23
23
  const emits = __emit;
24
- const { options } = useContext().provide(props, emits);
24
+ const { options } = useRadioContext().provide(props, emits);
25
25
  return (_ctx, _cache) => {
26
26
  return openBlock(), createElementBlock("div", {
27
27
  class: normalizeClass([
@@ -9,10 +9,10 @@ interface RadioContext {
9
9
  hasGroup: Ref<boolean>;
10
10
  emits: RadioGroupEmits;
11
11
  }
12
- declare const _default: () => {
12
+ export default function useRadioContext(): {
13
13
  provide: (props: RecordType, emits: RadioGroupEmits) => {
14
14
  options: import('vue').ComputedRef<RecordType[]>;
15
15
  };
16
16
  inject: () => RadioContext;
17
17
  };
18
- export default _default;
18
+ export {};
@@ -3,7 +3,7 @@ import { useControlValue } from "../../_shared/utils/control.js";
3
3
  import { getGlobalConfig } from "../../_shared/utils/global-config.js";
4
4
  import { isObject } from "../../_shared/utils/is.js";
5
5
  const RADIO_GROUP_CONTEXT_KEY = "radio-group-context";
6
- const useContext = () => {
6
+ function useRadioContext() {
7
7
  const provide$1 = (props, emits) => {
8
8
  const {
9
9
  modelValue,
@@ -56,7 +56,7 @@ const useContext = () => {
56
56
  provide: provide$1,
57
57
  inject: inject$1
58
58
  };
59
- };
59
+ }
60
60
  export {
61
- useContext as default
61
+ useRadioContext as default
62
62
  };
@@ -3,7 +3,7 @@ import { useResizeObserver, useElementSize } from "../node_modules/@vueuse/core/
3
3
  import { isVerticallyScrollable, isHorizontallyScrollable } from "../_shared/utils/dom.js";
4
4
  import _sfc_main$1 from "./ScrollbarTrack.vue.js";
5
5
  /* empty css */
6
- import useContext from "./hooks/useContext.js";
6
+ import useScrollbarContext from "./hooks/useContext.js";
7
7
  const _sfc_main = /* @__PURE__ */ defineComponent({
8
8
  ...{
9
9
  name: "Scrollbar",
@@ -126,7 +126,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
126
126
  const track = hasVerticalBar2.value ? trackWidth2.value : 0;
127
127
  return scrollWidth2.value - thumbWidth.value - track;
128
128
  });
129
- useContext().provide({
129
+ useScrollbarContext().provide({
130
130
  curLeft: curLeft2,
131
131
  curTop: curTop2,
132
132
  movableLeft: movableLeft2,
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, toRefs, computed, ref, watchEffect, createElementBlock, openBlock, withModifiers, normalizeClass, unref, createElementVNode, normalizeStyle } from "vue";
2
2
  import { useResizeObserver, useDraggable } from "../node_modules/@vueuse/core/index.js";
3
3
  import { valueToPx } from "../_shared/utils/dom.js";
4
- import useContext from "./hooks/useContext.js";
4
+ import useScrollbarContext from "./hooks/useContext.js";
5
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  __name: "ScrollbarTrack",
7
7
  props: {
@@ -21,7 +21,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
21
21
  curTop,
22
22
  curLeft,
23
23
  isDragging: _isDragging
24
- } = useContext().inject();
24
+ } = useScrollbarContext().inject();
25
25
  const isVertical = computed(() => direction.value == "vertical");
26
26
  const thmubStyle = computed(() => {
27
27
  return isVertical.value ? {
@@ -9,8 +9,8 @@ type ScrollbarContext = {
9
9
  isDragging: Ref<boolean>;
10
10
  scrollRef: Ref<HTMLDivElement | undefined>;
11
11
  };
12
- declare const _default: () => {
12
+ export default function useScrollbarContext(): {
13
13
  provide: (params: ScrollbarContext) => void;
14
14
  inject: () => ScrollbarContext;
15
15
  };
16
- export default _default;
16
+ export {};
@@ -1,6 +1,6 @@
1
1
  import { provide, inject, ref } from "vue";
2
2
  const SCROLLBAR_CONTEXT_KEY = "scrollbar-context";
3
- const useContext = () => {
3
+ function useScrollbarContext() {
4
4
  const provide$1 = (params) => {
5
5
  provide(SCROLLBAR_CONTEXT_KEY, params);
6
6
  };
@@ -20,7 +20,7 @@ const useContext = () => {
20
20
  provide: provide$1,
21
21
  inject: inject$1
22
22
  };
23
- };
23
+ }
24
24
  export {
25
- useContext as default
25
+ useScrollbarContext as default
26
26
  };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, useSlots, toRefs, ref, computed, withDirectives, createElementBlock, openBlock, normalizeClass, unref, createCommentVNode, createBlock, renderSlot, withCtx, createElementVNode, createTextVNode, toDisplayString, vShow } from "vue";
2
2
  import { isUndefined } from "../_shared/utils/is.js";
3
3
  import { getDomText } from "../_shared/utils/dom.js";
4
- import useContext from "./hooks/useContext.js";
4
+ import useSelectContext from "./hooks/useContext.js";
5
5
  import Checkbox from "../Checkbox/index.js";
6
6
  const _hoisted_1 = {
7
7
  key: 0,
@@ -39,7 +39,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
39
39
  getValue,
40
40
  emits,
41
41
  collectOption
42
- } = useContext().inject();
42
+ } = useSelectContext().inject();
43
43
  const contentRef = ref();
44
44
  const optionValue = computed(() => {
45
45
  return `${props.value}` ? props.value : getDomText(contentRef);
@@ -264,10 +264,10 @@ declare function __VLS_template(): {
264
264
  readonly tagNowrap?: boolean | undefined;
265
265
  readonly fieldNames?: Record<string, string> | undefined;
266
266
  readonly allowCreate?: boolean | undefined;
267
- readonly onFocus?: ((ev: FocusEvent) => any) | undefined;
268
267
  readonly onClear?: ((ev: MouseEvent) => any) | undefined;
269
268
  readonly onInput?: ((value: string) => any) | undefined;
270
269
  readonly onBlur?: ((ev: FocusEvent) => any) | undefined;
270
+ readonly onFocus?: ((ev: FocusEvent) => any) | undefined;
271
271
  readonly onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
272
272
  readonly "onUpdate:modelValue"?: ((value: InputTagValue) => any) | undefined;
273
273
  readonly "onUpdate:inputValue"?: ((value: string) => any) | undefined;
@@ -289,13 +289,13 @@ declare function __VLS_template(): {
289
289
  $root: import('vue').ComponentPublicInstance | null;
290
290
  $parent: import('vue').ComponentPublicInstance | null;
291
291
  $host: Element | null;
292
- $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: InputTagValue) => void) & ((event: "update:inputValue", value: string) => void) & ((event: "input-value-change", value: string, ev: Event) => void) & ((event: "press-enter", ev: KeyboardEvent) => void);
292
+ $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: InputTagValue) => void) & ((event: "update:inputValue", value: string) => void) & ((event: "input-value-change", value: string, ev: Event) => void) & ((event: "press-enter", ev: KeyboardEvent) => void);
293
293
  $el: HTMLDivElement;
294
294
  $options: import('vue').ComponentOptionsBase<Readonly<import('../InputTag').InputTagProps> & Readonly<{
295
- onFocus?: ((ev: FocusEvent) => any) | undefined;
296
295
  onClear?: ((ev: MouseEvent) => any) | undefined;
297
296
  onInput?: ((value: string) => any) | undefined;
298
297
  onBlur?: ((ev: FocusEvent) => any) | undefined;
298
+ onFocus?: ((ev: FocusEvent) => any) | undefined;
299
299
  onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
300
300
  "onUpdate:modelValue"?: ((value: InputTagValue) => any) | undefined;
301
301
  "onUpdate:inputValue"?: ((value: string) => any) | undefined;
@@ -305,10 +305,10 @@ declare function __VLS_template(): {
305
305
  focus(): void;
306
306
  blur(): void;
307
307
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
308
- focus: (ev: FocusEvent) => any;
309
308
  clear: (ev: MouseEvent) => any;
310
309
  input: (value: string) => any;
311
310
  blur: (ev: FocusEvent) => any;
311
+ focus: (ev: FocusEvent) => any;
312
312
  remove: (value: string | number, ev: MouseEvent | KeyboardEvent) => any;
313
313
  "update:modelValue": (value: InputTagValue) => any;
314
314
  "update:inputValue": (value: string) => any;
@@ -369,16 +369,16 @@ declare function __VLS_template(): {
369
369
  retainInputValue: import('../InputTag').InputRetainValue;
370
370
  uniqueValue: boolean;
371
371
  }> & Omit<Readonly<import('../InputTag').InputTagProps> & Readonly<{
372
- onFocus?: ((ev: FocusEvent) => any) | undefined;
373
372
  onClear?: ((ev: MouseEvent) => any) | undefined;
374
373
  onInput?: ((value: string) => any) | undefined;
375
374
  onBlur?: ((ev: FocusEvent) => any) | undefined;
375
+ onFocus?: ((ev: FocusEvent) => any) | undefined;
376
376
  onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
377
377
  "onUpdate:modelValue"?: ((value: InputTagValue) => any) | undefined;
378
378
  "onUpdate:inputValue"?: ((value: string) => any) | undefined;
379
379
  "onInput-value-change"?: ((value: string, ev: Event) => any) | undefined;
380
380
  "onPress-enter"?: ((ev: KeyboardEvent) => any) | undefined;
381
- }>, "focus" | "blur" | ("size" | "error" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "allowClear" | "readonly" | "inputValue" | "defaultInputValue" | "fieldNames" | "allowCreate" | "maxTagCount" | "tagNowrap" | "retainInputValue" | "uniqueValue")> & import('vue').ShallowUnwrapRef<{
381
+ }>, "blur" | "focus" | ("size" | "error" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "allowClear" | "readonly" | "inputValue" | "defaultInputValue" | "fieldNames" | "allowCreate" | "maxTagCount" | "tagNowrap" | "retainInputValue" | "uniqueValue")> & import('vue').ShallowUnwrapRef<{
382
382
  focus(): void;
383
383
  blur(): void;
384
384
  }> & {} & import('@vue/runtime-core').ComponentCustomProperties & {} & {
@@ -394,12 +394,12 @@ declare const __VLS_component: import('vue').DefineComponent<SelectProps, {
394
394
  getPopupRef(): TriggerInstance;
395
395
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
396
396
  change: (value: import('./type').SelectValue) => any;
397
- "update:popupVisible": (value: boolean) => any;
398
- "popup-visible-change": (value: boolean) => any;
399
397
  clear: () => any;
400
398
  search: (value: string) => any;
401
399
  select: (value: SelectOptionValue) => any;
402
400
  remove: (index: string | number, ev: Event) => any;
401
+ "update:popupVisible": (value: boolean) => any;
402
+ "popup-visible-change": (value: boolean) => any;
403
403
  "update:modelValue": (value: import('./type').SelectValue) => any;
404
404
  "update:inputValue": (value: string) => any;
405
405
  "input-value-change": (value: string) => any;
@@ -408,12 +408,12 @@ declare const __VLS_component: import('vue').DefineComponent<SelectProps, {
408
408
  "dropdown-reach-bottom": (ev: Event) => any;
409
409
  }, string, import('vue').PublicProps, Readonly<SelectProps> & Readonly<{
410
410
  onChange?: ((value: import('./type').SelectValue) => any) | undefined;
411
- "onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
412
- "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
413
411
  onClear?: (() => any) | undefined;
414
412
  onSearch?: ((value: string) => any) | undefined;
415
413
  onSelect?: ((value: SelectOptionValue) => any) | undefined;
416
414
  onRemove?: ((index: string | number, ev: Event) => any) | undefined;
415
+ "onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
416
+ "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
417
417
  "onUpdate:modelValue"?: ((value: import('./type').SelectValue) => any) | undefined;
418
418
  "onUpdate:inputValue"?: ((value: string) => any) | undefined;
419
419
  "onInput-value-change"?: ((value: string) => any) | undefined;
@@ -713,10 +713,10 @@ declare const __VLS_component: import('vue').DefineComponent<SelectProps, {
713
713
  readonly tagNowrap?: boolean | undefined;
714
714
  readonly fieldNames?: Record<string, string> | undefined;
715
715
  readonly allowCreate?: boolean | undefined;
716
- readonly onFocus?: ((ev: FocusEvent) => any) | undefined;
717
716
  readonly onClear?: ((ev: MouseEvent) => any) | undefined;
718
717
  readonly onInput?: ((value: string) => any) | undefined;
719
718
  readonly onBlur?: ((ev: FocusEvent) => any) | undefined;
719
+ readonly onFocus?: ((ev: FocusEvent) => any) | undefined;
720
720
  readonly onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
721
721
  readonly "onUpdate:modelValue"?: ((value: InputTagValue) => any) | undefined;
722
722
  readonly "onUpdate:inputValue"?: ((value: string) => any) | undefined;
@@ -738,13 +738,13 @@ declare const __VLS_component: import('vue').DefineComponent<SelectProps, {
738
738
  $root: import('vue').ComponentPublicInstance | null;
739
739
  $parent: import('vue').ComponentPublicInstance | null;
740
740
  $host: Element | null;
741
- $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: InputTagValue) => void) & ((event: "update:inputValue", value: string) => void) & ((event: "input-value-change", value: string, ev: Event) => void) & ((event: "press-enter", ev: KeyboardEvent) => void);
741
+ $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: InputTagValue) => void) & ((event: "update:inputValue", value: string) => void) & ((event: "input-value-change", value: string, ev: Event) => void) & ((event: "press-enter", ev: KeyboardEvent) => void);
742
742
  $el: HTMLDivElement;
743
743
  $options: import('vue').ComponentOptionsBase<Readonly<import('../InputTag').InputTagProps> & Readonly<{
744
- onFocus?: ((ev: FocusEvent) => any) | undefined;
745
744
  onClear?: ((ev: MouseEvent) => any) | undefined;
746
745
  onInput?: ((value: string) => any) | undefined;
747
746
  onBlur?: ((ev: FocusEvent) => any) | undefined;
747
+ onFocus?: ((ev: FocusEvent) => any) | undefined;
748
748
  onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
749
749
  "onUpdate:modelValue"?: ((value: InputTagValue) => any) | undefined;
750
750
  "onUpdate:inputValue"?: ((value: string) => any) | undefined;
@@ -754,10 +754,10 @@ declare const __VLS_component: import('vue').DefineComponent<SelectProps, {
754
754
  focus(): void;
755
755
  blur(): void;
756
756
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
757
- focus: (ev: FocusEvent) => any;
758
757
  clear: (ev: MouseEvent) => any;
759
758
  input: (value: string) => any;
760
759
  blur: (ev: FocusEvent) => any;
760
+ focus: (ev: FocusEvent) => any;
761
761
  remove: (value: string | number, ev: MouseEvent | KeyboardEvent) => any;
762
762
  "update:modelValue": (value: InputTagValue) => any;
763
763
  "update:inputValue": (value: string) => any;
@@ -818,16 +818,16 @@ declare const __VLS_component: import('vue').DefineComponent<SelectProps, {
818
818
  retainInputValue: import('../InputTag').InputRetainValue;
819
819
  uniqueValue: boolean;
820
820
  }> & Omit<Readonly<import('../InputTag').InputTagProps> & Readonly<{
821
- onFocus?: ((ev: FocusEvent) => any) | undefined;
822
821
  onClear?: ((ev: MouseEvent) => any) | undefined;
823
822
  onInput?: ((value: string) => any) | undefined;
824
823
  onBlur?: ((ev: FocusEvent) => any) | undefined;
824
+ onFocus?: ((ev: FocusEvent) => any) | undefined;
825
825
  onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
826
826
  "onUpdate:modelValue"?: ((value: InputTagValue) => any) | undefined;
827
827
  "onUpdate:inputValue"?: ((value: string) => any) | undefined;
828
828
  "onInput-value-change"?: ((value: string, ev: Event) => any) | undefined;
829
829
  "onPress-enter"?: ((ev: KeyboardEvent) => any) | undefined;
830
- }>, "focus" | "blur" | ("size" | "error" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "allowClear" | "readonly" | "inputValue" | "defaultInputValue" | "fieldNames" | "allowCreate" | "maxTagCount" | "tagNowrap" | "retainInputValue" | "uniqueValue")> & import('vue').ShallowUnwrapRef<{
830
+ }>, "blur" | "focus" | ("size" | "error" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "allowClear" | "readonly" | "inputValue" | "defaultInputValue" | "fieldNames" | "allowCreate" | "maxTagCount" | "tagNowrap" | "retainInputValue" | "uniqueValue")> & import('vue').ShallowUnwrapRef<{
831
831
  focus(): void;
832
832
  blur(): void;
833
833
  }> & {} & import('@vue/runtime-core').ComponentCustomProperties & {} & {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, useSlots, toRefs, ref, computed, createBlock, openBlock, unref, mergeProps, isRef, withCtx, createElementVNode, normalizeStyle, normalizeClass, renderSlot, createVNode, toDisplayString, createCommentVNode } from "vue";
2
2
  import { isUndefined } from "../_shared/utils/is.js";
3
3
  import { sleep } from "../_shared/utils/dom.js";
4
- import useContext from "./hooks/useContext.js";
4
+ import useSelectContext from "./hooks/useContext.js";
5
5
  import _sfc_main$1 from "./SelectIcon.vue.js";
6
6
  /* empty css */
7
7
  import _sfc_main$2 from "./SelectView.vue.js";
@@ -87,7 +87,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
87
87
  computedInputValue,
88
88
  selectOptions,
89
89
  createOptions
90
- } = useContext().provide(props, emits, inputRef);
90
+ } = useSelectContext().provide(props, emits, inputRef);
91
91
  const showClearBtn = computed(() => {
92
92
  const hasValue = multiple.value ? computedValue.value.length : String(computedValue.value).length;
93
93
  return allowClear.value && !disabled.value && !loading.value && !!hasValue;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, resolveComponent, createBlock, createElementBlock, openBlock, unref, createSlots, withCtx, resolveDynamicComponent, Fragment, createElementVNode, createCommentVNode, withModifiers } from "vue";
2
- import useContext from "./hooks/useContext.js";
2
+ import useSelectContext from "./hooks/useContext.js";
3
3
  import _sfc_main$1 from "../_shared/icons/IconArrowDown.vue.js";
4
4
  import _sfc_main$2 from "../_shared/components/IconButton/index.vue.js";
5
5
  /* empty css */
@@ -22,7 +22,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
22
22
  },
23
23
  emits: ["clear"],
24
24
  setup(__props) {
25
- const { slots } = useContext().inject();
25
+ const { slots } = useSelectContext().inject();
26
26
  const renderIcon = (name) => {
27
27
  return slots[name];
28
28
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, ref, createBlock, openBlock, unref, withCtx, createElementVNode, createElementBlock, resolveDynamicComponent, Fragment, renderList } from "vue";
2
2
  import { getSlotFunction } from "../_shared/utils/vue-utils.js";
3
- import useContext from "./hooks/useContext.js";
3
+ import useSelectContext from "./hooks/useContext.js";
4
4
  import _sfc_main$2 from "./Option.vue.js";
5
5
  /* empty css */
6
6
  import _sfc_main$1 from "./Optgroup.vue.js";
@@ -13,7 +13,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
13
13
  scrollbar: { type: Boolean }
14
14
  },
15
15
  setup(__props, { expose: __expose }) {
16
- const { fieldKey, renderOptions, slots } = useContext().inject();
16
+ const { fieldKey, renderOptions, slots } = useSelectContext().inject();
17
17
  const scrollbarRef = ref();
18
18
  const renderLabel = (option) => {
19
19
  if (slots.option) {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, toRefs, ref, computed, createElementBlock, openBlock, createBlock, unref, createSlots, withCtx, resolveDynamicComponent, Fragment, createCommentVNode } from "vue";
2
2
  import { unrefElement } from "../node_modules/@vueuse/core/index.js";
3
- import useContext from "./hooks/useContext.js";
3
+ import useSelectContext from "./hooks/useContext.js";
4
4
  import useScrollReach from "../List/hooks/useScrollReach.js";
5
5
  import _sfc_main$1 from "./SelectVirtualList.vue.js";
6
6
  /* empty css */
@@ -29,7 +29,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
29
29
  setup(__props) {
30
30
  const props = __props;
31
31
  const { virtualListProps } = toRefs(props);
32
- const { slots, options, isEmpty, emits } = useContext().inject();
32
+ const { slots, options, isEmpty, emits } = useSelectContext().inject();
33
33
  const realListRef = ref();
34
34
  const virtualListRef = ref();
35
35
  const isVirtualList = computed(() => {
@@ -1,8 +1,8 @@
1
1
  import { defineComponent, toRefs, createElementBlock, openBlock, mergeProps, unref, createElementVNode, Fragment, renderList, createBlock, withCtx, resolveDynamicComponent } from "vue";
2
- import { useVirtualList } from "../node_modules/@vueuse/core/index.js";
3
2
  import { getSlotFunction } from "../_shared/utils/vue-utils.js";
4
- import useContext from "./hooks/useContext.js";
3
+ import useSelectContext from "./hooks/useContext.js";
5
4
  import "./index.js";
5
+ import { useVirtualList } from "../node_modules/@vueuse/core/index.js";
6
6
  import _sfc_main$1 from "./Option.vue.js";
7
7
  /* empty css */
8
8
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -14,7 +14,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
14
14
  var _a, _b;
15
15
  const props = __props;
16
16
  const { virtualListProps } = toRefs(props);
17
- const { fieldKey, renderOptions, slots } = useContext().inject();
17
+ const { fieldKey, renderOptions, slots } = useSelectContext().inject();
18
18
  const { list, wrapperProps, containerProps } = useVirtualList(renderOptions, {
19
19
  overscan: ((_a = virtualListProps.value) == null ? void 0 : _a.buffer) ?? 10,
20
20
  itemHeight: ((_b = virtualListProps.value) == null ? void 0 : _b.itemHeight) || 36
@@ -19,7 +19,7 @@ type SelectContext = {
19
19
  collectOption: (props: RecordType, optionLabel: Ref<string>) => void;
20
20
  emits: SelectEmits;
21
21
  };
22
- declare const _default: () => {
22
+ export default function useSelectContext(): {
23
23
  provide: (props: RecordType, emits: SelectEmits, inputRef: Ref<InputInstance | undefined>) => {
24
24
  computedVisible: import('vue').WritableComputedRef<boolean, boolean>;
25
25
  computedValue: import('vue').WritableComputedRef<SelectValue, SelectValue>;
@@ -78,4 +78,4 @@ declare const _default: () => {
78
78
  };
79
79
  inject: () => SelectContext;
80
80
  };
81
- export default _default;
81
+ export {};
@@ -4,7 +4,7 @@ import { isBoolean, isFunction } from "../../_shared/utils/is.js";
4
4
  import useSelectOptions from "./useSelectOptions.js";
5
5
  import useSelectHotkeys from "./useSelectHotkeys.js";
6
6
  const SELECT_CONTEXT_KEY = "select-context";
7
- const useContext = () => {
7
+ function useSelectContext() {
8
8
  const provide$1 = (props, emits, inputRef) => {
9
9
  const {
10
10
  popupVisible,
@@ -185,7 +185,7 @@ const useContext = () => {
185
185
  provide: provide$1,
186
186
  inject: inject$1
187
187
  };
188
- };
188
+ }
189
189
  export {
190
- useContext as default
190
+ useSelectContext as default
191
191
  };