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
@@ -153,7 +153,70 @@ declare function __VLS_template(): {
153
153
  $attrs: {
154
154
  [x: string]: unknown;
155
155
  };
156
- $refs: any;
156
+ $refs: {
157
+ [x: string]: unknown;
158
+ } & {
159
+ triggerRef: unknown;
160
+ popupRef: ({
161
+ $: import('vue').ComponentInternalInstance;
162
+ $data: {};
163
+ $props: {
164
+ readonly preventFocus?: boolean | undefined;
165
+ readonly tag?: string | undefined;
166
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
167
+ $attrs: {
168
+ [x: string]: unknown;
169
+ };
170
+ $refs: {
171
+ [x: string]: unknown;
172
+ };
173
+ $slots: Readonly<{
174
+ [name: string]: import('vue').Slot<any> | undefined;
175
+ }>;
176
+ $root: import('vue').ComponentPublicInstance | null;
177
+ $parent: import('vue').ComponentPublicInstance | null;
178
+ $host: Element | null;
179
+ $emit: (event: string, ...args: any[]) => void;
180
+ $el: any;
181
+ $options: import('vue').ComponentOptionsBase<Readonly<{
182
+ preventFocus?: boolean;
183
+ tag?: string;
184
+ }> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
185
+ preventFocus: boolean;
186
+ tag: string;
187
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
188
+ beforeCreate?: (() => void) | (() => void)[];
189
+ created?: (() => void) | (() => void)[];
190
+ beforeMount?: (() => void) | (() => void)[];
191
+ mounted?: (() => void) | (() => void)[];
192
+ beforeUpdate?: (() => void) | (() => void)[];
193
+ updated?: (() => void) | (() => void)[];
194
+ activated?: (() => void) | (() => void)[];
195
+ deactivated?: (() => void) | (() => void)[];
196
+ beforeDestroy?: (() => void) | (() => void)[];
197
+ beforeUnmount?: (() => void) | (() => void)[];
198
+ destroyed?: (() => void) | (() => void)[];
199
+ unmounted?: (() => void) | (() => void)[];
200
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
201
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
202
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
203
+ };
204
+ $forceUpdate: () => void;
205
+ $nextTick: typeof nextTick;
206
+ $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;
207
+ } & Readonly<{
208
+ preventFocus: boolean;
209
+ tag: string;
210
+ }> & Omit<Readonly<{
211
+ preventFocus?: boolean;
212
+ tag?: string;
213
+ }> & Readonly<{}>, "preventFocus" | "tag"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
214
+ $slots: {
215
+ default?(_: {}): any;
216
+ };
217
+ }) | null;
218
+ arrowRef: HTMLDivElement;
219
+ };
157
220
  $slots: Readonly<{
158
221
  [name: string]: import('vue').Slot<any> | undefined;
159
222
  }>;
@@ -274,7 +337,7 @@ declare function __VLS_template(): {
274
337
  show(): void;
275
338
  updatePosition(x: number, y: number): void;
276
339
  }> & {} & import('vue').ComponentCustomProperties & {} & {
277
- $slots: any;
340
+ $slots: Readonly<import('..').TriggerSlots> & import('..').TriggerSlots;
278
341
  }) | null;
