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
|
@@ -168,6 +168,11 @@ export interface StInputGroupInputProps {
|
|
|
168
168
|
minlength?: number;
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
+
/**
|
|
172
|
+
* InputGroupInput 输入组件插槽接口
|
|
173
|
+
* */
|
|
174
|
+
export interface StInputGroupInputSlots {}
|
|
175
|
+
|
|
171
176
|
/**
|
|
172
177
|
* InputGroupInput 输入组件事件接口
|
|
173
178
|
* */
|
|
@@ -246,6 +251,11 @@ export interface StInputGroupTextareaProps {
|
|
|
246
251
|
cols?: number;
|
|
247
252
|
}
|
|
248
253
|
|
|
254
|
+
/**
|
|
255
|
+
* InputGroupTextarea 文本域组件插槽接口
|
|
256
|
+
* */
|
|
257
|
+
export interface StInputGroupTextareaSlots {}
|
|
258
|
+
|
|
249
259
|
/**
|
|
250
260
|
* InputGroupTextarea 文本域组件事件接口
|
|
251
261
|
* */
|
|
@@ -348,6 +358,20 @@ export interface StTextareaSlots {
|
|
|
348
358
|
suffix?: () => unknown;
|
|
349
359
|
}
|
|
350
360
|
|
|
361
|
+
/**
|
|
362
|
+
* 文本域组件暴露方法接口
|
|
363
|
+
* */
|
|
364
|
+
export interface StTextareaExpose {
|
|
365
|
+
/** 聚焦文本域 */
|
|
366
|
+
focus: () => void;
|
|
367
|
+
/** 失焦文本域 */
|
|
368
|
+
blur: () => void;
|
|
369
|
+
/** 选择文本域内容 */
|
|
370
|
+
select: () => void;
|
|
371
|
+
/** 文本域 DOM 引用 */
|
|
372
|
+
inputRef: Ref<HTMLTextAreaElement | null>;
|
|
373
|
+
}
|
|
374
|
+
|
|
351
375
|
// ============================================================
|
|
352
376
|
// StInputNumber 组件类型
|
|
353
377
|
// ============================================================
|
|
@@ -378,6 +402,14 @@ export interface StInputNumberProps {
|
|
|
378
402
|
decreaseClass?: ClassValue;
|
|
379
403
|
}
|
|
380
404
|
|
|
405
|
+
/**
|
|
406
|
+
* 数字输入框组件插槽接口
|
|
407
|
+
* */
|
|
408
|
+
export interface StInputNumberSlots {
|
|
409
|
+
/** 默认插槽 */
|
|
410
|
+
default?: () => unknown;
|
|
411
|
+
}
|
|
412
|
+
|
|
381
413
|
/**
|
|
382
414
|
* 数字输入框组件事件接口
|
|
383
415
|
* */
|
|
@@ -413,3 +445,21 @@ export interface StInputNumberExpose {
|
|
|
413
445
|
}
|
|
414
446
|
|
|
415
447
|
export {};
|
|
448
|
+
|
|
449
|
+
// ============================================================
|
|
450
|
+
// StInput 组件 Expose 类型
|
|
451
|
+
// ============================================================
|
|
452
|
+
|
|
453
|
+
/**
|
|
454
|
+
* 输入框组件暴露方法接口
|
|
455
|
+
* */
|
|
456
|
+
export interface StInputExpose {
|
|
457
|
+
/** 聚焦输入框 */
|
|
458
|
+
focus: () => void;
|
|
459
|
+
/** 失焦输入框 */
|
|
460
|
+
blur: () => void;
|
|
461
|
+
/** 选择输入框内容 */
|
|
462
|
+
select: () => void;
|
|
463
|
+
/** 输入框 DOM 引用 */
|
|
464
|
+
inputRef: InstanceType<typeof import('./st-input-group-input.vue').default> | null;
|
|
465
|
+
}
|
|
@@ -11,9 +11,7 @@ export declare const StLabel: {
|
|
|
11
11
|
__isTeleport?: never;
|
|
12
12
|
__isSuspense?: never;
|
|
13
13
|
} & import('vue').ComponentOptionsBase<Readonly<import('./types.d.ts').StLabelProps> & 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 () => {
|
|
14
|
-
$slots:
|
|
15
|
-
default?: (props: {}) => any;
|
|
16
|
-
};
|
|
14
|
+
$slots: import('./types.d.ts').StLabelSlots;
|
|
17
15
|
});
|
|
18
16
|
export default StLabel;
|
|
19
17
|
export type * from './types.d.ts';
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import { StLabelProps } from './types.d.ts';
|
|
2
|
-
|
|
3
|
-
type __VLS_Slots = {} & {
|
|
4
|
-
default?: (props: typeof __VLS_1) => any;
|
|
5
|
-
};
|
|
1
|
+
import { StLabelProps, StLabelSlots } from './types.d.ts';
|
|
2
|
+
type __VLS_Slots = StLabelSlots;
|
|
6
3
|
declare const __VLS_base: import('vue').DefineComponent<StLabelProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<StLabelProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
7
4
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
8
5
|
declare const _default: typeof __VLS_export;
|
|
@@ -76,40 +76,25 @@ export declare const StMenu: {
|
|
|
76
76
|
};
|
|
77
77
|
});
|
|
78
78
|
StMenuContent: {
|
|
79
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
80
|
-
class?: any;
|
|
81
|
-
style?: any;
|
|
82
|
-
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
79
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
83
80
|
P: {};
|
|
84
81
|
B: {};
|
|
85
82
|
D: {};
|
|
86
83
|
C: {};
|
|
87
84
|
M: {};
|
|
88
85
|
Defaults: {};
|
|
89
|
-
}, Readonly<{
|
|
90
|
-
class?: any;
|
|
91
|
-
style?: any;
|
|
92
|
-
}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
86
|
+
}, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
93
87
|
__isFragment?: never;
|
|
94
88
|
__isTeleport?: never;
|
|
95
89
|
__isSuspense?: never;
|
|
96
|
-
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
97
|
-
class?: any;
|
|
98
|
-
style?: any;
|
|
99
|
-
}> & 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 () => {
|
|
90
|
+
} & import('vue').ComponentOptionsBase<Readonly<{}> & 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 () => {
|
|
100
91
|
$slots: {
|
|
101
92
|
default?: (props: {}) => any;
|
|
102
93
|
};
|
|
103
94
|
});
|
|
104
|
-
StMenuDivider: import('vue').DefineComponent<{
|
|
105
|
-
class?: any;
|
|
106
|
-
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
107
|
-
class?: any;
|
|
108
|
-
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
95
|
+
StMenuDivider: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
109
96
|
StMenuGroup: {
|
|
110
97
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
111
|
-
class?: any;
|
|
112
|
-
style?: any;
|
|
113
98
|
label?: string;
|
|
114
99
|
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
115
100
|
P: {};
|
|
@@ -119,16 +104,12 @@ export declare const StMenu: {
|
|
|
119
104
|
M: {};
|
|
120
105
|
Defaults: {};
|
|
121
106
|
}, Readonly<{
|
|
122
|
-
class?: any;
|
|
123
|
-
style?: any;
|
|
124
107
|
label?: string;
|
|
125
108
|
}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
126
109
|
__isFragment?: never;
|
|
127
110
|
__isTeleport?: never;
|
|
128
111
|
__isSuspense?: never;
|
|
129
112
|
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
130
|
-
class?: any;
|
|
131
|
-
style?: any;
|
|
132
113
|
label?: string;
|
|
133
114
|
}> & 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 () => {
|
|
134
115
|
$slots: {
|
|
@@ -137,8 +118,6 @@ export declare const StMenu: {
|
|
|
137
118
|
});
|
|
138
119
|
StMenuItem: {
|
|
139
120
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
140
|
-
class?: any;
|
|
141
|
-
style?: any;
|
|
142
121
|
disabled?: boolean;
|
|
143
122
|
icon?: string;
|
|
144
123
|
label?: string;
|
|
@@ -160,8 +139,6 @@ export declare const StMenu: {
|
|
|
160
139
|
M: {};
|
|
161
140
|
Defaults: {};
|
|
162
141
|
}, Readonly<{
|
|
163
|
-
class?: any;
|
|
164
|
-
style?: any;
|
|
165
142
|
disabled?: boolean;
|
|
166
143
|
icon?: string;
|
|
167
144
|
label?: string;
|
|
@@ -178,8 +155,6 @@ export declare const StMenu: {
|
|
|
178
155
|
__isTeleport?: never;
|
|
179
156
|
__isSuspense?: never;
|
|
180
157
|
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
181
|
-
class?: any;
|
|
182
|
-
style?: any;
|
|
183
158
|
disabled?: boolean;
|
|
184
159
|
icon?: string;
|
|
185
160
|
label?: string;
|
|
@@ -208,27 +183,18 @@ export declare const StMenu: {
|
|
|
208
183
|
depth: number;
|
|
209
184
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
210
185
|
StMenuTrigger: {
|
|
211
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
212
|
-
class?: any;
|
|
213
|
-
style?: any;
|
|
214
|
-
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
186
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
215
187
|
P: {};
|
|
216
188
|
B: {};
|
|
217
189
|
D: {};
|
|
218
190
|
C: {};
|
|
219
191
|
M: {};
|
|
220
192
|
Defaults: {};
|
|
221
|
-
}, Readonly<{
|
|
222
|
-
class?: any;
|
|
223
|
-
style?: any;
|
|
224
|
-
}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
193
|
+
}, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
225
194
|
__isFragment?: never;
|
|
226
195
|
__isTeleport?: never;
|
|
227
196
|
__isSuspense?: never;
|
|
228
|
-
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
229
|
-
class?: any;
|
|
230
|
-
style?: any;
|
|
231
|
-
}> & 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 () => {
|
|
197
|
+
} & import('vue').ComponentOptionsBase<Readonly<{}> & 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 () => {
|
|
232
198
|
$slots: {
|
|
233
199
|
default?: (props: {}) => any;
|
|
234
200
|
};
|
|
@@ -276,40 +242,25 @@ export declare const StMenuContainer: {
|
|
|
276
242
|
};
|
|
277
243
|
});
|
|
278
244
|
export declare const StMenuContent: {
|
|
279
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
280
|
-
class?: any;
|
|
281
|
-
style?: any;
|
|
282
|
-
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
245
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
283
246
|
P: {};
|
|
284
247
|
B: {};
|
|
285
248
|
D: {};
|
|
286
249
|
C: {};
|
|
287
250
|
M: {};
|
|
288
251
|
Defaults: {};
|
|
289
|
-
}, Readonly<{
|
|
290
|
-
class?: any;
|
|
291
|
-
style?: any;
|
|
292
|
-
}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
252
|
+
}, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
293
253
|
__isFragment?: never;
|
|
294
254
|
__isTeleport?: never;
|
|
295
255
|
__isSuspense?: never;
|
|
296
|
-
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
297
|
-
class?: any;
|
|
298
|
-
style?: any;
|
|
299
|
-
}> & 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 () => {
|
|
256
|
+
} & import('vue').ComponentOptionsBase<Readonly<{}> & 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 () => {
|
|
300
257
|
$slots: {
|
|
301
258
|
default?: (props: {}) => any;
|
|
302
259
|
};
|
|
303
260
|
});
|
|
304
|
-
export declare const StMenuDivider: import('vue').DefineComponent<{
|
|
305
|
-
class?: any;
|
|
306
|
-
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
307
|
-
class?: any;
|
|
308
|
-
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
261
|
+
export declare const StMenuDivider: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
309
262
|
export declare const StMenuGroup: {
|
|
310
263
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
311
|
-
class?: any;
|
|
312
|
-
style?: any;
|
|
313
264
|
label?: string;
|
|
314
265
|
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
315
266
|
P: {};
|
|
@@ -319,16 +270,12 @@ export declare const StMenuGroup: {
|
|
|
319
270
|
M: {};
|
|
320
271
|
Defaults: {};
|
|
321
272
|
}, Readonly<{
|
|
322
|
-
class?: any;
|
|
323
|
-
style?: any;
|
|
324
273
|
label?: string;
|
|
325
274
|
}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
326
275
|
__isFragment?: never;
|
|
327
276
|
__isTeleport?: never;
|
|
328
277
|
__isSuspense?: never;
|
|
329
278
|
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
330
|
-
class?: any;
|
|
331
|
-
style?: any;
|
|
332
279
|
label?: string;
|
|
333
280
|
}> & 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 () => {
|
|
334
281
|
$slots: {
|
|
@@ -337,8 +284,6 @@ export declare const StMenuGroup: {
|
|
|
337
284
|
});
|
|
338
285
|
export declare const StMenuItem: {
|
|
339
286
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
340
|
-
class?: any;
|
|
341
|
-
style?: any;
|
|
342
287
|
disabled?: boolean;
|
|
343
288
|
icon?: string;
|
|
344
289
|
label?: string;
|
|
@@ -360,8 +305,6 @@ export declare const StMenuItem: {
|
|
|
360
305
|
M: {};
|
|
361
306
|
Defaults: {};
|
|
362
307
|
}, Readonly<{
|
|
363
|
-
class?: any;
|
|
364
|
-
style?: any;
|
|
365
308
|
disabled?: boolean;
|
|
366
309
|
icon?: string;
|
|
367
310
|
label?: string;
|
|
@@ -378,8 +321,6 @@ export declare const StMenuItem: {
|
|
|
378
321
|
__isTeleport?: never;
|
|
379
322
|
__isSuspense?: never;
|
|
380
323
|
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
381
|
-
class?: any;
|
|
382
|
-
style?: any;
|
|
383
324
|
disabled?: boolean;
|
|
384
325
|
icon?: string;
|
|
385
326
|
label?: string;
|
|
@@ -408,27 +349,18 @@ export declare const StMenuNode: import('vue').DefineComponent<import('./types.d
|
|
|
408
349
|
depth: number;
|
|
409
350
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
410
351
|
export declare const StMenuTrigger: {
|
|
411
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
412
|
-
class?: any;
|
|
413
|
-
style?: any;
|
|
414
|
-
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
352
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
415
353
|
P: {};
|
|
416
354
|
B: {};
|
|
417
355
|
D: {};
|
|
418
356
|
C: {};
|
|
419
357
|
M: {};
|
|
420
358
|
Defaults: {};
|
|
421
|
-
}, Readonly<{
|
|
422
|
-
class?: any;
|
|
423
|
-
style?: any;
|
|
424
|
-
}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
359
|
+
}, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
425
360
|
__isFragment?: never;
|
|
426
361
|
__isTeleport?: never;
|
|
427
362
|
__isSuspense?: never;
|
|
428
|
-
} & import('vue').ComponentOptionsBase<Readonly<{
|
|
429
|
-
class?: any;
|
|
430
|
-
style?: any;
|
|
431
|
-
}> & 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 () => {
|
|
363
|
+
} & import('vue').ComponentOptionsBase<Readonly<{}> & 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 () => {
|
|
432
364
|
$slots: {
|
|
433
365
|
default?: (props: {}) => any;
|
|
434
366
|
};
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
type __VLS_Props = {
|
|
2
|
-
/** 自定义类名 */
|
|
3
|
-
class?: any;
|
|
4
|
-
};
|
|
1
|
+
type __VLS_Props = {};
|
|
5
2
|
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
6
3
|
declare const _default: typeof __VLS_export;
|
|
7
4
|
export default _default;
|
|
@@ -51,6 +51,19 @@ export interface StMenuContainerProps {
|
|
|
51
51
|
trigger?: StMenuTrigger;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
+
/**
|
|
55
|
+
* Menu 容器组件插槽接口
|
|
56
|
+
* */
|
|
57
|
+
export interface StMenuContainerSlots {
|
|
58
|
+
/** 默认插槽 */
|
|
59
|
+
default?: () => unknown;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Menu 容器组件事件接口
|
|
64
|
+
* */
|
|
65
|
+
export interface StMenuContainerEmits {}
|
|
66
|
+
|
|
54
67
|
/**
|
|
55
68
|
* Menu 容器组件暴露的方法接口
|
|
56
69
|
* */
|
|
@@ -71,6 +84,19 @@ export interface StMenuTriggerProps {
|
|
|
71
84
|
style?: StyleValue;
|
|
72
85
|
}
|
|
73
86
|
|
|
87
|
+
/**
|
|
88
|
+
* StMenuTrigger 触发器组件插槽接口
|
|
89
|
+
* */
|
|
90
|
+
export interface StMenuTriggerSlots {
|
|
91
|
+
/** 默认插槽 */
|
|
92
|
+
default?: () => unknown;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* StMenuTrigger 触发器组件事件接口
|
|
97
|
+
* */
|
|
98
|
+
export interface StMenuTriggerEmits {}
|
|
99
|
+
|
|
74
100
|
/**
|
|
75
101
|
* MenuContent 内容组件属性接口
|
|
76
102
|
* */
|
|
@@ -81,6 +107,19 @@ export interface StMenuContentProps {
|
|
|
81
107
|
style?: StyleValue;
|
|
82
108
|
}
|
|
83
109
|
|
|
110
|
+
/**
|
|
111
|
+
* MenuContent 内容组件插槽接口
|
|
112
|
+
* */
|
|
113
|
+
export interface StMenuContentSlots {
|
|
114
|
+
/** 默认插槽 */
|
|
115
|
+
default?: () => unknown;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* MenuContent 内容组件事件接口
|
|
120
|
+
* */
|
|
121
|
+
export interface StMenuContentEmits {}
|
|
122
|
+
|
|
84
123
|
/**
|
|
85
124
|
* StMenuItem 菜单项组件属性接口
|
|
86
125
|
* */
|
|
@@ -141,6 +180,11 @@ export interface StMenuGroupSlots {
|
|
|
141
180
|
default?: () => unknown;
|
|
142
181
|
}
|
|
143
182
|
|
|
183
|
+
/**
|
|
184
|
+
* MenuGroup 分组组件事件接口
|
|
185
|
+
* */
|
|
186
|
+
export interface StMenuGroupEmits {}
|
|
187
|
+
|
|
144
188
|
/**
|
|
145
189
|
* MenuDivider 分割线组件属性接口
|
|
146
190
|
* */
|
|
@@ -149,6 +193,16 @@ export interface StMenuDividerProps {
|
|
|
149
193
|
class?: ClassValue;
|
|
150
194
|
}
|
|
151
195
|
|
|
196
|
+
/**
|
|
197
|
+
* MenuDivider 分割线组件插槽接口
|
|
198
|
+
* */
|
|
199
|
+
export interface StMenuDividerSlots {}
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* MenuDivider 分割线组件事件接口
|
|
203
|
+
* */
|
|
204
|
+
export interface StMenuDividerEmits {}
|
|
205
|
+
|
|
152
206
|
/**
|
|
153
207
|
* StMenu 封装组件属性接口
|
|
154
208
|
* */
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { ComputedRef, Ref } from 'vue';
|
|
2
|
+
import { StMenuPlacement, StMenuTrigger } from './types.d.ts';
|
|
3
|
+
import { StPopoverPlacement } from '../st-popover/types.d.ts';
|
|
4
|
+
/**
|
|
5
|
+
* 菜单节点注入上下文
|
|
6
|
+
* 用于 StMenu → StMenuNode 之间的递归 hide/hasIcon 传递
|
|
7
|
+
* */
|
|
8
|
+
export interface StMenuNodeContext {
|
|
9
|
+
/** 隐藏当前菜单 */
|
|
10
|
+
hide: () => void;
|
|
11
|
+
/** 当前层是否有图标 */
|
|
12
|
+
hasIcon: Ref<boolean> | ComputedRef<boolean>;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* 菜单容器注入上下文(完整)
|
|
16
|
+
* 用于 StMenuContainer → StMenuItem 之间传递
|
|
17
|
+
* */
|
|
18
|
+
export interface StMenuContainerContext {
|
|
19
|
+
/** 弹出方向 */
|
|
20
|
+
placement: ComputedRef<StMenuPlacement>;
|
|
21
|
+
/** 触发方式 */
|
|
22
|
+
trigger: ComputedRef<StMenuTrigger>;
|
|
23
|
+
/** popover 弹出方向 */
|
|
24
|
+
popoverPlacement: ComputedRef<StPopoverPlacement>;
|
|
25
|
+
/** popover 触发方式 */
|
|
26
|
+
popoverTrigger: ComputedRef<StMenuTrigger>;
|
|
27
|
+
/** 隐藏菜单函数引用 */
|
|
28
|
+
hideMenu: Ref<() => void>;
|
|
29
|
+
/** 当前层是否有图标 */
|
|
30
|
+
hasIcon: Ref<boolean>;
|
|
31
|
+
/** 注册隐藏菜单函数 */
|
|
32
|
+
registerHide: (fn: () => void) => void;
|
|
33
|
+
/** 设置是否有图标 */
|
|
34
|
+
setHasIcon: (value: boolean) => void;
|
|
35
|
+
/** 关闭其他菜单 */
|
|
36
|
+
closeOtherMenus: (exclude: () => void) => void;
|
|
37
|
+
/** 活跃菜单集合 */
|
|
38
|
+
activeMenus: Set<() => void>;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* 菜单节点(StMenu ↔ StMenuNode)依赖注入
|
|
42
|
+
*
|
|
43
|
+
* @example 提供方(st-menu.vue, st-menu-node.vue):
|
|
44
|
+
* useProvideMenuNode({ hide, hasIcon });
|
|
45
|
+
*
|
|
46
|
+
* @example 注入方(st-menu-node.vue):
|
|
47
|
+
* const nodeCtx = useInjectMenuNode();
|
|
48
|
+
* nodeCtx?.hide()
|
|
49
|
+
*/
|
|
50
|
+
export declare const useProvideMenuNode: (context: StMenuNodeContext) => StMenuNodeContext, useInjectMenuNode: () => StMenuNodeContext;
|
|
51
|
+
/**
|
|
52
|
+
* 菜单容器(StMenuContainer ↔ StMenuItem)依赖注入
|
|
53
|
+
*
|
|
54
|
+
* @example 提供方(st-menu-container.vue):
|
|
55
|
+
* useProvideMenuContainer({ placement, trigger, ... });
|
|
56
|
+
*
|
|
57
|
+
* @example 注入方(st-menu-item.vue):
|
|
58
|
+
* const container = useInjectMenuContainer();
|
|
59
|
+
*/
|
|
60
|
+
export declare const useProvideMenuContainer: (context: StMenuContainerContext) => StMenuContainerContext, useInjectMenuContainer: () => StMenuContainerContext;
|
|
@@ -75,13 +75,7 @@ export declare const StPagination: {
|
|
|
75
75
|
showPageSize: boolean;
|
|
76
76
|
maxPagerCount: number;
|
|
77
77
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
78
|
-
$slots:
|
|
79
|
-
total?: (props: {}) => any;
|
|
80
|
-
} & {
|
|
81
|
-
prefix?: (props: {}) => any;
|
|
82
|
-
} & {
|
|
83
|
-
suffix?: (props: {}) => any;
|
|
84
|
-
};
|
|
78
|
+
$slots: import('./types.d.ts').StPaginationSlots;
|
|
85
79
|
});
|
|
86
80
|
export default StPagination;
|
|
87
81
|
export type * from './types.d.ts';
|
|
@@ -1,18 +1,11 @@
|
|
|
1
|
-
import { StPaginationExpose, StPaginationProps } from './types.d.ts';
|
|
1
|
+
import { StPaginationExpose, StPaginationProps, StPaginationSlots } from './types.d.ts';
|
|
2
2
|
type __VLS_Props = StPaginationProps;
|
|
3
|
+
type __VLS_Slots = StPaginationSlots;
|
|
3
4
|
type __VLS_ModelProps = {
|
|
4
5
|
'currentPage'?: number;
|
|
5
6
|
'pageSize'?: number;
|
|
6
7
|
};
|
|
7
8
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
8
|
-
declare var __VLS_1: {}, __VLS_10: {}, __VLS_12: {};
|
|
9
|
-
type __VLS_Slots = {} & {
|
|
10
|
-
total?: (props: typeof __VLS_1) => any;
|
|
11
|
-
} & {
|
|
12
|
-
prefix?: (props: typeof __VLS_10) => any;
|
|
13
|
-
} & {
|
|
14
|
-
suffix?: (props: typeof __VLS_12) => any;
|
|
15
|
-
};
|
|
16
9
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, StPaginationExpose, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
17
10
|
change: (page: number) => any;
|
|
18
11
|
"update:currentPage": (...args: unknown[]) => any;
|