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.
- package/dist/components/st-cascade/index.d.ts +3 -11
- package/dist/components/st-cascade/st-cascade-panel.d.ts +2 -5
- package/dist/components/st-cascade/st-cascade.d.ts +2 -7
- package/dist/components/st-cascade/types.d.ts +10 -0
- package/dist/components/st-checkbox/useCheckboxGroupState.d.ts +2 -0
- package/dist/components/st-color-picker/index.d.ts +94 -12
- package/dist/components/st-color-picker/st-color-picker-panel.d.ts +9 -2
- package/dist/components/st-color-picker/st-color-picker.d.ts +9 -2
- package/dist/components/st-color-picker/types.d.ts +16 -0
- package/dist/components/st-date-picker/index.d.ts +85 -19
- package/dist/components/st-date-picker/st-date-picker-panel.d.ts +9 -4
- package/dist/components/st-date-picker/st-date-picker.d.ts +2 -5
- package/dist/components/st-date-picker/types.d.ts +18 -4
- package/dist/components/st-datetime-picker/index.d.ts +89 -19
- package/dist/components/st-datetime-picker/st-datetime-picker-panel.d.ts +9 -4
- package/dist/components/st-datetime-picker/st-datetime-picker.d.ts +2 -5
- package/dist/components/st-datetime-picker/types.d.ts +18 -4
- package/dist/components/st-dialog/useDialogState.d.ts +2 -0
- package/dist/components/st-divider/useDividerState.d.ts +2 -0
- package/dist/components/st-drawer/useDrawerState.d.ts +2 -0
- package/dist/components/st-empty/types.d.ts +5 -0
- package/dist/components/st-form-control/types.d.ts +6 -8
- package/dist/components/st-form-description/index.d.ts +1 -3
- package/dist/components/st-form-description/st-form-description.d.ts +2 -5
- package/dist/components/st-form-description/types.d.ts +5 -0
- package/dist/components/st-form-field/index.d.ts +1 -11
- package/dist/components/st-form-field/st-form-field.d.ts +2 -9
- package/dist/components/st-form-field/types.d.ts +5 -6
- package/dist/components/st-form-item/index.d.ts +1 -3
- package/dist/components/st-form-item/st-form-item.d.ts +2 -5
- package/dist/components/st-form-item/types.d.ts +6 -8
- package/dist/components/st-form-label/index.d.ts +1 -3
- package/dist/components/st-form-label/st-form-label.d.ts +2 -5
- package/dist/components/st-form-label/types.d.ts +5 -0
- package/dist/components/st-form-message/index.d.ts +1 -3
- package/dist/components/st-form-message/st-form-message.d.ts +2 -5
- package/dist/components/st-form-message/types.d.ts +5 -0
- package/dist/components/st-input/index.d.ts +1863 -607
- package/dist/components/st-input/st-input-group-input.d.ts +9 -2
- package/dist/components/st-input/st-input-group-textarea.d.ts +9 -2
- package/dist/components/st-input/st-input-number.d.ts +10 -3
- package/dist/components/st-input/st-input.d.ts +165 -57
- package/dist/components/st-input/st-textarea.d.ts +167 -57
- package/dist/components/st-input/types.d.ts +50 -0
- package/dist/components/st-label/index.d.ts +1 -3
- package/dist/components/st-label/st-label.d.ts +2 -5
- package/dist/components/st-label/types.d.ts +5 -0
- package/dist/components/st-menu/index.d.ts +14 -82
- package/dist/components/st-menu/st-menu-content.d.ts +1 -6
- package/dist/components/st-menu/st-menu-divider.d.ts +1 -4
- package/dist/components/st-menu/st-menu-group.d.ts +0 -4
- package/dist/components/st-menu/st-menu-item.d.ts +0 -4
- package/dist/components/st-menu/st-menu-trigger.d.ts +1 -6
- package/dist/components/st-menu/types.d.ts +54 -0
- package/dist/components/st-menu/useMenuState.d.ts +60 -0
- package/dist/components/st-pagination/index.d.ts +1 -7
- package/dist/components/st-pagination/st-pagination.d.ts +2 -9
- package/dist/components/st-popover/index.d.ts +17 -47
- package/dist/components/st-popover/st-popover-arrow.d.ts +1 -8
- package/dist/components/st-popover/st-popover-content.d.ts +0 -6
- package/dist/components/st-popover/st-popover-trigger.d.ts +0 -6
- package/dist/components/st-popover/st-popover.d.ts +11 -12
- package/dist/components/st-popover/types.d.ts +45 -14
- package/dist/components/st-popover/usePopoverState.d.ts +62 -0
- package/dist/components/st-progress/index.d.ts +1 -5
- package/dist/components/st-progress/st-progress.d.ts +2 -7
- package/dist/components/st-progress/types.d.ts +5 -0
- package/dist/components/st-radio/useRadioGroupState.d.ts +2 -0
- package/dist/components/st-scrollbar/index.d.ts +1 -3
- package/dist/components/st-scrollbar/st-scrollbar.d.ts +2 -5
- package/dist/components/st-scrollbar/types.d.ts +0 -6
- package/dist/components/st-segmented/index.d.ts +43 -8
- package/dist/components/st-segmented/st-segmented.d.ts +9 -2
- package/dist/components/st-select/index.d.ts +19 -93
- package/dist/components/st-select/st-select-content.d.ts +1 -8
- package/dist/components/st-select/st-select-empty.d.ts +1 -8
- package/dist/components/st-select/st-select-group.d.ts +1 -8
- package/dist/components/st-select/st-select-item.d.ts +0 -6
- package/dist/components/st-select/st-select-trigger.d.ts +6 -12
- package/dist/components/st-select/st-select.d.ts +2 -7
- package/dist/components/st-select/types.d.ts +68 -0
- package/dist/components/st-select/useSelectState.d.ts +55 -0
- package/dist/components/st-sidebar/index.d.ts +13 -3
- package/dist/components/st-sidebar/st-sidebar.d.ts +5 -1
- package/dist/components/st-sidebar/useSidebarState.d.ts +2 -0
- package/dist/components/st-sidebar-item/index.d.ts +13 -3
- package/dist/components/st-sidebar-item/st-sidebar-item.d.ts +5 -1
- package/dist/components/st-skeleton/index.d.ts +3 -11
- package/dist/components/st-skeleton/st-skeleton-item.d.ts +2 -5
- package/dist/components/st-skeleton/st-skeleton.d.ts +2 -7
- package/dist/components/st-skeleton/types.d.ts +10 -6
- package/dist/components/st-slider/index.d.ts +1 -17
- package/dist/components/st-slider/st-slider.d.ts +2 -19
- package/dist/components/st-slider/types.d.ts +8 -0
- package/dist/components/st-splitter/index.d.ts +14 -6
- package/dist/components/st-splitter/st-splitter.d.ts +7 -6
- package/dist/components/st-splitter/useSplitter.d.ts +0 -8
- package/dist/components/st-splitter/useSplitterState.d.ts +2 -0
- package/dist/components/st-splitter-panel/index.d.ts +6 -3
- package/dist/components/st-splitter-panel/st-splitter-panel.d.ts +4 -5
- package/dist/components/st-tabs/index.d.ts +26 -6
- package/dist/components/st-tabs/st-tabs-pane.d.ts +5 -1
- package/dist/components/st-tabs/useTabsState.d.ts +12 -0
- package/dist/components/st-tag/index.d.ts +1 -20
- package/dist/components/st-tag/st-tag.d.ts +3 -13
- package/dist/components/st-tag/types.d.ts +40 -51
- package/dist/components/st-time-picker/index.d.ts +102 -14
- package/dist/components/st-time-picker/st-time-picker-panel.d.ts +9 -2
- package/dist/components/st-time-picker/st-time-picker.d.ts +9 -2
- package/dist/components/st-time-picker/types.d.ts +18 -6
- package/dist/components/st-toggle/index.d.ts +15 -13
- package/dist/components/st-toggle/st-toggle.d.ts +11 -10
- package/dist/components/st-tooltip/index.d.ts +27 -352
- package/dist/components/st-tooltip/st-tooltip.d.ts +14 -10
- package/dist/components/st-tooltip/types.d.ts +10 -97
- package/dist/components/st-tree/index.d.ts +48 -73
- package/dist/components/st-tree/st-tree-node.d.ts +9 -2
- package/dist/components/st-tree/st-tree.d.ts +15 -69
- package/dist/components/st-tree/types.d.ts +6 -1
- package/dist/components/st-tree/useTreeStyleState.d.ts +2 -0
- package/dist/directive/v-intersection.d.ts +3 -15
- package/dist/directive/v-resize.d.ts +3 -15
- package/dist/dist--ubF9h1Q.js +335 -0
- package/dist/global.d.ts +0 -3
- package/dist/index.d.ts +2 -8
- package/dist/straw-ui.js +3767 -4269
- package/dist/useDialogState-Cs1mp3-Y.js +5 -0
- package/dist/utils/device.d.ts +20 -21
- package/dist/utils/z-index.d.ts +9 -39
- package/package.json +5 -5
- package/dist/components/st-tooltip/st-tooltip-container.d.ts +0 -44
- package/dist/components/st-tooltip/st-tooltip-content.d.ts +0 -30
- package/dist/components/st-tooltip/st-tooltip-trigger.d.ts +0 -23
- package/dist/context-B_FwxbY6.js +0 -4
- package/dist/utils/id.d.ts +0 -4
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
export declare const StPopover: {
|
|
2
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types.d.ts').StPopoverProps
|
|
3
|
-
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types.d.ts').StPopoverProps & {
|
|
3
|
+
visible?: boolean;
|
|
4
|
+
}> & Readonly<{
|
|
5
|
+
"onUpdate:visible"?: (...args: unknown[]) => any;
|
|
4
6
|
onVisibleChange?: (value: boolean) => any;
|
|
5
7
|
}>, import('./types.d.ts').StPopoverExpose, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
-
"update:visible": (
|
|
8
|
+
"update:visible": (...args: unknown[]) => any;
|
|
7
9
|
visibleChange: (value: boolean) => any;
|
|
8
10
|
}, import('vue').PublicProps, {
|
|
9
11
|
gap: number;
|
|
@@ -24,8 +26,10 @@ export declare const StPopover: {
|
|
|
24
26
|
C: {};
|
|
25
27
|
M: {};
|
|
26
28
|
Defaults: {};
|
|
27
|
-
}, Readonly<import('./types.d.ts').StPopoverProps
|
|
28
|
-
|
|
29
|
+
}, Readonly<import('./types.d.ts').StPopoverProps & {
|
|
30
|
+
visible?: boolean;
|
|
31
|
+
}> & Readonly<{
|
|
32
|
+
"onUpdate:visible"?: (...args: unknown[]) => any;
|
|
29
33
|
onVisibleChange?: (value: boolean) => any;
|
|
30
34
|
}>, import('./types.d.ts').StPopoverExpose, {}, {}, {}, {
|
|
31
35
|
gap: number;
|
|
@@ -43,11 +47,13 @@ export declare const StPopover: {
|
|
|
43
47
|
__isFragment?: never;
|
|
44
48
|
__isTeleport?: never;
|
|
45
49
|
__isSuspense?: never;
|
|
46
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('./types.d.ts').StPopoverProps
|
|
47
|
-
|
|
50
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('./types.d.ts').StPopoverProps & {
|
|
51
|
+
visible?: boolean;
|
|
52
|
+
}> & Readonly<{
|
|
53
|
+
"onUpdate:visible"?: (...args: unknown[]) => any;
|
|
48
54
|
onVisibleChange?: (value: boolean) => any;
|
|
49
55
|
}>, import('./types.d.ts').StPopoverExpose, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
50
|
-
"update:visible": (
|
|
56
|
+
"update:visible": (...args: unknown[]) => any;
|
|
51
57
|
visibleChange: (value: boolean) => any;
|
|
52
58
|
}, string, {
|
|
53
59
|
gap: number;
|
|
@@ -62,18 +68,9 @@ export declare const StPopover: {
|
|
|
62
68
|
closeOnClickOutside: boolean;
|
|
63
69
|
closeOnEsc: boolean;
|
|
64
70
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
65
|
-
$slots:
|
|
66
|
-
trigger?: (props: {}) => any;
|
|
67
|
-
} & {
|
|
68
|
-
default?: (props: {}) => any;
|
|
69
|
-
} & {
|
|
70
|
-
content?: (props: {}) => any;
|
|
71
|
-
};
|
|
71
|
+
$slots: import('./types.d.ts').StPopoverSlots;
|
|
72
72
|
}) & {
|
|
73
|
-
StPopoverArrow: import('vue').DefineComponent<import('./st-popover-arrow').StPopoverArrowProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('./st-popover-arrow').StPopoverArrowProps> & Readonly<{}>, {
|
|
74
|
-
style: any;
|
|
75
|
-
class: any;
|
|
76
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
73
|
+
StPopoverArrow: import('vue').DefineComponent<import('./st-popover-arrow').StPopoverArrowProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('./st-popover-arrow').StPopoverArrowProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
77
74
|
StPopoverContainer: {
|
|
78
75
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./st-popover-container').StPopoverContainerProps> & Readonly<{
|
|
79
76
|
"onUpdate:open"?: (value: boolean) => any;
|
|
@@ -150,8 +147,6 @@ export declare const StPopover: {
|
|
|
150
147
|
});
|
|
151
148
|
StPopoverContent: {
|
|
152
149
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./st-popover-content').StPopoverContentProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
153
|
-
style: any;
|
|
154
|
-
class: any;
|
|
155
150
|
showArrow: boolean;
|
|
156
151
|
closeOnClickOutside: boolean;
|
|
157
152
|
closeOnEsc: boolean;
|
|
@@ -163,8 +158,6 @@ export declare const StPopover: {
|
|
|
163
158
|
M: {};
|
|
164
159
|
Defaults: {};
|
|
165
160
|
}, Readonly<import('./st-popover-content').StPopoverContentProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
166
|
-
style: any;
|
|
167
|
-
class: any;
|
|
168
161
|
showArrow: boolean;
|
|
169
162
|
closeOnClickOutside: boolean;
|
|
170
163
|
closeOnEsc: boolean;
|
|
@@ -173,8 +166,6 @@ export declare const StPopover: {
|
|
|
173
166
|
__isTeleport?: never;
|
|
174
167
|
__isSuspense?: never;
|
|
175
168
|
} & import('vue').ComponentOptionsBase<Readonly<import('./st-popover-content').StPopoverContentProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
176
|
-
style: any;
|
|
177
|
-
class: any;
|
|
178
169
|
showArrow: boolean;
|
|
179
170
|
closeOnClickOutside: boolean;
|
|
180
171
|
closeOnEsc: boolean;
|
|
@@ -187,8 +178,6 @@ export declare const StPopover: {
|
|
|
187
178
|
});
|
|
188
179
|
StPopoverTrigger: {
|
|
189
180
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./st-popover-trigger').StPopoverTriggerProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
190
|
-
style: any;
|
|
191
|
-
class: any;
|
|
192
181
|
asChild: boolean;
|
|
193
182
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
194
183
|
P: {};
|
|
@@ -198,16 +187,12 @@ export declare const StPopover: {
|
|
|
198
187
|
M: {};
|
|
199
188
|
Defaults: {};
|
|
200
189
|
}, Readonly<import('./st-popover-trigger').StPopoverTriggerProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
201
|
-
style: any;
|
|
202
|
-
class: any;
|
|
203
190
|
asChild: boolean;
|
|
204
191
|
}>;
|
|
205
192
|
__isFragment?: never;
|
|
206
193
|
__isTeleport?: never;
|
|
207
194
|
__isSuspense?: never;
|
|
208
195
|
} & import('vue').ComponentOptionsBase<Readonly<import('./st-popover-trigger').StPopoverTriggerProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
209
|
-
style: any;
|
|
210
|
-
class: any;
|
|
211
196
|
asChild: boolean;
|
|
212
197
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
213
198
|
$slots: {
|
|
@@ -219,10 +204,7 @@ export declare const StPopover: {
|
|
|
219
204
|
};
|
|
220
205
|
});
|
|
221
206
|
};
|
|
222
|
-
export declare const StPopoverArrow: import('vue').DefineComponent<import('./st-popover-arrow').StPopoverArrowProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('./st-popover-arrow').StPopoverArrowProps> & Readonly<{}>, {
|
|
223
|
-
style: any;
|
|
224
|
-
class: any;
|
|
225
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
207
|
+
export declare const StPopoverArrow: import('vue').DefineComponent<import('./st-popover-arrow').StPopoverArrowProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('./st-popover-arrow').StPopoverArrowProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
226
208
|
export declare const StPopoverContainer: {
|
|
227
209
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./st-popover-container').StPopoverContainerProps> & Readonly<{
|
|
228
210
|
"onUpdate:open"?: (value: boolean) => any;
|
|
@@ -299,8 +281,6 @@ export declare const StPopoverContainer: {
|
|
|
299
281
|
});
|
|
300
282
|
export declare const StPopoverContent: {
|
|
301
283
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./st-popover-content').StPopoverContentProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
302
|
-
style: any;
|
|
303
|
-
class: any;
|
|
304
284
|
showArrow: boolean;
|
|
305
285
|
closeOnClickOutside: boolean;
|
|
306
286
|
closeOnEsc: boolean;
|
|
@@ -312,8 +292,6 @@ export declare const StPopoverContent: {
|
|
|
312
292
|
M: {};
|
|
313
293
|
Defaults: {};
|
|
314
294
|
}, Readonly<import('./st-popover-content').StPopoverContentProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
315
|
-
style: any;
|
|
316
|
-
class: any;
|
|
317
295
|
showArrow: boolean;
|
|
318
296
|
closeOnClickOutside: boolean;
|
|
319
297
|
closeOnEsc: boolean;
|
|
@@ -322,8 +300,6 @@ export declare const StPopoverContent: {
|
|
|
322
300
|
__isTeleport?: never;
|
|
323
301
|
__isSuspense?: never;
|
|
324
302
|
} & import('vue').ComponentOptionsBase<Readonly<import('./st-popover-content').StPopoverContentProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
325
|
-
style: any;
|
|
326
|
-
class: any;
|
|
327
303
|
showArrow: boolean;
|
|
328
304
|
closeOnClickOutside: boolean;
|
|
329
305
|
closeOnEsc: boolean;
|
|
@@ -336,8 +312,6 @@ export declare const StPopoverContent: {
|
|
|
336
312
|
});
|
|
337
313
|
export declare const StPopoverTrigger: {
|
|
338
314
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./st-popover-trigger').StPopoverTriggerProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
339
|
-
style: any;
|
|
340
|
-
class: any;
|
|
341
315
|
asChild: boolean;
|
|
342
316
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
343
317
|
P: {};
|
|
@@ -347,16 +321,12 @@ export declare const StPopoverTrigger: {
|
|
|
347
321
|
M: {};
|
|
348
322
|
Defaults: {};
|
|
349
323
|
}, Readonly<import('./st-popover-trigger').StPopoverTriggerProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
350
|
-
style: any;
|
|
351
|
-
class: any;
|
|
352
324
|
asChild: boolean;
|
|
353
325
|
}>;
|
|
354
326
|
__isFragment?: never;
|
|
355
327
|
__isTeleport?: never;
|
|
356
328
|
__isSuspense?: never;
|
|
357
329
|
} & import('vue').ComponentOptionsBase<Readonly<import('./st-popover-trigger').StPopoverTriggerProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
358
|
-
style: any;
|
|
359
|
-
class: any;
|
|
360
330
|
asChild: boolean;
|
|
361
331
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
362
332
|
$slots: {
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
export interface StPopoverArrowProps {
|
|
2
|
-
/** 自定义类名 */
|
|
3
|
-
class?: any;
|
|
4
|
-
/** 自定义样式 */
|
|
5
|
-
style?: any;
|
|
6
2
|
}
|
|
7
|
-
declare const __VLS_export: import('vue').DefineComponent<StPopoverArrowProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<StPopoverArrowProps> & Readonly<{}>, {
|
|
8
|
-
style: any;
|
|
9
|
-
class: any;
|
|
10
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
3
|
+
declare const __VLS_export: import('vue').DefineComponent<StPopoverArrowProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<StPopoverArrowProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
11
4
|
declare const _default: typeof __VLS_export;
|
|
12
5
|
export default _default;
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
export interface StPopoverContentProps {
|
|
2
|
-
/** 自定义类名 */
|
|
3
|
-
class?: any;
|
|
4
|
-
/** 自定义样式 */
|
|
5
|
-
style?: any;
|
|
6
2
|
/** 是否显示箭头 */
|
|
7
3
|
showArrow?: boolean;
|
|
8
4
|
/** 点击外部是否关闭 */
|
|
@@ -17,8 +13,6 @@ type __VLS_Slots = {} & {
|
|
|
17
13
|
arrow?: (props: typeof __VLS_18) => any;
|
|
18
14
|
};
|
|
19
15
|
declare const __VLS_base: import('vue').DefineComponent<StPopoverContentProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<StPopoverContentProps> & Readonly<{}>, {
|
|
20
|
-
style: any;
|
|
21
|
-
class: any;
|
|
22
16
|
showArrow: boolean;
|
|
23
17
|
closeOnClickOutside: boolean;
|
|
24
18
|
closeOnEsc: boolean;
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
export interface StPopoverTriggerProps {
|
|
2
|
-
/** 自定义类名 */
|
|
3
|
-
class?: any;
|
|
4
|
-
/** 自定义样式 */
|
|
5
|
-
style?: any;
|
|
6
2
|
/** 是否作为子元素渲染 */
|
|
7
3
|
asChild?: boolean;
|
|
8
4
|
}
|
|
@@ -15,8 +11,6 @@ type __VLS_Slots = {} & {
|
|
|
15
11
|
default?: (props: typeof __VLS_3) => any;
|
|
16
12
|
};
|
|
17
13
|
declare const __VLS_base: import('vue').DefineComponent<StPopoverTriggerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<StPopoverTriggerProps> & Readonly<{}>, {
|
|
18
|
-
style: any;
|
|
19
|
-
class: any;
|
|
20
14
|
asChild: boolean;
|
|
21
15
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
22
16
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import { StPopoverExpose, StPopoverProps } from './types.d.ts';
|
|
2
|
-
|
|
3
|
-
type __VLS_Slots =
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} & {
|
|
8
|
-
content?: (props: typeof __VLS_27) => any;
|
|
1
|
+
import { StPopoverExpose, StPopoverProps, StPopoverSlots } from './types.d.ts';
|
|
2
|
+
type __VLS_Props = StPopoverProps;
|
|
3
|
+
type __VLS_Slots = StPopoverSlots;
|
|
4
|
+
type __VLS_ModelProps = {
|
|
5
|
+
/** 双向绑定模型:useVModel 自动处理受控(props.visible)与非受控模式 */
|
|
6
|
+
'visible'?: boolean;
|
|
9
7
|
};
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
9
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, StPopoverExpose, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
|
+
"update:visible": (...args: unknown[]) => any;
|
|
12
11
|
visibleChange: (value: boolean) => any;
|
|
13
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
14
|
-
"onUpdate:visible"?: (
|
|
12
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
13
|
+
"onUpdate:visible"?: (...args: unknown[]) => any;
|
|
15
14
|
onVisibleChange?: (value: boolean) => any;
|
|
16
15
|
}>, {
|
|
17
16
|
gap: number;
|
|
@@ -73,6 +73,14 @@ export interface StPopoverContainerEmits {
|
|
|
73
73
|
openChange: [value: boolean];
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
+
/**
|
|
77
|
+
* Popover 容器组件插槽接口
|
|
78
|
+
* */
|
|
79
|
+
export interface StPopoverContainerSlots {
|
|
80
|
+
/** 默认插槽 */
|
|
81
|
+
default?: () => any;
|
|
82
|
+
}
|
|
83
|
+
|
|
76
84
|
/**
|
|
77
85
|
* Popover 容器组件暴露的方法接口
|
|
78
86
|
* */
|
|
@@ -89,22 +97,27 @@ export interface StPopoverContainerExpose {
|
|
|
89
97
|
* StPopoverTrigger 触发器组件属性接口
|
|
90
98
|
* */
|
|
91
99
|
export interface StPopoverTriggerProps {
|
|
92
|
-
/** 自定义类名 */
|
|
93
|
-
class?: ClassValue;
|
|
94
|
-
/** 自定义样式 */
|
|
95
|
-
style?: StyleValue;
|
|
96
100
|
/** 是否作为子元素渲染 */
|
|
97
101
|
asChild?: boolean;
|
|
98
102
|
}
|
|
99
103
|
|
|
104
|
+
/**
|
|
105
|
+
* StPopoverTrigger 触发器组件插槽接口
|
|
106
|
+
* */
|
|
107
|
+
export interface StPopoverTriggerSlots {
|
|
108
|
+
/** 默认插槽 */
|
|
109
|
+
default?: () => any;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* StPopoverTrigger 触发器组件事件接口
|
|
114
|
+
* */
|
|
115
|
+
export interface StPopoverTriggerEmits {}
|
|
116
|
+
|
|
100
117
|
/**
|
|
101
118
|
* PopoverContent 内容组件属性接口
|
|
102
119
|
* */
|
|
103
120
|
export interface StPopoverContentProps {
|
|
104
|
-
/** 自定义类名 */
|
|
105
|
-
class?: ClassValue;
|
|
106
|
-
/** 自定义样式 */
|
|
107
|
-
style?: StyleValue;
|
|
108
121
|
/** 是否显示箭头 */
|
|
109
122
|
showArrow?: boolean;
|
|
110
123
|
/** 点击外部是否关闭 */
|
|
@@ -114,15 +127,33 @@ export interface StPopoverContentProps {
|
|
|
114
127
|
}
|
|
115
128
|
|
|
116
129
|
/**
|
|
117
|
-
*
|
|
130
|
+
* PopoverContent 内容组件插槽接口
|
|
118
131
|
* */
|
|
119
|
-
export interface
|
|
120
|
-
/**
|
|
121
|
-
|
|
122
|
-
/** 自定义样式 */
|
|
123
|
-
style?: StyleValue;
|
|
132
|
+
export interface StPopoverContentSlots {
|
|
133
|
+
/** 默认插槽 */
|
|
134
|
+
default?: () => any;
|
|
124
135
|
}
|
|
125
136
|
|
|
137
|
+
/**
|
|
138
|
+
* PopoverContent 内容组件事件接口
|
|
139
|
+
* */
|
|
140
|
+
export interface StPopoverContentEmits {}
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* PopoverArrow 箭头组件属性接口
|
|
144
|
+
* */
|
|
145
|
+
export interface StPopoverArrowProps {}
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* PopoverArrow 箭头组件插槽接口
|
|
149
|
+
* */
|
|
150
|
+
export interface StPopoverArrowSlots {}
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* PopoverArrow 箭头组件事件接口
|
|
154
|
+
* */
|
|
155
|
+
export interface StPopoverArrowEmits {}
|
|
156
|
+
|
|
126
157
|
/**
|
|
127
158
|
* StPopover 封装组件属性接口(向后兼容)
|
|
128
159
|
* */
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { ComputedRef, Ref } from 'vue';
|
|
2
|
+
import { StPopoverPlacement, StPopoverTrigger } from './types.d.ts';
|
|
3
|
+
/**
|
|
4
|
+
* Popover 注入上下文接口
|
|
5
|
+
* 由 st-popover-container.vue 提供,供 StPopoverTrigger / StPopoverContent / StPopoverArrow 注入
|
|
6
|
+
* */
|
|
7
|
+
export interface StPopoverContext {
|
|
8
|
+
/** 当前可见状态(受控/非受控) */
|
|
9
|
+
visible: ComputedRef<boolean> & {
|
|
10
|
+
value: boolean;
|
|
11
|
+
};
|
|
12
|
+
/** 触发器元素引用 */
|
|
13
|
+
triggerRef: Ref<HTMLElement | null>;
|
|
14
|
+
/** 弹出层元素引用 */
|
|
15
|
+
popoverRef: Ref<HTMLElement | null>;
|
|
16
|
+
/** 触发方式 */
|
|
17
|
+
trigger: ComputedRef<StPopoverTrigger>;
|
|
18
|
+
/** 是否禁用 */
|
|
19
|
+
disabled: ComputedRef<boolean>;
|
|
20
|
+
/** 是否在受控模式下 */
|
|
21
|
+
isControlled: ComputedRef<boolean>;
|
|
22
|
+
/** 实际弹出方向(自动翻转后) */
|
|
23
|
+
actualPlacement: Ref<StPopoverPlacement>;
|
|
24
|
+
/** 弹出层位置 */
|
|
25
|
+
popoverPosition: Ref<{
|
|
26
|
+
top: number;
|
|
27
|
+
left: number;
|
|
28
|
+
}>;
|
|
29
|
+
/** 变换原点 */
|
|
30
|
+
transformOrigin: Ref<string>;
|
|
31
|
+
/** 是否已定位 */
|
|
32
|
+
positioned: Ref<boolean>;
|
|
33
|
+
/** 最后一次鼠标事件 */
|
|
34
|
+
lastMouseEvent: Ref<MouseEvent | null>;
|
|
35
|
+
/** 显示弹出层 */
|
|
36
|
+
show: (e?: MouseEvent, immediate?: boolean) => void;
|
|
37
|
+
/** 隐藏弹出层 */
|
|
38
|
+
hide: (immediate?: boolean) => void;
|
|
39
|
+
/** 切换显示状态 */
|
|
40
|
+
toggle: () => void;
|
|
41
|
+
/** 清除所有定时器 */
|
|
42
|
+
clearTimers: () => void;
|
|
43
|
+
/** 过渡动画结束处理 */
|
|
44
|
+
handleAfterLeave: () => void;
|
|
45
|
+
/** 计算弹出层位置 */
|
|
46
|
+
calculatePosition: () => Promise<void>;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Popover 依赖注入状态管理
|
|
50
|
+
*
|
|
51
|
+
* @example 提供方(st-popover-container.vue):
|
|
52
|
+
* useProvidePopover({
|
|
53
|
+
* visible, triggerRef, popoverRef, trigger, disabled, isControlled,
|
|
54
|
+
* actualPlacement, popoverPosition, transformOrigin, positioned,
|
|
55
|
+
* lastMouseEvent, show, hide, toggle, clearTimers, handleAfterLeave, calculatePosition
|
|
56
|
+
* });
|
|
57
|
+
*
|
|
58
|
+
* @example 注入方(StPopoverTrigger / StPopoverContent / StPopoverArrow):
|
|
59
|
+
* const popover = useInjectPopover();
|
|
60
|
+
* if (!popover) throw new Error('Popover* must be used within a Popover');
|
|
61
|
+
*/
|
|
62
|
+
export declare const useProvidePopover: (context: StPopoverContext) => StPopoverContext, useInjectPopover: () => StPopoverContext;
|
|
@@ -26,11 +26,7 @@ export declare const StProgress: {
|
|
|
26
26
|
percent: number;
|
|
27
27
|
showText: boolean;
|
|
28
28
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
29
|
-
$slots:
|
|
30
|
-
default?: (props: {}) => any;
|
|
31
|
-
} & {
|
|
32
|
-
default?: (props: {}) => any;
|
|
33
|
-
};
|
|
29
|
+
$slots: import('./types.d.ts').StProgressSlots;
|
|
34
30
|
});
|
|
35
31
|
export default StProgress;
|
|
36
32
|
export type * from './types.d.ts';
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import { StProgressProps } from './types.d.ts';
|
|
2
|
-
|
|
3
|
-
type __VLS_Slots = {} & {
|
|
4
|
-
default?: (props: typeof __VLS_1) => any;
|
|
5
|
-
} & {
|
|
6
|
-
default?: (props: typeof __VLS_3) => any;
|
|
7
|
-
};
|
|
1
|
+
import { StProgressProps, StProgressSlots } from './types.d.ts';
|
|
2
|
+
type __VLS_Slots = StProgressSlots;
|
|
8
3
|
declare const __VLS_base: import('vue').DefineComponent<StProgressProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<StProgressProps> & Readonly<{}>, {
|
|
9
4
|
type: import('./types.d.ts').StProgressType;
|
|
10
5
|
strokeWidth: number;
|
|
@@ -33,9 +33,7 @@ export declare const StScrollbar: {
|
|
|
33
33
|
direction: import('./types.d.ts').StScrollbarDirection;
|
|
34
34
|
alwaysVisible: boolean;
|
|
35
35
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
36
|
-
$slots:
|
|
37
|
-
default?: (props: {}) => any;
|
|
38
|
-
};
|
|
36
|
+
$slots: import('./types.d.ts').StScrollbarSlots;
|
|
39
37
|
});
|
|
40
38
|
export default StScrollbar;
|
|
41
39
|
export type * from './types.d.ts';
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import { StScrollbarExpose, StScrollbarProps } from './types.d.ts';
|
|
2
|
-
|
|
3
|
-
type __VLS_Slots = {} & {
|
|
4
|
-
default?: (props: typeof __VLS_1) => any;
|
|
5
|
-
};
|
|
1
|
+
import { StScrollbarExpose, StScrollbarProps, StScrollbarSlots } from './types.d.ts';
|
|
2
|
+
type __VLS_Slots = StScrollbarSlots;
|
|
6
3
|
declare const __VLS_base: import('vue').DefineComponent<StScrollbarProps, StScrollbarExpose, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
4
|
scroll: (event: Event) => any;
|
|
8
5
|
}, string, import('vue').PublicProps, Readonly<StScrollbarProps> & Readonly<{
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import type { ClassValue, StyleValue } from 'vue';
|
|
2
|
-
|
|
3
1
|
/**
|
|
4
2
|
* 滚动条方向类型
|
|
5
3
|
*/
|
|
@@ -9,10 +7,6 @@ export type StScrollbarDirection = 'vertical' | 'horizontal' | 'both';
|
|
|
9
7
|
* 滚动条组件属性接口
|
|
10
8
|
*/
|
|
11
9
|
export interface StScrollbarProps {
|
|
12
|
-
/** 自定义类名 */
|
|
13
|
-
class?: ClassValue;
|
|
14
|
-
/** 自定义样式 */
|
|
15
|
-
style?: StyleValue;
|
|
16
10
|
/** 滚动条宽度(垂直滚动条) */
|
|
17
11
|
width?: string | number;
|
|
18
12
|
/** 滚动条高度(水平滚动条) */
|
|
@@ -1,18 +1,53 @@
|
|
|
1
|
-
export declare const StSegmented:
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
export declare const StSegmented: {
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types.d.ts').StSegmentedProps & {
|
|
3
|
+
modelValue?: string | number | undefined;
|
|
4
|
+
}> & Readonly<{
|
|
5
|
+
onChange?: (value: string | number) => any;
|
|
6
|
+
"onUpdate:modelValue"?: (value: string | number) => any;
|
|
7
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
+
change: (value: string | number) => any;
|
|
9
|
+
"update:modelValue": (value: string | number) => any;
|
|
10
|
+
}, import('vue').PublicProps, {
|
|
11
|
+
disabled: boolean;
|
|
12
|
+
labelKey: string;
|
|
13
|
+
valueKey: string;
|
|
14
|
+
options: import('./types.d.ts').StSegmentedOption[];
|
|
15
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
16
|
+
P: {};
|
|
17
|
+
B: {};
|
|
18
|
+
D: {};
|
|
19
|
+
C: {};
|
|
20
|
+
M: {};
|
|
21
|
+
Defaults: {};
|
|
22
|
+
}, Readonly<import('./types.d.ts').StSegmentedProps & {
|
|
23
|
+
modelValue?: string | number | undefined;
|
|
24
|
+
}> & Readonly<{
|
|
25
|
+
onChange?: (value: string | number) => any;
|
|
26
|
+
"onUpdate:modelValue"?: (value: string | number) => any;
|
|
27
|
+
}>, {}, {}, {}, {}, {
|
|
28
|
+
disabled: boolean;
|
|
29
|
+
labelKey: string;
|
|
30
|
+
valueKey: string;
|
|
31
|
+
options: import('./types.d.ts').StSegmentedOption[];
|
|
32
|
+
}>;
|
|
33
|
+
__isFragment?: never;
|
|
34
|
+
__isTeleport?: never;
|
|
35
|
+
__isSuspense?: never;
|
|
36
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('./types.d.ts').StSegmentedProps & {
|
|
7
37
|
modelValue?: string | number | undefined;
|
|
8
38
|
}> & Readonly<{
|
|
9
39
|
onChange?: (value: string | number) => any;
|
|
10
40
|
"onUpdate:modelValue"?: (value: string | number) => any;
|
|
11
|
-
}>, {
|
|
41
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
42
|
+
change: (value: string | number) => any;
|
|
43
|
+
"update:modelValue": (value: string | number) => any;
|
|
44
|
+
}, string, {
|
|
12
45
|
disabled: boolean;
|
|
13
46
|
labelKey: string;
|
|
14
47
|
valueKey: string;
|
|
15
48
|
options: import('./types.d.ts').StSegmentedOption[];
|
|
16
|
-
}, {},
|
|
49
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
50
|
+
$slots: import('./types.d.ts').StSegmentedSlots;
|
|
51
|
+
});
|
|
17
52
|
export default StSegmented;
|
|
18
53
|
export type * from './types.d.ts';
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { StSegmentedOption, StSegmentedProps } from './types.d.ts';
|
|
1
|
+
import { StSegmentedOption, StSegmentedProps, StSegmentedSlots } from './types.d.ts';
|
|
2
|
+
type __VLS_Slots = StSegmentedSlots;
|
|
2
3
|
type __VLS_Props = StSegmentedProps;
|
|
3
4
|
type __VLS_ModelProps = {
|
|
4
5
|
modelValue?: string | number | undefined;
|
|
5
6
|
};
|
|
6
7
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
7
|
-
declare const
|
|
8
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
9
|
change: (value: string | number) => any;
|
|
9
10
|
"update:modelValue": (value: string | number) => any;
|
|
10
11
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
@@ -16,5 +17,11 @@ declare const __VLS_export: import('vue').DefineComponent<__VLS_PublicProps, {},
|
|
|
16
17
|
valueKey: string;
|
|
17
18
|
options: StSegmentedOption[];
|
|
18
19
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
20
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
19
21
|
declare const _default: typeof __VLS_export;
|
|
20
22
|
export default _default;
|
|
23
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
24
|
+
new (): {
|
|
25
|
+
$slots: S;
|
|
26
|
+
};
|
|
27
|
+
};
|