yc-design-vue 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (255) hide show
  1. package/es/Affix/type.d.ts +3 -2
  2. package/es/Alert/type.d.ts +6 -5
  3. package/es/Anchor/type.d.ts +4 -3
  4. package/es/AutoComplete/index.d.ts +65 -2
  5. package/es/AutoComplete/index.vue.d.ts +130 -4
  6. package/es/AutoComplete/type.d.ts +5 -4
  7. package/es/Avatar/AvatarGroup.vue.js +1 -1
  8. package/es/Avatar/AvatarGroup.vue2.js +2 -2
  9. package/es/Avatar/type.d.ts +4 -4
  10. package/es/BackTop/type.d.ts +2 -1
  11. package/es/Badge/index.vue.js +1 -1
  12. package/es/Badge/index.vue2.js +2 -2
  13. package/es/Badge/type.d.ts +3 -3
  14. package/es/Breadcrumb/type.d.ts +9 -8
  15. package/es/Button/Button.vue.js +1 -1
  16. package/es/Button/Button.vue2.js +2 -2
  17. package/es/Button/type.d.ts +4 -3
  18. package/es/Calendar/type.d.ts +5 -4
  19. package/es/Card/type.d.ts +10 -10
  20. package/es/Carousel/type.d.ts +3 -2
  21. package/es/Cascader/type.d.ts +10 -10
  22. package/es/Checkbox/hooks/useContext.d.ts +2 -5
  23. package/es/Checkbox/type.d.ts +9 -8
  24. package/es/Collapse/type.d.ts +9 -8
  25. package/es/Comment/type.d.ts +7 -6
  26. package/es/ConfigProvider/index.vue.js +2 -2
  27. package/es/ConfigProvider/type.d.ts +5 -4
  28. package/es/Descriptions/type.d.ts +9 -9
  29. package/es/Divider/type.d.ts +2 -1
  30. package/es/Drawer/Drawer.vue.js +1 -1
  31. package/es/Drawer/Drawer.vue2.js +6 -7
  32. package/es/Drawer/type.d.ts +5 -5
  33. package/es/Dropdown/Dsubmenu.vue.d.ts +130 -4
  34. package/es/Dropdown/Dsubmenu.vue.js +1 -1
  35. package/es/Dropdown/Dsubmenu.vue2.js +2 -2
  36. package/es/Dropdown/index.d.ts +65 -2
  37. package/es/Dropdown/type.d.ts +15 -14
  38. package/es/Empty/type.d.ts +2 -1
  39. package/es/Grid/type.d.ts +6 -5
  40. package/es/Icon/type.d.ts +2 -1
  41. package/es/Image/type.d.ts +11 -10
  42. package/es/Input/hooks/useCursor.d.ts +2 -1
  43. package/es/Input/hooks/useCursor.js +2 -2
  44. package/es/Input/type.d.ts +6 -5
  45. package/es/InputNumber/type.d.ts +8 -8
  46. package/es/InputTag/type.d.ts +5 -4
  47. package/es/Layout/Layout.vue.js +1 -1
  48. package/es/Layout/Layout.vue2.js +2 -2
  49. package/es/Layout/type.d.ts +8 -7
  50. package/es/Link/type.d.ts +3 -2
  51. package/es/List/List.vue.js +1 -1
  52. package/es/List/List.vue2.js +1 -1
  53. package/es/List/type.d.ts +15 -14
  54. package/es/Mention/index.d.ts +65 -2
  55. package/es/Mention/index.vue.d.ts +130 -4
  56. package/es/Mention/type.d.ts +3 -2
  57. package/es/Menu/type.d.ts +11 -10
  58. package/es/Message/type.d.ts +1 -1
  59. package/es/Modal/Modal.vue.js +1 -1
  60. package/es/Modal/Modal.vue2.js +4 -6
  61. package/es/Modal/hooks/useModalClose.d.ts +2 -1
  62. package/es/Modal/hooks/useModalClose.js +1 -6
  63. package/es/Modal/type.d.ts +5 -5
  64. package/es/Notification/type.d.ts +1 -1
  65. package/es/OverflowList/index.vue.js +1 -1
  66. package/es/OverflowList/index.vue2.js +4 -4
  67. package/es/OverflowList/type.d.ts +3 -2
  68. package/es/PageHeader/type.d.ts +7 -6
  69. package/es/Pagination/type.d.ts +8 -8
  70. package/es/Popconfirm/index.d.ts +65 -2
  71. package/es/Popconfirm/index.vue.d.ts +130 -4
  72. package/es/Popconfirm/type.d.ts +4 -4
  73. package/es/Popover/type.d.ts +4 -4
  74. package/es/Radio/hooks/useContext.d.ts +3 -6
  75. package/es/Radio/type.d.ts +9 -8
  76. package/es/Rate/type.d.ts +3 -2
  77. package/es/ResizeBox/type.d.ts +6 -5
  78. package/es/Result/type.d.ts +6 -5
  79. package/es/Scrollbar/Scrollbar.vue.js +1 -1
  80. package/es/Scrollbar/type.d.ts +2 -2
  81. package/es/Select/Select.vue.d.ts +130 -4
  82. package/es/Select/SelectView.vue.js +1 -1
  83. package/es/Select/SelectView.vue2.js +1 -1
  84. package/es/Select/index.d.ts +65 -2
  85. package/es/Select/type.d.ts +19 -18
  86. package/es/Skeleton/type.d.ts +3 -2
  87. package/es/Space/index.vue.js +1 -1
  88. package/es/Space/index.vue2.js +2 -2
  89. package/es/Space/type.d.ts +3 -2
  90. package/es/Spin/index.vue.js +1 -1
  91. package/es/Spin/index.vue2.js +1 -1
  92. package/es/Spin/type.d.ts +4 -3
  93. package/es/Split/type.d.ts +5 -4
  94. package/es/Statistic/type.d.ts +7 -7
  95. package/es/Steps/type.d.ts +8 -7
  96. package/es/Switch/index.vue.js +1 -1
  97. package/es/Switch/index.vue2.js +3 -3
  98. package/es/Switch/type.d.ts +5 -4
  99. package/es/Tabs/Tabs.vue.js +1 -1
  100. package/es/Tabs/Tabs.vue2.js +2 -2
  101. package/es/Tabs/type.d.ts +5 -4
  102. package/es/Tag/type.d.ts +4 -3
  103. package/es/TimePicker/type.d.ts +4 -3
  104. package/es/Timeline/type.d.ts +6 -5
  105. package/es/Tooltip/type.d.ts +3 -3
  106. package/es/Transfer/type.d.ts +13 -12
  107. package/es/Trigger/hooks/useContext.js +1 -1
  108. package/es/Trigger/hooks/useTriggerPosition.d.ts +2 -2
  109. package/es/Trigger/hooks/useTriggerPosition.js +12 -22
  110. package/es/Trigger/hooks/useTriggerVisible.js +1 -2
  111. package/es/Trigger/index.d.ts +63 -2
  112. package/es/Trigger/index.vue.d.ts +130 -3
  113. package/es/Trigger/index.vue.js +1 -1
  114. package/es/Trigger/index.vue2.js +2 -2
  115. package/es/Trigger/type.d.ts +3 -3
  116. package/es/Typography/type.d.ts +8 -7
  117. package/es/Watermark/type.d.ts +2 -1
  118. package/es/_shared/type/index.d.ts +1 -6
  119. package/es/_shared/utils/dom.d.ts +5 -5
  120. package/es/_shared/utils/dom.js +8 -9
  121. package/es/_shared/utils/fn.d.ts +3 -3
  122. package/es/_shared/utils/fn.js +6 -6
  123. package/es/_shared/utils/global-config.d.ts +4 -2
  124. package/es/_shared/utils/vue-utils.d.ts +1 -2
  125. package/es/_shared/utils/vue-utils.js +2 -7
  126. package/es/index.d.ts +66 -3
  127. package/es/style.css +1 -1
  128. package/lib/Affix/type.d.ts +3 -2
  129. package/lib/Alert/type.d.ts +6 -5
  130. package/lib/Anchor/type.d.ts +4 -3
  131. package/lib/AutoComplete/index.d.ts +65 -2
  132. package/lib/AutoComplete/index.vue.d.ts +130 -4
  133. package/lib/AutoComplete/type.d.ts +5 -4
  134. package/lib/Avatar/AvatarGroup.vue.js +1 -1
  135. package/lib/Avatar/AvatarGroup.vue2.js +1 -1
  136. package/lib/Avatar/type.d.ts +4 -4
  137. package/lib/BackTop/type.d.ts +2 -1
  138. package/lib/Badge/index.vue.js +1 -1
  139. package/lib/Badge/index.vue2.js +1 -1
  140. package/lib/Badge/type.d.ts +3 -3
  141. package/lib/Breadcrumb/type.d.ts +9 -8
  142. package/lib/Button/Button.vue.js +1 -1
  143. package/lib/Button/Button.vue2.js +1 -1
  144. package/lib/Button/type.d.ts +4 -3
  145. package/lib/Calendar/type.d.ts +5 -4
  146. package/lib/Card/type.d.ts +10 -10
  147. package/lib/Carousel/type.d.ts +3 -2
  148. package/lib/Cascader/type.d.ts +10 -10
  149. package/lib/Checkbox/hooks/useContext.d.ts +2 -5
  150. package/lib/Checkbox/type.d.ts +9 -8
  151. package/lib/Collapse/type.d.ts +9 -8
  152. package/lib/Comment/type.d.ts +7 -6
  153. package/lib/ConfigProvider/index.vue.js +1 -1
  154. package/lib/ConfigProvider/type.d.ts +5 -4
  155. package/lib/Descriptions/type.d.ts +9 -9
  156. package/lib/Divider/type.d.ts +2 -1
  157. package/lib/Drawer/Drawer.vue.js +1 -1
  158. package/lib/Drawer/Drawer.vue2.js +1 -1
  159. package/lib/Drawer/type.d.ts +5 -5
  160. package/lib/Dropdown/Dsubmenu.vue.d.ts +130 -4
  161. package/lib/Dropdown/Dsubmenu.vue.js +1 -1
  162. package/lib/Dropdown/Dsubmenu.vue2.js +1 -1
  163. package/lib/Dropdown/index.d.ts +65 -2
  164. package/lib/Dropdown/type.d.ts +15 -14
  165. package/lib/Empty/type.d.ts +2 -1
  166. package/lib/Grid/type.d.ts +6 -5
  167. package/lib/Icon/type.d.ts +2 -1
  168. package/lib/Image/type.d.ts +11 -10
  169. package/lib/Input/hooks/useCursor.d.ts +2 -1
  170. package/lib/Input/hooks/useCursor.js +1 -1
  171. package/lib/Input/type.d.ts +6 -5
  172. package/lib/InputNumber/type.d.ts +8 -8
  173. package/lib/InputTag/type.d.ts +5 -4
  174. package/lib/Layout/Layout.vue.js +1 -1
  175. package/lib/Layout/Layout.vue2.js +1 -1
  176. package/lib/Layout/type.d.ts +8 -7
  177. package/lib/Link/type.d.ts +3 -2
  178. package/lib/List/List.vue.js +1 -1
  179. package/lib/List/List.vue2.js +1 -1
  180. package/lib/List/type.d.ts +15 -14
  181. package/lib/Mention/index.d.ts +65 -2
  182. package/lib/Mention/index.vue.d.ts +130 -4
  183. package/lib/Mention/type.d.ts +3 -2
  184. package/lib/Menu/type.d.ts +11 -10
  185. package/lib/Message/type.d.ts +1 -1
  186. package/lib/Modal/Modal.vue.js +1 -1
  187. package/lib/Modal/Modal.vue2.js +1 -1
  188. package/lib/Modal/hooks/useModalClose.d.ts +2 -1
  189. package/lib/Modal/hooks/useModalClose.js +1 -1
  190. package/lib/Modal/type.d.ts +5 -5
  191. package/lib/Notification/type.d.ts +1 -1
  192. package/lib/OverflowList/index.vue.js +1 -1
  193. package/lib/OverflowList/index.vue2.js +1 -1
  194. package/lib/OverflowList/type.d.ts +3 -2
  195. package/lib/PageHeader/type.d.ts +7 -6
  196. package/lib/Pagination/type.d.ts +8 -8
  197. package/lib/Popconfirm/index.d.ts +65 -2
  198. package/lib/Popconfirm/index.vue.d.ts +130 -4
  199. package/lib/Popconfirm/type.d.ts +4 -4
  200. package/lib/Popover/type.d.ts +4 -4
  201. package/lib/Radio/hooks/useContext.d.ts +3 -6
  202. package/lib/Radio/type.d.ts +9 -8
  203. package/lib/Rate/type.d.ts +3 -2
  204. package/lib/ResizeBox/type.d.ts +6 -5
  205. package/lib/Result/type.d.ts +6 -5
  206. package/lib/Scrollbar/Scrollbar.vue.js +1 -1
  207. package/lib/Scrollbar/type.d.ts +2 -2
  208. package/lib/Select/Select.vue.d.ts +130 -4
  209. package/lib/Select/SelectView.vue.js +1 -1
  210. package/lib/Select/SelectView.vue2.js +1 -1
  211. package/lib/Select/index.d.ts +65 -2
  212. package/lib/Select/type.d.ts +19 -18
  213. package/lib/Skeleton/type.d.ts +3 -2
  214. package/lib/Space/index.vue.js +1 -1
  215. package/lib/Space/index.vue2.js +1 -1
  216. package/lib/Space/type.d.ts +3 -2
  217. package/lib/Spin/index.vue.js +1 -1
  218. package/lib/Spin/index.vue2.js +1 -1
  219. package/lib/Spin/type.d.ts +4 -3
  220. package/lib/Split/type.d.ts +5 -4
  221. package/lib/Statistic/type.d.ts +7 -7
  222. package/lib/Steps/type.d.ts +8 -7
  223. package/lib/Switch/index.vue.js +1 -1
  224. package/lib/Switch/index.vue2.js +1 -1
  225. package/lib/Switch/type.d.ts +5 -4
  226. package/lib/Tabs/Tabs.vue.js +1 -1
  227. package/lib/Tabs/Tabs.vue2.js +1 -1
  228. package/lib/Tabs/type.d.ts +5 -4
  229. package/lib/Tag/type.d.ts +4 -3
  230. package/lib/TimePicker/type.d.ts +4 -3
  231. package/lib/Timeline/type.d.ts +6 -5
  232. package/lib/Tooltip/type.d.ts +3 -3
  233. package/lib/Transfer/type.d.ts +13 -12
  234. package/lib/Trigger/hooks/useContext.js +1 -1
  235. package/lib/Trigger/hooks/useTriggerPosition.d.ts +2 -2
  236. package/lib/Trigger/hooks/useTriggerPosition.js +1 -1
  237. package/lib/Trigger/hooks/useTriggerVisible.js +1 -1
  238. package/lib/Trigger/index.d.ts +63 -2
  239. package/lib/Trigger/index.vue.d.ts +130 -3
  240. package/lib/Trigger/index.vue.js +1 -1
  241. package/lib/Trigger/index.vue2.js +1 -1
  242. package/lib/Trigger/type.d.ts +3 -3
  243. package/lib/Typography/type.d.ts +8 -7
  244. package/lib/Watermark/type.d.ts +2 -1
  245. package/lib/_shared/type/index.d.ts +1 -6
  246. package/lib/_shared/utils/dom.d.ts +5 -5
  247. package/lib/_shared/utils/dom.js +1 -1
  248. package/lib/_shared/utils/fn.d.ts +3 -3
  249. package/lib/_shared/utils/fn.js +1 -1
  250. package/lib/_shared/utils/global-config.d.ts +4 -2
  251. package/lib/_shared/utils/vue-utils.d.ts +1 -2
  252. package/lib/_shared/utils/vue-utils.js +1 -1
  253. package/lib/index.d.ts +66 -3
  254. package/lib/style.css +1 -1
  255. package/package.json +2 -2
