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
@@ -96,43 +96,131 @@ export declare const StTimePicker: {
96
96
  minTime: import('./types.d.ts').StTimeValue;
97
97
  maxTime: import('./types.d.ts').StTimeValue;
98
98
  showSeconds: boolean;
99
- }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
100
- StTimePickerPanel: import('vue').DefineComponent<import('./types.d.ts').StTimePickerPanelProps, import('./types.d.ts').StTimePickerPanelExpose, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
99
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
100
+ $slots: import('./types.d.ts').StTimePickerSlots;
101
+ }) & {
102
+ StTimePickerPanel: {
103
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types.d.ts').StTimePickerPanelProps> & Readonly<{
104
+ onCancel?: () => any;
105
+ onChange?: (value: import('./types.d.ts').StTimeValue) => any;
106
+ "onUpdate:modelValue"?: (value: import('./types.d.ts').StTimeValue) => any;
107
+ onConfirm?: (value: import('./types.d.ts').StTimeValue) => any;
108
+ }>, import('./types.d.ts').StTimePickerPanelExpose, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
109
+ cancel: () => any;
110
+ change: (value: import('./types.d.ts').StTimeValue) => any;
111
+ "update:modelValue": (value: import('./types.d.ts').StTimeValue) => any;
112
+ confirm: (value: import('./types.d.ts').StTimeValue) => any;
113
+ }, import('vue').PublicProps, {
114
+ disabled: boolean;
115
+ modelValue: import('./types.d.ts').StTimeValue | null;
116
+ step: import('./types.d.ts').StTimeStep;
117
+ minTime: import('./types.d.ts').StTimeValue;
118
+ maxTime: import('./types.d.ts').StTimeValue;
119
+ showSeconds: boolean;
120
+ }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
121
+ P: {};
122
+ B: {};
123
+ D: {};
124
+ C: {};
125
+ M: {};
126
+ Defaults: {};
127
+ }, Readonly<import('./types.d.ts').StTimePickerPanelProps> & Readonly<{
128
+ onCancel?: () => any;
129
+ onChange?: (value: import('./types.d.ts').StTimeValue) => any;
130
+ "onUpdate:modelValue"?: (value: import('./types.d.ts').StTimeValue) => any;
131
+ onConfirm?: (value: import('./types.d.ts').StTimeValue) => any;
132
+ }>, import('./types.d.ts').StTimePickerPanelExpose, {}, {}, {}, {
133
+ disabled: boolean;
134
+ modelValue: import('./types.d.ts').StTimeValue | null;
135
+ step: import('./types.d.ts').StTimeStep;
136
+ minTime: import('./types.d.ts').StTimeValue;
137
+ maxTime: import('./types.d.ts').StTimeValue;
138
+ showSeconds: boolean;
139
+ }>;
140
+ __isFragment?: never;
141
+ __isTeleport?: never;
142
+ __isSuspense?: never;
143
+ } & import('vue').ComponentOptionsBase<Readonly<import('./types.d.ts').StTimePickerPanelProps> & Readonly<{
144
+ onCancel?: () => any;
145
+ onChange?: (value: import('./types.d.ts').StTimeValue) => any;
146
+ "onUpdate:modelValue"?: (value: import('./types.d.ts').StTimeValue) => any;
147
+ onConfirm?: (value: import('./types.d.ts').StTimeValue) => any;
148
+ }>, import('./types.d.ts').StTimePickerPanelExpose, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
101
149
  cancel: () => any;
102
150
  change: (value: import('./types.d.ts').StTimeValue) => any;
103
151
  "update:modelValue": (value: import('./types.d.ts').StTimeValue) => any;
104
152
  confirm: (value: import('./types.d.ts').StTimeValue) => any;
