@yh-ui/components 0.1.56 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (252) hide show
  1. package/dist/affix/index.d.ts +11 -6
  2. package/dist/affix/src/affix.d.ts +10 -0
  3. package/dist/affix/src/affix.vue.d.ts +2 -2
  4. package/dist/ai-action-group/index.d.ts +5 -0
  5. package/dist/ai-action-group/src/ai-action-group.d.ts +3 -0
  6. package/dist/ai-agent-card/index.d.ts +7 -0
  7. package/dist/ai-agent-card/src/ai-agent-card.d.ts +10 -0
  8. package/dist/ai-artifacts/index.d.ts +8 -0
  9. package/dist/ai-artifacts/src/ai-artifacts.d.ts +11 -1
  10. package/dist/ai-attachments/index.d.ts +5 -0
  11. package/dist/ai-attachments/src/ai-attachments.d.ts +12 -1
  12. package/dist/ai-bubble/index.d.ts +12 -0
  13. package/dist/ai-bubble/src/ai-bubble.d.ts +8 -1
  14. package/dist/ai-bubble/src/ai-bubble.vue +24 -20
  15. package/dist/ai-bubble-list/index.d.ts +3 -0
  16. package/dist/ai-bubble-list/src/ai-bubble-list.d.ts +14 -1
  17. package/dist/ai-chat/index.d.ts +5 -0
  18. package/dist/ai-chat/src/ai-chat.d.ts +9 -0
  19. package/dist/ai-code-block/index.d.ts +4 -0
  20. package/dist/ai-code-block/src/ai-code-block.d.ts +4 -0
  21. package/dist/ai-code-editor/index.d.ts +5 -0
  22. package/dist/ai-code-editor/src/ai-code-editor.d.ts +2 -0
  23. package/dist/ai-code-runner/index.d.ts +5 -0
  24. package/dist/ai-code-runner/src/ai-code-runner.d.ts +2 -0
  25. package/dist/ai-conversations/index.d.ts +5 -0
  26. package/dist/ai-conversations/src/ai-conversations.d.ts +16 -1
  27. package/dist/ai-editor-sender/index.d.ts +9 -0
  28. package/dist/ai-editor-sender/src/ai-editor-sender.d.ts +15 -0
  29. package/dist/ai-file-card/index.d.ts +8 -0
  30. package/dist/ai-file-card/src/ai-file-card.d.ts +5 -1
  31. package/dist/ai-mention/index.d.ts +9 -0
  32. package/dist/ai-mention/src/ai-mention.d.ts +3 -0
  33. package/dist/ai-mermaid/index.d.ts +5 -0
  34. package/dist/ai-mermaid/src/ai-mermaid.d.ts +6 -1
  35. package/dist/ai-mermaid/src/ai-mermaid.vue +6 -1
  36. package/dist/ai-prompts/index.d.ts +5 -0
  37. package/dist/ai-prompts/src/ai-prompts.d.ts +10 -0
  38. package/dist/ai-provider/index.d.ts +10 -0
  39. package/dist/ai-provider/src/ai-provider.d.ts +28 -0
  40. package/dist/ai-sender/index.d.ts +6 -0
  41. package/dist/ai-sender/src/ai-sender.d.ts +11 -1
  42. package/dist/ai-sources/index.d.ts +6 -0
  43. package/dist/ai-sources/src/ai-sources.d.ts +5 -1
  44. package/dist/ai-thinking/index.d.ts +5 -0
  45. package/dist/ai-thinking/src/ai-thinking.d.ts +3 -0
  46. package/dist/ai-thought-chain/index.d.ts +6 -0
  47. package/dist/ai-thought-chain/src/ai-thought-chain.d.ts +3 -0
  48. package/dist/ai-voice-trigger/index.d.ts +5 -0
  49. package/dist/ai-voice-trigger/src/ai-voice-trigger.d.ts +4 -0
  50. package/dist/ai-welcome/index.d.ts +5 -0
  51. package/dist/ai-welcome/src/ai-welcome.d.ts +6 -0
  52. package/dist/alert/index.d.ts +6 -0
  53. package/dist/alert/src/alert.d.ts +7 -0
  54. package/dist/alert/src/alert.vue +1 -1
  55. package/dist/autocomplete/index.d.ts +8 -0
  56. package/dist/avatar/index.cjs +15 -0
  57. package/dist/avatar/index.d.ts +19 -9
  58. package/dist/avatar/index.mjs +1 -0
  59. package/dist/back-top/index.d.ts +4 -0
  60. package/dist/back-top/src/back-top.d.ts +3 -0
  61. package/dist/badge/index.d.ts +4 -0
  62. package/dist/breadcrumb/index.d.ts +6 -0
  63. package/dist/breadcrumb/src/breadcrumb.d.ts +6 -0
  64. package/dist/button/index.d.ts +9 -0
  65. package/dist/calendar/index.d.ts +16 -1230
  66. package/dist/calendar/src/calendar.d.ts +16 -0
  67. package/dist/calendar/src/calendar.vue.d.ts +2 -415
  68. package/dist/card/index.d.ts +4 -0
  69. package/dist/carousel/index.d.ts +9 -0
  70. package/dist/carousel/src/carousel-item.d.ts +3 -0
  71. package/dist/carousel/src/carousel.d.ts +25 -0
  72. package/dist/cascader/index.d.ts +9 -7
  73. package/dist/cascader/src/cascader.d.ts +2 -2
  74. package/dist/cascader/src/cascader.vue +82 -30
  75. package/dist/cascader/src/cascader.vue.d.ts +1 -1
  76. package/dist/category-nav/index.d.ts +4 -0
  77. package/dist/category-nav/src/category-nav.d.ts +15 -0
  78. package/dist/checkbox/index.d.ts +10 -0
  79. package/dist/col/index.d.ts +34 -180
  80. package/dist/col/src/col.d.ts +14 -30
  81. package/dist/col/src/col.vue.d.ts +15 -90
  82. package/dist/color-picker/index.d.ts +11 -1
  83. package/dist/color-picker/src/color-picker.d.ts +8 -0
  84. package/dist/color-picker/src/color-picker.vue +6 -0
  85. package/dist/color-picker/src/color-picker.vue.d.ts +6 -1
  86. package/dist/config-provider/index.d.ts +3 -0
  87. package/dist/config-provider/src/config-provider.cjs +9 -0
  88. package/dist/config-provider/src/config-provider.d.ts +3 -0
  89. package/dist/config-provider/src/config-provider.mjs +9 -0
  90. package/dist/container/index.d.ts +15 -0
  91. package/dist/container/src/container.d.ts +12 -0
  92. package/dist/countdown/index.d.ts +9 -0
  93. package/dist/coupon-card/index.d.ts +3 -0
  94. package/dist/coupon-card/src/coupon-card.d.ts +10 -0
  95. package/dist/date-picker/index.d.ts +8 -0
  96. package/dist/date-picker/src/date-picker.d.ts +9 -0
  97. package/dist/descriptions/index.d.ts +6 -0
  98. package/dist/descriptions/src/descriptions.d.ts +9 -0
  99. package/dist/dialog/index.d.ts +12 -6
  100. package/dist/dialog/src/dialog.d.ts +13 -0
  101. package/dist/dialog/src/dialog.vue.d.ts +2 -2
  102. package/dist/divider/index.d.ts +2 -0
  103. package/dist/drawer/index.d.ts +8 -3
  104. package/dist/drawer/src/drawer.d.ts +11 -0
  105. package/dist/drawer/src/drawer.vue.d.ts +1 -1
  106. package/dist/dropdown/index.d.ts +11 -0
  107. package/dist/dropdown/src/dropdown.d.ts +10 -0
  108. package/dist/empty/index.cjs +15 -0
  109. package/dist/empty/index.d.ts +6 -0
  110. package/dist/empty/index.mjs +1 -0
  111. package/dist/filter-bar/index.d.ts +9 -0
  112. package/dist/filter-bar/src/filter-bar.d.ts +12 -0
  113. package/dist/form/index.d.ts +11 -0
  114. package/dist/gantt-chart/index.d.ts +8 -6
  115. package/dist/gantt-chart/src/gantt-chart.d.ts +1 -4
  116. package/dist/gantt-chart/src/gantt-chart.vue +43 -33
  117. package/dist/grid/index.d.ts +6 -0
  118. package/dist/grid/src/grid.d.ts +3 -0
  119. package/dist/icon/index.d.ts +5 -0
  120. package/dist/image/index.d.ts +18 -1
  121. package/dist/image/src/image-viewer.d.ts +11 -0
  122. package/dist/image/src/image-viewer.vue +56 -9
  123. package/dist/image/src/image-viewer.vue.d.ts +9 -1
  124. package/dist/image/src/image.d.ts +4 -0
  125. package/dist/image/src/image.vue +1 -1
  126. package/dist/image-magnifier/index.d.ts +6 -0
  127. package/dist/image-magnifier/src/image-magnifier.d.ts +15 -0
  128. package/dist/image-magnifier/src/image-magnifier.vue +9 -5
  129. package/dist/infinite-scroll/index.d.ts +5 -0
  130. package/dist/infinite-scroll/src/infinite-scroll.d.ts +10 -0
  131. package/dist/infinite-scroll/src/infinite-scroll.vue +37 -25
  132. package/dist/infinite-scroll/src/infinite-scroll.vue.d.ts +0 -2
  133. package/dist/input/index.d.ts +10 -0
  134. package/dist/input-number/index.d.ts +7 -0
  135. package/dist/input-tag/index.d.ts +7 -0
  136. package/dist/loading/index.d.ts +2 -0
  137. package/dist/loading/src/service.cjs +5 -1
  138. package/dist/loading/src/service.mjs +3 -1
  139. package/dist/lucky-draw/index.d.ts +4 -0
  140. package/dist/lucky-draw/src/lucky-draw.d.ts +6 -0
  141. package/dist/markdown-it.d.ts +2 -1
  142. package/dist/marquee/index.d.ts +12 -6
  143. package/dist/marquee/src/marquee.d.ts +8 -0
  144. package/dist/marquee/src/marquee.vue +16 -6
  145. package/dist/marquee/src/marquee.vue.d.ts +2 -5
  146. package/dist/mention/index.d.ts +9 -0
  147. package/dist/menu/index.d.ts +14 -0
  148. package/dist/menu/src/menu.d.ts +9 -0
  149. package/dist/message/index.d.ts +11 -0
  150. package/dist/message/src/message.d.ts +40 -32
  151. package/dist/message/src/message.vue.d.ts +1 -1
  152. package/dist/message-box/index.d.ts +7 -0
  153. package/dist/notification/index.d.ts +11 -0
  154. package/dist/notification/src/notification.d.ts +37 -33
  155. package/dist/notification/src/notification.vue.d.ts +1 -1
  156. package/dist/pagination/index.d.ts +6 -0
  157. package/dist/pagination/src/pagination.d.ts +3 -0
  158. package/dist/popconfirm/index.d.ts +5 -0
  159. package/dist/popconfirm/src/popconfirm.d.ts +11 -1
  160. package/dist/popover/index.d.ts +6 -0
  161. package/dist/popover/src/popover.d.ts +12 -1
  162. package/dist/price/index.d.ts +1 -0
  163. package/dist/price/src/price.d.ts +7 -0
  164. package/dist/product-card/index.d.ts +7 -3
  165. package/dist/product-card/src/product-card.cjs +1 -36
  166. package/dist/product-card/src/product-card.d.ts +5 -35
  167. package/dist/product-card/src/product-card.mjs +1 -36
  168. package/dist/product-card/src/product-card.vue +8 -14
  169. package/dist/product-card/src/product-card.vue.d.ts +1 -1
  170. package/dist/progress/index.d.ts +5 -0
  171. package/dist/progress/src/progress.d.ts +5 -0
  172. package/dist/radio/index.d.ts +14 -0
  173. package/dist/rate/index.d.ts +11 -6
  174. package/dist/rate/src/rate.d.ts +10 -1
  175. package/dist/rate/src/rate.vue.d.ts +3 -3
  176. package/dist/result/index.d.ts +4 -0
  177. package/dist/row/index.d.ts +18 -12
  178. package/dist/row/src/row.d.ts +13 -8
  179. package/dist/row/src/row.vue.d.ts +6 -6
  180. package/dist/scrollbar/index.d.ts +10 -20
  181. package/dist/scrollbar/src/scrollbar.d.ts +16 -4
  182. package/dist/scrollbar/src/scrollbar.vue.d.ts +2 -8
  183. package/dist/select/index.d.ts +15 -3
  184. package/dist/select/src/select.d.ts +4 -1
  185. package/dist/select/src/select.vue +1 -1
  186. package/dist/select/src/select.vue.d.ts +1 -1
  187. package/dist/skeleton/index.d.ts +6 -0
  188. package/dist/skeleton/src/skeleton.d.ts +4 -0
  189. package/dist/sku-selector/index.d.ts +5 -0
  190. package/dist/sku-selector/src/sku-selector.cjs +1 -14
  191. package/dist/sku-selector/src/sku-selector.d.ts +15 -17
  192. package/dist/sku-selector/src/sku-selector.mjs +1 -14
  193. package/dist/sku-selector/src/sku-selector.vue +6 -11
  194. package/dist/slider/index.d.ts +20 -3
  195. package/dist/slider/src/slider.d.ts +15 -0
  196. package/dist/slider/src/slider.vue +5 -0
  197. package/dist/slider/src/slider.vue.d.ts +5 -1
  198. package/dist/smart-address/index.d.ts +11 -6
  199. package/dist/smart-address/src/smart-address.cjs +0 -19
  200. package/dist/smart-address/src/smart-address.d.ts +13 -20
  201. package/dist/smart-address/src/smart-address.mjs +0 -19
  202. package/dist/smart-address/src/smart-address.vue.d.ts +3 -3
  203. package/dist/space/index.cjs +15 -0
  204. package/dist/space/index.d.ts +22 -12
  205. package/dist/space/index.mjs +1 -0
  206. package/dist/spin/index.d.ts +16 -10
  207. package/dist/spin/src/spin.cjs +5 -1
  208. package/dist/spin/src/spin.d.ts +13 -1
  209. package/dist/spin/src/spin.mjs +4 -0
  210. package/dist/spin/src/spin.vue +2 -2
  211. package/dist/spin/src/spin.vue.d.ts +4 -5
  212. package/dist/steps/index.d.ts +13 -0
  213. package/dist/steps/src/step.d.ts +6 -0
  214. package/dist/steps/src/steps.d.ts +3 -0
  215. package/dist/submit-bar/index.d.ts +3 -0
  216. package/dist/submit-bar/src/submit-bar.d.ts +7 -0
  217. package/dist/switch/index.d.ts +5 -0
  218. package/dist/switch/src/switch.d.ts +11 -1
  219. package/dist/table/index.d.ts +14 -4
  220. package/dist/tabs/index.d.ts +11 -0
  221. package/dist/tabs/src/tab-pane.d.ts +3 -0
  222. package/dist/tabs/src/tabs.d.ts +12 -0
  223. package/dist/tag/index.d.ts +7 -0
  224. package/dist/time-picker/index.d.ts +13 -3
  225. package/dist/time-picker/src/time-picker.d.ts +2 -2
  226. package/dist/time-picker/src/time-picker.vue +1 -1
  227. package/dist/time-picker/src/time-picker.vue.d.ts +1 -1
  228. package/dist/time-select/index.d.ts +10 -3
  229. package/dist/time-select/src/time-select.d.ts +2 -2
  230. package/dist/time-select/src/time-select.vue +79 -35
  231. package/dist/time-select/src/time-select.vue.d.ts +1 -1
  232. package/dist/tooltip/index.d.ts +7 -0
  233. package/dist/tooltip/src/tooltip.d.ts +11 -1
  234. package/dist/transfer/index.d.ts +6 -4
  235. package/dist/transfer/src/transfer-panel.vue +78 -27
  236. package/dist/transfer/src/transfer-panel.vue.d.ts +1 -1
  237. package/dist/transfer/src/transfer.d.ts +4 -4
  238. package/dist/transfer/src/transfer.vue +82 -26
  239. package/dist/transfer/src/transfer.vue.d.ts +2 -2
  240. package/dist/tree/index.d.ts +7 -0
  241. package/dist/tree-select/index.d.ts +8 -0
  242. package/dist/typography/index.d.ts +11 -0
  243. package/dist/upload/index.d.ts +10 -0
  244. package/dist/upload/src/upload.d.ts +19 -0
  245. package/dist/viewerjs.d.ts +2 -1
  246. package/dist/waterfall/index.d.ts +6 -0
  247. package/dist/waterfall/src/waterfall.d.ts +25 -7
  248. package/dist/watermark/index.d.ts +11 -54
  249. package/dist/watermark/src/watermark.d.ts +16 -9
  250. package/dist/watermark/src/watermark.vue +27 -5
  251. package/dist/watermark/src/watermark.vue.d.ts +3 -27
  252. package/package.json +6 -5