@@ -55,7 +55,70 @@ declare function __VLS_template(): {
55
55
  $attrs: {
56
56
  [x: string]: unknown;
57
57
  };
58
- $refs: any;
58
+ $refs: {
59
+ [x: string]: unknown;
60
+ } & {
61
+ triggerRef: unknown;
62
+ popupRef: ({
63
+ $: import('vue').ComponentInternalInstance;
64
+ $data: {};
65
+ $props: {
66
+ readonly preventFocus?: boolean | undefined;
67
+ readonly tag?: string | undefined;
68
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
69
+ $attrs: {
70
+ [x: string]: unknown;
71
+ };
72
+ $refs: {
73
+ [x: string]: unknown;
74
+ };
75
+ $slots: Readonly<{
76
+ [name: string]: import('vue').Slot<any> | undefined;
77
+ }>;
78
+ $root: import('vue').ComponentPublicInstance | null;
79
+ $parent: import('vue').ComponentPublicInstance | null;
80
+ $host: Element | null;
81
+ $emit: (event: string, ...args: any[]) => void;
82
+ $el: any;
83
+ $options: import('vue').ComponentOptionsBase<Readonly<{
84
+ preventFocus?: boolean;
85
+ tag?: string;
86
+ }> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
87
+ preventFocus: boolean;
88
+ tag: string;
89
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
90
+ beforeCreate?: (() => void) | (() => void)[];
91
+ created?: (() => void) | (() => void)[];
92
+ beforeMount?: (() => void) | (() => void)[];
93
+ mounted?: (() => void) | (() => void)[];
94
+ beforeUpdate?: (() => void) | (() => void)[];
95
+ updated?: (() => void) | (() => void)[];
96
+ activated?: (() => void) | (() => void)[];
97
+ deactivated?: (() => void) | (() => void)[];
98
+ beforeDestroy?: (() => void) | (() => void)[];
99
+ beforeUnmount?: (() => void) | (() => void)[];
100
+ destroyed?: (() => void) | (() => void)[];
101
+ unmounted?: (() => void) | (() => void)[];
102
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
103
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
104
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
105
+ };
106
+ $forceUpdate: () => void;
107
+ $nextTick: typeof import('vue').nextTick;
108
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
109
+ } & Readonly<{
110
+ preventFocus: boolean;
111
+ tag: string;
112
+ }> & Omit<Readonly<{
113
+ preventFocus?: boolean;
114
+ tag?: string;
115
+ }> & Readonly<{}>, "preventFocus" | "tag"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
116
+ $slots: {
117
+ default?(_: {}): any;
118
+ };
119
+ }) | null;
120
+ arrowRef: HTMLDivElement;
121
+ };
59
122
  $slots: Readonly<{
60
123
  [name: string]: import('vue').Slot<any> | undefined;
61
124
  }>;
