straw-ui-vue 0.1.21 → 0.1.22

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 (135) hide show
  1. package/dist/components/st-cascade/index.d.ts +3 -11
  2. package/dist/components/st-cascade/st-cascade-panel.d.ts +2 -5
  3. package/dist/components/st-cascade/st-cascade.d.ts +2 -7
  4. package/dist/components/st-cascade/types.d.ts +10 -0
  5. package/dist/components/st-checkbox/useCheckboxGroupState.d.ts +2 -0
  6. package/dist/components/st-color-picker/index.d.ts +94 -12
  7. package/dist/components/st-color-picker/st-color-picker-panel.d.ts +9 -2
  8. package/dist/components/st-color-picker/st-color-picker.d.ts +9 -2
  9. package/dist/components/st-color-picker/types.d.ts +16 -0
  10. package/dist/components/st-date-picker/index.d.ts +85 -19
  11. package/dist/components/st-date-picker/st-date-picker-panel.d.ts +9 -4
  12. package/dist/components/st-date-picker/st-date-picker.d.ts +2 -5
  13. package/dist/components/st-date-picker/types.d.ts +18 -4
  14. package/dist/components/st-datetime-picker/index.d.ts +89 -19
  15. package/dist/components/st-datetime-picker/st-datetime-picker-panel.d.ts +9 -4
  16. package/dist/components/st-datetime-picker/st-datetime-picker.d.ts +2 -5
  17. package/dist/components/st-datetime-picker/types.d.ts +18 -4
  18. package/dist/components/st-dialog/useDialogState.d.ts +2 -0
  19. package/dist/components/st-divider/useDividerState.d.ts +2 -0
  20. package/dist/components/st-drawer/useDrawerState.d.ts +2 -0
  21. package/dist/components/st-empty/types.d.ts +5 -0
  22. package/dist/components/st-form-control/types.d.ts +6 -8
  23. package/dist/components/st-form-description/index.d.ts +1 -3
  24. package/dist/components/st-form-description/st-form-description.d.ts +2 -5
  25. package/dist/components/st-form-description/types.d.ts +5 -0
  26. package/dist/components/st-form-field/index.d.ts +1 -11
  27. package/dist/components/st-form-field/st-form-field.d.ts +2 -9
  28. package/dist/components/st-form-field/types.d.ts +5 -6
  29. package/dist/components/st-form-item/index.d.ts +1 -3
  30. package/dist/components/st-form-item/st-form-item.d.ts +2 -5
  31. package/dist/components/st-form-item/types.d.ts +6 -8
  32. package/dist/components/st-form-label/index.d.ts +1 -3
  33. package/dist/components/st-form-label/st-form-label.d.ts +2 -5
  34. package/dist/components/st-form-label/types.d.ts +5 -0
  35. package/dist/components/st-form-message/index.d.ts +1 -3
  36. package/dist/components/st-form-message/st-form-message.d.ts +2 -5
  37. package/dist/components/st-form-message/types.d.ts +5 -0
  38. package/dist/components/st-input/index.d.ts +1863 -607
  39. package/dist/components/st-input/st-input-group-input.d.ts +9 -2
  40. package/dist/components/st-input/st-input-group-textarea.d.ts +9 -2
  41. package/dist/components/st-input/st-input-number.d.ts +10 -3
  42. package/dist/components/st-input/st-input.d.ts +165 -57
  43. package/dist/components/st-input/st-textarea.d.ts +167 -57
  44. package/dist/components/st-input/types.d.ts +50 -0
  45. package/dist/components/st-label/index.d.ts +1 -3
  46. package/dist/components/st-label/st-label.d.ts +2 -5
  47. package/dist/components/st-label/types.d.ts +5 -0
  48. package/dist/components/st-menu/index.d.ts +14 -82
  49. package/dist/components/st-menu/st-menu-content.d.ts +1 -6
  50. package/dist/components/st-menu/st-menu-divider.d.ts +1 -4
  51. package/dist/components/st-menu/st-menu-group.d.ts +0 -4
  52. package/dist/components/st-menu/st-menu-item.d.ts +0 -4
  53. package/dist/components/st-menu/st-menu-trigger.d.ts +1 -6
  54. package/dist/components/st-menu/types.d.ts +54 -0
  55. package/dist/components/st-menu/useMenuState.d.ts +60 -0
  56. package/dist/components/st-pagination/index.d.ts +1 -7
  57. package/dist/components/st-pagination/st-pagination.d.ts +2 -9
  58. package/dist/components/st-popover/index.d.ts +17 -47
  59. package/dist/components/st-popover/st-popover-arrow.d.ts +1 -8
  60. package/dist/components/st-popover/st-popover-content.d.ts +0 -6
  61. package/dist/components/st-popover/st-popover-trigger.d.ts +0 -6
  62. package/dist/components/st-popover/st-popover.d.ts +11 -12
  63. package/dist/components/st-popover/types.d.ts +45 -14
  64. package/dist/components/st-popover/usePopoverState.d.ts +62 -0
  65. package/dist/components/st-progress/index.d.ts +1 -5
  66. package/dist/components/st-progress/st-progress.d.ts +2 -7
  67. package/dist/components/st-progress/types.d.ts +5 -0
  68. package/dist/components/st-radio/useRadioGroupState.d.ts +2 -0
  69. package/dist/components/st-scrollbar/index.d.ts +1 -3
  70. package/dist/components/st-scrollbar/st-scrollbar.d.ts +2 -5
  71. package/dist/components/st-scrollbar/types.d.ts +0 -6
  72. package/dist/components/st-segmented/index.d.ts +43 -8
  73. package/dist/components/st-segmented/st-segmented.d.ts +9 -2
  74. package/dist/components/st-select/index.d.ts +19 -93
  75. package/dist/components/st-select/st-select-content.d.ts +1 -8
  76. package/dist/components/st-select/st-select-empty.d.ts +1 -8
  77. package/dist/components/st-select/st-select-group.d.ts +1 -8
  78. package/dist/components/st-select/st-select-item.d.ts +0 -6
  79. package/dist/components/st-select/st-select-trigger.d.ts +6 -12
  80. package/dist/components/st-select/st-select.d.ts +2 -7
  81. package/dist/components/st-select/types.d.ts +68 -0
  82. package/dist/components/st-select/useSelectState.d.ts +55 -0
  83. package/dist/components/st-sidebar/index.d.ts +13 -3
  84. package/dist/components/st-sidebar/st-sidebar.d.ts +5 -1
  85. package/dist/components/st-sidebar/useSidebarState.d.ts +2 -0
  86. package/dist/components/st-sidebar-item/index.d.ts +13 -3
  87. package/dist/components/st-sidebar-item/st-sidebar-item.d.ts +5 -1
  88. package/dist/components/st-skeleton/index.d.ts +3 -11
  89. package/dist/components/st-skeleton/st-skeleton-item.d.ts +2 -5
  90. package/dist/components/st-skeleton/st-skeleton.d.ts +2 -7
  91. package/dist/components/st-skeleton/types.d.ts +10 -6
  92. package/dist/components/st-slider/index.d.ts +1 -17
  93. package/dist/components/st-slider/st-slider.d.ts +2 -19
  94. package/dist/components/st-slider/types.d.ts +8 -0
  95. package/dist/components/st-splitter/index.d.ts +14 -6
  96. package/dist/components/st-splitter/st-splitter.d.ts +7 -6
  97. package/dist/components/st-splitter/useSplitter.d.ts +0 -8
  98. package/dist/components/st-splitter/useSplitterState.d.ts +2 -0
  99. package/dist/components/st-splitter-panel/index.d.ts +6 -3
  100. package/dist/components/st-splitter-panel/st-splitter-panel.d.ts +4 -5
  101. package/dist/components/st-tabs/index.d.ts +26 -6
  102. package/dist/components/st-tabs/st-tabs-pane.d.ts +5 -1
  103. package/dist/components/st-tabs/useTabsState.d.ts +12 -0
  104. package/dist/components/st-tag/index.d.ts +1 -20
  105. package/dist/components/st-tag/st-tag.d.ts +3 -13
  106. package/dist/components/st-tag/types.d.ts +40 -51
  107. package/dist/components/st-time-picker/index.d.ts +102 -14
  108. package/dist/components/st-time-picker/st-time-picker-panel.d.ts +9 -2
  109. package/dist/components/st-time-picker/st-time-picker.d.ts +9 -2
  110. package/dist/components/st-time-picker/types.d.ts +18 -6
  111. package/dist/components/st-toggle/index.d.ts +15 -13
  112. package/dist/components/st-toggle/st-toggle.d.ts +11 -10
  113. package/dist/components/st-tooltip/index.d.ts +27 -352
  114. package/dist/components/st-tooltip/st-tooltip.d.ts +14 -10
  115. package/dist/components/st-tooltip/types.d.ts +10 -97
  116. package/dist/components/st-tree/index.d.ts +48 -73
  117. package/dist/components/st-tree/st-tree-node.d.ts +9 -2
  118. package/dist/components/st-tree/st-tree.d.ts +15 -69
  119. package/dist/components/st-tree/types.d.ts +6 -1
  120. package/dist/components/st-tree/useTreeStyleState.d.ts +2 -0
  121. package/dist/directive/v-intersection.d.ts +3 -15
  122. package/dist/directive/v-resize.d.ts +3 -15
  123. package/dist/dist--ubF9h1Q.js +335 -0
  124. package/dist/global.d.ts +0 -3
  125. package/dist/index.d.ts +2 -8
  126. package/dist/straw-ui.js +3767 -4269
  127. package/dist/useDialogState-Cs1mp3-Y.js +5 -0
  128. package/dist/utils/device.d.ts +20 -21
  129. package/dist/utils/z-index.d.ts +9 -39
  130. package/package.json +5 -5
  131. package/dist/components/st-tooltip/st-tooltip-container.d.ts +0 -44
  132. package/dist/components/st-tooltip/st-tooltip-content.d.ts +0 -30
  133. package/dist/components/st-tooltip/st-tooltip-trigger.d.ts +0 -23
  134. package/dist/context-B_FwxbY6.js +0 -4
  135. package/dist/utils/id.d.ts +0 -4