279
342
  inputRef: ({
280
343
  $: import('vue').ComponentInternalInstance;
@@ -931,7 +994,70 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
931
994
  $attrs: {
932
995
  [x: string]: unknown;
933
996
  };
934
- $refs: any;
997
+ $refs: {
998
+ [x: string]: unknown;
999
+ } & {
1000
+ triggerRef: unknown;
1001
+ popupRef: ({
1002
+ $: import('vue').ComponentInternalInstance;
1003
+ $data: {};
1004
+ $props: {
1005
+ readonly preventFocus?: boolean | undefined;
1006
+ readonly tag?: string | undefined;
1007
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
1008
+ $attrs: {
1009
+ [x: string]: unknown;
1010
+ };
1011
+ $refs: {
1012
+ [x: string]: unknown;
1013
+ };
1014
+ $slots: Readonly<{
1015
+ [name: string]: import('vue').Slot<any> | undefined;
1016
+ }>;
1017
+ $root: import('vue').ComponentPublicInstance | null;
1018
+ $parent: import('vue').ComponentPublicInstance | null;
1019
+ $host: Element | null;
1020
+ $emit: (event: string, ...args: any[]) => void;
1021
+ $el: any;
1022
+ $options: import('vue').ComponentOptionsBase<Readonly<{
1023
+ preventFocus?: boolean;
1024
+ tag?: string;
1025
+ }> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
1026
+ preventFocus: boolean;
1027
+ tag: string;
1028
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
1029
+ beforeCreate?: (() => void) | (() => void)[];
1030
+ created?: (() => void) | (() => void)[];
1031
+ beforeMount?: (() => void) | (() => void)[];
1032
+ mounted?: (() => void) | (() => void)[];
1033
+ beforeUpdate?: (() => void) | (() => void)[];
1034
+ updated?: (() => void) | (() => void)[];
1035
+ activated?: (() => void) | (() => void)[];
1036
+ deactivated?: (() => void) | (() => void)[];
1037
+ beforeDestroy?: (() => void) | (() => void)[];
1038
+ beforeUnmount?: (() => void) | (() => void)[];
1039
+ destroyed?: (() => void) | (() => void)[];
1040
+ unmounted?: (() => void) | (() => void)[];
1041
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
1042
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
1043
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
1044
+ };
1045
+ $forceUpdate: () => void;
1046
+ $nextTick: typeof nextTick;
1047
+ $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;
1048
+ } & Readonly<{
1049
+ preventFocus: boolean;
1050
+ tag: string;
1051
+ }> & Omit<Readonly<{
1052
+ preventFocus?: boolean;
1053
+ tag?: string;
1054
+ }> & Readonly<{}>, "preventFocus" | "tag"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
1055
+ $slots: {
1056
+ default?(_: {}): any;
1057
+ };
1058
+ }) | null;
1059
+ arrowRef: HTMLDivElement;
1060
+ };
935
1061
  $slots: Readonly<{
936
1062
  [name: string]: import('vue').Slot<any> | undefined;
937
1063
  }>;
@@ -1052,7 +1178,7 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
1052
1178
  show(): void;
1053
1179
  updatePosition(x: number, y: number): void;
1054
1180
  }> & {} & import('vue').ComponentCustomProperties & {} & {
1055
- $slots: any;
1181
+ $slots: Readonly<import('..').TriggerSlots> & import('..').TriggerSlots;
1056
1182
  }) | null;