@@ -176,7 +239,7 @@ declare function __VLS_template(): {
176
239
  show(): void;
177
240
  updatePosition(x: number, y: number): void;
178
241
  }> & {} & import('vue').ComponentCustomProperties & {} & {
179
- $slots: any;
242
+ $slots: Readonly<import('../Trigger').TriggerSlots> & import('../Trigger').TriggerSlots;
180
243
  }) | null;
181
244
  };
182
245
  rootEl: any;
@@ -267,7 +330,70 @@ declare const __VLS_component: import('vue').DefineComponent<PopconfirmProps, {
267
330
  $attrs: {
268
331
  [x: string]: unknown;
269
332
  };
270
- $refs: any;
333
+ $refs: {
334
+ [x: string]: unknown;
335
+ } & {
336
+ triggerRef: unknown;
337
+ popupRef: ({
338
+ $: import('vue').ComponentInternalInstance;
339
+ $data: {};
340
+ $props: {
341
+ readonly preventFocus?: boolean | undefined;
342
+ readonly tag?: string | undefined;
343
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
344
+ $attrs: {
345
+ [x: string]: unknown;
346
+ };
347
+ $refs: {
348
+ [x: string]: unknown;
349
+ };
350
+ $slots: Readonly<{
351
+ [name: string]: import('vue').Slot<any> | undefined;
352
+ }>;
353
+ $root: import('vue').ComponentPublicInstance | null;
354
+ $parent: import('vue').ComponentPublicInstance | null;
355
+ $host: Element | null;
356
+ $emit: (event: string, ...args: any[]) => void;
357
+ $el: any;
358
+ $options: import('vue').ComponentOptionsBase<Readonly<{
359
+ preventFocus?: boolean;
360
+ tag?: string;
361
+ }> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
362
+ preventFocus: boolean;
363
+ tag: string;
364
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
365
+ beforeCreate?: (() => void) | (() => void)[];
366
+ created?: (() => void) | (() => void)[];
367
+ beforeMount?: (() => void) | (() => void)[];
368
+ mounted?: (() => void) | (() => void)[];
369
+ beforeUpdate?: (() => void) | (() => void)[];
370
+ updated?: (() => void) | (() => void)[];
371
+ activated?: (() => void) | (() => void)[];
372
+ deactivated?: (() => void) | (() => void)[];
373
+ beforeDestroy?: (() => void) | (() => void)[];
374
+ beforeUnmount?: (() => void) | (() => void)[];
375
+ destroyed?: (() => void) | (() => void)[];
376
+ unmounted?: (() => void) | (() => void)[];
377
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
378
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
379
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
380
+ };
381
+ $forceUpdate: () => void;
382
+ $nextTick: typeof import('vue').nextTick;
383
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
384
+ } & Readonly<{
385
+ preventFocus: boolean;
386
+ tag: string;
387
+ }> & Omit<Readonly<{
388
+ preventFocus?: boolean;
389
+ tag?: string;
390
+ }> & Readonly<{}>, "preventFocus" | "tag"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
391
+ $slots: {
392
+ default?(_: {}): any;
393
+ };
394
+ }) | null;
395
+ arrowRef: HTMLDivElement;
396
+ };
271
397
  $slots: Readonly<{
272
398
  [name: string]: import('vue').Slot<any> | undefined;
273
399
  }>;