@@ -1,16 +1,26 @@
1
1
  export declare const StSidebarItem: {
2
- new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types.d.ts').StSidebarItemProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types.d.ts').StSidebarItemProps> & Readonly<{
3
+ onClick?: (id: string) => any;
4
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
5
+ click: (id: string) => any;
6
+ }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
3
7
  P: {};
4
8
  B: {};
5
9
  D: {};
6
10
  C: {};
7
11
  M: {};
8
12
  Defaults: {};
9
- }, Readonly<import('./types.d.ts').StSidebarItemProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
13
+ }, Readonly<import('./types.d.ts').StSidebarItemProps> & Readonly<{
14
+ onClick?: (id: string) => any;
15
+ }>, {}, {}, {}, {}, {}>;
10
16
  __isFragment?: never;
11
17
  __isTeleport?: never;
12
18
  __isSuspense?: never;
13
- } & import('vue').ComponentOptionsBase<Readonly<import('./types.d.ts').StSidebarItemProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
19
+ } & import('vue').ComponentOptionsBase<Readonly<import('./types.d.ts').StSidebarItemProps> & Readonly<{
20
+ onClick?: (id: string) => any;
21
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
22
+ click: (id: string) => any;
23
+ }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
14
24
  $slots: import('./types.d.ts').StSidebarItemSlots;
