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
|
@@ -124,11 +124,7 @@ export declare const StSelect: {
|
|
|
124
124
|
emptyClass: string;
|
|
125
125
|
emptyStyle: import('vue').StyleValue;
|
|
126
126
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
127
|
-
$slots:
|
|
128
|
-
prefix?: (props: {}) => any;
|
|
129
|
-
} & {
|
|
130
|
-
empty?: (props: {}) => any;
|
|
131
|
-
};
|
|
127
|
+
$slots: import('./types.d.ts').StSelectSlots;
|
|
132
128
|
}) & {
|
|
133
129
|
StSelectContainer: {
|
|
134
130
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./st-select-container').StSelectContainerProps> & Readonly<{
|
|
@@ -216,79 +212,52 @@ export declare const StSelect: {
|
|
|
216
212
|
};
|
|
217
213
|
});
|
|
218
214
|
StSelectContent: {
|
|
219
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./st-select-content').StSelectContentProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
220
|
-
style: any;
|
|
221
|
-
class: any;
|
|
222
|
-
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
215
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./st-select-content').StSelectContentProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
223
216
|
P: {};
|
|
224
217
|
B: {};
|
|
225
218
|
D: {};
|
|
226
219
|
C: {};
|
|
227
220
|
M: {};
|
|
228
221
|
Defaults: {};
|
|
229
|
-
}, Readonly<import('./st-select-content').StSelectContentProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
230
|
-
style: any;
|
|
231
|
-
class: any;
|
|
232
|
-
}>;
|
|
222
|
+
}, Readonly<import('./st-select-content').StSelectContentProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
233
223
|
__isFragment?: never;
|
|
234
224
|
__isTeleport?: never;
|
|
235
225
|
__isSuspense?: never;
|
|
236
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('./st-select-content').StSelectContentProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
237
|
-
style: any;
|
|
238
|
-
class: any;
|
|
239
|
-
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
226
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('./st-select-content').StSelectContentProps> & 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 () => {
|
|
240
227
|
$slots: {
|
|
241
228
|
default?: (props: {}) => any;
|
|
242
229
|
};
|
|
243
230
|
});
|
|
244
231
|
StSelectEmpty: {
|
|
245
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./st-select-empty').StSelectEmptyProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
246
|
-
style: any;
|
|
247
|
-
class: any;
|
|
248
|
-
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
232
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./st-select-empty').StSelectEmptyProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
249
233
|
P: {};
|
|
250
234
|
B: {};
|
|
251
235
|
D: {};
|
|
252
236
|
C: {};
|
|
253
237
|
M: {};
|
|
254
238
|
Defaults: {};
|
|
255
|
-
}, Readonly<import('./st-select-empty').StSelectEmptyProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
256
|
-
style: any;
|
|
257
|
-
class: any;
|
|
258
|
-
}>;
|
|
239
|
+
}, Readonly<import('./st-select-empty').StSelectEmptyProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
259
240
|
__isFragment?: never;
|
|
260
241
|
__isTeleport?: never;
|
|
261
242
|
__isSuspense?: never;
|
|
262
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('./st-select-empty').StSelectEmptyProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
263
|
-
style: any;
|
|
264
|
-
class: any;
|
|
265
|
-
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
243
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('./st-select-empty').StSelectEmptyProps> & 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 () => {
|
|
266
244
|
$slots: {
|
|
267
245
|
default?: (props: {}) => any;
|
|
268
246
|
};
|
|
269
247
|
});
|
|
270
248
|
StSelectGroup: {
|
|
271
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./st-select-group').StSelectGroupProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
272
|
-
style: any;
|
|
273
|
-
class: any;
|
|
274
|
-
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
249
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./st-select-group').StSelectGroupProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
275
250
|
P: {};
|
|
276
251
|
B: {};
|
|
277
252
|
D: {};
|
|
278
253
|
C: {};
|
|
279
254
|
M: {};
|
|
280
255
|
Defaults: {};
|
|
281
|
-
}, Readonly<import('./st-select-group').StSelectGroupProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
282
|
-
style: any;
|
|
283
|
-
class: any;
|
|
284
|
-
}>;
|
|
256
|
+
}, Readonly<import('./st-select-group').StSelectGroupProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
285
257
|
__isFragment?: never;
|
|
286
258
|
__isTeleport?: never;
|
|
287
259
|
__isSuspense?: never;
|
|
288
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('./st-select-group').StSelectGroupProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
289
|
-
style: any;
|
|
290
|
-
class: any;
|
|
291
|
-
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
260
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('./st-select-group').StSelectGroupProps> & 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 () => {
|
|
292
261
|
$slots: {
|
|
293
262
|
default?: (props: {}) => any;
|
|
294
263
|
};
|
|
@@ -296,8 +265,6 @@ export declare const StSelect: {
|
|
|
296
265
|
StSelectItem: import('vue').DefineComponent<import('./st-select-item').StSelectItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('./st-select-item').StSelectItemProps> & Readonly<{}>, {
|
|
297
266
|
disabled: boolean;
|
|
298
267
|
label: string;
|
|
299
|
-
style: any;
|
|
300
|
-
class: any;
|
|
301
268
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
302
269
|
StSelectTrigger: {
|
|
303
270
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./st-select-trigger').StSelectTriggerProps> & Readonly<{
|
|
@@ -404,8 +371,6 @@ export declare const StSelect: {
|
|
|
404
371
|
click: (event: MouseEvent) => any;
|
|
405
372
|
}, import('vue').PublicProps, {
|
|
406
373
|
disabled: boolean;
|
|
407
|
-
style: any;
|
|
408
|
-
class: any;
|
|
409
374
|
placeholder: string;
|
|
410
375
|
clearable: boolean;
|
|
411
376
|
displayValue: string;
|
|
@@ -518,8 +483,6 @@ export declare const StSelect: {
|
|
|
518
483
|
}>;
|
|
519
484
|
}, {}, {}, {}, {
|
|
520
485
|
disabled: boolean;
|
|
521
|
-
style: any;
|
|
522
|
-
class: any;
|
|
523
486
|
placeholder: string;
|
|
524
487
|
clearable: boolean;
|
|
525
488
|
displayValue: string;
|
|
@@ -632,8 +595,6 @@ export declare const StSelect: {
|
|
|
632
595
|
click: (event: MouseEvent) => any;
|
|
633
596
|
}, string, {
|
|
634
597
|
disabled: boolean;
|
|
635
|
-
style: any;
|
|
636
|
-
class: any;
|
|
637
598
|
placeholder: string;
|
|
638
599
|
clearable: boolean;
|
|
639
600
|
displayValue: string;
|
|
@@ -730,79 +691,52 @@ export declare const StSelectContainer: {
|
|
|
730
691
|
};
|
|
731
692
|
});
|
|
732
693
|
export declare const StSelectContent: {
|
|
733
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./st-select-content').StSelectContentProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
734
|
-
style: any;
|
|
735
|
-
class: any;
|
|
736
|
-
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
694
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./st-select-content').StSelectContentProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
737
695
|
P: {};
|
|
738
696
|
B: {};
|
|
739
697
|
D: {};
|
|
740
698
|
C: {};
|
|
741
699
|
M: {};
|
|
742
700
|
Defaults: {};
|
|
743
|
-
}, Readonly<import('./st-select-content').StSelectContentProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
744
|
-
style: any;
|
|
745
|
-
class: any;
|
|
746
|
-
}>;
|
|
701
|
+
}, Readonly<import('./st-select-content').StSelectContentProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
747
702
|
__isFragment?: never;
|
|
748
703
|
__isTeleport?: never;
|
|
749
704
|
__isSuspense?: never;
|
|
750
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('./st-select-content').StSelectContentProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
751
|
-
style: any;
|
|
752
|
-
class: any;
|
|
753
|
-
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
705
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('./st-select-content').StSelectContentProps> & 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 () => {
|
|
754
706
|
$slots: {
|
|
755
707
|
default?: (props: {}) => any;
|
|
756
708
|
};
|
|
757
709
|
});
|
|
758
710
|
export declare const StSelectEmpty: {
|
|
759
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./st-select-empty').StSelectEmptyProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
760
|
-
style: any;
|
|
761
|
-
class: any;
|
|
762
|
-
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
711
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./st-select-empty').StSelectEmptyProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
763
712
|
P: {};
|
|
764
713
|
B: {};
|
|
765
714
|
D: {};
|
|
766
715
|
C: {};
|
|
767
716
|
M: {};
|
|
768
717
|
Defaults: {};
|
|
769
|
-
}, Readonly<import('./st-select-empty').StSelectEmptyProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
770
|
-
style: any;
|
|
771
|
-
class: any;
|
|
772
|
-
}>;
|
|
718
|
+
}, Readonly<import('./st-select-empty').StSelectEmptyProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
773
719
|
__isFragment?: never;
|
|
774
720
|
__isTeleport?: never;
|
|
775
721
|
__isSuspense?: never;
|
|
776
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('./st-select-empty').StSelectEmptyProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
777
|
-
style: any;
|
|
778
|
-
class: any;
|
|
779
|
-
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
722
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('./st-select-empty').StSelectEmptyProps> & 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 () => {
|
|
780
723
|
$slots: {
|
|
781
724
|
default?: (props: {}) => any;
|
|
782
725
|
};
|
|
783
726
|
});
|
|
784
727
|
export declare const StSelectGroup: {
|
|
785
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./st-select-group').StSelectGroupProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
786
|
-
style: any;
|
|
787
|
-
class: any;
|
|
788
|
-
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
728
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./st-select-group').StSelectGroupProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
789
729
|
P: {};
|
|
790
730
|
B: {};
|
|
791
731
|
D: {};
|
|
792
732
|
C: {};
|
|
793
733
|
M: {};
|
|
794
734
|
Defaults: {};
|
|
795
|
-
}, Readonly<import('./st-select-group').StSelectGroupProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
796
|
-
style: any;
|
|
797
|
-
class: any;
|
|
798
|
-
}>;
|
|
735
|
+
}, Readonly<import('./st-select-group').StSelectGroupProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
799
736
|
__isFragment?: never;
|
|
800
737
|
__isTeleport?: never;
|
|
801
738
|
__isSuspense?: never;
|
|
802
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('./st-select-group').StSelectGroupProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
803
|
-
style: any;
|
|
804
|
-
class: any;
|
|
805
|
-
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
739
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('./st-select-group').StSelectGroupProps> & 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 () => {
|
|
806
740
|
$slots: {
|
|
807
741
|
default?: (props: {}) => any;
|
|
808
742
|
};
|
|
@@ -810,8 +744,6 @@ export declare const StSelectGroup: {
|
|
|
810
744
|
export declare const StSelectItem: import('vue').DefineComponent<import('./st-select-item').StSelectItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('./st-select-item').StSelectItemProps> & Readonly<{}>, {
|
|
811
745
|
disabled: boolean;
|
|
812
746
|
label: string;
|
|
813
|
-
style: any;
|
|
814
|
-
class: any;
|
|
815
747
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
816
748
|
export declare const StSelectTrigger: {
|
|
817
749
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./st-select-trigger').StSelectTriggerProps> & Readonly<{
|
|
@@ -918,8 +850,6 @@ export declare const StSelectTrigger: {
|
|
|
918
850
|
click: (event: MouseEvent) => any;
|
|
919
851
|
}, import('vue').PublicProps, {
|
|
920
852
|
disabled: boolean;
|
|
921
|
-
style: any;
|
|
922
|
-
class: any;
|
|
923
853
|
placeholder: string;
|
|
924
854
|
clearable: boolean;
|
|
925
855
|
displayValue: string;
|
|
@@ -1032,8 +962,6 @@ export declare const StSelectTrigger: {
|
|
|
1032
962
|
}>;
|
|
1033
963
|
}, {}, {}, {}, {
|
|
1034
964
|
disabled: boolean;
|
|
1035
|
-
style: any;
|
|
1036
|
-
class: any;
|
|
1037
965
|
placeholder: string;
|
|
1038
966
|
clearable: boolean;
|
|
1039
967
|
displayValue: string;
|
|
@@ -1146,8 +1074,6 @@ export declare const StSelectTrigger: {
|
|
|
1146
1074
|
click: (event: MouseEvent) => any;
|
|
1147
1075
|
}, string, {
|
|
1148
1076
|
disabled: boolean;
|
|
1149
|
-
style: any;
|
|
1150
|
-
class: any;
|
|
1151
1077
|
placeholder: string;
|
|
1152
1078
|
clearable: boolean;
|
|
1153
1079
|
displayValue: string;
|
|
@@ -1,17 +1,10 @@
|
|
|
1
1
|
export interface StSelectContentProps {
|
|
2
|
-
/** 自定义类名 */
|
|
3
|
-
class?: any;
|
|
4
|
-
/** 自定义样式 */
|
|
5
|
-
style?: any;
|
|
6
2
|
}
|
|
7
3
|
declare var __VLS_1: {};
|
|
8
4
|
type __VLS_Slots = {} & {
|
|
9
5
|
default?: (props: typeof __VLS_1) => any;
|
|
10
6
|
};
|
|
11
|
-
declare const __VLS_base: import('vue').DefineComponent<StSelectContentProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<StSelectContentProps> & Readonly<{}>, {
|
|
12
|
-
style: any;
|
|
13
|
-
class: any;
|
|
14
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
7
|
+
declare const __VLS_base: import('vue').DefineComponent<StSelectContentProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<StSelectContentProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
15
8
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
16
9
|
declare const _default: typeof __VLS_export;
|
|
17
10
|
export default _default;
|
|
@@ -1,17 +1,10 @@
|
|
|
1
1
|
export interface StSelectEmptyProps {
|
|
2
|
-
/** 自定义类名 */
|
|
3
|
-
class?: any;
|
|
4
|
-
/** 自定义样式 */
|
|
5
|
-
style?: any;
|
|
6
2
|
}
|
|
7
3
|
declare var __VLS_1: {};
|
|
8
4
|
type __VLS_Slots = {} & {
|
|
9
5
|
default?: (props: typeof __VLS_1) => any;
|
|
10
6
|
};
|
|
11
|
-
declare const __VLS_base: import('vue').DefineComponent<StSelectEmptyProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<StSelectEmptyProps> & Readonly<{}>, {
|
|
12
|
-
style: any;
|
|
13
|
-
class: any;
|
|
14
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
7
|
+
declare const __VLS_base: import('vue').DefineComponent<StSelectEmptyProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<StSelectEmptyProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
15
8
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
16
9
|
declare const _default: typeof __VLS_export;
|
|
17
10
|
export default _default;
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
export interface StSelectGroupProps {
|
|
2
|
-
/** 自定义类名 */
|
|
3
|
-
class?: any;
|
|
4
|
-
/** 自定义样式 */
|
|
5
|
-
style?: any;
|
|
6
2
|
/** 分组标签 */
|
|
7
3
|
label: string;
|
|
8
4
|
}
|
|
@@ -10,10 +6,7 @@ declare var __VLS_1: {};
|
|
|
10
6
|
type __VLS_Slots = {} & {
|
|
11
7
|
default?: (props: typeof __VLS_1) => any;
|
|
12
8
|
};
|
|
13
|
-
declare const __VLS_base: import('vue').DefineComponent<StSelectGroupProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<StSelectGroupProps> & Readonly<{}>, {
|
|
14
|
-
style: any;
|
|
15
|
-
class: any;
|
|
16
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const __VLS_base: import('vue').DefineComponent<StSelectGroupProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<StSelectGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
10
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
18
11
|
declare const _default: typeof __VLS_export;
|
|
19
12
|
export default _default;
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
export interface StSelectItemProps {
|
|
2
|
-
/** 自定义类名 */
|
|
3
|
-
class?: any;
|
|
4
|
-
/** 自定义样式 */
|
|
5
|
-
style?: any;
|
|
6
2
|
/** 选项值 */
|
|
7
3
|
value: string | number;
|
|
8
4
|
/** 显示文本 */
|
|
@@ -13,8 +9,6 @@ export interface StSelectItemProps {
|
|
|
13
9
|
declare const __VLS_export: import('vue').DefineComponent<StSelectItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<StSelectItemProps> & Readonly<{}>, {
|
|
14
10
|
disabled: boolean;
|
|
15
11
|
label: string;
|
|
16
|
-
style: any;
|
|
17
|
-
class: any;
|
|
18
12
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
19
13
|
declare const _default: typeof __VLS_export;
|
|
20
14
|
export default _default;
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
export interface StSelectTriggerProps {
|
|
2
|
-
/** 自定义类名 */
|
|
3
|
-
class?: any;
|
|
4
|
-
/** 自定义样式 */
|
|
5
|
-
style?: any;
|
|
6
2
|
/** 占位符 */
|
|
7
3
|
placeholder?: string;
|
|
8
4
|
/** 是否禁用 */
|
|
@@ -41,7 +37,7 @@ declare const __VLS_base: import('vue').DefineComponent<StSelectTriggerProps, {
|
|
|
41
37
|
$host: Element | null;
|
|
42
38
|
$emit: (event: string, ...args: any[]) => void;
|
|
43
39
|
$el: any;
|
|
44
|
-
$options: import('vue').ComponentOptionsBase<Readonly<import('../st-input').StInputGroupProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
40
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('../st-input/types').StInputGroupProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
45
41
|
disabled: boolean;
|
|
46
42
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
47
43
|
beforeCreate?: (() => void) | (() => void)[];
|
|
@@ -65,8 +61,8 @@ declare const __VLS_base: import('vue').DefineComponent<StSelectTriggerProps, {
|
|
|
65
61
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
66
62
|
} & Readonly<{
|
|
67
63
|
disabled: boolean;
|
|
68
|
-
}> & Omit<Readonly<import('../st-input').StInputGroupProps> & Readonly<{}>, "disabled"> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
69
|
-
$slots: import('../st-input').StInputGroupSlots;
|
|
64
|
+
}> & Omit<Readonly<import('../st-input/types').StInputGroupProps> & Readonly<{}>, "disabled"> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
65
|
+
$slots: import('../st-input/types').StInputGroupSlots;
|
|
70
66
|
}, {
|
|
71
67
|
$: import('vue').ComponentInternalInstance;
|
|
72
68
|
$data: {};
|
|
@@ -87,7 +83,7 @@ declare const __VLS_base: import('vue').DefineComponent<StSelectTriggerProps, {
|
|
|
87
83
|
$host: Element | null;
|
|
88
84
|
$emit: (event: string, ...args: any[]) => void;
|
|
89
85
|
$el: any;
|
|
90
|
-
$options: import('vue').ComponentOptionsBase<Readonly<import('../st-input').StInputGroupProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
86
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('../st-input/types').StInputGroupProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
91
87
|
disabled: boolean;
|
|
92
88
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
93
89
|
beforeCreate?: (() => void) | (() => void)[];
|
|
@@ -111,8 +107,8 @@ declare const __VLS_base: import('vue').DefineComponent<StSelectTriggerProps, {
|
|
|
111
107
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
112
108
|
} & Readonly<{
|
|
113
109
|
disabled: boolean;
|
|
114
|
-
}> & Omit<Readonly<import('../st-input').StInputGroupProps> & Readonly<{}>, "disabled"> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
115
|
-
$slots: import('../st-input').StInputGroupSlots;
|
|
110
|
+
}> & Omit<Readonly<import('../st-input/types').StInputGroupProps> & Readonly<{}>, "disabled"> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
111
|
+
$slots: import('../st-input/types').StInputGroupSlots;
|
|
116
112
|
}>;
|
|
117
113
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
118
114
|
clear: () => any;
|
|
@@ -122,8 +118,6 @@ declare const __VLS_base: import('vue').DefineComponent<StSelectTriggerProps, {
|
|
|
122
118
|
onClick?: (event: MouseEvent) => any;
|
|
123
119
|
}>, {
|
|
124
120
|
disabled: boolean;
|
|
125
|
-
style: any;
|
|
126
|
-
class: any;
|
|
127
121
|
placeholder: string;
|
|
128
122
|
clearable: boolean;
|
|
129
123
|
displayValue: string;
|
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
import { StSelectExpose, StSelectOption, StSelectProps } from './types.d.ts';
|
|
1
|
+
import { StSelectExpose, StSelectOption, StSelectProps, StSelectSlots } from './types.d.ts';
|
|
2
|
+
type __VLS_Slots = StSelectSlots;
|
|
2
3
|
type __VLS_Props = StSelectProps;
|
|
3
4
|
type __VLS_ModelProps = {
|
|
4
5
|
modelValue?: string | number | (string | number)[] | undefined;
|
|
5
6
|
};
|
|
6
7
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
7
|
-
declare var __VLS_42: {}, __VLS_68: {};
|
|
8
|
-
type __VLS_Slots = {} & {
|
|
9
|
-
prefix?: (props: typeof __VLS_42) => any;
|
|
10
|
-
} & {
|
|
11
|
-
empty?: (props: typeof __VLS_68) => any;
|
|
12
|
-
};
|
|
13
8
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, StSelectExpose, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
14
9
|
clear: () => any;
|
|
15
10
|
filter: (value: string) => any;
|
|
@@ -46,6 +46,14 @@ export interface StSelectContainerEmits {
|
|
|
46
46
|
filter: [value: string];
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
+
/**
|
|
50
|
+
* Select 容器组件插槽接口
|
|
51
|
+
* */
|
|
52
|
+
export interface StSelectContainerSlots {
|
|
53
|
+
/** 默认插槽 */
|
|
54
|
+
default?: () => unknown;
|
|
55
|
+
}
|
|
56
|
+
|
|
49
57
|
/**
|
|
50
58
|
* Select 容器组件暴露的方法接口
|
|
51
59
|
* */
|
|
@@ -92,6 +100,14 @@ export interface StSelectTriggerEmits {
|
|
|
92
100
|
click: [event: MouseEvent];
|
|
93
101
|
}
|
|
94
102
|
|
|
103
|
+
/**
|
|
104
|
+
* SelectTrigger 触发器组件插槽接口
|
|
105
|
+
* */
|
|
106
|
+
export interface StSelectTriggerSlots {
|
|
107
|
+
/** 默认插槽 */
|
|
108
|
+
default?: () => unknown;
|
|
109
|
+
}
|
|
110
|
+
|
|
95
111
|
/**
|
|
96
112
|
* SelectTrigger 触发器组件暴露的方法接口
|
|
97
113
|
* */
|
|
@@ -114,6 +130,19 @@ export interface StSelectContentProps {
|
|
|
114
130
|
style?: StyleValue;
|
|
115
131
|
}
|
|
116
132
|
|
|
133
|
+
/**
|
|
134
|
+
* SelectContent 内容组件插槽接口
|
|
135
|
+
* */
|
|
136
|
+
export interface StSelectContentSlots {
|
|
137
|
+
/** 默认插槽 */
|
|
138
|
+
default?: () => unknown;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* SelectContent 内容组件事件接口
|
|
143
|
+
* */
|
|
144
|
+
export interface StSelectContentEmits {}
|
|
145
|
+
|
|
117
146
|
/**
|
|
118
147
|
* SelectItem 选项组件属性接口
|
|
119
148
|
* */
|
|
@@ -130,6 +159,19 @@ export interface StSelectItemProps {
|
|
|
130
159
|
disabled?: boolean;
|
|
131
160
|
}
|
|
132
161
|
|
|
162
|
+
/**
|
|
163
|
+
* SelectItem 选项组件插槽接口
|
|
164
|
+
* */
|
|
165
|
+
export interface StSelectItemSlots {
|
|
166
|
+
/** 默认插槽 */
|
|
167
|
+
default?: () => unknown;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* SelectItem 选项组件事件接口
|
|
172
|
+
* */
|
|
173
|
+
export interface StSelectItemEmits {}
|
|
174
|
+
|
|
133
175
|
/**
|
|
134
176
|
* SelectGroup 分组组件属性接口
|
|
135
177
|
* */
|
|
@@ -142,6 +184,19 @@ export interface StSelectGroupProps {
|
|
|
142
184
|
label: string;
|
|
143
185
|
}
|
|
144
186
|
|
|
187
|
+
/**
|
|
188
|
+
* SelectGroup 分组组件插槽接口
|
|
189
|
+
* */
|
|
190
|
+
export interface StSelectGroupSlots {
|
|
191
|
+
/** 默认插槽 */
|
|
192
|
+
default?: () => unknown;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* SelectGroup 分组组件事件接口
|
|
197
|
+
* */
|
|
198
|
+
export interface StSelectGroupEmits {}
|
|
199
|
+
|
|
145
200
|
/**
|
|
146
201
|
* SelectEmpty 空状态组件属性接口
|
|
147
202
|
* */
|
|
@@ -152,6 +207,19 @@ export interface StSelectEmptyProps {
|
|
|
152
207
|
style?: StyleValue;
|
|
153
208
|
}
|
|
154
209
|
|
|
210
|
+
/**
|
|
211
|
+
* SelectEmpty 空状态组件插槽接口
|
|
212
|
+
* */
|
|
213
|
+
export interface StSelectEmptySlots {
|
|
214
|
+
/** 默认插槽 */
|
|
215
|
+
default?: () => unknown;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* SelectEmpty 空状态组件事件接口
|
|
220
|
+
* */
|
|
221
|
+
export interface StSelectEmptyEmits {}
|
|
222
|
+
|
|
155
223
|
/**
|
|
156
224
|
* StSelect 封装组件属性接口(向后兼容)
|
|
157
225
|
* */
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { ComputedRef, Ref, Slots } from 'vue';
|
|
2
|
+
import { StSelectOption } from './types.d.ts';
|
|
3
|
+
/**
|
|
4
|
+
* Select 注入上下文接口
|
|
5
|
+
* 由 st-select-container.vue 提供,供各 Select 子组件注入
|
|
6
|
+
* */
|
|
7
|
+
export interface StSelectContext {
|
|
8
|
+
/** 当前绑定值 */
|
|
9
|
+
modelValue: ComputedRef<string | number | (string | number)[] | undefined>;
|
|
10
|
+
/** 是否多选 */
|
|
11
|
+
multiple: ComputedRef<boolean>;
|
|
12
|
+
/** 是否可筛选 */
|
|
13
|
+
filterable: ComputedRef<boolean>;
|
|
14
|
+
/** 是否禁用 */
|
|
15
|
+
disabled: ComputedRef<boolean>;
|
|
16
|
+
/** 下拉菜单可见状态 */
|
|
17
|
+
visible: Ref<boolean>;
|
|
18
|
+
/** 筛选文本 */
|
|
19
|
+
filterText: Ref<string>;
|
|
20
|
+
/** 筛选输入框聚焦状态 */
|
|
21
|
+
filterFocused: Ref<boolean>;
|
|
22
|
+
/** 鼠标悬停状态 */
|
|
23
|
+
isHovered: Ref<boolean>;
|
|
24
|
+
/** 触发器宽度 */
|
|
25
|
+
triggerWidth: Ref<number>;
|
|
26
|
+
/** 插槽 */
|
|
27
|
+
slots: Slots;
|
|
28
|
+
/** 判断选项是否被选中 */
|
|
29
|
+
isOptionSelected: (option: StSelectOption) => boolean;
|
|
30
|
+
/** 处理选项点击 */
|
|
31
|
+
handleOptionClick: (option: StSelectOption) => void;
|
|
32
|
+
/** 处理清除 */
|
|
33
|
+
handleClear: () => void;
|
|
34
|
+
/** 处理移除标签 */
|
|
35
|
+
handleRemoveTag: (index: number) => void;
|
|
36
|
+
/** 处理筛选输入 */
|
|
37
|
+
handleFilterInput: (value: string) => void;
|
|
38
|
+
/** 处理可见状态变化 */
|
|
39
|
+
handleVisibleChange: (newVisible: boolean) => void;
|
|
40
|
+
/** 设置触发器宽度 */
|
|
41
|
+
setTriggerWidth: (width: number) => void;
|
|
42
|
+
/** 设置鼠标悬停状态 */
|
|
43
|
+
setHovered: (hovered: boolean) => void;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Select 依赖注入状态管理
|
|
47
|
+
*
|
|
48
|
+
* @example 提供方(st-select-container.vue):
|
|
49
|
+
* useProvideSelect({ modelValue, multiple, filterable, disabled, visible, ... });
|
|
50
|
+
*
|
|
51
|
+
* @example 注入方:
|
|
52
|
+
* const select = useInjectSelect();
|
|
53
|
+
* if (!select) throw new Error('...');
|
|
54
|
+
*/
|
|
55
|
+
export declare const useProvideSelect: (context: StSelectContext) => StSelectContext, useInjectSelect: () => StSelectContext;
|
|
@@ -1,16 +1,26 @@
|
|
|
1
1
|
export declare const StSidebar: {
|
|
2
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types.d.ts').StSidebarProps> & Readonly<{
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types.d.ts').StSidebarProps> & Readonly<{
|
|
3
|
+
"onUpdate:activeId"?: (id: string) => any;
|
|
4
|
+
}>, import('./types.d.ts').StSidebarExpose, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
5
|
+
"update:activeId": (id: string) => any;
|
|
6
|
+
}, import('vue').PublicProps, {}, true, {}, {}, 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').StSidebarProps> & Readonly<{
|
|
13
|
+
}, Readonly<import('./types.d.ts').StSidebarProps> & Readonly<{
|
|
14
|
+
"onUpdate:activeId"?: (id: string) => any;
|
|
15
|
+
}>, import('./types.d.ts').StSidebarExpose, {}, {}, {}, {}>;
|
|
10
16
|
__isFragment?: never;
|
|
11
17
|
__isTeleport?: never;
|
|
12
18
|
__isSuspense?: never;
|
|
13
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('./types.d.ts').StSidebarProps> & Readonly<{
|
|
19
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('./types.d.ts').StSidebarProps> & Readonly<{
|
|
20
|
+
"onUpdate:activeId"?: (id: string) => any;
|
|
21
|
+
}>, import('./types.d.ts').StSidebarExpose, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
22
|
+
"update:activeId": (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').StSidebarSlots;
|
|
15
25
|
});
|
|
16
26
|
export default StSidebar;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { StSidebarExpose, StSidebarProps, StSidebarSlots } from './types.d.ts';
|
|
2
2
|
type __VLS_Slots = StSidebarSlots;
|
|
3
|
-
declare const __VLS_base: import('vue').DefineComponent<StSidebarProps, StSidebarExpose, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
3
|
+
declare const __VLS_base: import('vue').DefineComponent<StSidebarProps, StSidebarExpose, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
4
|
+
"update:activeId": (id: string) => any;
|
|
5
|
+
}, string, import('vue').PublicProps, Readonly<StSidebarProps> & Readonly<{
|
|
6
|
+
"onUpdate:activeId"?: (id: string) => any;
|
|
7
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, 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;
|