1057
1183
  inputRef: ({
1058
1184
  $: import('vue').ComponentInternalInstance;
@@ -1,5 +1,6 @@
1
1
  import { SelectOptions, SelectValue } from '../Select';
2
2
  import { ObjectData } from '../_shared/type';
3
+ import { VNode } from 'vue';
3
4
  export interface MentionProps {
4
5
  modelValue?: string;
5
6
  defaultValue?: string;
@@ -25,7 +26,7 @@ export interface MentionExpose {
25
26
  blur(): void;
26
27
  }
27
28
  export interface MentionSlots {
28
- option(scope: {
29
+ option?: (scope: {
29
30
  data: ObjectData;
30
- }): void;
31
+ }) => VNode[];
31
32
  }
package/es/Menu/type.d.ts CHANGED
@@ -2,6 +2,7 @@ import { BreakpointName } from '../Grid';
2
2
  import { TooltipProps } from '../Tooltip';
3
3
  import { TriggerProps } from '../Trigger';
4
4
  import { Theme } from '../_shared/type';
5
+ import { VNode } from 'vue';
5
6
  export interface MenuProps {
6
7
  theme?: Theme;
7
8
  mode?: MenuMode;
@@ -33,7 +34,7 @@ export interface MenuEmits {
33
34
  (e: 'sub-menu-click', key: string, openKeys: string[]): void;
34
35
  }
35
36
  export interface MenuSlots {
36
- default(): void;
37
+ default?: () => VNode[];
37
38
  }
38
39
  export interface SubMenuProps {
39
40
  path?: string;
@@ -43,26 +44,26 @@ export interface SubMenuProps {
43
44
  popupMaxHeight?: PopupMaxHeight;
44
45
  }
45
46
  export interface SubMenuSlots {
46
- default(): void;
47
- title(): void;
48
- icon(): void;
49
- ['expand-icon-down'](): void;
47
+ default?: () => VNode[];
48
+ title?: () => VNode[];
49
+ icon?: () => VNode[];
50
+ 'expand-icon-down'?: () => VNode[];
50
51
  }
51
52
  export interface MenuItemProps {
52
53
  path?: string;
53
54
  disabled?: boolean;
54
55
  }
55
56
  export interface MenuItemSlots {
56
- default(): void;
57
- icon(): void;
58
- suffix(): void;
57
+ default?: () => VNode[];
58
+ icon?: () => VNode[];
59
+ suffix?: () => VNode[];
59
60
  }
60
61
  export interface MenuItemGroupProps {
61
62
  title?: string;
62
63
  }
63
64
  export interface MenuItemGroupSlots {
64
- default(): void;
65
- title(): void;
65
+ default?: () => VNode[];
66
+ title?: () => VNode[];
66
67
  }
67
68
  export type MenuMode = 'vertical' | 'horizontal';
68
69
  export type PopupMaxHeight = boolean | number;
@@ -19,7 +19,7 @@ export interface MessageContainerProps {
19
19
  }
20
20
  export type MessageConfig = Omit<MessageProps, 'type' | 'onDestory'> & MessageContainerProps;
21
21
  export type MessageReturn = {
22
- close(): void;
22
+ close?: () => void;
23
23
  };
24
24
  export type MessageMethod = {
25
25
  info: (config: string | MessageConfig) => MessageReturn;
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./Modal.vue2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
4
- const _Modal = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-08c69d3e"]]);
4
+ const _Modal = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f89e836b"]]);
5
5
  export {
6
6
  _Modal as default
7
7
  };
@@ -130,13 +130,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
130
130
  key: 0,
131
131
  class: normalizeClass([
132
132
  "yc-modal-container",
133
+ _ctx.$attrs.class,
133
134
  {
134
135
  "yc-modal-simple": _ctx.simple,
135
136
  "yc-modal-position-absolute": unref(popupContainer) || !unref(renderToBody)
136
137
  }
137
138
  ]),
138
139
  style: normalizeStyle({
139
- zIndex: unref(zIndex)
140
+ zIndex: unref(zIndex),
141
+ ..._ctx.$attrs.style ?? {}
140
142
  })
141
143
  }, [
142
144
  createVNode(Transition, { name: _ctx.maskAnimationName }, {
@@ -167,7 +169,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
167
169
  class: normalizeClass([
168
170
  "yc-modal",
169
171
  _ctx.modalClass,
170
- _ctx.$attrs.class,
171
172
  {
172
173
  // 拖拽
173
174
  "yc-modal-draggable": unref(isDraggable),
@@ -175,10 +176,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
175
176
  "yc-modal-fullscreen": unref(fullscreen)
176
177
  }
177
178
  ]),
178
- style: normalizeStyle({
179
- ...modalStyle.value,
180
- ..._ctx.$attrs.style ?? {}
181
- }),
179
+ style: normalizeStyle(modalStyle.value),
182
180
  ref_key: "modalRef",
183
181
  ref: modalRef
184
182
  }, [
@@ -1,5 +1,6 @@
1
1
  import { Ref } from 'vue';
2
2
  import { ModalEmits, OnBeforeOk, OnBeforeCancel } from '../type';
3
+ export type CloseEventType = 'confirmBtn' | 'cancelBtn' | 'closeBtn' | 'mask' | 'esc';
3
4
  declare const _default: (params: {
4
5
  visible: Ref<boolean | undefined>;
5
6
  defaultVisible: Ref<boolean>;
@@ -12,7 +13,7 @@ declare const _default: (params: {
12
13
  asyncLoading: Ref<boolean, boolean>;
13
14
  outerVisible: Ref<boolean, boolean>;
14
15
  innerVisible: import('vue').WritableComputedRef<any, boolean>;
15
- handleClose: (type: string, ev: MouseEvent | KeyboardEvent) => Promise<void>;
16
+ handleClose: (type: CloseEventType, ev: MouseEvent | KeyboardEvent) => Promise<void>;
16
17
  handleAfterLeave: () => void;
17
18
  };
18
19
  export default _default;
@@ -31,12 +31,7 @@ const useModalClose = (params) => {
31
31
  outerVisible.value = false;
32
32
  };
33
33
  const handleClose = async (type, ev) => {
34
- const isClose = await useOnBeforeClose(
35
- type,
36
- asyncLoading,
37
- onBeforeOk,
38
- onBeforeCancel
39
- );
34
+ const isClose = ["confirmBtn", "cancelBtn"].includes(type) ? await useOnBeforeClose(type, asyncLoading, onBeforeOk, onBeforeCancel) : true;
40
35
  if (!isClose) {
41
36
  return;
42
37
  }
@@ -1,4 +1,4 @@
1
- import { CSSProperties } from 'vue';
1
+ import { CSSProperties, VNode } from 'vue';
2
2
  import { ButtonProps } from '../Button';
3
3
  import { RenderContent, PopupContainer, ClassName } from '../_shared/type';
4
4
  import { ModuleStatus } from 'vm';
@@ -48,10 +48,10 @@ export interface ModalEmits {
48
48
  (e: 'before-close'): void;
49
49
  }
50
50
  export interface ModalSlots {
51
- default(): void;
52
- header(): void;
53
- footer(): void;
54
- title(): void;
51
+ default?: () => VNode[];
52
+ header?: () => VNode[];
53
+ footer?: () => VNode[];
54
+ title?: () => VNode[];
55
55
  }
56
56
  export type ModalConfig = Omit<ModalProps, 'visible' | 'defaultVisible'> & {
57
57
  title?: RenderContent;
@@ -24,7 +24,7 @@ export interface NotificationContainerProps {
24
24
  }
25
25
  export type NotificationConfig = Omit<NotificationProps, 'type' | 'onDestory'> & NotificationContainerProps;
26
26
  export type NotificationReturn = {
27
- close(): void;
27
+ close?: () => void;
28
28
  };
29
29
  export type NotificationMethods = {
30
30
  info: (config: string | NotificationConfig) => NotificationReturn;
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./index.vue2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
4
- const _OverflowList = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-13385005"]]);
4
+ const _OverflowList = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-bf5ac246"]]);
5
5
  export {
6
6
  _OverflowList as default
7
7
  };
@@ -1,12 +1,12 @@
1
- import { defineComponent, toRefs, ref, useSlots, computed, watch, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref, createCommentVNode, Fragment, renderList, createBlock, resolveDynamicComponent, renderSlot, createVNode, withCtx, createTextVNode, toDisplayString } from "vue";
1
+ import { defineComponent, useSlots, toRefs, ref, computed, watch, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref, createCommentVNode, Fragment, renderList, createBlock, resolveDynamicComponent, renderSlot, createVNode, withCtx, createTextVNode, toDisplayString } from "vue";
2
2
  import "../node_modules/tinycolor2/esm/tinycolor.js";
3
3
  import "../_shared/utils/dom.js";
4
4
  import { throttle, sleep, valueToPx } from "../_shared/utils/fn.js";
5
5
  import "../_shared/utils/time.js";
6
- import { findComponentsFromVnodes, unrefElement } from "../_shared/utils/vue-utils.js";
6
+ import { findComponentsFromVnodes } from "../_shared/utils/vue-utils.js";
7
7
  import "../Empty/index.js";
8
8
  /* empty css */
9
- import { useResizeObserver } from "../node_modules/@vueuse/core/index.js";
9
+ import { unrefElement, useResizeObserver } from "../node_modules/@vueuse/core/index.js";
10
10
  import Tag from "../Tag/index.js";
11
11
  const _sfc_main = /* @__PURE__ */ defineComponent({
12
12
  ...{
@@ -20,12 +20,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
20
20
  },
21
21
  emits: ["change"],
22
22
  setup(__props, { emit: __emit }) {
23
+ const slots = useSlots();
23
24
  const props = __props;
24
25
  const emits = __emit;
25
26
  const { min, margin, from } = toRefs(props);
26
27
  const max = ref(1e4);
27
28
  const widths = ref([]);
28
- const slots = useSlots();
29
29
  const tags = computed(() => {
30
30
  var _a;
31
31
  return findComponentsFromVnodes(
@@ -1,3 +1,4 @@
1
+ import { VNode } from 'vue';
1
2
  export interface OverflowListProps {
2
3
  min?: number;
3
4
  margin?: number;
@@ -7,7 +8,7 @@ export interface OverflowListEmits {
7
8
  (e: 'change', value: number): void;
8
9
  }
9
10
  export interface OverflowListSlots {
10
- default(): void;
11
- overflow(): void;
11
+ default?: () => VNode[];
12
+ overflow?: () => VNode[];
12
13
  }
13
14
  export type OverflowListFrom = 'start' | 'end';
@@ -1,3 +1,4 @@
1
+ import { VNode } from 'vue';
1
2
  export interface PageHeaderProp {
2
3
  title?: string;
3
4
  subtitle?: string;
@@ -7,10 +8,10 @@ export interface PageHeaderEmits {
7
8
  (e: 'back', ev: Event): void;
8
9
  }
9
10
  export interface PageHeaderSlots {
10
- default(): void;
11
- breadcrumb(): void;
12
- ['back-icon']: void;
13
- title(): void;
14
- subtitle(): void;
15
- extra(): void;
11
+ default?: () => VNode[];
12
+ breadcrumb?: () => VNode[];
13
+ 'back-icon': VNode[];
14
+ title?: () => VNode[];
15
+ subtitle?: () => VNode[];
16
+ extra?: () => VNode[];
16
17
  }
@@ -1,4 +1,4 @@
1
- import { CSSProperties } from 'vue';
1
+ import { CSSProperties, VNode } from 'vue';
2
2
  import { Size } from '../_shared/type';
3
3
  import { SelectProps } from '../Select';
4
4
  export interface PaginationProps {
@@ -30,14 +30,14 @@ export interface PaginationEmits {
30
30
  (e: 'page-size-change', pageSize: number): void;
31
31
  }
32
32
  export interface PaginationSlots {
33
- total(scope: {
33
+ total?: (scope: {
34
34
  total: number;
35
- }): void;
36
- ['page-item-ellipsis'](): void;
37
- ['page-item-step'](scope: {
35
+ }) => VNode[];
36
+ ['page-item-ellipsis']?: () => VNode[];
37
+ ['page-item-step']?: (scope: {
38
38
  type: 'previous' | 'next';
39
- }): void;
40
- ['page-item'](scope: {
39
+ }) => VNode[];
40
+ ['page-item']?: (scope: {
41
41
  page: number;
42
- }): void;
42
+ }) => VNode[];
43
43
  }
@@ -88,7 +88,70 @@ declare const Popconfirm: {
88
88
  $attrs: {
89
89
  [x: string]: unknown;
90
90
  };
91
- $refs: any;
91
+ $refs: {
92
+ [x: string]: unknown;
93
+ } & {
94
+ triggerRef: unknown;
95
+ popupRef: ({
96
+ $: import('vue').ComponentInternalInstance;
97
+ $data: {};
98
+ $props: {
99
+ readonly preventFocus?: boolean | undefined;
100
+ readonly tag?: string | undefined;
101
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
102
+ $attrs: {
103
+ [x: string]: unknown;
104
+ };
105
+ $refs: {
106
+ [x: string]: unknown;
107
+ };
108
+ $slots: Readonly<{
109
+ [name: string]: import('vue').Slot<any> | undefined;
110
+ }>;
111
+ $root: import('vue').ComponentPublicInstance | null;
112
+ $parent: import('vue').ComponentPublicInstance | null;
113
+ $host: Element | null;
114
+ $emit: (event: string, ...args: any[]) => void;
115
+ $el: any;
116
+ $options: import('vue').ComponentOptionsBase<Readonly<{
117
+ preventFocus?: boolean;
118
+ tag?: string;
119
+ }> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
120
+ preventFocus: boolean;
121
+ tag: string;
122
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
123
+ beforeCreate?: (() => void) | (() => void)[];
124
+ created?: (() => void) | (() => void)[];
125
+ beforeMount?: (() => void) | (() => void)[];
126
+ mounted?: (() => void) | (() => void)[];
127
+ beforeUpdate?: (() => void) | (() => void)[];
128
+ updated?: (() => void) | (() => void)[];
129
+ activated?: (() => void) | (() => void)[];
130
+ deactivated?: (() => void) | (() => void)[];
131
+ beforeDestroy?: (() => void) | (() => void)[];
132
+ beforeUnmount?: (() => void) | (() => void)[];
133
+ destroyed?: (() => void) | (() => void)[];
134
+ unmounted?: (() => void) | (() => void)[];
135
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
136
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
137
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
138
+ };
139
+ $forceUpdate: () => void;
140
+ $nextTick: typeof import('vue').nextTick;
141
+ $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;
142
+ } & Readonly<{
143
+ preventFocus: boolean;
144
+ tag: string;
145
+ }> & Omit<Readonly<{
146
+ preventFocus?: boolean;
147
+ tag?: string;
148
+ }> & Readonly<{}>, "preventFocus" | "tag"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
149
+ $slots: {
150
+ default?(_: {}): any;
151
+ };
152
+ }) | null;
153
+ arrowRef: HTMLDivElement;
154
+ };
92
155
  $slots: Readonly<{
93
156
  [name: string]: import('vue').Slot<any> | undefined;
94
157
  }>;
@@ -209,7 +272,7 @@ declare const Popconfirm: {
209
272
  show(): void;
210
273
  updatePosition(x: number, y: number): void;
211
274
  }> & {} & import('vue').ComponentCustomProperties & {} & {
212
- $slots: any;
275
+ $slots: Readonly<import('..').TriggerSlots> & import('..').TriggerSlots;
213
276
  }) | null;
214
277
  }, any, import('vue').ComponentProvideOptions, {
215
278
  P: {};