15
25
  });
16
26
  export default StSidebarItem;
@@ -1,6 +1,10 @@
1
1
  import { StSidebarItemProps, StSidebarItemSlots } from './types.d.ts';
2
2
  type __VLS_Slots = StSidebarItemSlots;
3
- declare const __VLS_base: import('vue').DefineComponent<StSidebarItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<StSidebarItemProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
3
+ declare const __VLS_base: import('vue').DefineComponent<StSidebarItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
4
+ click: (id: string) => any;
5
+ }, string, import('vue').PublicProps, Readonly<StSidebarItemProps> & Readonly<{
6
+ onClick?: (id: string) => any;
7
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
4
8
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
5
9
  declare const _default: typeof __VLS_export;
6
10
  export default _default;
@@ -23,11 +23,7 @@ export declare const StSkeleton: {
23
23
  rows: number;
24
24
  animated: boolean;
25
25
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
26
- $slots: {
27
- template?: (props: {}) => any;
28
- } & {
29
- default?: (props: {}) => any;
30
- };
26
+ $slots: import('./types.d.ts').StSkeletonSlots;
31
27
  }) & {
32
28
  StSkeletonItem: {
33
29
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types.d.ts').StSkeletonItemProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
@@ -51,9 +47,7 @@ export declare const StSkeleton: {
51
47
  variant: import('./types.d.ts').StSkeletonVariant;
52
48
  animated: boolean;
53
49
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
54
- $slots: {
55
- default?: (props: {}) => any;
56
- };
50
+ $slots: import('./types.d.ts').StSkeletonItemSlots;
57
51
  });
58
52
  };
59
53
  export declare const StSkeletonItem: {
@@ -78,9 +72,7 @@ export declare const StSkeletonItem: {
78
72
  variant: import('./types.d.ts').StSkeletonVariant;
79
73
  animated: boolean;
80
74
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
81
- $slots: {
82
- default?: (props: {}) => any;
83
- };
75
+ $slots: import('./types.d.ts').StSkeletonItemSlots;
84
76
  });
85
77
  export default StSkeleton;
86
78
  export type * from './types.d.ts';