@@ -1,11 +1,12 @@
1
+ import Space from './src/space.vue';
1
2
  export declare const YhSpace: import("@yh-ui/utils").SFCWithInstall<{
2
3
  new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./index.js").SpaceProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
3
- size: import("./src/space").SpaceSize | [import("./src/space").SpaceSize, import("./src/space").SpaceSize];
4
+ size: import("./index.js").SpaceSize | [import("./index.js").SpaceSize, import("./index.js").SpaceSize];
4
5
  fill: boolean;
5
- direction: import("./src/space").SpaceDirection;
6
+ direction: import("./index.js").SpaceDirection;
6
7
  wrap: boolean;
7
- justify: import("./src/space").SpaceJustify;
8
- align: import("./src/space").SpaceAlign;
8
+ justify: import("./index.js").SpaceJustify;
9
+ align: import("./index.js").SpaceAlign;
9
10
  }, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
10
11
  P: {};
11
12
  B: {};
@@ -14,23 +15,23 @@ export declare const YhSpace: import("@yh-ui/utils").SFCWithInstall<{
14
15
  M: {};
15
16
  Defaults: {};
16
17
  }, Readonly<import("./index.js").SpaceProps> & Readonly<{}>, {}, {}, {}, {}, {
17
- size: import("./src/space").SpaceSize | [import("./src/space").SpaceSize, import("./src/space").SpaceSize];
18
+ size: import("./index.js").SpaceSize | [import("./index.js").SpaceSize, import("./index.js").SpaceSize];
18
19
  fill: boolean;
19
- direction: import("./src/space").SpaceDirection;
20
+ direction: import("./index.js").SpaceDirection;
20
21
  wrap: boolean;
21
- justify: import("./src/space").SpaceJustify;
22
- align: import("./src/space").SpaceAlign;
22
+ justify: import("./index.js").SpaceJustify;
23
+ align: import("./index.js").SpaceAlign;
23
24
  }>;