@@ -388,7 +514,7 @@ declare const __VLS_component: import('vue').DefineComponent<PopconfirmProps, {
388
514
  show(): void;
389
515
  updatePosition(x: number, y: number): void;
390
516
  }> & {} & import('vue').ComponentCustomProperties & {} & {
391
- $slots: any;
517
+ $slots: Readonly<import('../Trigger').TriggerSlots> & import('../Trigger').TriggerSlots;
392
518
  }) | null;
393
519
  }, any>;
394
520
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -1,4 +1,4 @@
1
- import { CSSProperties } from 'vue';
1
+ import { CSSProperties, VNode } from 'vue';
2
2
  import { ClassName, PopupContainer } from '../_shared/type';
3
3
  import { OnBeforeCancel, OnBeforeOk } from '../Modal';
4
4
  import { TriggerPostion, TriggerProps } from '../Trigger';
@@ -30,9 +30,9 @@ export interface PopconfirmEmits {
30
30
  (e: 'cancel'): void;
31
31
  }
32
32
  export interface PopconfirmSlots {
33
- default(): void;
34
- content(): void;
35
- icon(): void;
33
+ default?: () => VNode[];
34
+ content?: () => VNode[];
35
+ icon?: () => VNode[];
36
36
  }
37
37
  export type PopconfirmType = 'info' | 'success' | 'warning' | 'error';