@@ -1,8 +1,5 @@
1
- import { StSkeletonItemProps, StSkeletonVariant } from './types.d.ts';
2
- declare var __VLS_1: {};
3
- type __VLS_Slots = {} & {
4
- default?: (props: typeof __VLS_1) => any;
5
- };
1
+ import { StSkeletonItemProps, StSkeletonItemSlots, StSkeletonVariant } from './types.d.ts';
2
+ type __VLS_Slots = StSkeletonItemSlots;
6
3
  declare const __VLS_base: import('vue').DefineComponent<StSkeletonItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<StSkeletonItemProps> & Readonly<{}>, {
7
4
  variant: StSkeletonVariant;
8
5
  animated: boolean;
@@ -1,10 +1,5 @@
1
- import { StSkeletonProps } from './types.d.ts';
2
- declare var __VLS_1: {}, __VLS_8: {};
3
- type __VLS_Slots = {} & {
4
- template?: (props: typeof __VLS_1) => any;
5
- } & {
6
- default?: (props: typeof __VLS_8) => any;
7
- };
1
+ import { StSkeletonProps, StSkeletonSlots } from './types.d.ts';
2
+ type __VLS_Slots = StSkeletonSlots;
8
3
  declare const __VLS_base: import('vue').DefineComponent<StSkeletonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<StSkeletonProps> & Readonly<{}>, {
9
4
  loading: boolean;
10
5
  rows: number;
@@ -1,5 +1,3 @@
1
- import type { ClassValue } from 'vue';
2
-
3
1
  /**
4
2
  * 骨架屏形状变体
5
3
  * */
@@ -17,8 +15,6 @@ export interface StSkeletonItemProps {
17
15
  height?: string | number;
18
16
  /** 是否开启动画 */
19
17
  animated?: boolean;
20
- /** 自定义类名 */
21
- class?: ClassValue;
22
18
  }
23
19
 
24
20
  /**
@@ -31,8 +27,6 @@ export interface StSkeletonProps {
31
27
  rows?: number;
32
28
  /** 是否开启动画 */
33
29
  animated?: boolean;
34
- /** 自定义类名 */
35
- class?: ClassValue;
36
30
  }
37
31
 
38
32
  /**
@@ -53,4 +47,14 @@ export interface StSkeletonItemSlots {
53
47
  default?: () => unknown;
54
48
  }
55
49
 
50
+ /**
51
+ * 骨架屏组件事件类型
52
+ * */
53
+ export interface StSkeletonEmits {}
54
+
55
+ /**
56
+ * 骨架屏子项组件事件类型
57
+ * */
58
+ export interface StSkeletonItemEmits {}
59
+
56
60
  export {};
@@ -71,23 +71,7 @@ export declare const StSlider: {
71
71
  sliderClass: any;
72
72
  trackClass: any;
73
73
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
74
- $slots: {
75
- mark?: (props: {
76
- mark: import('./types.d.ts').StSliderMark;
77
- }) => any;
78
- } & {
79
- tooltip?: (props: {
80
- value: number;
81
- }) => any;
82
- } & {
83
- tooltip?: (props: {
84
- value: number;
85
- }) => any;
86
- } & {
87
- tooltip?: (props: {
88
- value: number;
89
- }) => any;
90
- };
74
+ $slots: import('./types.d.ts').StSliderSlots;
91
75
  });
92
76
  export default StSlider;
93
77
  export type * from './types.d.ts';
@@ -1,27 +1,10 @@
1
- import { StSliderMark, StSliderProps } from './types.d.ts';
1
+ import { StSliderMark, StSliderProps, StSliderSlots } from './types.d.ts';
2
2
  type __VLS_Props = StSliderProps;
3
+ type __VLS_Slots = StSliderSlots;
3
4
  type __VLS_ModelProps = {
4
5
  modelValue?: number | [number, number];
5
6
  };
