straw-ui-vue 0.1.20 → 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.
Files changed (44) hide show
  1. package/README.md +146 -146
  2. package/dist/{cn-CiflBmGp.js → cn-CThBjlvA.js} +7 -7
  3. package/dist/components/st-button/types.d.ts +63 -63
  4. package/dist/components/st-card/types.d.ts +184 -184
  5. package/dist/components/st-cascade/types.d.ts +156 -156
  6. package/dist/components/st-checkbox/types.d.ts +120 -120
  7. package/dist/components/st-color-picker/types.d.ts +160 -160
  8. package/dist/components/st-date-picker/types.d.ts +157 -157
  9. package/dist/components/st-datetime-picker/types.d.ts +155 -155
  10. package/dist/components/st-dialog/types.d.ts +293 -293
  11. package/dist/components/st-divider/types.d.ts +92 -92
  12. package/dist/components/st-drawer/types.d.ts +232 -232
  13. package/dist/components/st-empty/types.d.ts +39 -39
  14. package/dist/components/st-form-control/types.d.ts +21 -21
  15. package/dist/components/st-form-description/types.d.ts +21 -21
  16. package/dist/components/st-form-field/types.d.ts +64 -64
  17. package/dist/components/st-form-item/types.d.ts +21 -21
  18. package/dist/components/st-form-label/types.d.ts +19 -19
  19. package/dist/components/st-form-message/types.d.ts +23 -23
  20. package/dist/components/st-image/types.d.ts +58 -58
  21. package/dist/components/st-input/types.d.ts +415 -415
  22. package/dist/components/st-label/types.d.ts +19 -19
  23. package/dist/components/st-menu/types.d.ts +262 -262
  24. package/dist/components/st-pagination/types.d.ts +91 -91
  25. package/dist/components/st-popover/types.d.ts +202 -202
  26. package/dist/components/st-progress/types.d.ts +37 -37
  27. package/dist/components/st-radio/types.d.ts +126 -126
  28. package/dist/components/st-scrollbar/types.d.ts +62 -62
  29. package/dist/components/st-segmented/types.d.ts +53 -53
  30. package/dist/components/st-sidebar/types.d.ts +85 -85
  31. package/dist/components/st-sidebar-item/types.d.ts +45 -45
  32. package/dist/components/st-skeleton/types.d.ts +56 -56
  33. package/dist/components/st-slider/types.d.ts +61 -61
  34. package/dist/components/st-splitter/types.d.ts +260 -260
  35. package/dist/components/st-splitter-panel/types.d.ts +63 -63
  36. package/dist/components/st-switch/types.d.ts +53 -53
  37. package/dist/components/st-tabs/types.d.ts +151 -151
  38. package/dist/components/st-tag/types.d.ts +51 -51
  39. package/dist/components/st-time-picker/types.d.ts +143 -143
  40. package/dist/components/st-toggle/types.d.ts +58 -58
  41. package/dist/components/st-tooltip/types.d.ts +172 -172
  42. package/dist/components/st-tree/types.d.ts +188 -188
  43. package/dist/straw-ui.js +107 -51
  44. package/package.json +16 -11