38
38
  export interface PopconfirmExpose {
@@ -1,4 +1,4 @@
1
- import { CSSProperties } from 'vue';
1
+ import { CSSProperties, VNode } from 'vue';
2
2
  import { ClassName, PopupContainer } from '../_shared/type';
3
3
  import { TriggerPostion, TriggerProps, TriggerType } from '../Trigger';
4
4
  export interface PopoverProps {
@@ -20,9 +20,9 @@ export interface PopoverEmits {
20
20
  (e: 'popup-visible-change', value: boolean): void;
21
21
  }
22
22
  export interface PopoverSlots {
23
- default(): void;
24
- content(): void;
25
- title(): void;
23
+ default?: () => VNode[];
24
+ content?: () => VNode[];
25
+ title?: () => VNode[];
26
26
  }
27
27
  export interface PopoverExpose {
28
28
  hide(): void;
@@ -1,6 +1,6 @@
1
1
  import { Ref } from 'vue';
2
- import { RadioType, RadioGroupEmits, RadioValue, RadioOption } from '../type';
3
- import { Size, Props } from '../../_shared/type';
2
+ import { RadioType, RadioGroupEmits, RadioValue } from '../type';
3
+ import { Size, Props, ObjectData } from '../../_shared/type';
4
4
  interface RadioContext {
5
5
  computedValue: Ref<RadioValue | undefined>;
6
6
  type: Ref<RadioType>;
@@ -11,10 +11,7 @@ interface RadioContext {
11
11
  }
12
12
  declare const _default: () => {
13
13
  provide: (props: Props, emits: RadioGroupEmits) => {
14
- options: import('vue').ComputedRef<((RadioOption & Record<string, unknown>) | {
15
- label: RadioOption;
16
- value: RadioOption;
17
- })[]>;
14
+ options: import('vue').ComputedRef<ObjectData[]>;
18
15
  };
19
16
  inject: () => RadioContext;
20
17
  };
@@ -1,4 +1,5 @@
1
1
  import { Direction, Size, ObjectData } from '../_shared/type';
2
+ import { VNode } from 'vue';
2
3
  export interface RadioProps {
3
4
  modelValue?: RadioValue;
4
5
  defaultChecked?: boolean;
@@ -11,11 +12,11 @@ export interface RadioEmits {
11
12
  (e: 'change', value: RadioValue, ev: Event): void;
12
13
  }
13
14
  export interface RadioSlots {
14
- default(): void;
15
- radio(scope: {
15
+ default?: () => VNode[];
16
+ radio?: (scope: {
16
17
  checked: boolean;
17
18
  disabled: boolean;
18
- }): void;
19
+ }) => VNode[];
19
20
  }
20
21
  export interface RadioGroupProps {
21
22
  modelValue?: RadioValue;
@@ -31,14 +32,14 @@ export interface RadioGroupEmits {
31
32
  (e: 'change', value: RadioValue): void;
32
33
  }
33
34
  export interface RadioGroupSlots {
34
- default(): void;
35
- radio(scope: {
35
+ default?: () => VNode[];
36
+ radio?: (scope: {
36
37
  checked: boolean;
37
38
  disabled: boolean;
38
- }): void;
39
- label(scope: {
39
+ }) => VNode[];
40
+ label?: (scope: {
40
41
  data: ObjectData;
41
- }): void;
42
+ }) => VNode[];
42
43
  }
43
44
  export type RadioOption = (RadioValue | {
44
45
  label?: string;
package/es/Rate/type.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { VNode } from 'vue';
1
2
  export interface RateProps {
2
3
  count?: number;
3
4
  modelValue?: number;
@@ -15,7 +16,7 @@ export interface RateEmits {
15
16
  (e: 'hover-change', value: number): void;
16
17
  }
17
18
  export interface RateSlots {
18
- character(scope: {
19
+ character?: (scope: {
19
20
  index: number;
20
- }): void;
21
+ }) => VNode[];
21
22
  }
@@ -1,3 +1,4 @@
1
+ import { VNode } from 'vue';
1
2
  export interface ResizeBoxProps {
2
3
  width?: number;
3
4
  height?: number;
@@ -15,12 +16,12 @@ export interface ResizeBoxEmits {
15
16
  (e: 'moving-end', ev: MouseEvent): void;
16
17
  }
17
18
  export interface ResizeBoxSlots {
18
- default(): void;
19
- ['resize-trigger'](scope: {
19
+ default?: () => VNode[];
20
+ 'resize-trigger'?: (scope: {
20
21
  direction: ResizeBoxDirection;
21
- }): void;
22
- ['resize-trigger-icon'](scope: {
22
+ }) => VNode[];
23
+ 'resize-trigger-icon'?: (scope: {
23
24
  direction: ResizeBoxDirection;
24
- }): void;
25
+ }) => VNode[];
25
26
  }
26
27
  export type ResizeBoxDirection = 'left' | 'right' | 'top' | 'bottom';
@@ -1,13 +1,14 @@
1
+ import { VNode } from 'vue';
1
2
  export interface ResultProps {
2
3
  status?: ResultStatus;
3
4
  title?: string;
4
5
  subtitle?: string;
5
6
  }
6
7
  export interface ResultSlots {
7
- icon(): void;
8
- title(): void;
9
- subtitle(): void;
10
- default(): void;
11
- extra(): void;
8
+ icon?: () => VNode[];
9
+ title?: () => VNode[];
10
+ subtitle?: () => VNode[];
11
+ default?: () => VNode[];
12
+ extra?: () => VNode[];
12
13
  }
13
14
  export type ResultStatus = 'info' | 'success' | 'warning' | 'error' | '403' | '404' | '500' | null;
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./Scrollbar.vue2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
4
- const _Scrollbar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ac67eba2"]]);
4
+ const _Scrollbar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f20de904"]]);
5
5
  export {
6
6
  _Scrollbar as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { CSSProperties } from 'vue';
1
+ import { CSSProperties, VNode } from 'vue';
2
2
  import { ClassName } from '../_shared/type';
3
3
  export interface ScrollbarProps {
4
4
  type?: TackType;
@@ -10,7 +10,7 @@ export interface ScrollbarEmits {
10
10
  (e: 'scroll', left: number, top: number, ev: Event): void;
11
11
  }
12
12
  export interface ScrollbarSlots {
13
- default(): void;
13
+ default?: () => VNode[];
14
14
  }
15
15
  export interface ScrollbarExpose {
16
16
  scrollTo(options: ScrollOptions): void;
@@ -57,7 +57,70 @@ declare function __VLS_template(): {
57
57
  $attrs: {
58
58
  [x: string]: unknown;
59
59
  };
60
- $refs: any;
60
+ $refs: {
61
+ [x: string]: unknown;
62
+ } & {
63
+ triggerRef: unknown;
64
+ popupRef: ({
65
+ $: import('vue').ComponentInternalInstance;
66
+ $data: {};
67
+ $props: {
68
+ readonly preventFocus?: boolean | undefined;
69
+ readonly tag?: string | undefined;
70
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
71
+ $attrs: {
72
+ [x: string]: unknown;
73
+ };
74
+ $refs: {
75
+ [x: string]: unknown;
76
+ };
77
+ $slots: Readonly<{
78
+ [name: string]: import('vue').Slot<any> | undefined;
79
+ }>;
80
+ $root: import('vue').ComponentPublicInstance | null;
81
+ $parent: import('vue').ComponentPublicInstance | null;
82
+ $host: Element | null;
83
+ $emit: (event: string, ...args: any[]) => void;
84
+ $el: any;
85
+ $options: import('vue').ComponentOptionsBase<Readonly<{
86
+ preventFocus?: boolean;
87
+ tag?: string;
88
+ }> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
89
+ preventFocus: boolean;
90
+ tag: string;
91
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
92
+ beforeCreate?: (() => void) | (() => void)[];
93
+ created?: (() => void) | (() => void)[];
94
+ beforeMount?: (() => void) | (() => void)[];
95
+ mounted?: (() => void) | (() => void)[];
96
+ beforeUpdate?: (() => void) | (() => void)[];
97
+ updated?: (() => void) | (() => void)[];
98
+ activated?: (() => void) | (() => void)[];
99
+ deactivated?: (() => void) | (() => void)[];
100
+ beforeDestroy?: (() => void) | (() => void)[];
101
+ beforeUnmount?: (() => void) | (() => void)[];
102
+ destroyed?: (() => void) | (() => void)[];
103
+ unmounted?: (() => void) | (() => void)[];
104
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
105
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
106
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
107
+ };
108
+ $forceUpdate: () => void;
109
+ $nextTick: typeof import('vue').nextTick;
110
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
111
+ } & Readonly<{
112
+ preventFocus: boolean;
113
+ tag: string;
114
+ }> & Omit<Readonly<{
115
+ preventFocus?: boolean;
116
+ tag?: string;
117
+ }> & Readonly<{}>, "preventFocus" | "tag"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
118
+ $slots: {
119
+ default?(_: {}): any;
120
+ };
121
+ }) | null;
122
+ arrowRef: HTMLDivElement;
123
+ };
61
124
  $slots: Readonly<{
62
125
  [name: string]: import('vue').Slot<any> | undefined;
63
126
  }>;
@@ -178,7 +241,7 @@ declare function __VLS_template(): {
178
241
  show(): void;
179
242
  updatePosition(x: number, y: number): void;
180
243
  }> & {} & import('vue').ComponentCustomProperties & {} & {
181
- $slots: any;
244
+ $slots: Readonly<import('../Trigger').TriggerSlots> & import('../Trigger').TriggerSlots;
182
245
  }) | null;
183
246
  inputRef: ({
184
247
  $: import('vue').ComponentInternalInstance;
@@ -444,7 +507,70 @@ declare const __VLS_component: import('vue').DefineComponent<SelectProps, {
444
507
  $attrs: {
445
508
  [x: string]: unknown;
446
509
  };
447
- $refs: any;
510
+ $refs: {
511
+ [x: string]: unknown;
512
+ } & {
513
+ triggerRef: unknown;
514
+ popupRef: ({
515
+ $: import('vue').ComponentInternalInstance;
516
+ $data: {};
517
+ $props: {
518
+ readonly preventFocus?: boolean | undefined;
519
+ readonly tag?: string | undefined;
520
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
521
+ $attrs: {
522
+ [x: string]: unknown;
523
+ };
524
+ $refs: {
525
+ [x: string]: unknown;
526
+ };
527
+ $slots: Readonly<{
528
+ [name: string]: import('vue').Slot<any> | undefined;
529
+ }>;
530
+ $root: import('vue').ComponentPublicInstance | null;
531
+ $parent: import('vue').ComponentPublicInstance | null;
532
+ $host: Element | null;
533
+ $emit: (event: string, ...args: any[]) => void;
534
+ $el: any;
535
+ $options: import('vue').ComponentOptionsBase<Readonly<{
536
+ preventFocus?: boolean;
537
+ tag?: string;
538
+ }> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
539
+ preventFocus: boolean;
540
+ tag: string;
541
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
542
+ beforeCreate?: (() => void) | (() => void)[];
543
+ created?: (() => void) | (() => void)[];
544
+ beforeMount?: (() => void) | (() => void)[];
545
+ mounted?: (() => void) | (() => void)[];
546
+ beforeUpdate?: (() => void) | (() => void)[];
547
+ updated?: (() => void) | (() => void)[];
548
+ activated?: (() => void) | (() => void)[];
549
+ deactivated?: (() => void) | (() => void)[];
550
+ beforeDestroy?: (() => void) | (() => void)[];
551
+ beforeUnmount?: (() => void) | (() => void)[];
552
+ destroyed?: (() => void) | (() => void)[];
553
+ unmounted?: (() => void) | (() => void)[];
554
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
555
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
556
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
557
+ };
558
+ $forceUpdate: () => void;
559
+ $nextTick: typeof import('vue').nextTick;
560
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
561
+ } & Readonly<{
562
+ preventFocus: boolean;
563
+ tag: string;
564
+ }> & Omit<Readonly<{
565
+ preventFocus?: boolean;
566
+ tag?: string;
567
+ }> & Readonly<{}>, "preventFocus" | "tag"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
568
+ $slots: {
569
+ default?(_: {}): any;
570
+ };
571
+ }) | null;
572
+ arrowRef: HTMLDivElement;
573
+ };
448
574
  $slots: Readonly<{
449
575
  [name: string]: import('vue').Slot<any> | undefined;
450
576
  }>;
@@ -565,7 +691,7 @@ declare const __VLS_component: import('vue').DefineComponent<SelectProps, {
565
691
  show(): void;
566
692
  updatePosition(x: number, y: number): void;
567
693
  }> & {} & import('vue').ComponentCustomProperties & {} & {
568
- $slots: any;
694
+ $slots: Readonly<import('../Trigger').TriggerSlots> & import('../Trigger').TriggerSlots;
569
695
  }) | null;
570
696
  inputRef: ({
571
697
  $: import('vue').ComponentInternalInstance;
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./SelectView.vue2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
4
- const SelectView = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7ad0ee5e"]]);
4
+ const SelectView = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a3636179"]]);
5
5
  export {
6
6
  SelectView as default
7
7
  };
@@ -1,8 +1,8 @@
1
1
  import { defineComponent, toRefs, ref, computed, createElementBlock, openBlock, createBlock, unref, createSlots, withCtx, resolveDynamicComponent, Fragment, createCommentVNode } from "vue";
2
+ import { unrefElement } from "../node_modules/@vueuse/core/index.js";
2
3
  import "../node_modules/tinycolor2/esm/tinycolor.js";
3
4
  import "../_shared/utils/dom.js";
4
5
  import "../_shared/utils/time.js";
5
- import { unrefElement } from "../_shared/utils/vue-utils.js";
6
6
  import { getGlobalConfig } from "../_shared/utils/global-config.js";
7
7
  import useContext from "./hooks/useContext.js";
8
8
  import useScrollReach from "../List/hooks/useScrollReach.js";
@@ -126,7 +126,70 @@ declare const Select: {
126
126
  $attrs: {
127
127
  [x: string]: unknown;
128
128
  };
129
- $refs: any;
129
+ $refs: {
130
+ [x: string]: unknown;
131
+ } & {
132
+ triggerRef: unknown;
133
+ popupRef: ({
134
+ $: import('vue').ComponentInternalInstance;
135
+ $data: {};
136
+ $props: {
137
+ readonly preventFocus?: boolean | undefined;
138
+ readonly tag?: string | undefined;
139
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
140
+ $attrs: {
141
+ [x: string]: unknown;
142
+ };
143
+ $refs: {
144
+ [x: string]: unknown;
145
+ };
146
+ $slots: Readonly<{
147
+ [name: string]: import('vue').Slot<any> | undefined;
148
+ }>;
149
+ $root: import('vue').ComponentPublicInstance | null;
150
+ $parent: import('vue').ComponentPublicInstance | null;
151
+ $host: Element | null;
152
+ $emit: (event: string, ...args: any[]) => void;
153
+ $el: any;
154
+ $options: import('vue').ComponentOptionsBase<Readonly<{
155
+ preventFocus?: boolean;
156
+ tag?: string;
157
+ }> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
158
+ preventFocus: boolean;
159
+ tag: string;
160
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
161
+ beforeCreate?: (() => void) | (() => void)[];
162
+ created?: (() => void) | (() => void)[];
163
+ beforeMount?: (() => void) | (() => void)[];
164
+ mounted?: (() => void) | (() => void)[];
165
+ beforeUpdate?: (() => void) | (() => void)[];
166
+ updated?: (() => void) | (() => void)[];
167
+ activated?: (() => void) | (() => void)[];
168
+ deactivated?: (() => void) | (() => void)[];
169
+ beforeDestroy?: (() => void) | (() => void)[];
170
+ beforeUnmount?: (() => void) | (() => void)[];
171
+ destroyed?: (() => void) | (() => void)[];
172
+ unmounted?: (() => void) | (() => void)[];
173
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
174
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
175
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
176
+ };
177
+ $forceUpdate: () => void;
178
+ $nextTick: typeof import('vue').nextTick;
179
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
180
+ } & Readonly<{
181
+ preventFocus: boolean;
182
+ tag: string;
183
+ }> & Omit<Readonly<{
184
+ preventFocus?: boolean;
185
+ tag?: string;
186
+ }> & Readonly<{}>, "preventFocus" | "tag"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
187
+ $slots: {
188
+ default?(_: {}): any;
189
+ };
190
+ }) | null;
191
+ arrowRef: HTMLDivElement;
192
+ };
130
193
  $slots: Readonly<{
131
194
  [name: string]: import('vue').Slot<any> | undefined;
132
195
  }>;
@@ -247,7 +310,7 @@ declare const Select: {
247
310
  show(): void;
248
311
  updatePosition(x: number, y: number): void;
249
312
  }> & {} & import('vue').ComponentCustomProperties & {} & {
250
- $slots: any;
313
+ $slots: Readonly<import('..').TriggerSlots> & import('..').TriggerSlots;
251
314
  }) | null;
252
315
  inputRef: ({
253
316
  $: import('vue').ComponentInternalInstance;