6
7
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
7
- declare var __VLS_1: {
8
- mark: StSliderMark;
9
- }, __VLS_3: {
10
- value: number;
11
- }, __VLS_5: {
12
- value: number;
13
- }, __VLS_7: {
14
- value: number;
15
- };
16
- type __VLS_Slots = {} & {
17
- mark?: (props: typeof __VLS_1) => any;
18
- } & {
19
- tooltip?: (props: typeof __VLS_3) => any;
20
- } & {
21
- tooltip?: (props: typeof __VLS_5) => any;
22
- } & {
23
- tooltip?: (props: typeof __VLS_7) => any;
24
- };
25
8
  declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {
26
9
  containerRef: import('vue').Ref<HTMLElement, HTMLElement>;
27
10
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
@@ -58,4 +58,12 @@ export interface StSliderSlots {
58
58
  mark?: (props: { mark: StSliderMark }) => unknown;
59
59
  }
60
60
 
61
+ /**
62
+ * Slider 组件暴露方法接口
63
+ * */
64
+ export interface StSliderExpose {
65
+ /** 滑块容器 DOM 引用 */
66
+ containerRef: HTMLElement | null;
67
+ }
68
+
61
69
  export {};
@@ -1,5 +1,9 @@
1
1
  export declare const StSplitter: {
2
- new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types.d.ts').StSplitterProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types.d.ts').StSplitterProps> & Readonly<{
3
+ onResize?: (panels: import('./types.d.ts').StSplitterPanelConfig[]) => any;
4
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
5
+ resize: (panels: import('./types.d.ts').StSplitterPanelConfig[]) => any;
6
+ }, import('vue').PublicProps, {
3
7
  direction: import('./types.d.ts').StSplitterDirection;
4
8
  }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
5
9
  P: {};
@@ -8,18 +12,22 @@ export declare const StSplitter: {
8
12
  C: {};
9
13
  M: {};
10
14
  Defaults: {};
11
- }, Readonly<import('./types.d.ts').StSplitterProps> & Readonly<{}>, {}, {}, {}, {}, {
15
+ }, Readonly<import('./types.d.ts').StSplitterProps> & Readonly<{
16
+ onResize?: (panels: import('./types.d.ts').StSplitterPanelConfig[]) => any;
17
+ }>, {}, {}, {}, {}, {
12
18
  direction: import('./types.d.ts').StSplitterDirection;
13
19
  }>;
14
20
  __isFragment?: never;
15
21
  __isTeleport?: never;
16
22
  __isSuspense?: never;
17
- } & import('vue').ComponentOptionsBase<Readonly<import('./types.d.ts').StSplitterProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
23
+ } & import('vue').ComponentOptionsBase<Readonly<import('./types.d.ts').StSplitterProps> & Readonly<{
24
+ onResize?: (panels: import('./types.d.ts').StSplitterPanelConfig[]) => any;
25
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
26
+ resize: (panels: import('./types.d.ts').StSplitterPanelConfig[]) => any;
27
+ }, string, {
18
28
  direction: import('./types.d.ts').StSplitterDirection;
19
29
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
20
- $slots: {
21
- default?: (props: {}) => any;
22
- };
30
+ $slots: import('./types.d.ts').StSplitterSlots;
23
31
  });
24
32
  export default StSplitter;
25
33
  export type * from './types.d.ts';