105
- }, string, import('vue').PublicProps, Readonly<import('./types.d.ts').StTimePickerPanelProps> & Readonly<{
153
+ }, string, {
154
+ disabled: boolean;
155
+ modelValue: import('./types.d.ts').StTimeValue | null;
156
+ step: import('./types.d.ts').StTimeStep;
157
+ minTime: import('./types.d.ts').StTimeValue;
158
+ maxTime: import('./types.d.ts').StTimeValue;
159
+ showSeconds: boolean;
160
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
161
+ $slots: import('./types.d.ts').StTimePickerPanelSlots;
162
+ });
163
+ };
164
+ export declare const StTimePickerPanel: {
165
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types.d.ts').StTimePickerPanelProps> & Readonly<{
106
166
  onCancel?: () => any;
107
167
  onChange?: (value: import('./types.d.ts').StTimeValue) => any;
108
168
  "onUpdate:modelValue"?: (value: import('./types.d.ts').StTimeValue) => any;
109
169
  onConfirm?: (value: import('./types.d.ts').StTimeValue) => any;
110
- }>, {
170
+ }>, import('./types.d.ts').StTimePickerPanelExpose, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
171
+ cancel: () => any;
172
+ change: (value: import('./types.d.ts').StTimeValue) => any;
173
+ "update:modelValue": (value: import('./types.d.ts').StTimeValue) => any;
174
+ confirm: (value: import('./types.d.ts').StTimeValue) => any;
175
+ }, import('vue').PublicProps, {
111
176
  disabled: boolean;
112
177
  modelValue: import('./types.d.ts').StTimeValue | null;
113
178
  step: import('./types.d.ts').StTimeStep;
114
179
  minTime: import('./types.d.ts').StTimeValue;
115
180
  maxTime: import('./types.d.ts').StTimeValue;
116
181
  showSeconds: boolean;
117
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
118
- };
119
- export declare const StTimePickerPanel: import('vue').DefineComponent<import('./types.d.ts').StTimePickerPanelProps, import('./types.d.ts').StTimePickerPanelExpose, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
120
- cancel: () => any;
121
- change: (value: import('./types.d.ts').StTimeValue) => any;
122
- "update:modelValue": (value: import('./types.d.ts').StTimeValue) => any;
123
- confirm: (value: import('./types.d.ts').StTimeValue) => any;
124
- }, string, import('vue').PublicProps, Readonly<import('./types.d.ts').StTimePickerPanelProps> & Readonly<{
182
+ }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
183
+ P: {};
184
+ B: {};
185
+ D: {};
186
+ C: {};
187
+ M: {};
188
+ Defaults: {};
189
+ }, Readonly<import('./types.d.ts').StTimePickerPanelProps> & Readonly<{
190
+ onCancel?: () => any;
191
+ onChange?: (value: import('./types.d.ts').StTimeValue) => any;
192
+ "onUpdate:modelValue"?: (value: import('./types.d.ts').StTimeValue) => any;
193
+ onConfirm?: (value: import('./types.d.ts').StTimeValue) => any;
194
+ }>, import('./types.d.ts').StTimePickerPanelExpose, {}, {}, {}, {
195
+ disabled: boolean;
196
+ modelValue: import('./types.d.ts').StTimeValue | null;
197
+ step: import('./types.d.ts').StTimeStep;
198
+ minTime: import('./types.d.ts').StTimeValue;
199
+ maxTime: import('./types.d.ts').StTimeValue;
200
+ showSeconds: boolean;
201
+ }>;
202
+ __isFragment?: never;
203
+ __isTeleport?: never;
204
+ __isSuspense?: never;
205
+ } & import('vue').ComponentOptionsBase<Readonly<import('./types.d.ts').StTimePickerPanelProps> & Readonly<{
125
206
  onCancel?: () => any;
126
207
  onChange?: (value: import('./types.d.ts').StTimeValue) => any;
127
208
  "onUpdate:modelValue"?: (value: import('./types.d.ts').StTimeValue) => any;
128
209
  onConfirm?: (value: import('./types.d.ts').StTimeValue) => any;
129
- }>, {
210
+ }>, import('./types.d.ts').StTimePickerPanelExpose, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
211
+ cancel: () => any;
212
+ change: (value: import('./types.d.ts').StTimeValue) => any;
213
+ "update:modelValue": (value: import('./types.d.ts').StTimeValue) => any;
214
+ confirm: (value: import('./types.d.ts').StTimeValue) => any;
215
+ }, string, {
130
216
  disabled: boolean;
131
217
  modelValue: import('./types.d.ts').StTimeValue | null;
132
218
  step: import('./types.d.ts').StTimeStep;
133
219
  minTime: import('./types.d.ts').StTimeValue;
134
220
  maxTime: import('./types.d.ts').StTimeValue;
135
221
  showSeconds: boolean;
136
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
222
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
223
+ $slots: import('./types.d.ts').StTimePickerPanelSlots;
224
+ });
137
225
  export default StTimePicker;