@@ -1,92 +1,92 @@
1
- import type { ClassValue, ComputedRef, StyleValue } from 'vue';
2
-
3
- /**
4
- * 分割线方向类型
5
- * */
6
- export type StDividerDirection = 'horizontal' | 'vertical';
7
-
8
- /**
9
- * 分割线文字位置类型
10
- * */
11
- export type StDividerContentPosition = 'left' | 'center' | 'right';
12
-
13
- /**
14
- * 分割线样式类型
15
- * */
16
- export type StDividerVariant = 'solid' | 'dashed' | 'dotted';
17
-
18
- /**
19
- * 分割线组件属性
20
- * */
21
- export interface StDividerProps {
22
- /** 分割线方向 */
23
- direction?: StDividerDirection;
24
- /** 文字位置(仅在水平方向且有内容时生效) */
25
- contentPosition?: StDividerContentPosition;
26
- /** 分割线样式 */
27
- variant?: StDividerVariant;
28
- /** 线条类名 */
29
- lineClass?: ClassValue;
30
- /** 线条样式 */
31
- lineStyle?: StyleValue;
32
- /** 内容类名 */
33
- contentClass?: ClassValue;
34
- /** 内容样式 */
35
- contentStyle?: StyleValue;
36
- }
37
-
38
- /**
39
- * 分割线组件插槽类型
40
- * */
41
- export interface StDividerSlots {
42
- /** 默认插槽,分割线文字内容 */
43
- default?: () => unknown;
44
- }
45
-
46
- /**
47
- * 分割线组件事件类型
48
- * */
49
- export interface StDividerEmits {}
50
-
51
- /**
52
- * 分割线 线组件属性
53
- * */
54
- export interface StDividerLineProps {}
55
-
56
- /**
57
- * 分割线 线组件插槽类型
58
- * */
59
- export interface StDividerLineSlots {}
60
-
61
- /**
62
- * 分割线 线组件事件类型
63
- * */
64
- export interface StDividerLineEmits {}
65
-
66
- /**
67
- * 分割线 文本组件属性
68
- * */
69
- export interface StDividerContentProps {}
70
-
71
- /**
72
- * 分割线 文本组件插槽类型
73
- * */
74
- export interface StDividerContentSlots {}
75
-
76
- /**
77
- * 分割线 文本组建事件类型
78
- * */
79
- export interface StDividerContentEmits {}
80
-
81
- /**
82
- * StDivider 注入上下文接口
83
- * 由 st-divider.vue 提供,供子组件注入获取共享状态
84
- * */
85
- export interface StDividerContext {
86
- /** 分割线方向 */
87
- readonly direction: ComputedRef<StDividerDirection>;
88
- /** 分割线样式 */
89
- readonly variant: ComputedRef<StDividerVariant>;
90
- }
91
-
92
- export {};
1
+ import type { ClassValue, ComputedRef, StyleValue } from 'vue';
2
+
3
+ /**
4
+ * 分割线方向类型
5
+ * */
6
+ export type StDividerDirection = 'horizontal' | 'vertical';
7
+
8
+ /**
9
+ * 分割线文字位置类型
10
+ * */
11
+ export type StDividerContentPosition = 'left' | 'center' | 'right';
12
+
13
+ /**
14
+ * 分割线样式类型
15
+ * */
16
+ export type StDividerVariant = 'solid' | 'dashed' | 'dotted';
17
+
18
+ /**
19
+ * 分割线组件属性
20
+ * */
21
+ export interface StDividerProps {
22
+ /** 分割线方向 */
23
+ direction?: StDividerDirection;
24
+ /** 文字位置(仅在水平方向且有内容时生效) */
25
+ contentPosition?: StDividerContentPosition;
26
+ /** 分割线样式 */
27
+ variant?: StDividerVariant;
28
+ /** 线条类名 */
29
+ lineClass?: ClassValue;
30
+ /** 线条样式 */
31
+ lineStyle?: StyleValue;
32
+ /** 内容类名 */
33
+ contentClass?: ClassValue;
34
+ /** 内容样式 */
35
+ contentStyle?: StyleValue;
36
+ }
37
+
38
+ /**
39
+ * 分割线组件插槽类型
40
+ * */
41
+ export interface StDividerSlots {
42
+ /** 默认插槽,分割线文字内容 */
43
+ default?: () => unknown;
44
+ }
45
+
46
+ /**
47
+ * 分割线组件事件类型
48
+ * */
49
+ export interface StDividerEmits {}
50
+
51
+ /**
52
+ * 分割线 线组件属性
53
+ * */
54
+ export interface StDividerLineProps {}
55
+
56
+ /**
57
+ * 分割线 线组件插槽类型
58
+ * */
59
+ export interface StDividerLineSlots {}
60
+
61
+ /**
62
+ * 分割线 线组件事件类型
63
+ * */
64
+ export interface StDividerLineEmits {}
65
+
66
+ /**
67
+ * 分割线 文本组件属性
68
+ * */
69
+ export interface StDividerContentProps {}
70
+
71
+ /**
72
+ * 分割线 文本组件插槽类型
73
+ * */
74
+ export interface StDividerContentSlots {}
75
+
76
+ /**
77
+ * 分割线 文本组建事件类型
78
+ * */
79
+ export interface StDividerContentEmits {}
80
+
81
+ /**
82
+ * StDivider 注入上下文接口
83
+ * 由 st-divider.vue 提供,供子组件注入获取共享状态
84
+ * */
85
+ export interface StDividerContext {
86
+ /** 分割线方向 */
87
+ readonly direction: ComputedRef<StDividerDirection>;
88
+ /** 分割线样式 */
89
+ readonly variant: ComputedRef<StDividerVariant>;
90
+ }
91
+
92
+ export {};
@@ -1,232 +1,232 @@
1
- import type { ClassValue, Ref, StyleValue } from 'vue';
2
-
3
- /**
4
- * 抽屉方向类型
5
- */
6
- export type StDrawerPlacement = 'left' | 'right' | 'top' | 'bottom';
7
-
8
- /**
9
- * StDrawerGroup 注入上下文接口
10
- * 由 st-drawer.vue 提供,供各 Group 子组件注入获取共享状态和方法
11
- * */
12
- export interface StDrawerGroupContext {
13
- /** 可见性引用 */
14
- readonly visible: Ref<boolean>;
15
- /** 遮罩层 zIndex 引用 */
16
- readonly overlayZIndex: Ref<number>;
17
- /** 内容层 zIndex 引用 */
18
- readonly contentZIndex: Ref<number>;
19
-
20
- /** 是否显示遮罩层 */
21
- readonly showOverlay: boolean;
22
- /** 点击遮罩层关闭 */
23
- readonly closeByOverlay: boolean;
24
- /** 抽屉方向 */
25
- readonly placement: StDrawerPlacement;
26
- /** 是否显示关闭按钮 */
27
- readonly closable: boolean;
28
-
29
- /** 关闭抽屉 */
30
- readonly handleClose: () => void;
31
- /** 遮罩层点击事件处理 */
32
- readonly handleOverlayClick: () => void;
33
- }
34
-
35
- /**
36
- * StDrawerGroupOverlay 遮罩组件属性
37
- */
38
- export interface StDrawerGroupOverlayProps {}
39
-
40
- /**
41
- * StDrawerGroupOverlay 遮罩层组件插槽
42
- * */
43
- export interface StDrawerGroupOverlaySlots {
44
- /** 默认插槽 */
45
- default?(): unknown;
46
- }
47
-
48
- /**
49
- * StDrawerGroupOverlay 遮罩层组件事件
50
- * */
51
- export interface StDrawerGroupOverlayEmits {
52
- /** 点击事件 */
53
- click: [event: MouseEvent];
54
- }
55
-
56
- /**
57
- * StDrawerGroupBody 组件属性
58
- * */
59
- export interface StDrawerGroupBodyProps {}
60
-
61
- /**
62
- * StDrawerGroupBody 组件插槽
63
- * */
64
- export interface StDrawerGroupBodySlots {
65
- /** 默认插槽(抽屉内容区域) */
66
- default?(): unknown;
67
- }
68
-
69
- /**
70
- * StDrawerGroupBody 组件事件
71
- * */
72
- export interface StDrawerGroupBodyEmits {}
73
-
74
- /**
75
- * StDrawer 头部组件属性
76
- * */
77
- export interface StDrawerGroupHeaderProps {}
78
-
79
- /**
80
- * StDrawer 头部组件插槽
81
- * */
82
- export interface StDrawerGroupHeaderSlots {
83
- /** 默认插槽(标题区域) */
84
- default?(): unknown;
85
- /** 额外内容插槽(头部右侧) */
86
- action?(): unknown;
87
- }
88
-
89
- /**
90
- * StDrawer 头部组件事件
91
- * */
92
- export interface StDrawerGroupHeaderEmits {
93
- close: [event: MouseEvent];
94
- }
95
-
96
- /**
97
- * StDrawer 标题组件属性
98
- * */
99
- export interface StDrawerGroupTitleProps {}
100
-
101
- /**
102
- * StDrawer 标题组件插槽
103
- * */
104
- export interface StDrawerGroupTitleSlots {
105
- /** 默认插槽 */
106
- default?(): unknown;
107
- }
108
-
109
- /**
110
- * StDrawer 标题组件事件
111
- * */
112
- export interface StDrawerGroupTitleEmits {}
113
-
114
- /**
115
- * StDrawer 额外按钮组件属性
116
- * */
117
- export interface StDrawerGroupActionProps {}
118
-
119
- /**
120
- * StDrawer 额外按钮组件插槽
121
- * */
122
- export interface StDrawerGroupActionSlots {
123
- /** 默认插槽 */
124
- default?(): unknown;
125
- }
126
-
127
- /**
128
- * StDrawer 额外按钮组件事件
129
- * */
130
- export interface StDrawerGroupActionEmits {}
131
-
132
- /**
133
- * StDrawer body层属性
134
- * */
135
- export interface StDrawerGroupContentProps {}
136
-
137
- /**
138
- * StDrawer body层插槽
139
- * */
140
- export interface StDrawerGroupContentSlots {
141
- /** 默认插槽(内容主体) */
142
- default?(): unknown;
143
- }
144
-
145
- /**
146
- * StDrawer body层事件
147
- * */
148
- export interface StDrawerGroupContentEmits {}
149
-
150
- /**
151
- * StDrawer 脚部属性
152
- * */
153
- export interface StDrawerGroupFooterProps {}
154
-
155
- /**
156
- * StDrawer 脚部插槽
157
- * */
158
- export interface StDrawerGroupFooterSlots {
159
- /** 默认插槽(底部区域) */
160
- default?(): unknown;
161
- }
162
-
163
- /**
164
- * StDrawer 脚部事件
165
- * */
166
- export interface StDrawerGroupFooterEmits {}
167
-
168
- /**
169
- * StDrawer 封装组件属性
170
- */
171
- export interface StDrawerProps {
172
- /** 是否显示遮罩层 */
173
- showOverlay?: boolean;
174
- /** 点击遮罩层关闭 */
175
- closeByOverlay?: boolean;
176
- /** 抽屉方向 */
177
- placement?: StDrawerPlacement;
178
- /** 标题 */
179
- title?: string;
180
- /** 是否显示关闭按钮 */
181
- closable?: boolean;
182
- /** 遮罩层自定义类名 */
183
- overlayClass?: ClassValue;
184
- /** 遮罩层自定义样式 */
185
- overlayStyle?: StyleValue;
186
- /** 头部自定义类名 */
187
- headerClass?: ClassValue;
188
- /** 头部自定义样式 */
189
- headerStyle?: StyleValue;
190
- /** 标题自定义类名 */
191
- titleClass?: ClassValue;
192
- /** 标题自定义样式 */
193
- titleStyle?: StyleValue;
194
- /** 额外按钮自定义类名 */
195
- actionClass?: ClassValue;
196
- /** 额外按钮自定义样式 */
197
- actionStyle?: StyleValue;
198
- /** 内容区域自定义类名 */
199
- contentClass?: ClassValue;
200
- /** 内容区域自定义样式 */
201
- contentStyle?: StyleValue;
202
- /** 底部自定义类名 */
203
- footerClass?: ClassValue;
204
- /** 底部自定义样式 */
205
- footerStyle?: StyleValue;
206
- }
207
-
208
- /**
209
- * StDrawer 封装组件插槽
210
- */
211
- export interface StDrawerSlots {
212
- /** 默认插槽(抽屉内容) */
213
- default?(): unknown;
214
- /** 标题插槽 */
215
- title?(): unknown;
216
- /** 额外内容插槽(头部右侧) */
217
- action?(): unknown;
218
- /** 底部插槽 */
219
- footer?(): unknown;
220
- }
221
-
222
- /**
223
- * StDrawer 封装组件事件
224
- */
225
- export interface StDrawerEmits {
226
- /** 抽屉打开事件 */
227
- open: [];
228
- /** 抽屉关闭事件 */
229
- close: [];
230
- }
231
-
232
- export {};
1
+ import type { ClassValue, Ref, StyleValue } from 'vue';
2
+
3
+ /**
4
+ * 抽屉方向类型
5
+ */
6
+ export type StDrawerPlacement = 'left' | 'right' | 'top' | 'bottom';
7
+
8
+ /**
9
+ * StDrawerGroup 注入上下文接口
10
+ * 由 st-drawer.vue 提供,供各 Group 子组件注入获取共享状态和方法
11
+ * */
12
+ export interface StDrawerGroupContext {
13
+ /** 可见性引用 */
14
+ readonly visible: Ref<boolean>;
15
+ /** 遮罩层 zIndex 引用 */
16
+ readonly overlayZIndex: Ref<number>;
17
+ /** 内容层 zIndex 引用 */
18
+ readonly contentZIndex: Ref<number>;
19
+
20
+ /** 是否显示遮罩层 */
21
+ readonly showOverlay: boolean;
22
+ /** 点击遮罩层关闭 */
23
+ readonly closeByOverlay: boolean;
24
+ /** 抽屉方向 */
25
+ readonly placement: StDrawerPlacement;
26
+ /** 是否显示关闭按钮 */
27
+ readonly closable: boolean;
28
+
29
+ /** 关闭抽屉 */
30
+ readonly handleClose: () => void;
31
+ /** 遮罩层点击事件处理 */
32
+ readonly handleOverlayClick: () => void;
33
+ }
34
+
35
+ /**
36
+ * StDrawerGroupOverlay 遮罩组件属性
37
+ */
38
+ export interface StDrawerGroupOverlayProps {}
39
+
40
+ /**
41
+ * StDrawerGroupOverlay 遮罩层组件插槽
42
+ * */
43
+ export interface StDrawerGroupOverlaySlots {
44
+ /** 默认插槽 */
45
+ default?(): unknown;
46
+ }
47
+
48
+ /**
49
+ * StDrawerGroupOverlay 遮罩层组件事件
50
+ * */
51
+ export interface StDrawerGroupOverlayEmits {
52
+ /** 点击事件 */
53
+ click: [event: MouseEvent];
54
+ }
55
+
56
+ /**
57
+ * StDrawerGroupBody 组件属性
58
+ * */
59
+ export interface StDrawerGroupBodyProps {}
60
+
61
+ /**
62
+ * StDrawerGroupBody 组件插槽
63
+ * */
64
+ export interface StDrawerGroupBodySlots {
65
+ /** 默认插槽(抽屉内容区域) */
66
+ default?(): unknown;
67
+ }
68
+
69
+ /**
70
+ * StDrawerGroupBody 组件事件
71
+ * */
72
+ export interface StDrawerGroupBodyEmits {}
73
+
74
+ /**
75
+ * StDrawer 头部组件属性
76
+ * */
77
+ export interface StDrawerGroupHeaderProps {}
78
+
79
+ /**
80
+ * StDrawer 头部组件插槽
81
+ * */
82
+ export interface StDrawerGroupHeaderSlots {
83
+ /** 默认插槽(标题区域) */
84
+ default?(): unknown;
85
+ /** 额外内容插槽(头部右侧) */
86
+ action?(): unknown;
87
+ }
88
+
89
+ /**
90
+ * StDrawer 头部组件事件
91
+ * */
92
+ export interface StDrawerGroupHeaderEmits {
93
+ close: [event: MouseEvent];
94
+ }
95
+
96
+ /**
97
+ * StDrawer 标题组件属性
98
+ * */
99
+ export interface StDrawerGroupTitleProps {}
100
+
101
+ /**
102
+ * StDrawer 标题组件插槽
103
+ * */
104
+ export interface StDrawerGroupTitleSlots {
105
+ /** 默认插槽 */
106
+ default?(): unknown;
107
+ }
108
+
109
+ /**
110
+ * StDrawer 标题组件事件
111
+ * */
112
+ export interface StDrawerGroupTitleEmits {}
113
+
114
+ /**
115
+ * StDrawer 额外按钮组件属性
116
+ * */
117
+ export interface StDrawerGroupActionProps {}
118
+
119
+ /**
120
+ * StDrawer 额外按钮组件插槽
121
+ * */
122
+ export interface StDrawerGroupActionSlots {
123
+ /** 默认插槽 */
124
+ default?(): unknown;
125
+ }
126
+
127
+ /**
128
+ * StDrawer 额外按钮组件事件
129
+ * */
130
+ export interface StDrawerGroupActionEmits {}
131
+
132
+ /**
133
+ * StDrawer body层属性
134
+ * */
135
+ export interface StDrawerGroupContentProps {}
136
+
137
+ /**
138
+ * StDrawer body层插槽
139
+ * */
140
+ export interface StDrawerGroupContentSlots {
141
+ /** 默认插槽(内容主体) */
142
+ default?(): unknown;
143
+ }
144
+
145
+ /**
146
+ * StDrawer body层事件
147
+ * */
148
+ export interface StDrawerGroupContentEmits {}
149
+
150
+ /**
151
+ * StDrawer 脚部属性
152
+ * */
153
+ export interface StDrawerGroupFooterProps {}
154
+
155
+ /**
156
+ * StDrawer 脚部插槽
157
+ * */
158
+ export interface StDrawerGroupFooterSlots {
159
+ /** 默认插槽(底部区域) */
160
+ default?(): unknown;
161
+ }
162
+
163
+ /**
164
+ * StDrawer 脚部事件
165
+ * */
166
+ export interface StDrawerGroupFooterEmits {}
167
+
168
+ /**
169
+ * StDrawer 封装组件属性
170
+ */
171
+ export interface StDrawerProps {
172
+ /** 是否显示遮罩层 */
173
+ showOverlay?: boolean;
174
+ /** 点击遮罩层关闭 */
175
+ closeByOverlay?: boolean;
176
+ /** 抽屉方向 */
177
+ placement?: StDrawerPlacement;
178
+ /** 标题 */
179
+ title?: string;
180
+ /** 是否显示关闭按钮 */
181
+ closable?: boolean;
182
+ /** 遮罩层自定义类名 */
183
+ overlayClass?: ClassValue;
184
+ /** 遮罩层自定义样式 */
185
+ overlayStyle?: StyleValue;
186
+ /** 头部自定义类名 */
187
+ headerClass?: ClassValue;
188
+ /** 头部自定义样式 */
189
+ headerStyle?: StyleValue;
190
+ /** 标题自定义类名 */
191
+ titleClass?: ClassValue;
192
+ /** 标题自定义样式 */
193
+ titleStyle?: StyleValue;
194
+ /** 额外按钮自定义类名 */
195
+ actionClass?: ClassValue;
196
+ /** 额外按钮自定义样式 */
197
+ actionStyle?: StyleValue;
198
+ /** 内容区域自定义类名 */
199
+ contentClass?: ClassValue;
200
+ /** 内容区域自定义样式 */
201
+ contentStyle?: StyleValue;
202
+ /** 底部自定义类名 */
203
+ footerClass?: ClassValue;
204
+ /** 底部自定义样式 */
205
+ footerStyle?: StyleValue;
206
+ }
207
+
208
+ /**
209
+ * StDrawer 封装组件插槽
210
+ */
211
+ export interface StDrawerSlots {
212
+ /** 默认插槽(抽屉内容) */
213
+ default?(): unknown;
214
+ /** 标题插槽 */
215
+ title?(): unknown;
216
+ /** 额外内容插槽(头部右侧) */
217
+ action?(): unknown;
218
+ /** 底部插槽 */
219
+ footer?(): unknown;
220
+ }
221
+
222
+ /**
223
+ * StDrawer 封装组件事件
224
+ */
225
+ export interface StDrawerEmits {
226
+ /** 抽屉打开事件 */
227
+ open: [];
228
+ /** 抽屉关闭事件 */
229
+ close: [];
230
+ }
231
+
232
+ export {};