24
25
  __isFragment?: never;
25
26
  __isTeleport?: never;
26
27
  __isSuspense?: never;
27
28
  } & import("vue").ComponentOptionsBase<Readonly<import("./index.js").SpaceProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
28
- size: import("./src/space").SpaceSize | [import("./src/space").SpaceSize, import("./src/space").SpaceSize];
29
+ size: import("./index.js").SpaceSize | [import("./index.js").SpaceSize, import("./index.js").SpaceSize];
29
30
  fill: boolean;
30
- direction: import("./src/space").SpaceDirection;
31
+ direction: import("./index.js").SpaceDirection;
31
32
  wrap: boolean;
32
- justify: import("./src/space").SpaceJustify;
33
- align: import("./src/space").SpaceAlign;
33
+ justify: import("./index.js").SpaceJustify;
34
+ align: import("./index.js").SpaceAlign;
34
35
  }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
35
36
  $slots: {
36
37
  spacer?: (props: {}) => any;
@@ -39,4 +40,13 @@ export declare const YhSpace: import("@yh-ui/utils").SFCWithInstall<{
39
40
  };
40
41
  })> & Record<string, unknown>;
41
42
  export default YhSpace;
43
+ export * from './src/space';
42
44
  export type { SpaceProps, SpaceSlots } from './src/space';