138
226
  export type * from './types.d.ts';
@@ -1,5 +1,6 @@
1
- import { StTimePickerPanelExpose, StTimePickerPanelProps, StTimeValue } from './types.d.ts';
2
- declare const __VLS_export: import('vue').DefineComponent<StTimePickerPanelProps, StTimePickerPanelExpose, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
1
+ import { StTimePickerPanelExpose, StTimePickerPanelProps, StTimePickerPanelSlots, StTimeValue } from './types.d.ts';
2
+ type __VLS_Slots = StTimePickerPanelSlots;
3
+ declare const __VLS_base: import('vue').DefineComponent<StTimePickerPanelProps, StTimePickerPanelExpose, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
3
4
  cancel: () => any;
4
5
  change: (value: StTimeValue) => any;
5
6
  "update:modelValue": (value: StTimeValue) => any;
@@ -17,5 +18,11 @@ declare const __VLS_export: import('vue').DefineComponent<StTimePickerPanelProps
17
18
  maxTime: StTimeValue;
18
19
  showSeconds: boolean;
19
20
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
21
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
20
22
  declare const _default: typeof __VLS_export;
21
23
  export default _default;
24
+ type __VLS_WithSlots<T, S> = T & {
25
+ new (): {
26
+ $slots: S;
27
+ };
28
+ };
@@ -1,10 +1,11 @@
1
- import { StTimePickerExpose, StTimePickerProps, StTimeValue } from './types.d.ts';
1
+ import { StTimePickerExpose, StTimePickerProps, StTimePickerSlots, StTimeValue } from './types.d.ts';
2
2
  type __VLS_Props = StTimePickerProps;
3
+ type __VLS_Slots = StTimePickerSlots;
3
4
  type __VLS_ModelProps = {
4
5
  modelValue?: StTimeValue | null;
5
6
  };
6
7
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
7
- declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, StTimePickerExpose, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
8
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, StTimePickerExpose, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
8
9
  clear: () => any;
9
10
  cancel: () => any;
10
11
  change: (value: StTimeValue) => any;
@@ -34,5 +35,11 @@ declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, StT
34
35
  maxTime: StTimeValue;
35
36
  showSeconds: boolean;
36
37
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
38
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
37
39
  declare const _default: typeof __VLS_export;
38
40
  export default _default;
41
+ type __VLS_WithSlots<T, S> = T & {
42
+ new (): {
43
+ $slots: S;
44
+ };
45
+ };
@@ -40,15 +40,19 @@ export interface StTimePickerPanelProps {
40
40
  showSeconds?: boolean;
41
41
  /** 是否禁用 */
42
42
  disabled?: boolean;
43
- /** 自定义类名 */
44
- class?: ClassValue;
45
- /** 自定义样式 */
46
- style?: StyleValue;
43
+ }
44
+
45
+ /**
46
+ * 时间选择器面板组件插槽接口
47
+ */
48
+ export interface StTimePickerPanelSlots {
49
+ /** 默认插槽 */
50
+ default?: () => unknown;
47
51
  }
48
52
 