@@ -1,9 +1,10 @@
1
- import { StSplitterProps } from './types.d.ts';
2
- declare var __VLS_1: {};
3
- type __VLS_Slots = {} & {
4
- default?: (props: typeof __VLS_1) => any;
5
- };
6
- declare const __VLS_base: import('vue').DefineComponent<StSplitterProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<StSplitterProps> & Readonly<{}>, {
1
+ import { StSplitterProps, StSplitterSlots } from './types.d.ts';
2
+ type __VLS_Slots = StSplitterSlots;
3
+ declare const __VLS_base: import('vue').DefineComponent<StSplitterProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
4
+ resize: (panels: import('./types.d.ts').StSplitterPanelConfig[]) => any;
5
+ }, string, import('vue').PublicProps, Readonly<StSplitterProps> & Readonly<{
6
+ onResize?: (panels: import('./types.d.ts').StSplitterPanelConfig[]) => any;
7
+ }>, {
7
8
  direction: import('./types.d.ts').StSplitterDirection;
8
9
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
9
10
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -1,13 +1,5 @@
1
1
  import { Ref } from 'vue';
2
2
  import { StConstrainedSizesOptions, StConstrainedSizesResult, StSplitterDirection, StSplitterInternalContext } from './types.d.ts';
3
- /**
4
- * 限制数值在指定范围内
5
- * @param value - 待限制的值
6
- * @param min - 最小值
7
- * @param max - 最大值
8
- * @returns 限制后的值
9
- * */
10
- export declare function clamp(value: number, min: number, max: number): number;
11
3
  /**
12
4
  * 计算调整后的尺寸,考虑边界约束
13
5
  * 确保左右面板尺寸都在各自的 min/max 范围内
@@ -0,0 +1,2 @@
1
+ import { StSplitterInternalContext } from './types.d.ts';
2
+ export declare const useProvideSplitter: (context: StSplitterInternalContext) => StSplitterInternalContext, useInjectSplitter: () => StSplitterInternalContext;
@@ -2,10 +2,12 @@ export declare const StSplitterPanel: {
2
2
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types.d.ts').StSplitterPanelProps & {
3
3
  size?: number;
4
4
  }> & Readonly<{
5
+ "onUpdate:visible"?: (visible: boolean) => any;
5
6
  "onUpdate:size"?: (value: number) => any;
6
7
  }>, {
7
8
  panelId: import('vue').Ref<string, string>;
8
9
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
10
+ "update:visible": (visible: boolean) => any;
9
11
  "update:size": (value: number) => any;
10
12
  }, import('vue').PublicProps, {
11
13
  flex: boolean;
@@ -22,6 +24,7 @@ export declare const StSplitterPanel: {
22
24
  }, Readonly<import('./types.d.ts').StSplitterPanelProps & {
23
25
  size?: number;
24
26
  }> & Readonly<{
27
+ "onUpdate:visible"?: (visible: boolean) => any;
25
28
  "onUpdate:size"?: (value: number) => any;
26
29
  }>, {
27
30
  panelId: import('vue').Ref<string, string>;
@@ -37,10 +40,12 @@ export declare const StSplitterPanel: {
37
40
  } & import('vue').ComponentOptionsBase<Readonly<import('./types.d.ts').StSplitterPanelProps & {
38
41
  size?: number;
39
42
  }> & Readonly<{
43
+ "onUpdate:visible"?: (visible: boolean) => any;
40
44
  "onUpdate:size"?: (value: number) => any;
41
45
  }>, {
42
46
  panelId: import('vue').Ref<string, string>;
43
47
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
48
+ "update:visible": (visible: boolean) => any;
44
49
  "update:size": (value: number) => any;
45
50
  }, string, {
46
51
  flex: boolean;
@@ -48,9 +53,7 @@ export declare const StSplitterPanel: {
48
53
  minSize: number;
49
54
  maxSize: number;
50
55
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
51
- $slots: {
52
- default?: (props: {}) => any;
53
- };
56
+ $slots: import('./types.d.ts').StSplitterPanelSlots;
54
57
  });
55
58
  export default StSplitterPanel;
56
59
  export type * from './types.d.ts';
@@ -1,5 +1,6 @@
1
- import { StSplitterPanelProps } from './types.d.ts';
1
+ import { StSplitterPanelProps, StSplitterPanelSlots } from './types.d.ts';
2
2
  type __VLS_Props = StSplitterPanelProps;
3
+ type __VLS_Slots = StSplitterPanelSlots;
3
4
  type __VLS_ModelProps = {
4
5
  /**
5
6
  * 面板尺寸双向绑定
@@ -7,15 +8,13 @@ type __VLS_ModelProps = {
7
8
  'size'?: number;
8
9
  };
9
10
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
10
- declare var __VLS_1: {};
11
- type __VLS_Slots = {} & {
12
- default?: (props: typeof __VLS_1) => any;
13
- };
14
11
  declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {
15
12
  panelId: import('vue').Ref<string, string>;
16
13
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
14
+ "update:visible": (visible: boolean) => any;
17
15
  "update:size": (value: number) => any;
18
16
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
17
+ "onUpdate:visible"?: (visible: boolean) => any;
19
18
  "onUpdate:size"?: (value: number) => any;
20
19
  }>, {
21
20
  flex: boolean;
@@ -73,7 +73,11 @@ export declare const StTabs: {
73
73
  $slots: import('./types.d.ts').StTabsSlots;
74
74
  }) & {
75
75
  StTabsPane: {
76
- new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types.d.ts').StTabsPaneProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
76
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types.d.ts').StTabsPaneProps> & Readonly<{
77
+ onClick?: (name: string) => any;
78
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
79
+ click: (name: string) => any;
80
+ }, import('vue').PublicProps, {
77
81
  disabled: boolean;
78
82
  label: string;
79
83
  closable: boolean;
@@ -86,7 +90,9 @@ export declare const StTabs: {
86
90
  C: {};
87
91
  M: {};
88
92
  Defaults: {};
89
- }, Readonly<import('./types.d.ts').StTabsPaneProps> & Readonly<{}>, {}, {}, {}, {}, {
93
+ }, Readonly<import('./types.d.ts').StTabsPaneProps> & Readonly<{
94
+ onClick?: (name: string) => any;
95
+ }>, {}, {}, {}, {}, {
90
96
  disabled: boolean;
91
97
  label: string;
92
98
  closable: boolean;
@@ -96,7 +102,11 @@ export declare const StTabs: {
96
102
  __isFragment?: never;
97
103
  __isTeleport?: never;
98
104
  __isSuspense?: never;
99
- } & import('vue').ComponentOptionsBase<Readonly<import('./types.d.ts').StTabsPaneProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
105
+ } & import('vue').ComponentOptionsBase<Readonly<import('./types.d.ts').StTabsPaneProps> & Readonly<{
106
+ onClick?: (name: string) => any;
107
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
108
+ click: (name: string) => any;
109
+ }, string, {
100
110
  disabled: boolean;
101
111
  label: string;
102
112
  closable: boolean;
@@ -107,7 +117,11 @@ export declare const StTabs: {
107
117
  });
108
118
  };
109
119
  export declare const StTabsPane: {
110
- new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types.d.ts').StTabsPaneProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
120
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types.d.ts').StTabsPaneProps> & Readonly<{
121
+ onClick?: (name: string) => any;
122
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
123
+ click: (name: string) => any;
124
+ }, import('vue').PublicProps, {
111
125
  disabled: boolean;
112
126
  label: string;
113
127
  closable: boolean;
@@ -120,7 +134,9 @@ export declare const StTabsPane: {
120
134
  C: {};
121
135
  M: {};
122
136
  Defaults: {};
123
- }, Readonly<import('./types.d.ts').StTabsPaneProps> & Readonly<{}>, {}, {}, {}, {}, {
137
+ }, Readonly<import('./types.d.ts').StTabsPaneProps> & Readonly<{
138
+ onClick?: (name: string) => any;
139
+ }>, {}, {}, {}, {}, {
124
140
  disabled: boolean;
125
141
  label: string;
126
142
  closable: boolean;
@@ -130,7 +146,11 @@ export declare const StTabsPane: {
130
146
  __isFragment?: never;
131
147
  __isTeleport?: never;
132
148
  __isSuspense?: never;
133
- } & import('vue').ComponentOptionsBase<Readonly<import('./types.d.ts').StTabsPaneProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
149
+ } & import('vue').ComponentOptionsBase<Readonly<import('./types.d.ts').StTabsPaneProps> & Readonly<{
150
+ onClick?: (name: string) => any;
151
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
152
+ click: (name: string) => any;
153
+ }, string, {
134
154
  disabled: boolean;
135
155
  label: string;
136
156
  closable: boolean;
@@ -1,6 +1,10 @@
1
1
  import { StTabsPaneProps, StTabsPaneSlots } from './types.d.ts';
2
2
  type __VLS_Slots = StTabsPaneSlots;
3
- declare const __VLS_base: import('vue').DefineComponent<StTabsPaneProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<StTabsPaneProps> & Readonly<{}>, {
3
+ declare const __VLS_base: import('vue').DefineComponent<StTabsPaneProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
4
+ click: (name: string) => any;
5
+ }, string, import('vue').PublicProps, Readonly<StTabsPaneProps> & Readonly<{
6
+ onClick?: (name: string) => any;
7
+ }>, {
4
8
  disabled: boolean;
5
9
  label: string;
6
10
  closable: boolean;
@@ -0,0 +1,12 @@
1
+ import { StTabsContext } from './types.d.ts';
2
+ /**
3
+ * Tabs 依赖注入状态管理
4
+ *
5
+ * @example 提供方(st-tabs.vue):
6
+ * useProvideTabs({ activeName, registerPane, unregisterPane, updatePane, closePane, type, position, closable });
7
+ *
8
+ * @example 注入方(st-tabs-pane.vue):
9
+ * const tabsContext = useInjectTabs();
10
+ * if (tabsContext) tabsContext.registerPane(...);
11
+ */
12
+ export declare const useProvideTabs: (context: StTabsContext) => StTabsContext, useInjectTabs: () => StTabsContext;
@@ -4,13 +4,8 @@ export declare const StTag: {
4
4
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
5
5
  close: (event: MouseEvent) => any;
6
6
  }, import('vue').PublicProps, {
7
- type: import('./types.d.ts').StTagType;
8
- color: string;
9
7
  variant: import('./types.d.ts').StTagVariant;
10
- disabled: boolean;
11
8
  closable: boolean;
12
- closeIconClass: any;
13
- closeIconStyle: import('vue').StyleValue;
14
9
  }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
15
10
  P: {};
16
11
  B: {};
@@ -21,13 +16,8 @@ export declare const StTag: {
21
16
  }, Readonly<import('./types.d.ts').StTagProps> & Readonly<{
22
17
  onClose?: (event: MouseEvent) => any;
23
18
  }>, {}, {}, {}, {}, {
24
- type: import('./types.d.ts').StTagType;
25
- color: string;
26
19
  variant: import('./types.d.ts').StTagVariant;
27
- disabled: boolean;
28
20
  closable: boolean;
29
- closeIconClass: any;
30
- closeIconStyle: import('vue').StyleValue;
31
21
  }>;
32
22
  __isFragment?: never;
33
23
  __isTeleport?: never;
@@ -37,19 +27,10 @@ export declare const StTag: {
37
27
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
38
28
  close: (event: MouseEvent) => any;
39
29
  }, string, {
40
- type: import('./types.d.ts').StTagType;
41
- color: string;
42
30
  variant: import('./types.d.ts').StTagVariant;
43
- disabled: boolean;
44
31
  closable: boolean;
45
- closeIconClass: any;
46
- closeIconStyle: import('vue').StyleValue;
47
32
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
48
- $slots: {
49
- default?: (props: {}) => any;
50
- } & {
51
- closeIcon?: (props: {}) => any;
52
- };
33
+ $slots: import('./types.d.ts').StTagSlots;
53
34
  });