45
+ export type SpaceInstance = InstanceType<typeof Space>;
46
+ export type YhSpaceInstance = SpaceInstance;
47
+ export type YhSpaceProps = import('./src/space').SpaceProps;
48
+ export type YhSpaceSlots = import('./src/space').SpaceSlots;
49
+ export type YhSpaceSize = import('./src/space').SpaceSize;
50
+ export type YhSpaceDirection = import('./src/space').SpaceDirection;
51
+ export type YhSpaceAlign = import('./src/space').SpaceAlign;
52
+ export type YhSpaceJustify = import('./src/space').SpaceJustify;
@@ -2,3 +2,4 @@ import { withInstall } from "@yh-ui/utils";
2
2
  import Space from "./src/space.vue";
3
3
  export const YhSpace = withInstall(Space);
4
4
  export default YhSpace;
5
+ export * from "./src/space.mjs";
@@ -38,13 +38,13 @@ export declare const YhSpin: import("@yh-ui/utils").SFCWithInstall<{
38
38
  readonly default: undefined;
39
39
  };
40
40
  }>> & Readonly<{
41
- onHide?: ((...args: any[]) => any) | undefined;
42
- onShow?: ((...args: any[]) => any) | undefined;
41
+ onHide?: (() => any) | undefined;
42
+ onShow?: (() => any) | undefined;
43
43
  }>, {
44
44
  visible: import("vue").ComputedRef<boolean>;
45
45
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
46
- hide: (...args: any[]) => void;
47
- show: (...args: any[]) => void;
46
+ hide: () => void;
47
+ show: () => void;
48
48
  }, import("vue").PublicProps, {
49
49
  readonly size: number | "large" | "default" | "small";
50
50
  readonly type: import("./index.js").LoadingSpinnerType;
@@ -99,8 +99,8 @@ export declare const YhSpin: import("@yh-ui/utils").SFCWithInstall<{
99
99
  readonly default: undefined;
100
100
  };
101
101
  }>> & Readonly<{
102
- onHide?: ((...args: any[]) => any) | undefined;
103
- onShow?: ((...args: any[]) => any) | undefined;
102
+ onHide?: (() => any) | undefined;
103
+ onShow?: (() => any) | undefined;
104
104
  }>, {
105
105
  visible: import("vue").ComputedRef<boolean>;
106
106
  }, {}, {}, {}, {
@@ -154,13 +154,13 @@ export declare const YhSpin: import("@yh-ui/utils").SFCWithInstall<{
154
154
  readonly default: undefined;
155
155
  };
156
156
  }>> & Readonly<{
157
- onHide?: ((...args: any[]) => any) | undefined;
158
- onShow?: ((...args: any[]) => any) | undefined;
157
+ onHide?: (() => any) | undefined;
158
+ onShow?: (() => any) | undefined;
159
159
  }>, {
160
160
  visible: import("vue").ComputedRef<boolean>;
161
161
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
162
- hide: (...args: any[]) => void;
163
- show: (...args: any[]) => void;
162
+ hide: () => void;
163
+ show: () => void;
164
164
  }, string, {
165
165
  readonly size: number | "large" | "default" | "small";
166
166
  readonly type: import("./index.js").LoadingSpinnerType;
@@ -184,3 +184,9 @@ export declare const YhSpin: import("@yh-ui/utils").SFCWithInstall<{
184
184
  export default YhSpin;
185
185
  export * from './src/spin';
186
186
  export type SpinInstance = InstanceType<typeof Spin>;
187
+ export type YhSpinInstance = SpinInstance;
188
+ export type YhSpinProps = import('./src/spin').SpinProps;
189
+ export type YhSpinEmits = import('./src/spin').SpinEmits;
190
+ export type YhSpinSlots = import('./src/spin').SpinSlots;
191
+ export type YhSpinExpose = import('./src/spin').SpinExpose;
192
+ export type YhLoadingSpinnerType = import('./src/spin').LoadingSpinnerType;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.spinProps = void 0;
6
+ exports.spinProps = exports.spinEmits = void 0;
7
7
  const spinProps = exports.spinProps = {
8
8
  /** 是否开启加载状态 */
9
9
  show: {
@@ -58,4 +58,8 @@ const spinProps = exports.spinProps = {
58
58
  type: Object,
59
59
  default: void 0
60
60
  }
61
+ };
62
+ const spinEmits = exports.spinEmits = {
63
+ show: () => true,
64
+ hide: () => true
61
65
  };
@@ -1,4 +1,4 @@
1
- import type { ExtractPropTypes, PropType } from 'vue';
1
+ import type { ComputedRef, ExtractPropTypes, PropType } from 'vue';
2
2
  export type LoadingSpinnerType = 'circle' | 'chaser' | 'gear' | 'dual-ring' | 'rect';
3
3
  export declare const spinProps: {
4
4
  /** 是否开启加载状态 */
@@ -56,3 +56,15 @@ export declare const spinProps: {
56
56
  };
57
57
  };
58
58
  export type SpinProps = ExtractPropTypes<typeof spinProps>;
59
+ export declare const spinEmits: {
60
+ show: () => boolean;
61
+ hide: () => boolean;
62
+ };
63
+ export type SpinEmits = typeof spinEmits;
64
+ export interface SpinSlots {
65
+ default?: () => unknown;
66
+ tip?: () => unknown;
67
+ }
68
+ export interface SpinExpose {
69
+ visible: ComputedRef<boolean>;
70
+ }
@@ -53,3 +53,7 @@ export const spinProps = {
53
53
  default: void 0
54
54
  }
55
55
  };
56
+ export const spinEmits = {
57
+ show: () => true,
58
+ hide: () => true
59
+ };
@@ -2,7 +2,7 @@
2
2
  import { ref, watch, computed, useSlots, useId } from "vue";
3
3
  import { useNamespace, useLocale } from "@yh-ui/hooks";
4
4
  import { useComponentTheme } from "@yh-ui/theme";
5
- import { spinProps } from "./spin";
5
+ import { spinProps, spinEmits } from "./spin";
6
6
  defineOptions({
7
7
  name: "YhSpin",
8
8
  inheritAttrs: false
@@ -15,7 +15,7 @@ const { themeStyle } = useComponentTheme(
15
15
  "spin",
16
16
  computed(() => props.themeOverrides)
17
17
  );
18
- const emit = defineEmits(["show", "hide"]);
18
+ const emit = defineEmits(spinEmits);
19
19
  const internalVisible = ref(false);
20
20
  const visible = computed(() => props.delay === 0 ? props.show : internalVisible.value);
21
21
  let timer = null;
@@ -46,11 +46,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
46
46
  readonly default: undefined;
47
47
  };
48
48
  }>, {
49
- /** 是否可见 */
50
49
  visible: import("vue").ComputedRef<boolean>;
51
50
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
52
- hide: (...args: any[]) => void;
53
- show: (...args: any[]) => void;
51
+ hide: () => void;
52
+ show: () => void;
54
53
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
55
54
  readonly show: {
56
55
  readonly type: BooleanConstructor;
@@ -89,8 +88,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
89
88
  readonly default: undefined;
90
89
  };
91
90
  }>> & Readonly<{
92
- onHide?: ((...args: any[]) => any) | undefined;
93
- onShow?: ((...args: any[]) => any) | undefined;
91
+ onHide?: (() => any) | undefined;
92
+ onShow?: (() => any) | undefined;
94
93
  }>, {
95
94
  readonly size: number | "large" | "default" | "small";
96
95
  readonly type: import("./spin").LoadingSpinnerType;
@@ -615,3 +615,16 @@ export * from './src/steps';
615
615
  export * from './src/step';
616
616
  export type StepsInstance = InstanceType<typeof Steps>;
617
617
  export type StepInstance = InstanceType<typeof Step>;
618
+ export type YhStepsInstance = StepsInstance;
619
+ export type YhStepInstance = StepInstance;
620
+ export type YhStepsProps = import('./src/steps').StepsProps;
621
+ export type YhStepsEmits = import('./src/steps').StepsEmits;
622
+ export type YhStepsSlots = import('./src/steps').StepsSlots;
623
+ export type YhStepsDirection = import('./src/steps').StepsDirection;
624
+ export type YhStepsStatus = import('./src/steps').StepsStatus;
625
+ export type YhStepsProgressDot = import('./src/steps').StepsProgressDot;
626
+ export type YhStepsSize = import('./src/steps').StepsSize;
627
+ export type YhStepsLabelPlacement = import('./src/steps').StepsLabelPlacement;
628
+ export type YhStepConfig = import('./src/steps').StepConfig;
629
+ export type YhStepProps = import('./src/step').StepProps;
630
+ export type YhStepSlots = import('./src/step').StepSlots;
@@ -48,3 +48,9 @@ export declare const stepProps: {
48
48
  };
49
49
  };
50
50
  export type StepProps = ExtractPropTypes<typeof stepProps>;
51
+ export interface StepSlots {
52
+ icon?: () => unknown;
53
+ title?: () => unknown;
54
+ description?: () => unknown;
55
+ default?: () => unknown;
56
+ }
@@ -106,6 +106,9 @@ export declare const stepsEmits: {
106
106
  change: (index: number) => boolean;
107
107
  };
108
108
  export type StepsEmits = typeof stepsEmits;
109
+ export interface StepsSlots {
110
+ default?: () => unknown;
111
+ }
109
112
  export interface StepsContext {
110
113
  props: StepsProps;
111
114
  steps: Ref<StepConfig[]>;
@@ -295,3 +295,6 @@ export * from './src/submit-bar';
295
295
  export type SubmitBarInstance = InstanceType<typeof SubmitBar>;
296
296
  export type YhSubmitBarInstance = SubmitBarInstance;
297
297
  export type YhSubmitBarProps = import('./src/submit-bar').SubmitBarProps;
298
+ export type YhSubmitBarEmits = import('./src/submit-bar').SubmitBarEmits;
299
+ export type YhSubmitBarSlots = import('./src/submit-bar').SubmitBarSlots;
300
+ export type YhSubmitBarButtonType = import('./src/submit-bar').SubmitBarButtonType;
@@ -91,3 +91,10 @@ export declare const submitBarEmits: {
91
91
  'check-change': (val: boolean) => boolean;
92
92
  };
93
93
  export type SubmitBarEmits = typeof submitBarEmits;
94
+ export interface SubmitBarSlots {
95
+ tip?: () => unknown;
96
+ left?: () => unknown;
97
+ price?: () => unknown;
98
+ right?: () => unknown;
99
+ button?: () => unknown;
100
+ }
@@ -374,3 +374,8 @@ export declare const YhSwitch: import("@yh-ui/utils").SFCWithInstall<{
374
374
  export default YhSwitch;
375
375
  export * from './src/switch';
376
376
  export type SwitchInstance = InstanceType<typeof Switch>;
377
+ export type YhSwitchInstance = SwitchInstance;
378
+ export type YhSwitchProps = import('./src/switch').SwitchProps;
379
+ export type YhSwitchEmits = import('./src/switch').SwitchEmits;
380
+ export type YhSwitchSlots = import('./src/switch').SwitchSlots;
381
+ export type YhSwitchExpose = import('./src/switch').SwitchExpose;
@@ -1,4 +1,4 @@
1
- import type { ExtractPropTypes, PropType, Component } from 'vue';
1
+ import type { ExtractPropTypes, PropType, Component, ComputedRef } from 'vue';
2
2
  export type SwitchValueType = boolean | string | number;
3
3
  export declare const switchProps: {
4
4
  /** 绑定值,必须等于 active-value 或 inactive-value,默认为 Boolean 类型 */
@@ -113,3 +113,13 @@ export declare const switchEmits: {
113
113
  change: (_val: SwitchValueType) => boolean;
114
114
  };
115
115
  export type SwitchEmits = typeof switchEmits;
116
+ export interface SwitchSlots {
117
+ active?: () => unknown;
118
+ inactive?: () => unknown;
119
+ 'active-action'?: () => unknown;
120
+ 'inactive-action'?: () => unknown;
121
+ }
122
+ export interface SwitchExpose {
123
+ focus: () => void;
124
+ checked: ComputedRef<boolean>;
125
+ }
@@ -1,7 +1,3 @@
1
- /**
2
- * Table Component
3
- * @description 高性能表格组件导出
4
- */
5
1
  import Table from './src/table.vue';
6
2
  import TableColumn from './src/table-column.vue';
7
3
  export declare const YhTable: import("@yh-ui/utils").SFCWithInstall<{
@@ -1256,3 +1252,17 @@ export default YhTable;
1256
1252
  export * from './src/table';
1257
1253
  export type TableInstance = InstanceType<typeof Table>;
1258
1254
  export type TableColumnInstance = InstanceType<typeof TableColumn>;
1255
+ export type YhTableInstance = TableInstance;
1256
+ export type YhTableColumnInstance = TableColumnInstance;
1257
+ export type YhTableProps = import('./src/table').TableProps;
1258
+ export type YhTableEmits = import('./src/table').TableEmits;
1259
+ export type YhTableExpose = import('./src/table').TableExpose;
1260
+ export type YhTableColumn = import('./src/table').TableColumn;
1261
+ export type YhTablePaginationConfig = import('./src/table').TablePaginationConfig;
1262
+ export type YhTableSelectionConfig = import('./src/table').TableSelectionConfig;
1263
+ export type YhTableExpandConfig = import('./src/table').TableExpandConfig;
1264
+ export type YhTableTreeConfig = import('./src/table').TableTreeConfig;
1265
+ export type YhTableToolbarConfig = import('./src/table').TableToolbarConfig;
1266
+ export type YhTableExportConfig = import('./src/table').TableExportConfig;
1267
+ export type YhTableLoadingConfig = import('./src/table').TableLoadingConfig;
1268
+ export type YhTableEmptyConfig = import('./src/table').TableEmptyConfig;
@@ -592,3 +592,14 @@ export * from './src/tabs';
592
592
  export * from './src/tab-pane';
593
593
  export type TabsInstance = InstanceType<typeof Tabs>;
594
594
  export type TabPaneInstance = InstanceType<typeof TabPane>;
595
+ export type YhTabsInstance = TabsInstance;
596
+ export type YhTabPaneInstance = TabPaneInstance;
597
+ export type YhTabsProps = import('./src/tabs').TabsProps;
598
+ export type YhTabsEmits = import('./src/tabs').TabsEmits;
599
+ export type YhTabsSlots = import('./src/tabs').TabsSlots;
600
+ export type YhTabsExpose = import('./src/tabs').TabsExpose;
601
+ export type YhTabsType = import('./src/tabs').TabsType;
602
+ export type YhTabsPosition = import('./src/tabs').TabsPosition;
603
+ export type YhTabPaneConfig = import('./src/tabs').TabPaneConfig;
604
+ export type YhTabPaneProps = import('./src/tab-pane').TabPaneProps;
605
+ export type YhTabPaneSlots = import('./src/tab-pane').TabPaneSlots;
@@ -37,3 +37,6 @@ export declare const tabPaneProps: {
37
37
  };
38
38
  };
39
39
  export type TabPaneProps = ExtractPropTypes<typeof tabPaneProps>;
40
+ export interface TabPaneSlots {
41
+ default?: () => unknown;
42
+ }
@@ -107,6 +107,18 @@ export declare const tabsEmits: {
107
107
  'tab-drag-end': (names: (string | number)[]) => boolean;
108
108
  };
109
109
  export type TabsEmits = typeof tabsEmits;
110
+ export interface TabsSlots {
111
+ default?: () => unknown;
112
+ label?: (props: {
113
+ pane: TabPaneConfig;
114
+ }) => unknown;
115
+ 'add-icon'?: () => unknown;
116
+ }
117
+ export interface TabsExpose {
118
+ addTab: () => void;
119
+ setActiveTab: (name: string | number) => void;
120
+ activeTab: string | number;
121
+ }
110
122
  export interface TabsContext {
111
123
  activeTab: Ref<string | number>;
112
124
  registerPane: (pane: TabPaneConfig) => void;
@@ -92,3 +92,10 @@ export declare const YhTag: import("@yh-ui/utils").SFCWithInstall<{
92
92
  export default YhTag;
93
93
  export * from './src/tag';
94
94
  export type TagInstance = InstanceType<typeof Tag>;
95
+ export type YhTagInstance = TagInstance;
96
+ export type YhTagProps = import('./src/tag').TagProps;
97
+ export type YhTagEmits = import('./src/tag').TagEmits;
98
+ export type YhTagSlots = import('./src/tag').TagSlots;
99
+ export type YhTagType = import('./src/tag').TagType;
100
+ export type YhTagSize = import('./src/tag').TagSize;
101
+ export type YhTagEffect = import('./src/tag').TagEffect;
@@ -14,7 +14,7 @@ export declare const YhTimePicker: import("@yh-ui/utils").SFCWithInstall<{
14
14
  blur: () => void;
15
15
  open: () => void;
16
16
  close: () => void;
17
- inputRef: HTMLInputElement | undefined;
17
+ inputRef: import("vue").Ref<HTMLInputElement | undefined>;
18
18
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
19
19
  clear: () => any;
20
20
  confirm: (value: string | number | Date | [import("./index.js").TimeValue, import("./index.js").TimeValue] | null) => any;
@@ -73,7 +73,7 @@ export declare const YhTimePicker: import("@yh-ui/utils").SFCWithInstall<{
73
73
  blur: () => void;
74
74
  open: () => void;
75
75
  close: () => void;
76
- inputRef: HTMLInputElement | undefined;
76
+ inputRef: import("vue").Ref<HTMLInputElement | undefined>;
77
77
  }, {}, {}, {}, {
78
78
  size: import("./index.js").TimePickerSize;
79
79
  placeholder: string;
@@ -120,7 +120,7 @@ export declare const YhTimePicker: import("@yh-ui/utils").SFCWithInstall<{
120
120
  blur: () => void;
121
121
  open: () => void;
122
122
  close: () => void;
123
- inputRef: HTMLInputElement | undefined;
123
+ inputRef: import("vue").Ref<HTMLInputElement | undefined>;
124
124
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
125
125
  clear: () => any;
126
126
  confirm: (value: string | number | Date | [import("./index.js").TimeValue, import("./index.js").TimeValue] | null) => any;
@@ -168,3 +168,13 @@ export declare const YhTimePicker: import("@yh-ui/utils").SFCWithInstall<{
168
168
  export default YhTimePicker;
169
169
  export * from './src/time-picker';
170
170
  export type TimePickerInstance = InstanceType<typeof TimePicker>;
171
+ export type YhTimePickerInstance = TimePickerInstance;
172
+ export type YhTimePickerProps = import('./src/time-picker').TimePickerProps;
173
+ export type YhTimePickerEmits = import('./src/time-picker').TimePickerEmits;
174
+ export type YhTimePickerSlots = import('./src/time-picker').TimePickerSlots;
175
+ export type YhTimePickerExpose = import('./src/time-picker').TimePickerExpose;
176
+ export type YhTimePickerSize = import('./src/time-picker').TimePickerSize;
177
+ export type YhTimePickerValue = import('./src/time-picker').TimeValue;
178
+ export type YhTimePickerRangeValue = import('./src/time-picker').TimeRangeValue;
179
+ export type YhTimePickerDisabledTimeConfig = import('./src/time-picker').DisabledTimeConfig;
180
+ export type YhTimePickerState = import('./src/time-picker').TimeState;
@@ -3,7 +3,7 @@
3
3
  * @description 时间选择器组件类型定义
4
4
  * 设计参考: 市面组件库, Naive UI, Ant Design Vue
5
5
  */
6
- import type { Component } from 'vue';
6
+ import type { Component, Ref } from 'vue';
7
7
  export type TimePickerSize = 'large' | 'default' | 'small';
8
8
  /**
9
9
  * 时间值类型
@@ -148,7 +148,7 @@ export interface TimePickerExpose {
148
148
  /** 关闭面板 */
149
149
  close: () => void;
150
150
  /** 输入框引用 */
151
- inputRef: HTMLInputElement | undefined;
151
+ inputRef: Ref<HTMLInputElement | undefined>;
152
152
  }
153
153
  /**
154
154
  * 时间面板内部状态
@@ -358,7 +358,7 @@ defineExpose({
358
358
  blur,
359
359
  open: openPanel,
360
360
  close: closePanel,
361
- inputRef: inputRef.value
361
+ inputRef
362
362
  });
363
363
  </script>
364
364
 
@@ -10,7 +10,7 @@ declare const __VLS_component: import("vue").DefineComponent<TimePickerProps, {
10
10
  blur: () => void;
11
11
  open: () => void;
12
12
  close: () => void;
13
- inputRef: HTMLInputElement | undefined;
13
+ inputRef: import("vue").Ref<HTMLInputElement | undefined>;
14
14
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
15
15
  clear: () => any;
16
16
  confirm: (value: string | number | Date | [TimeValue, TimeValue] | null) => any;
@@ -14,7 +14,7 @@ export declare const YhTimeSelect: import("@yh-ui/utils").SFCWithInstall<{
14
14
  }>, {
15
15
  focus: () => void;
16
16
  blur: () => void;
17
- inputRef: HTMLInputElement | undefined;
17
+ inputRef: import("vue").Ref<HTMLInputElement | undefined>;
18
18
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
19
19
  clear: () => any;
20
20
  focus: (event: FocusEvent) => any;
@@ -53,7 +53,7 @@ export declare const YhTimeSelect: import("@yh-ui/utils").SFCWithInstall<{
53
53
  }>, {
54
54
  focus: () => void;
55
55
  blur: () => void;
56
- inputRef: HTMLInputElement | undefined;
56
+ inputRef: import("vue").Ref<HTMLInputElement | undefined>;
57
57
  }, {}, {}, {}, {
58
58
  size: import("./index.js").TimeSelectSize;
59
59
  placeholder: string;
@@ -82,7 +82,7 @@ export declare const YhTimeSelect: import("@yh-ui/utils").SFCWithInstall<{
82
82
  }>, {
83
83
  focus: () => void;
84
84
  blur: () => void;
85
- inputRef: HTMLInputElement | undefined;
85
+ inputRef: import("vue").Ref<HTMLInputElement | undefined>;
86
86
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
87
87
  clear: () => any;
88
88
  focus: (event: FocusEvent) => any;
@@ -118,3 +118,10 @@ export declare const YhTimeSelect: import("@yh-ui/utils").SFCWithInstall<{
118
118
  export default YhTimeSelect;
119
119
  export * from './src/time-select';
120
120
  export type TimeSelectInstance = InstanceType<typeof TimeSelect>;
121
+ export type YhTimeSelectInstance = TimeSelectInstance;
122
+ export type YhTimeSelectProps = import('./src/time-select').TimeSelectProps;
123
+ export type YhTimeSelectEmits = import('./src/time-select').TimeSelectEmits;
124
+ export type YhTimeSelectSlots = import('./src/time-select').TimeSelectSlots;
125
+ export type YhTimeSelectExpose = import('./src/time-select').TimeSelectExpose;
126
+ export type YhTimeSelectSize = import('./src/time-select').TimeSelectSize;
127
+ export type YhTimeSelectOption = import('./src/time-select').TimeOption;
@@ -2,7 +2,7 @@
2
2
  * TimeSelect Types & Props
3
3
  * @description 时间选择器组件类型定义
4
4
  */
5
- import type { Component } from 'vue';
5
+ import type { Component, Ref } from 'vue';
6
6
  export type TimeSelectSize = 'large' | 'default' | 'small';
7
7
  /**
8
8
  * 时间选项接口
@@ -103,7 +103,7 @@ export interface TimeSelectExpose {
103
103
  /** 失去焦点 */
104
104
  blur: () => void;
105
105
  /** 输入框引用 */
106
- inputRef: HTMLInputElement | undefined;
106
+ inputRef: Ref<HTMLInputElement | undefined>;
107
107
  }
108
108
  /**
109
109
  * 解析时间字符串为分钟数