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.
Files changed (45) hide show
  1. package/README.md +146 -147
  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-select/types.d.ts +249 -249
  31. package/dist/components/st-sidebar/types.d.ts +85 -85
  32. package/dist/components/st-sidebar-item/types.d.ts +45 -45
  33. package/dist/components/st-skeleton/types.d.ts +56 -56
  34. package/dist/components/st-slider/types.d.ts +61 -61
  35. package/dist/components/st-splitter/types.d.ts +260 -260
  36. package/dist/components/st-splitter-panel/types.d.ts +63 -63
  37. package/dist/components/st-switch/types.d.ts +53 -53
  38. package/dist/components/st-tabs/types.d.ts +151 -151
  39. package/dist/components/st-tag/types.d.ts +51 -51
  40. package/dist/components/st-time-picker/types.d.ts +143 -143
  41. package/dist/components/st-toggle/types.d.ts +58 -58
  42. package/dist/components/st-tooltip/types.d.ts +172 -172
  43. package/dist/components/st-tree/types.d.ts +188 -188
  44. package/dist/straw-ui.js +344 -254
  45. package/package.json +16 -11
@@ -1,293 +1,293 @@
1
- import type { ClassValue, Ref, StyleValue } from 'vue';
2
-
3
- /**
4
- * StDialogGroup 注入上下文接口
5
- * 由 st-dialog.vue 提供,供各 Group 子组件注入获取共享状态和方法
6
- * */
7
- export interface StDialogGroupContext {
8
- /** 可见性引用 */
9
- readonly visible: Ref<boolean>;
10
- /** 遮罩层 zIndex 引用 */
11
- readonly overlayZIndex: Ref<number>;
12
- /** 内容层 zIndex 引用 */
13
- readonly contentZIndex: Ref<number>;
14
- /** 是否全屏引用 */
15
- readonly isFullscreen: Ref<boolean>;
16
- /** 拖拽偏移 X */
17
- readonly dragOffsetX: Ref<number>;
18
- /** 拖拽偏移 Y */
19
- readonly dragOffsetY: Ref<number>;
20
-
21
- /** 是否居中显示 */
22
- readonly center: boolean;
23
- /** 是否显示遮罩层 */
24
- readonly showOverlay: boolean;
25
- /** 是否显示关闭按钮 */
26
- readonly closable: boolean;
27
- /** 是否支持全屏 */
28
- readonly fullscreen: boolean;
29
- /** 是否支持拖拽 */
30
- readonly draggable: boolean;
31
- /** 点击遮罩层是否关闭 */
32
- readonly closeByOverlay: boolean;
33
-
34
- /** 关闭弹窗 */
35
- readonly handleClose: () => void;
36
- /** 切换全屏 */
37
- readonly toggleFullscreen: () => void;
38
- /** 拖拽开始事件处理 */
39
- readonly handleDragStart: (event: MouseEvent) => void;
40
- /** 遮罩层点击事件处理 */
41
- readonly handleOverlayClick: (event: MouseEvent) => void;
42
- }
43
-
44
- /**
45
- * StDialogGroup 容器组件属性
46
- * */
47
- export interface StDialogGroupProps {}
48
-
49
- /**
50
- * StDialogGroup 容器组件插槽
51
- * */
52
- export interface StDialogGroupSlots {
53
- /** 默认插槽 */
54
- default?(): unknown;
55
- }
56
-
57
- /**
58
- * StDialogGroup 容器组件事件
59
- * */
60
- export interface StDialogGroupEmits {}
61
-
62
- /**
63
- * StDialogGroupOverlay 遮罩组件属性
64
- * */
65
- export interface StDialogGroupOverlayProps {}
66
-
67
- /**
68
- * StDialogGroupOverlay 遮罩层组件插槽
69
- * */
70
- export interface StDialogGroupOverlaySlots {
71
- /** 默认插槽 */
72
- default?(): unknown;
73
- }
74
-
75
- /**
76
- * StDialogGroupOverlay 遮罩层组件事件
77
- * */
78
- export interface StDialogGroupOverlayEmits {
79
- /** 点击事件 */
80
- click: [event: MouseEvent];
81
- }
82
-
83
- /**
84
- * StDialogGroupBody 主体组件属性
85
- * */
86
- export interface StDialogGroupBodyProps {}
87
-
88
- /**
89
- * StDialogGroupBody 主体组件插槽
90
- * */
91
- export interface StDialogGroupBodySlots {
92
- /** 默认插槽 */
93
- default?(): unknown;
94
- }
95
-
96
- /**
97
- * StDialogGroupBody 主体组件事件
98
- * */
99
- export interface StDialogGroupBodyEmits {}
100
-
101
- /**
102
- * StDialogGroupHeader 头部组件属性
103
- * */
104
- export interface StDialogGroupHeaderProps {}
105
-
106
- /**
107
- * StDialogGroupHeader 头部组件插槽
108
- * */
109
- export interface StDialogGroupHeaderSlots {
110
- /** 默认插槽 */
111
- default?(): unknown;
112
- }
113
-
114
- /**
115
- * StDialogGroupHeader 头部组件事件
116
- * */
117
- export interface StDialogGroupHeaderEmits {
118
- /** 关闭事件 */
119
- close: [event: MouseEvent];
120
- /** 拖拽开始事件 */
121
- dragstart: [event: MouseEvent];
122
- /** 切换全屏事件 */
123
- toggleFullscreen: [];
124
- }
125
-
126
- /**
127
- * StDialogGroupDraggable 拖拽组件属性
128
- * */
129
- export interface StDialogGroupDraggableProps {}
130
-
131
- /**
132
- * StDialogGroupDraggable 拖拽组件插槽
133
- * */
134
- export interface StDialogGroupDraggableSlots {
135
- /** 默认插槽 */
136
- default?(): unknown;
137
- }
138
-
139
- /**
140
- * StDialogGroupDraggable 拖拽组件事件
141
- * */
142
- export interface StDialogGroupDraggableEmits {}
143
-
144
- /**
145
- * StDialogGroupTitle 标题组件属性
146
- * */
147
- export interface StDialogGroupTitleProps {}
148
-
149
- /**
150
- * StDialogGroupTitle 标题组件插槽
151
- * */
152
- export interface StDialogGroupTitleSlots {
153
- /** 默认插槽 */
154
- default?(): unknown;
155
- }
156
-
157
- /**
158
- * StDialogGroupTitle 标题组件事件
159
- * */
160
- export interface StDialogGroupTitleEmits {}
161
-
162
- /**
163
- * StDialogGroupAction 操作区组件属性
164
- * */
165
- export interface StDialogGroupActionProps {}
166
-
167
- /**
168
- * StDialogGroupAction 操作区组件插槽
169
- * */
170
- export interface StDialogGroupActionSlots {
171
- /** 默认插槽 */
172
- default?(): unknown;
173
- }
174
-
175
- /**
176
- * StDialogGroupAction 操作区组件事件
177
- * */
178
- export interface StDialogGroupActionEmits {}
179
-
180
- /**
181
- * StDialogGroupContent 内容区组件属性
182
- * */
183
- export interface StDialogGroupContentProps {}
184
-
185
- /**
186
- * StDialogGroupContent 内容区组件插槽
187
- * */
188
- export interface StDialogGroupContentSlots {
189
- /** 默认插槽 */
190
- default?(): unknown;
191
- }
192
-
193
- /**
194
- * StDialogGroupContent 内容区组件事件
195
- * */
196
- export interface StDialogGroupContentEmits {}
197
-
198
- /**
199
- * StDialogGroupFooter 脚部组件属性
200
- * */
201
- export interface StDialogGroupFooterProps {}
202
-
203
- /**
204
- * StDialogGroupFooter 脚部组件插槽
205
- * */
206
- export interface StDialogGroupFooterSlots {
207
- /** 默认插槽 */
208
- default?(): unknown;
209
- }
210
-
211
- /**
212
- * StDialogGroupFooter 脚部组件事件
213
- * */
214
- export interface StDialogGroupFooterEmits {}
215
-
216
- /**
217
- * StDialog 封装组件属性
218
- */
219
- export interface StDialogProps {
220
- /** 弹窗标题 */
221
- title?: string;
222
- /** 是否显示关闭按钮 */
223
- closable?: boolean;
224
- /** 是否支持拖拽 */
225
- draggable?: boolean;
226
- /** 是否支持全屏 */
227
- fullscreen?: boolean;
228
- /** 是否显示遮罩层 */
229
- showOverlay?: boolean;
230
- /** 点击遮罩层是否关闭弹窗 */
231
- closeByOverlay?: boolean;
232
- /** 是否居中显示 */
233
- center?: boolean;
234
-
235
- /** 遮罩层自定义类名 */
236
- overlayClass?: ClassValue;
237
- /** 遮罩层自定义样式 */
238
- overlayStyle?: StyleValue;
239
- /** 内容主体自定义类名 */
240
- bodyClass?: ClassValue;
241
- /** 内容主体自定义样式 */
242
- bodyStyle?: StyleValue;
243
- /** 头部自定义类名 */
244
- headerClass?: ClassValue;
245
- /** 头部自定义样式 */
246
- headerStyle?: StyleValue;
247
- /** 拖拽区域自定义类名 */
248
- draggableClass?: ClassValue;
249
- /** 拖拽区域自定义样式 */
250
- draggableStyle?: StyleValue;
251
- /** 标题自定义类名 */
252
- titleClass?: ClassValue;
253
- /** 标题自定义样式 */
254
- titleStyle?: StyleValue;
255
- /** 额外按钮自定义类名 */
256
- actionClass?: ClassValue;
257
- /** 额外按钮自定义样式 */
258
- actionStyle?: StyleValue;
259
- /** 内容区域自定义类名 */
260
- contentClass?: ClassValue;
261
- /** 内容区域自定义样式 */
262
- contentStyle?: StyleValue;
263
- /** 底部自定义类名 */
264
- footerClass?: ClassValue;
265
- /** 底部自定义样式 */
266
- footerStyle?: StyleValue;
267
- }
268
-
269
- /**
270
- * StDialog 封装组件插槽
271
- */
272
- export interface StDialogSlots {
273
- /** 默认插槽(弹窗内容) */
274
- default?(): unknown;
275
- /** 标题插槽 */
276
- title?(): unknown;
277
- /** 额外内容插槽(头部右侧) */
278
- action?(): unknown;
279
- /** 底部插槽 */
280
- footer?(): unknown;
281
- }
282
-
283
- /**
284
- * StDialog 封装组件事件
285
- */
286
- export interface StDialogEmits {
287
- /** 弹窗打开事件 */
288
- open: [];
289
- /** 弹窗关闭事件 */
290
- close: [];
291
- }
292
-
293
- export {};
1
+ import type { ClassValue, Ref, StyleValue } from 'vue';
2
+
3
+ /**
4
+ * StDialogGroup 注入上下文接口
5
+ * 由 st-dialog.vue 提供,供各 Group 子组件注入获取共享状态和方法
6
+ * */
7
+ export interface StDialogGroupContext {
8
+ /** 可见性引用 */
9
+ readonly visible: Ref<boolean>;
10
+ /** 遮罩层 zIndex 引用 */
11
+ readonly overlayZIndex: Ref<number>;
12
+ /** 内容层 zIndex 引用 */
13
+ readonly contentZIndex: Ref<number>;
14
+ /** 是否全屏引用 */
15
+ readonly isFullscreen: Ref<boolean>;
16
+ /** 拖拽偏移 X */
17
+ readonly dragOffsetX: Ref<number>;
18
+ /** 拖拽偏移 Y */
19
+ readonly dragOffsetY: Ref<number>;
20
+
21
+ /** 是否居中显示 */
22
+ readonly center: boolean;
23
+ /** 是否显示遮罩层 */
24
+ readonly showOverlay: boolean;
25
+ /** 是否显示关闭按钮 */
26
+ readonly closable: boolean;
27
+ /** 是否支持全屏 */
28
+ readonly fullscreen: boolean;
29
+ /** 是否支持拖拽 */
30
+ readonly draggable: boolean;
31
+ /** 点击遮罩层是否关闭 */
32
+ readonly closeByOverlay: boolean;
33
+
34
+ /** 关闭弹窗 */
35
+ readonly handleClose: () => void;
36
+ /** 切换全屏 */
37
+ readonly toggleFullscreen: () => void;
38
+ /** 拖拽开始事件处理 */
39
+ readonly handleDragStart: (event: MouseEvent) => void;
40
+ /** 遮罩层点击事件处理 */
41
+ readonly handleOverlayClick: (event: MouseEvent) => void;
42
+ }
43
+
44
+ /**
45
+ * StDialogGroup 容器组件属性
46
+ * */
47
+ export interface StDialogGroupProps {}
48
+
49
+ /**
50
+ * StDialogGroup 容器组件插槽
51
+ * */
52
+ export interface StDialogGroupSlots {
53
+ /** 默认插槽 */
54
+ default?(): unknown;
55
+ }
56
+
57
+ /**
58
+ * StDialogGroup 容器组件事件
59
+ * */
60
+ export interface StDialogGroupEmits {}
61
+
62
+ /**
63
+ * StDialogGroupOverlay 遮罩组件属性
64
+ * */
65
+ export interface StDialogGroupOverlayProps {}
66
+
67
+ /**
68
+ * StDialogGroupOverlay 遮罩层组件插槽
69
+ * */
70
+ export interface StDialogGroupOverlaySlots {
71
+ /** 默认插槽 */
72
+ default?(): unknown;
73
+ }
74
+
75
+ /**
76
+ * StDialogGroupOverlay 遮罩层组件事件
77
+ * */
78
+ export interface StDialogGroupOverlayEmits {
79
+ /** 点击事件 */
80
+ click: [event: MouseEvent];
81
+ }
82
+
83
+ /**
84
+ * StDialogGroupBody 主体组件属性
85
+ * */
86
+ export interface StDialogGroupBodyProps {}
87
+
88
+ /**
89
+ * StDialogGroupBody 主体组件插槽
90
+ * */
91
+ export interface StDialogGroupBodySlots {
92
+ /** 默认插槽 */
93
+ default?(): unknown;
94
+ }
95
+
96
+ /**
97
+ * StDialogGroupBody 主体组件事件
98
+ * */
99
+ export interface StDialogGroupBodyEmits {}
100
+
101
+ /**
102
+ * StDialogGroupHeader 头部组件属性
103
+ * */
104
+ export interface StDialogGroupHeaderProps {}
105
+
106
+ /**
107
+ * StDialogGroupHeader 头部组件插槽
108
+ * */
109
+ export interface StDialogGroupHeaderSlots {
110
+ /** 默认插槽 */
111
+ default?(): unknown;
112
+ }
113
+
114
+ /**
115
+ * StDialogGroupHeader 头部组件事件
116
+ * */
117
+ export interface StDialogGroupHeaderEmits {
118
+ /** 关闭事件 */
119
+ close: [event: MouseEvent];
120
+ /** 拖拽开始事件 */
121
+ dragstart: [event: MouseEvent];
122
+ /** 切换全屏事件 */
123
+ toggleFullscreen: [];
124
+ }
125
+
126
+ /**
127
+ * StDialogGroupDraggable 拖拽组件属性
128
+ * */
129
+ export interface StDialogGroupDraggableProps {}
130
+
131
+ /**
132
+ * StDialogGroupDraggable 拖拽组件插槽
133
+ * */
134
+ export interface StDialogGroupDraggableSlots {
135
+ /** 默认插槽 */
136
+ default?(): unknown;
137
+ }
138
+
139
+ /**
140
+ * StDialogGroupDraggable 拖拽组件事件
141
+ * */
142
+ export interface StDialogGroupDraggableEmits {}
143
+
144
+ /**
145
+ * StDialogGroupTitle 标题组件属性
146
+ * */
147
+ export interface StDialogGroupTitleProps {}
148
+
149
+ /**
150
+ * StDialogGroupTitle 标题组件插槽
151
+ * */
152
+ export interface StDialogGroupTitleSlots {
153
+ /** 默认插槽 */
154
+ default?(): unknown;
155
+ }
156
+
157
+ /**
158
+ * StDialogGroupTitle 标题组件事件
159
+ * */
160
+ export interface StDialogGroupTitleEmits {}
161
+
162
+ /**
163
+ * StDialogGroupAction 操作区组件属性
164
+ * */
165
+ export interface StDialogGroupActionProps {}
166
+
167
+ /**
168
+ * StDialogGroupAction 操作区组件插槽
169
+ * */
170
+ export interface StDialogGroupActionSlots {
171
+ /** 默认插槽 */
172
+ default?(): unknown;
173
+ }
174
+
175
+ /**
176
+ * StDialogGroupAction 操作区组件事件
177
+ * */
178
+ export interface StDialogGroupActionEmits {}
179
+
180
+ /**
181
+ * StDialogGroupContent 内容区组件属性
182
+ * */
183
+ export interface StDialogGroupContentProps {}
184
+
185
+ /**
186
+ * StDialogGroupContent 内容区组件插槽
187
+ * */
188
+ export interface StDialogGroupContentSlots {
189
+ /** 默认插槽 */
190
+ default?(): unknown;
191
+ }
192
+
193
+ /**
194
+ * StDialogGroupContent 内容区组件事件
195
+ * */
196
+ export interface StDialogGroupContentEmits {}
197
+
198
+ /**
199
+ * StDialogGroupFooter 脚部组件属性
200
+ * */
201
+ export interface StDialogGroupFooterProps {}
202
+
203
+ /**
204
+ * StDialogGroupFooter 脚部组件插槽
205
+ * */
206
+ export interface StDialogGroupFooterSlots {
207
+ /** 默认插槽 */
208
+ default?(): unknown;
209
+ }
210
+
211
+ /**
212
+ * StDialogGroupFooter 脚部组件事件
213
+ * */
214
+ export interface StDialogGroupFooterEmits {}
215
+
216
+ /**
217
+ * StDialog 封装组件属性
218
+ */
219
+ export interface StDialogProps {
220
+ /** 弹窗标题 */
221
+ title?: string;
222
+ /** 是否显示关闭按钮 */
223
+ closable?: boolean;
224
+ /** 是否支持拖拽 */
225
+ draggable?: boolean;
226
+ /** 是否支持全屏 */
227
+ fullscreen?: boolean;
228
+ /** 是否显示遮罩层 */
229
+ showOverlay?: boolean;
230
+ /** 点击遮罩层是否关闭弹窗 */
231
+ closeByOverlay?: boolean;
232
+ /** 是否居中显示 */
233
+ center?: boolean;
234
+
235
+ /** 遮罩层自定义类名 */
236
+ overlayClass?: ClassValue;
237
+ /** 遮罩层自定义样式 */
238
+ overlayStyle?: StyleValue;
239
+ /** 内容主体自定义类名 */
240
+ bodyClass?: ClassValue;
241
+ /** 内容主体自定义样式 */
242
+ bodyStyle?: StyleValue;
243
+ /** 头部自定义类名 */
244
+ headerClass?: ClassValue;
245
+ /** 头部自定义样式 */
246
+ headerStyle?: StyleValue;
247
+ /** 拖拽区域自定义类名 */
248
+ draggableClass?: ClassValue;
249
+ /** 拖拽区域自定义样式 */
250
+ draggableStyle?: StyleValue;
251
+ /** 标题自定义类名 */
252
+ titleClass?: ClassValue;
253
+ /** 标题自定义样式 */
254
+ titleStyle?: StyleValue;
255
+ /** 额外按钮自定义类名 */
256
+ actionClass?: ClassValue;
257
+ /** 额外按钮自定义样式 */
258
+ actionStyle?: StyleValue;
259
+ /** 内容区域自定义类名 */
260
+ contentClass?: ClassValue;
261
+ /** 内容区域自定义样式 */
262
+ contentStyle?: StyleValue;
263
+ /** 底部自定义类名 */
264
+ footerClass?: ClassValue;
265
+ /** 底部自定义样式 */
266
+ footerStyle?: StyleValue;
267
+ }
268
+
269
+ /**
270
+ * StDialog 封装组件插槽
271
+ */
272
+ export interface StDialogSlots {
273
+ /** 默认插槽(弹窗内容) */
274
+ default?(): unknown;
275
+ /** 标题插槽 */
276
+ title?(): unknown;
277
+ /** 额外内容插槽(头部右侧) */
278
+ action?(): unknown;
279
+ /** 底部插槽 */
280
+ footer?(): unknown;
281
+ }
282
+
283
+ /**
284
+ * StDialog 封装组件事件
285
+ */
286
+ export interface StDialogEmits {
287
+ /** 弹窗打开事件 */
288
+ open: [];
289
+ /** 弹窗关闭事件 */
290
+ close: [];
291
+ }
292
+
293
+ export {};