54
35
  export default StTag;
55
36
  export type * from './types.d.ts';
@@ -1,22 +1,12 @@
1
- import { StTagProps, StTagType, StTagVariant } from './types.d.ts';
2
- declare var __VLS_1: {}, __VLS_3: {};
3
- type __VLS_Slots = {} & {
4
- default?: (props: typeof __VLS_1) => any;
5
- } & {
6
- closeIcon?: (props: typeof __VLS_3) => any;
7
- };
1
+ import { StTagProps, StTagSlots } from './types.d.ts';
2
+ type __VLS_Slots = StTagSlots;
8
3
  declare const __VLS_base: import('vue').DefineComponent<StTagProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
4
  close: (event: MouseEvent) => any;
10
5
  }, string, import('vue').PublicProps, Readonly<StTagProps> & Readonly<{
11
6
  onClose?: (event: MouseEvent) => any;
12
7
  }>, {
13
- type: StTagType;
14
- color: string;
15
- variant: StTagVariant;
16
- disabled: boolean;
8
+ variant: import('./types.d.ts').StTagVariant;
17
9
  closable: boolean;
18
- closeIconClass: any;
19
- closeIconStyle: import('vue').StyleValue;
20
10
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
21
11
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
22
12
  declare const _default: typeof __VLS_export;
@@ -1,51 +1,40 @@
1
- import type { ClassValue, StyleValue } from 'vue';
2
-
3
- /**
4
- * Tag 标签类型
5
- * */
6
- export type StTagType = 'primary' | 'success' | 'warning' | 'error' | 'info' | 'default';
7
-
8
- /**
9
- * Tag 标签变体
10
- * */
11
- export type StTagVariant = 'solid' | 'outline' | 'ghost';
12
-
13
- /**
14
- * Tag 组件属性
15
- * */
16
- export interface StTagProps {
17
- /** 标签类型 */
18
- type?: StTagType;
19
- /** 标签变体 */
20
- variant?: StTagVariant;
21
- /** 是否可关闭 */
22
- closable?: boolean;
23
- /** 是否禁用 */
24
- disabled?: boolean;
25
- /** 自定义颜色 */
26
- color?: string;
27
- /** 关闭图标类名 */
28
- closeIconClass?: ClassValue;
29
- /** 关闭图标样式 */
30
- closeIconStyle?: StyleValue;
31
- }
32
-
33
- /**
34
- * Tag 组件插槽类型
35
- * */
36
- export interface StTagSlots {
37
- /** 默认插槽 */
38
- default?: () => unknown;
39
- /** 关闭图标插槽 */
40
- closeIcon?: () => unknown;
41
- }
42
-
43
- /**
44
- * Tag 组件事件类型
45
- * */
46
- export interface StTagEmits {
47
- /** 关闭事件 */
48
- close: [event: MouseEvent];
49
- }
50
-
51
- export {};
1
+ import type { ClassValue, StyleValue } from 'vue';
2
+
3
+ /**
4
+ * Tag 标签变体
5
+ * */
6
+ export type StTagVariant = 'solid' | 'outline' | 'ghost';
7
+
8
+ /**
9
+ * Tag 组件属性
10
+ * */
11
+ export interface StTagProps {
12
+ /** 标签变体 */
13
+ variant?: StTagVariant;
14
+ /** 是否可关闭 */
15
+ closable?: boolean;
16
+ /** 关闭图标类名 */
17
+ closeIconClass?: ClassValue;
18
+ /** 关闭图标样式 */
19
+ closeIconStyle?: StyleValue;
20
+ }
21
+
22
+ /**
23
+ * Tag 组件插槽类型
24
+ * */
25
+ export interface StTagSlots {
26
+ /** 默认插槽 */
27
+ default?: () => unknown;
28
+ /** 关闭图标插槽 */
29
+ closeIcon?: () => unknown;
30
+ }
31
+
32
+ /**
33
+ * Tag 组件事件类型
34
+ * */
35
+ export interface StTagEmits {
36
+ /** 关闭事件 */
37
+ close: [event: MouseEvent];
38
+ }
39
+
40
+ export {};