straw-ui-vue 0.1.19 → 0.1.21
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/README.md +146 -147
- package/dist/{cn-CiflBmGp.js → cn-CThBjlvA.js} +7 -7
- package/dist/components/st-button/types.d.ts +63 -63
- package/dist/components/st-card/types.d.ts +184 -184
- package/dist/components/st-cascade/types.d.ts +156 -156
- package/dist/components/st-checkbox/types.d.ts +120 -120
- package/dist/components/st-color-picker/types.d.ts +160 -160
- package/dist/components/st-date-picker/types.d.ts +157 -157
- package/dist/components/st-datetime-picker/types.d.ts +155 -155
- package/dist/components/st-dialog/types.d.ts +293 -293
- package/dist/components/st-divider/types.d.ts +92 -92
- package/dist/components/st-drawer/types.d.ts +232 -232
- package/dist/components/st-empty/types.d.ts +39 -39
- package/dist/components/st-form-control/types.d.ts +21 -21
- package/dist/components/st-form-description/types.d.ts +21 -21
- package/dist/components/st-form-field/types.d.ts +64 -64
- package/dist/components/st-form-item/types.d.ts +21 -21
- package/dist/components/st-form-label/types.d.ts +19 -19
- package/dist/components/st-form-message/types.d.ts +23 -23
- package/dist/components/st-image/types.d.ts +58 -58
- package/dist/components/st-input/types.d.ts +415 -415
- package/dist/components/st-label/types.d.ts +19 -19
- package/dist/components/st-menu/types.d.ts +262 -262
- package/dist/components/st-pagination/types.d.ts +91 -91
- package/dist/components/st-popover/types.d.ts +202 -202
- package/dist/components/st-progress/types.d.ts +37 -37
- package/dist/components/st-radio/types.d.ts +126 -126
- package/dist/components/st-scrollbar/types.d.ts +62 -62
- package/dist/components/st-segmented/types.d.ts +53 -53
- package/dist/components/st-select/types.d.ts +249 -249
- package/dist/components/st-sidebar/types.d.ts +85 -85
- package/dist/components/st-sidebar-item/types.d.ts +45 -45
- package/dist/components/st-skeleton/types.d.ts +56 -56
- package/dist/components/st-slider/types.d.ts +61 -61
- package/dist/components/st-splitter/types.d.ts +260 -260
- package/dist/components/st-splitter-panel/types.d.ts +63 -63
- package/dist/components/st-switch/types.d.ts +53 -53
- package/dist/components/st-tabs/types.d.ts +151 -151
- package/dist/components/st-tag/types.d.ts +51 -51
- package/dist/components/st-time-picker/types.d.ts +143 -143
- package/dist/components/st-toggle/types.d.ts +58 -58
- package/dist/components/st-tooltip/types.d.ts +172 -172
- package/dist/components/st-tree/types.d.ts +188 -188
- package/dist/straw-ui.js +344 -254
- package/package.json +16 -11
|
@@ -1,126 +1,126 @@
|
|
|
1
|
-
import type { ClassValue, StyleValue } from 'vue';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Radio 组件属性接口
|
|
5
|
-
* */
|
|
6
|
-
export interface StRadioProps {
|
|
7
|
-
/** 自定义id,若不传递,则内置 */
|
|
8
|
-
id?: string;
|
|
9
|
-
/** 复选框禁用状态 */
|
|
10
|
-
disabled?: boolean;
|
|
11
|
-
/** 选中时的值 */
|
|
12
|
-
trueValue?: boolean | string | number;
|
|
13
|
-
/** 未选中时的值 */
|
|
14
|
-
falseValue?: boolean | string | number;
|
|
15
|
-
/** 严格模式:为 false 时点击已选中项可取消 */
|
|
16
|
-
strict?: boolean;
|
|
17
|
-
/** 标签类名 */
|
|
18
|
-
labelClass?: ClassValue;
|
|
19
|
-
/** 标签样式 */
|
|
20
|
-
labelStyle?: StyleValue;
|
|
21
|
-
/** 核心包裹层类名 */
|
|
22
|
-
boxClass?: ClassValue;
|
|
23
|
-
/** 核心包裹层眼视光 */
|
|
24
|
-
boxStyle?: StyleValue;
|
|
25
|
-
/** 核心区域类名 */
|
|
26
|
-
coreClass?: ClassValue;
|
|
27
|
-
/** 核心区域样式 */
|
|
28
|
-
coreStyle?: StyleValue;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Radio 组件事件接口
|
|
33
|
-
* */
|
|
34
|
-
export interface StRadioEmits {
|
|
35
|
-
/** 值改变事件 */
|
|
36
|
-
change: [event: Event];
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Radio 组件插槽接口
|
|
41
|
-
* */
|
|
42
|
-
export interface StRadioSlots {
|
|
43
|
-
/** 默认插槽(标签内容) */
|
|
44
|
-
default?: () => unknown;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* RadioGroup 注入上下文接口
|
|
49
|
-
* */
|
|
50
|
-
export interface StRadioGroupContext {
|
|
51
|
-
disabled: import('vue').ComputedRef<boolean>;
|
|
52
|
-
strict: import('vue').ComputedRef<boolean>;
|
|
53
|
-
modelValue: import('vue').Ref<string | number | boolean | undefined>;
|
|
54
|
-
updateValue: (value: string | number | boolean) => void;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
// ============================================================
|
|
58
|
-
// StRadioGroup 组件类型
|
|
59
|
-
// ============================================================
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* RadioGroup 组件属性接口
|
|
63
|
-
* */
|
|
64
|
-
export interface StRadioGroupProps {
|
|
65
|
-
/** 单选框选项列表 */
|
|
66
|
-
list?: StRadioGroupItem[];
|
|
67
|
-
/** 用于显示的标签字段名 */
|
|
68
|
-
labelKey?: string;
|
|
69
|
-
/** 用于值的字段名 */
|
|
70
|
-
valueKey?: string;
|
|
71
|
-
/** 单选框禁用状态 */
|
|
72
|
-
disabled?: boolean;
|
|
73
|
-
/** 严格模式:为 false 时点击已选中项可取消 */
|
|
74
|
-
strict?: boolean;
|
|
75
|
-
/** 排列方向 */
|
|
76
|
-
direction?: StRadioGroupDirection;
|
|
77
|
-
/** 项类名 */
|
|
78
|
-
itemClass?: ClassValue;
|
|
79
|
-
/** 项样式 */
|
|
80
|
-
itemStyle?: StyleValue;
|
|
81
|
-
/** 标签类名 */
|
|
82
|
-
labelClass?: ClassValue;
|
|
83
|
-
/** 标签样式 */
|
|
84
|
-
labelStyle?: StyleValue;
|
|
85
|
-
/** checkbox类名 */
|
|
86
|
-
boxClass?: ClassValue;
|
|
87
|
-
/** checkbox样式 */
|
|
88
|
-
boxStyle?: StyleValue;
|
|
89
|
-
/** 图标类名 */
|
|
90
|
-
iconClass?: ClassValue;
|
|
91
|
-
/** 图标样式 */
|
|
92
|
-
iconStyle?: StyleValue;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* 单选框选项项接口
|
|
97
|
-
* */
|
|
98
|
-
export interface StRadioGroupItem {
|
|
99
|
-
/**
|
|
100
|
-
* 选项标签
|
|
101
|
-
* */
|
|
102
|
-
[key: string]: unknown;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* 单选框组排列方向类型
|
|
107
|
-
* */
|
|
108
|
-
export type StRadioGroupDirection = 'horizontal' | 'vertical';
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* RadioGroup 组件事件接口
|
|
112
|
-
* */
|
|
113
|
-
export interface StRadioGroupEmits {
|
|
114
|
-
/** 值改变事件 */
|
|
115
|
-
change: [event: MouseEvent];
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* RadioGroup 组件插槽接口
|
|
120
|
-
* */
|
|
121
|
-
export interface StRadioGroupSlots {
|
|
122
|
-
/** 默认插槽 */
|
|
123
|
-
default?: () => unknown;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
export {};
|
|
1
|
+
import type { ClassValue, StyleValue } from 'vue';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Radio 组件属性接口
|
|
5
|
+
* */
|
|
6
|
+
export interface StRadioProps {
|
|
7
|
+
/** 自定义id,若不传递,则内置 */
|
|
8
|
+
id?: string;
|
|
9
|
+
/** 复选框禁用状态 */
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
/** 选中时的值 */
|
|
12
|
+
trueValue?: boolean | string | number;
|
|
13
|
+
/** 未选中时的值 */
|
|
14
|
+
falseValue?: boolean | string | number;
|
|
15
|
+
/** 严格模式:为 false 时点击已选中项可取消 */
|
|
16
|
+
strict?: boolean;
|
|
17
|
+
/** 标签类名 */
|
|
18
|
+
labelClass?: ClassValue;
|
|
19
|
+
/** 标签样式 */
|
|
20
|
+
labelStyle?: StyleValue;
|
|
21
|
+
/** 核心包裹层类名 */
|
|
22
|
+
boxClass?: ClassValue;
|
|
23
|
+
/** 核心包裹层眼视光 */
|
|
24
|
+
boxStyle?: StyleValue;
|
|
25
|
+
/** 核心区域类名 */
|
|
26
|
+
coreClass?: ClassValue;
|
|
27
|
+
/** 核心区域样式 */
|
|
28
|
+
coreStyle?: StyleValue;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Radio 组件事件接口
|
|
33
|
+
* */
|
|
34
|
+
export interface StRadioEmits {
|
|
35
|
+
/** 值改变事件 */
|
|
36
|
+
change: [event: Event];
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Radio 组件插槽接口
|
|
41
|
+
* */
|
|
42
|
+
export interface StRadioSlots {
|
|
43
|
+
/** 默认插槽(标签内容) */
|
|
44
|
+
default?: () => unknown;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* RadioGroup 注入上下文接口
|
|
49
|
+
* */
|
|
50
|
+
export interface StRadioGroupContext {
|
|
51
|
+
disabled: import('vue').ComputedRef<boolean>;
|
|
52
|
+
strict: import('vue').ComputedRef<boolean>;
|
|
53
|
+
modelValue: import('vue').Ref<string | number | boolean | undefined>;
|
|
54
|
+
updateValue: (value: string | number | boolean) => void;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// ============================================================
|
|
58
|
+
// StRadioGroup 组件类型
|
|
59
|
+
// ============================================================
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* RadioGroup 组件属性接口
|
|
63
|
+
* */
|
|
64
|
+
export interface StRadioGroupProps {
|
|
65
|
+
/** 单选框选项列表 */
|
|
66
|
+
list?: StRadioGroupItem[];
|
|
67
|
+
/** 用于显示的标签字段名 */
|
|
68
|
+
labelKey?: string;
|
|
69
|
+
/** 用于值的字段名 */
|
|
70
|
+
valueKey?: string;
|
|
71
|
+
/** 单选框禁用状态 */
|
|
72
|
+
disabled?: boolean;
|
|
73
|
+
/** 严格模式:为 false 时点击已选中项可取消 */
|
|
74
|
+
strict?: boolean;
|
|
75
|
+
/** 排列方向 */
|
|
76
|
+
direction?: StRadioGroupDirection;
|
|
77
|
+
/** 项类名 */
|
|
78
|
+
itemClass?: ClassValue;
|
|
79
|
+
/** 项样式 */
|
|
80
|
+
itemStyle?: StyleValue;
|
|
81
|
+
/** 标签类名 */
|
|
82
|
+
labelClass?: ClassValue;
|
|
83
|
+
/** 标签样式 */
|
|
84
|
+
labelStyle?: StyleValue;
|
|
85
|
+
/** checkbox类名 */
|
|
86
|
+
boxClass?: ClassValue;
|
|
87
|
+
/** checkbox样式 */
|
|
88
|
+
boxStyle?: StyleValue;
|
|
89
|
+
/** 图标类名 */
|
|
90
|
+
iconClass?: ClassValue;
|
|
91
|
+
/** 图标样式 */
|
|
92
|
+
iconStyle?: StyleValue;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* 单选框选项项接口
|
|
97
|
+
* */
|
|
98
|
+
export interface StRadioGroupItem {
|
|
99
|
+
/**
|
|
100
|
+
* 选项标签
|
|
101
|
+
* */
|
|
102
|
+
[key: string]: unknown;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* 单选框组排列方向类型
|
|
107
|
+
* */
|
|
108
|
+
export type StRadioGroupDirection = 'horizontal' | 'vertical';
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* RadioGroup 组件事件接口
|
|
112
|
+
* */
|
|
113
|
+
export interface StRadioGroupEmits {
|
|
114
|
+
/** 值改变事件 */
|
|
115
|
+
change: [event: MouseEvent];
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* RadioGroup 组件插槽接口
|
|
120
|
+
* */
|
|
121
|
+
export interface StRadioGroupSlots {
|
|
122
|
+
/** 默认插槽 */
|
|
123
|
+
default?: () => unknown;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export {};
|
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
import type { ClassValue, StyleValue } from 'vue';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* 滚动条方向类型
|
|
5
|
-
*/
|
|
6
|
-
export type StScrollbarDirection = 'vertical' | 'horizontal' | 'both';
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* 滚动条组件属性接口
|
|
10
|
-
*/
|
|
11
|
-
export interface StScrollbarProps {
|
|
12
|
-
/** 自定义类名 */
|
|
13
|
-
class?: ClassValue;
|
|
14
|
-
/** 自定义样式 */
|
|
15
|
-
style?: StyleValue;
|
|
16
|
-
/** 滚动条宽度(垂直滚动条) */
|
|
17
|
-
width?: string | number;
|
|
18
|
-
/** 滚动条高度(水平滚动条) */
|
|
19
|
-
height?: string | number;
|
|
20
|
-
/** 滚动方向 */
|
|
21
|
-
direction?: StScrollbarDirection;
|
|
22
|
-
/** 是否显示滚动条(hover 时显示) */
|
|
23
|
-
alwaysVisible?: boolean;
|
|
24
|
-
/** 是否禁用滚动条 */
|
|
25
|
-
disabled?: boolean;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* 滚动条组件事件接口
|
|
30
|
-
*/
|
|
31
|
-
export interface StScrollbarEmits {
|
|
32
|
-
/** 滚动事件 */
|
|
33
|
-
scroll: [event: Event];
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* 滚动条组件插槽接口
|
|
38
|
-
*/
|
|
39
|
-
export interface StScrollbarSlots {
|
|
40
|
-
/** 默认内容插槽 */
|
|
41
|
-
default?: () => unknown;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* 滚动条组件暴露的方法
|
|
46
|
-
*/
|
|
47
|
-
export interface StScrollbarExpose {
|
|
48
|
-
/** 获取滚动容器元素 */
|
|
49
|
-
getScrollElement: () => HTMLElement | null;
|
|
50
|
-
/** 滚动到指定位置 */
|
|
51
|
-
scrollTo: (options: ScrollToOptions) => void;
|
|
52
|
-
/** 滚动到顶部 */
|
|
53
|
-
scrollToTop: () => void;
|
|
54
|
-
/** 滚动到底部 */
|
|
55
|
-
scrollToBottom: () => void;
|
|
56
|
-
/** 滚动到左侧 */
|
|
57
|
-
scrollToLeft: () => void;
|
|
58
|
-
/** 滚动到右侧 */
|
|
59
|
-
scrollToRight: () => void;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export {};
|
|
1
|
+
import type { ClassValue, StyleValue } from 'vue';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* 滚动条方向类型
|
|
5
|
+
*/
|
|
6
|
+
export type StScrollbarDirection = 'vertical' | 'horizontal' | 'both';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* 滚动条组件属性接口
|
|
10
|
+
*/
|
|
11
|
+
export interface StScrollbarProps {
|
|
12
|
+
/** 自定义类名 */
|
|
13
|
+
class?: ClassValue;
|
|
14
|
+
/** 自定义样式 */
|
|
15
|
+
style?: StyleValue;
|
|
16
|
+
/** 滚动条宽度(垂直滚动条) */
|
|
17
|
+
width?: string | number;
|
|
18
|
+
/** 滚动条高度(水平滚动条) */
|
|
19
|
+
height?: string | number;
|
|
20
|
+
/** 滚动方向 */
|
|
21
|
+
direction?: StScrollbarDirection;
|
|
22
|
+
/** 是否显示滚动条(hover 时显示) */
|
|
23
|
+
alwaysVisible?: boolean;
|
|
24
|
+
/** 是否禁用滚动条 */
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* 滚动条组件事件接口
|
|
30
|
+
*/
|
|
31
|
+
export interface StScrollbarEmits {
|
|
32
|
+
/** 滚动事件 */
|
|
33
|
+
scroll: [event: Event];
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* 滚动条组件插槽接口
|
|
38
|
+
*/
|
|
39
|
+
export interface StScrollbarSlots {
|
|
40
|
+
/** 默认内容插槽 */
|
|
41
|
+
default?: () => unknown;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* 滚动条组件暴露的方法
|
|
46
|
+
*/
|
|
47
|
+
export interface StScrollbarExpose {
|
|
48
|
+
/** 获取滚动容器元素 */
|
|
49
|
+
getScrollElement: () => HTMLElement | null;
|
|
50
|
+
/** 滚动到指定位置 */
|
|
51
|
+
scrollTo: (options: ScrollToOptions) => void;
|
|
52
|
+
/** 滚动到顶部 */
|
|
53
|
+
scrollToTop: () => void;
|
|
54
|
+
/** 滚动到底部 */
|
|
55
|
+
scrollToBottom: () => void;
|
|
56
|
+
/** 滚动到左侧 */
|
|
57
|
+
scrollToLeft: () => void;
|
|
58
|
+
/** 滚动到右侧 */
|
|
59
|
+
scrollToRight: () => void;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export {};
|
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
import type { ClassValue, StyleValue } from 'vue';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* 分段控制器选项接口
|
|
5
|
-
* */
|
|
6
|
-
export interface StSegmentedOption {
|
|
7
|
-
/** 选项值 */
|
|
8
|
-
value: string | number;
|
|
9
|
-
/** 选项标签 */
|
|
10
|
-
label: string;
|
|
11
|
-
/** 是否禁用 */
|
|
12
|
-
disabled?: boolean;
|
|
13
|
-
/** 图标类名 */
|
|
14
|
-
icon?: string;
|
|
15
|
-
/** 图标样式 */
|
|
16
|
-
iconStyle?: StyleValue;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* 分段控制器组件属性接口
|
|
21
|
-
* */
|
|
22
|
-
export interface StSegmentedProps {
|
|
23
|
-
/** 选项列表 */
|
|
24
|
-
options?: StSegmentedOption[];
|
|
25
|
-
/** 用于显示的标签字段名 */
|
|
26
|
-
labelKey?: string;
|
|
27
|
-
/** 用于值的字段名 */
|
|
28
|
-
valueKey?: string;
|
|
29
|
-
/** 是否禁用整体 */
|
|
30
|
-
disabled?: boolean;
|
|
31
|
-
/** 项 class */
|
|
32
|
-
itemClass?: ClassValue;
|
|
33
|
-
/** 项 style */
|
|
34
|
-
itemStyle?: StyleValue;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* 分段控制器组件事件接口
|
|
39
|
-
* */
|
|
40
|
-
export interface StSegmentedEmits {
|
|
41
|
-
/** 值改变事件 */
|
|
42
|
-
change: [value: string | number];
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* 分段控制器组件插槽接口
|
|
47
|
-
* */
|
|
48
|
-
export interface StSegmentedSlots {
|
|
49
|
-
/** 默认插槽 */
|
|
50
|
-
default?: () => unknown;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export {};
|
|
1
|
+
import type { ClassValue, StyleValue } from 'vue';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* 分段控制器选项接口
|
|
5
|
+
* */
|
|
6
|
+
export interface StSegmentedOption {
|
|
7
|
+
/** 选项值 */
|
|
8
|
+
value: string | number;
|
|
9
|
+
/** 选项标签 */
|
|
10
|
+
label: string;
|
|
11
|
+
/** 是否禁用 */
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
/** 图标类名 */
|
|
14
|
+
icon?: string;
|
|
15
|
+
/** 图标样式 */
|
|
16
|
+
iconStyle?: StyleValue;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* 分段控制器组件属性接口
|
|
21
|
+
* */
|
|
22
|
+
export interface StSegmentedProps {
|
|
23
|
+
/** 选项列表 */
|
|
24
|
+
options?: StSegmentedOption[];
|
|
25
|
+
/** 用于显示的标签字段名 */
|
|
26
|
+
labelKey?: string;
|
|
27
|
+
/** 用于值的字段名 */
|
|
28
|
+
valueKey?: string;
|
|
29
|
+
/** 是否禁用整体 */
|
|
30
|
+
disabled?: boolean;
|
|
31
|
+
/** 项 class */
|
|
32
|
+
itemClass?: ClassValue;
|
|
33
|
+
/** 项 style */
|
|
34
|
+
itemStyle?: StyleValue;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* 分段控制器组件事件接口
|
|
39
|
+
* */
|
|
40
|
+
export interface StSegmentedEmits {
|
|
41
|
+
/** 值改变事件 */
|
|
42
|
+
change: [value: string | number];
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* 分段控制器组件插槽接口
|
|
47
|
+
* */
|
|
48
|
+
export interface StSegmentedSlots {
|
|
49
|
+
/** 默认插槽 */
|
|
50
|
+
default?: () => unknown;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export {};
|