49
53
  /**
50
54
  * 时间选择器面板组件事件接口
51
- * */
55
+ */
52
56
  export interface StTimePickerPanelEmits {
53
57
  /** 更新绑定值事件 */
54
58
  'update:modelValue': [value: StTimeValue];
@@ -106,9 +110,17 @@ export interface StTimePickerProps {
106
110
  panelStyle?: StyleValue;
107
111
  }
108
112
 
113
+ /**
114
+ * StTimePicker 主组件插槽接口
115
+ */
116
+ export interface StTimePickerSlots {
117
+ /** 默认插槽(触发元素) */
118
+ default?: () => unknown;
119
+ }
120
+
109
121
  /**
110
122
  * StTimePicker 主组件事件接口
111
- * */
123
+ */
112
124
  export interface StTimePickerEmits {
113
125
  /** 更新绑定值事件 */
114
126
  'update:modelValue': [value: StTimeValue | null];
@@ -1,9 +1,11 @@
1
1
  export declare const StToggle: {
2
- new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types.d.ts').StToggleProps> & Readonly<{
3
- "onUpdate:modelValue"?: (value: boolean) => any;
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types.d.ts').StToggleProps & {
3
+ modelValue?: boolean;
4
+ }> & Readonly<{
5
+ "onUpdate:modelValue"?: (...args: unknown[]) => any;
4
6
  "onPressed-change"?: (pressed: boolean) => any;
5
7
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
6
- "update:modelValue": (value: boolean) => any;
8
+ "update:modelValue": (...args: unknown[]) => any;
7
9
  "pressed-change": (pressed: boolean) => any;
8
10
  }, import('vue').PublicProps, {
9
11
  variant: import('./types.d.ts').StToggleVariant;
@@ -26,8 +28,10 @@ export declare const StToggle: {
26
28
  C: {};
27
29
  M: {};
28
30
  Defaults: {};
29
- }, Readonly<import('./types.d.ts').StToggleProps> & Readonly<{
30
- "onUpdate:modelValue"?: (value: boolean) => any;
31
+ }, Readonly<import('./types.d.ts').StToggleProps & {
32
+ modelValue?: boolean;
33
+ }> & Readonly<{
34
+ "onUpdate:modelValue"?: (...args: unknown[]) => any;
31
35
  "onPressed-change"?: (pressed: boolean) => any;
32
36
  }>, {}, {}, {}, {}, {
33
37
  variant: import('./types.d.ts').StToggleVariant;
@@ -47,11 +51,13 @@ export declare const StToggle: {
47
51
  __isFragment?: never;
48
52
  __isTeleport?: never;
49
53
  __isSuspense?: never;
50
- } & import('vue').ComponentOptionsBase<Readonly<import('./types.d.ts').StToggleProps> & Readonly<{
51
- "onUpdate:modelValue"?: (value: boolean) => any;
54
+ } & import('vue').ComponentOptionsBase<Readonly<import('./types.d.ts').StToggleProps & {
55
+ modelValue?: boolean;
56
+ }> & Readonly<{
57
+ "onUpdate:modelValue"?: (...args: unknown[]) => any;
52
58
  "onPressed-change"?: (pressed: boolean) => any;
53
59
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
54
- "update:modelValue": (value: boolean) => any;
60
+ "update:modelValue": (...args: unknown[]) => any;
55
61
  "pressed-change": (pressed: boolean) => any;
56
62
  }, string, {
57
63
  variant: import('./types.d.ts').StToggleVariant;
@@ -68,11 +74,7 @@ export declare const StToggle: {
68
74
  wrapperClass: any;
69
75
  wrapperStyle: import('vue').StyleValue;
70
76
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
71
- $slots: {
72
- default?: (props: {}) => any;
73
- } & {
74
- default?: (props: {}) => any;
75
- };
77
+ $slots: import('./types.d.ts').StToggleSlots;
76
78
  });
77
79
  export default StToggle;
78
80
  export type * from './types.d.ts';
@@ -1,15 +1,16 @@
1
- import { StToggleProps, StToggleVariant } from './types.d.ts';
2
- declare var __VLS_1: {}, __VLS_3: {};
3
- type __VLS_Slots = {} & {
4
- default?: (props: typeof __VLS_1) => any;
5
- } & {
6
- default?: (props: typeof __VLS_3) => any;
1
+ import { StToggleProps, StToggleSlots, StToggleVariant } from './types.d.ts';
2
+ type __VLS_Props = StToggleProps;
3
+ type __VLS_Slots = StToggleSlots;
4
+ type __VLS_ModelProps = {
5
+ /** 实际按下状态:useVModel 自动处理受控(props.modelValue)与非受控模式 */
6
+ 'modelValue'?: boolean;
7
7
  };
8
- declare const __VLS_base: import('vue').DefineComponent<StToggleProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
- "update:modelValue": (value: boolean) => any;
8
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
9
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
10
+ "update:modelValue": (...args: unknown[]) => any;
10
11
  "pressed-change": (pressed: boolean) => any;
11
- }, string, import('vue').PublicProps, Readonly<StToggleProps> & Readonly<{
12
- "onUpdate:modelValue"?: (value: boolean) => any;
12
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
13
+ "onUpdate:modelValue"?: (...args: unknown[]) => any;
13
14
  "onPressed-change"?: (pressed: boolean) => any;
14
15
  }>, {
15
16
  variant: StToggleVariant;