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.
- package/README.md +146 -146
- 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-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 +107 -51
- package/package.json +16 -11
|
@@ -1,260 +1,260 @@
|
|
|
1
|
-
import type { ClassValue, Ref, StyleValue } from 'vue';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* 分屏方向类型
|
|
5
|
-
* */
|
|
6
|
-
export type StSplitterDirection = 'horizontal' | 'vertical';
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* 面板配置接口
|
|
10
|
-
* */
|
|
11
|
-
export interface StSplitterPanelConfig {
|
|
12
|
-
/**
|
|
13
|
-
* 面板唯一标识
|
|
14
|
-
* */
|
|
15
|
-
id: string;
|
|
16
|
-
/**
|
|
17
|
-
* 当前尺寸
|
|
18
|
-
* */
|
|
19
|
-
size: number;
|
|
20
|
-
/**
|
|
21
|
-
* 最小尺寸
|
|
22
|
-
* */
|
|
23
|
-
minSize?: number;
|
|
24
|
-
/**
|
|
25
|
-
* 最大尺寸
|
|
26
|
-
* */
|
|
27
|
-
maxSize?: number;
|
|
28
|
-
/**
|
|
29
|
-
* 期望尺寸,用于恢复时使用
|
|
30
|
-
* */
|
|
31
|
-
desiredSize?: number;
|
|
32
|
-
/**
|
|
33
|
-
* 是否为弹性面板
|
|
34
|
-
* */
|
|
35
|
-
flex?: boolean;
|
|
36
|
-
/**
|
|
37
|
-
* 是否可见
|
|
38
|
-
* */
|
|
39
|
-
visible: boolean;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* 分屏组件属性接口
|
|
44
|
-
* */
|
|
45
|
-
export interface StSplitterProps {
|
|
46
|
-
/**
|
|
47
|
-
* 分屏方向
|
|
48
|
-
* */
|
|
49
|
-
direction?: StSplitterDirection;
|
|
50
|
-
/**
|
|
51
|
-
* splitter 容器 class
|
|
52
|
-
* */
|
|
53
|
-
splitterClass?: ClassValue;
|
|
54
|
-
/**
|
|
55
|
-
* splitter 容器 style
|
|
56
|
-
* */
|
|
57
|
-
splitterStyle?: StyleValue;
|
|
58
|
-
/**
|
|
59
|
-
* 拖拽手柄 class
|
|
60
|
-
* */
|
|
61
|
-
handleClass?: ClassValue;
|
|
62
|
-
/**
|
|
63
|
-
* 拖拽手柄 style
|
|
64
|
-
* */
|
|
65
|
-
handleStyle?: StyleValue;
|
|
66
|
-
/**
|
|
67
|
-
* 分割条 class
|
|
68
|
-
* */
|
|
69
|
-
gutterClass?: ClassValue;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* 分屏组件事件接口
|
|
74
|
-
* */
|
|
75
|
-
export interface StSplitterEmits {
|
|
76
|
-
/** 面板尺寸变化事件 */
|
|
77
|
-
resize: [panels: StSplitterPanelConfig[]];
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* 分屏组件插槽接口
|
|
82
|
-
* */
|
|
83
|
-
export interface StSplitterSlots {
|
|
84
|
-
/** 默认插槽 */
|
|
85
|
-
default?: () => unknown;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* 分屏组件暴露方法接口
|
|
90
|
-
* */
|
|
91
|
-
export interface StSplitterExpose {
|
|
92
|
-
/** 获取面板配置 */
|
|
93
|
-
getPanels: () => StSplitterPanelConfig[];
|
|
94
|
-
/** 设置面板尺寸 */
|
|
95
|
-
setPanelSize: (id: string, size: number) => void;
|
|
96
|
-
/** 重置面板尺寸 */
|
|
97
|
-
resetSizes: () => void;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* 分屏内部上下文接口 - 包含响应式状态
|
|
102
|
-
* */
|
|
103
|
-
export interface StSplitterInternalContext {
|
|
104
|
-
/**
|
|
105
|
-
* 分屏方向
|
|
106
|
-
* */
|
|
107
|
-
direction: Ref<StSplitterDirection>;
|
|
108
|
-
/**
|
|
109
|
-
* 面板列表
|
|
110
|
-
* */
|
|
111
|
-
panels: Ref<StSplitterPanelConfig[]>;
|
|
112
|
-
/**
|
|
113
|
-
* 当前激活的分隔条索引
|
|
114
|
-
* */
|
|
115
|
-
activeGutter: Ref<number | null>;
|
|
116
|
-
/**
|
|
117
|
-
* 分隔条尺寸
|
|
118
|
-
* */
|
|
119
|
-
gutterSize: number;
|
|
120
|
-
/**
|
|
121
|
-
* 鼠标位置响应式引用
|
|
122
|
-
* */
|
|
123
|
-
mousePosition: Ref<{ x: number; y: number } | null>;
|
|
124
|
-
/**
|
|
125
|
-
* 当前悬浮的gutter索引
|
|
126
|
-
* */
|
|
127
|
-
isHoveringGutter: Ref<number | null>;
|
|
128
|
-
/**
|
|
129
|
-
* splitter 容器 class
|
|
130
|
-
* */
|
|
131
|
-
splitterClass?: Ref<ClassValue | undefined>;
|
|
132
|
-
/**
|
|
133
|
-
* splitter 容器 style
|
|
134
|
-
* */
|
|
135
|
-
splitterStyle?: Ref<StyleValue | undefined>;
|
|
136
|
-
/**
|
|
137
|
-
* 拖拽手柄 class
|
|
138
|
-
* */
|
|
139
|
-
handleClass?: Ref<ClassValue | undefined>;
|
|
140
|
-
/**
|
|
141
|
-
* 拖拽手柄 style
|
|
142
|
-
* */
|
|
143
|
-
handleStyle?: Ref<StyleValue | undefined>;
|
|
144
|
-
/**
|
|
145
|
-
* 分割条 class
|
|
146
|
-
* */
|
|
147
|
-
gutterClass?: Ref<ClassValue | undefined>;
|
|
148
|
-
/**
|
|
149
|
-
* 注册面板
|
|
150
|
-
* */
|
|
151
|
-
registerPanel: (panel: StSplitterPanelConfig) => void;
|
|
152
|
-
/**
|
|
153
|
-
* 注销面板
|
|
154
|
-
* */
|
|
155
|
-
unregisterPanel: (id: string) => void;
|
|
156
|
-
/**
|
|
157
|
-
* 更新面板可见性
|
|
158
|
-
* */
|
|
159
|
-
updatePanelVisible: (id: string, visible: boolean) => void;
|
|
160
|
-
/**
|
|
161
|
-
* 开始拖拽调整尺寸
|
|
162
|
-
* */
|
|
163
|
-
startResize: (gutterIndex: number, event: MouseEvent) => void;
|
|
164
|
-
/**
|
|
165
|
-
* 更新弹性面板尺寸
|
|
166
|
-
* */
|
|
167
|
-
updateFlexPanelSize: () => void;
|
|
168
|
-
/**
|
|
169
|
-
* 初始化面板尺寸
|
|
170
|
-
* */
|
|
171
|
-
initializePanelSizes: (containerEl: HTMLElement | null) => void;
|
|
172
|
-
/**
|
|
173
|
-
* 获取容器尺寸
|
|
174
|
-
* */
|
|
175
|
-
getContainerSize: (containerEl?: HTMLElement | null) => number;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
/**
|
|
179
|
-
* 拖拽状态接口
|
|
180
|
-
* */
|
|
181
|
-
export interface StDragState {
|
|
182
|
-
/**
|
|
183
|
-
* 是否正在拖拽
|
|
184
|
-
* */
|
|
185
|
-
isDragging: boolean;
|
|
186
|
-
/**
|
|
187
|
-
* 拖拽的分隔条索引
|
|
188
|
-
* */
|
|
189
|
-
gutterIndex: number;
|
|
190
|
-
/**
|
|
191
|
-
* 起始X坐标
|
|
192
|
-
* */
|
|
193
|
-
startX: number;
|
|
194
|
-
/**
|
|
195
|
-
* 起始Y坐标
|
|
196
|
-
* */
|
|
197
|
-
startY: number;
|
|
198
|
-
/**
|
|
199
|
-
* 起始时各面板尺寸
|
|
200
|
-
* */
|
|
201
|
-
startSizes: number[];
|
|
202
|
-
/**
|
|
203
|
-
* 当前鼠标X坐标
|
|
204
|
-
* */
|
|
205
|
-
currentX?: number;
|
|
206
|
-
/**
|
|
207
|
-
* 当前鼠标Y坐标
|
|
208
|
-
* */
|
|
209
|
-
currentY?: number;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
/**
|
|
213
|
-
* 尺寸约束计算参数接口
|
|
214
|
-
* */
|
|
215
|
-
export interface StConstrainedSizesOptions {
|
|
216
|
-
/**
|
|
217
|
-
* 左面板期望尺寸
|
|
218
|
-
* */
|
|
219
|
-
leftSize: number;
|
|
220
|
-
/**
|
|
221
|
-
* 右面板期望尺寸
|
|
222
|
-
* */
|
|
223
|
-
rightSize: number;
|
|
224
|
-
/**
|
|
225
|
-
* 左面板最小尺寸
|
|
226
|
-
* */
|
|
227
|
-
leftMin: number;
|
|
228
|
-
/**
|
|
229
|
-
* 左面板最大尺寸
|
|
230
|
-
* */
|
|
231
|
-
leftMax: number;
|
|
232
|
-
/**
|
|
233
|
-
* 右面板最小尺寸
|
|
234
|
-
* */
|
|
235
|
-
rightMin: number;
|
|
236
|
-
/**
|
|
237
|
-
* 右面板最大尺寸
|
|
238
|
-
* */
|
|
239
|
-
rightMax: number;
|
|
240
|
-
/**
|
|
241
|
-
* 两面板总尺寸
|
|
242
|
-
* */
|
|
243
|
-
totalSize: number;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
/**
|
|
247
|
-
* 尺寸约束计算结果接口
|
|
248
|
-
* */
|
|
249
|
-
export interface StConstrainedSizesResult {
|
|
250
|
-
/**
|
|
251
|
-
* 约束后的左面板尺寸
|
|
252
|
-
* */
|
|
253
|
-
leftSize: number;
|
|
254
|
-
/**
|
|
255
|
-
* 约束后的右面板尺寸
|
|
256
|
-
* */
|
|
257
|
-
rightSize: number;
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
export {};
|
|
1
|
+
import type { ClassValue, Ref, StyleValue } from 'vue';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* 分屏方向类型
|
|
5
|
+
* */
|
|
6
|
+
export type StSplitterDirection = 'horizontal' | 'vertical';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* 面板配置接口
|
|
10
|
+
* */
|
|
11
|
+
export interface StSplitterPanelConfig {
|
|
12
|
+
/**
|
|
13
|
+
* 面板唯一标识
|
|
14
|
+
* */
|
|
15
|
+
id: string;
|
|
16
|
+
/**
|
|
17
|
+
* 当前尺寸
|
|
18
|
+
* */
|
|
19
|
+
size: number;
|
|
20
|
+
/**
|
|
21
|
+
* 最小尺寸
|
|
22
|
+
* */
|
|
23
|
+
minSize?: number;
|
|
24
|
+
/**
|
|
25
|
+
* 最大尺寸
|
|
26
|
+
* */
|
|
27
|
+
maxSize?: number;
|
|
28
|
+
/**
|
|
29
|
+
* 期望尺寸,用于恢复时使用
|
|
30
|
+
* */
|
|
31
|
+
desiredSize?: number;
|
|
32
|
+
/**
|
|
33
|
+
* 是否为弹性面板
|
|
34
|
+
* */
|
|
35
|
+
flex?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* 是否可见
|
|
38
|
+
* */
|
|
39
|
+
visible: boolean;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* 分屏组件属性接口
|
|
44
|
+
* */
|
|
45
|
+
export interface StSplitterProps {
|
|
46
|
+
/**
|
|
47
|
+
* 分屏方向
|
|
48
|
+
* */
|
|
49
|
+
direction?: StSplitterDirection;
|
|
50
|
+
/**
|
|
51
|
+
* splitter 容器 class
|
|
52
|
+
* */
|
|
53
|
+
splitterClass?: ClassValue;
|
|
54
|
+
/**
|
|
55
|
+
* splitter 容器 style
|
|
56
|
+
* */
|
|
57
|
+
splitterStyle?: StyleValue;
|
|
58
|
+
/**
|
|
59
|
+
* 拖拽手柄 class
|
|
60
|
+
* */
|
|
61
|
+
handleClass?: ClassValue;
|
|
62
|
+
/**
|
|
63
|
+
* 拖拽手柄 style
|
|
64
|
+
* */
|
|
65
|
+
handleStyle?: StyleValue;
|
|
66
|
+
/**
|
|
67
|
+
* 分割条 class
|
|
68
|
+
* */
|
|
69
|
+
gutterClass?: ClassValue;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* 分屏组件事件接口
|
|
74
|
+
* */
|
|
75
|
+
export interface StSplitterEmits {
|
|
76
|
+
/** 面板尺寸变化事件 */
|
|
77
|
+
resize: [panels: StSplitterPanelConfig[]];
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* 分屏组件插槽接口
|
|
82
|
+
* */
|
|
83
|
+
export interface StSplitterSlots {
|
|
84
|
+
/** 默认插槽 */
|
|
85
|
+
default?: () => unknown;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* 分屏组件暴露方法接口
|
|
90
|
+
* */
|
|
91
|
+
export interface StSplitterExpose {
|
|
92
|
+
/** 获取面板配置 */
|
|
93
|
+
getPanels: () => StSplitterPanelConfig[];
|
|
94
|
+
/** 设置面板尺寸 */
|
|
95
|
+
setPanelSize: (id: string, size: number) => void;
|
|
96
|
+
/** 重置面板尺寸 */
|
|
97
|
+
resetSizes: () => void;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* 分屏内部上下文接口 - 包含响应式状态
|
|
102
|
+
* */
|
|
103
|
+
export interface StSplitterInternalContext {
|
|
104
|
+
/**
|
|
105
|
+
* 分屏方向
|
|
106
|
+
* */
|
|
107
|
+
direction: Ref<StSplitterDirection>;
|
|
108
|
+
/**
|
|
109
|
+
* 面板列表
|
|
110
|
+
* */
|
|
111
|
+
panels: Ref<StSplitterPanelConfig[]>;
|
|
112
|
+
/**
|
|
113
|
+
* 当前激活的分隔条索引
|
|
114
|
+
* */
|
|
115
|
+
activeGutter: Ref<number | null>;
|
|
116
|
+
/**
|
|
117
|
+
* 分隔条尺寸
|
|
118
|
+
* */
|
|
119
|
+
gutterSize: number;
|
|
120
|
+
/**
|
|
121
|
+
* 鼠标位置响应式引用
|
|
122
|
+
* */
|
|
123
|
+
mousePosition: Ref<{ x: number; y: number } | null>;
|
|
124
|
+
/**
|
|
125
|
+
* 当前悬浮的gutter索引
|
|
126
|
+
* */
|
|
127
|
+
isHoveringGutter: Ref<number | null>;
|
|
128
|
+
/**
|
|
129
|
+
* splitter 容器 class
|
|
130
|
+
* */
|
|
131
|
+
splitterClass?: Ref<ClassValue | undefined>;
|
|
132
|
+
/**
|
|
133
|
+
* splitter 容器 style
|
|
134
|
+
* */
|
|
135
|
+
splitterStyle?: Ref<StyleValue | undefined>;
|
|
136
|
+
/**
|
|
137
|
+
* 拖拽手柄 class
|
|
138
|
+
* */
|
|
139
|
+
handleClass?: Ref<ClassValue | undefined>;
|
|
140
|
+
/**
|
|
141
|
+
* 拖拽手柄 style
|
|
142
|
+
* */
|
|
143
|
+
handleStyle?: Ref<StyleValue | undefined>;
|
|
144
|
+
/**
|
|
145
|
+
* 分割条 class
|
|
146
|
+
* */
|
|
147
|
+
gutterClass?: Ref<ClassValue | undefined>;
|
|
148
|
+
/**
|
|
149
|
+
* 注册面板
|
|
150
|
+
* */
|
|
151
|
+
registerPanel: (panel: StSplitterPanelConfig) => void;
|
|
152
|
+
/**
|
|
153
|
+
* 注销面板
|
|
154
|
+
* */
|
|
155
|
+
unregisterPanel: (id: string) => void;
|
|
156
|
+
/**
|
|
157
|
+
* 更新面板可见性
|
|
158
|
+
* */
|
|
159
|
+
updatePanelVisible: (id: string, visible: boolean) => void;
|
|
160
|
+
/**
|
|
161
|
+
* 开始拖拽调整尺寸
|
|
162
|
+
* */
|
|
163
|
+
startResize: (gutterIndex: number, event: MouseEvent) => void;
|
|
164
|
+
/**
|
|
165
|
+
* 更新弹性面板尺寸
|
|
166
|
+
* */
|
|
167
|
+
updateFlexPanelSize: () => void;
|
|
168
|
+
/**
|
|
169
|
+
* 初始化面板尺寸
|
|
170
|
+
* */
|
|
171
|
+
initializePanelSizes: (containerEl: HTMLElement | null) => void;
|
|
172
|
+
/**
|
|
173
|
+
* 获取容器尺寸
|
|
174
|
+
* */
|
|
175
|
+
getContainerSize: (containerEl?: HTMLElement | null) => number;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* 拖拽状态接口
|
|
180
|
+
* */
|
|
181
|
+
export interface StDragState {
|
|
182
|
+
/**
|
|
183
|
+
* 是否正在拖拽
|
|
184
|
+
* */
|
|
185
|
+
isDragging: boolean;
|
|
186
|
+
/**
|
|
187
|
+
* 拖拽的分隔条索引
|
|
188
|
+
* */
|
|
189
|
+
gutterIndex: number;
|
|
190
|
+
/**
|
|
191
|
+
* 起始X坐标
|
|
192
|
+
* */
|
|
193
|
+
startX: number;
|
|
194
|
+
/**
|
|
195
|
+
* 起始Y坐标
|
|
196
|
+
* */
|
|
197
|
+
startY: number;
|
|
198
|
+
/**
|
|
199
|
+
* 起始时各面板尺寸
|
|
200
|
+
* */
|
|
201
|
+
startSizes: number[];
|
|
202
|
+
/**
|
|
203
|
+
* 当前鼠标X坐标
|
|
204
|
+
* */
|
|
205
|
+
currentX?: number;
|
|
206
|
+
/**
|
|
207
|
+
* 当前鼠标Y坐标
|
|
208
|
+
* */
|
|
209
|
+
currentY?: number;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* 尺寸约束计算参数接口
|
|
214
|
+
* */
|
|
215
|
+
export interface StConstrainedSizesOptions {
|
|
216
|
+
/**
|
|
217
|
+
* 左面板期望尺寸
|
|
218
|
+
* */
|
|
219
|
+
leftSize: number;
|
|
220
|
+
/**
|
|
221
|
+
* 右面板期望尺寸
|
|
222
|
+
* */
|
|
223
|
+
rightSize: number;
|
|
224
|
+
/**
|
|
225
|
+
* 左面板最小尺寸
|
|
226
|
+
* */
|
|
227
|
+
leftMin: number;
|
|
228
|
+
/**
|
|
229
|
+
* 左面板最大尺寸
|
|
230
|
+
* */
|
|
231
|
+
leftMax: number;
|
|
232
|
+
/**
|
|
233
|
+
* 右面板最小尺寸
|
|
234
|
+
* */
|
|
235
|
+
rightMin: number;
|
|
236
|
+
/**
|
|
237
|
+
* 右面板最大尺寸
|
|
238
|
+
* */
|
|
239
|
+
rightMax: number;
|
|
240
|
+
/**
|
|
241
|
+
* 两面板总尺寸
|
|
242
|
+
* */
|
|
243
|
+
totalSize: number;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* 尺寸约束计算结果接口
|
|
248
|
+
* */
|
|
249
|
+
export interface StConstrainedSizesResult {
|
|
250
|
+
/**
|
|
251
|
+
* 约束后的左面板尺寸
|
|
252
|
+
* */
|
|
253
|
+
leftSize: number;
|
|
254
|
+
/**
|
|
255
|
+
* 约束后的右面板尺寸
|
|
256
|
+
* */
|
|
257
|
+
rightSize: number;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
export {};
|
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
import type { ClassValue, StyleValue } from 'vue';
|
|
2
|
-
|
|
3
|
-
import type { StSplitterInternalContext, StSplitterPanelConfig } from '../st-splitter/types.d.ts';
|
|
4
|
-
|
|
5
|
-
export type { StSplitterInternalContext, StSplitterPanelConfig };
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* 面板组件属性接口
|
|
9
|
-
* */
|
|
10
|
-
export interface StSplitterPanelProps {
|
|
11
|
-
/**
|
|
12
|
-
* 最小尺寸
|
|
13
|
-
* */
|
|
14
|
-
minSize?: number;
|
|
15
|
-
/**
|
|
16
|
-
* 最大尺寸
|
|
17
|
-
* */
|
|
18
|
-
maxSize?: number;
|
|
19
|
-
/**
|
|
20
|
-
* 是否为弹性面板,自动填充剩余空间
|
|
21
|
-
* */
|
|
22
|
-
flex?: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* 是否可见
|
|
25
|
-
* */
|
|
26
|
-
visible?: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* 面板 class
|
|
29
|
-
* */
|
|
30
|
-
panelClass?: ClassValue;
|
|
31
|
-
/**
|
|
32
|
-
* 面板 style
|
|
33
|
-
* */
|
|
34
|
-
panelStyle?: StyleValue;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* 面板组件事件接口
|
|
39
|
-
* */
|
|
40
|
-
export interface StSplitterPanelEmits {
|
|
41
|
-
/** 可见性变化事件 */
|
|
42
|
-
'update:visible': [visible: boolean];
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* 面板组件插槽接口
|
|
47
|
-
* */
|
|
48
|
-
export interface StSplitterPanelSlots {
|
|
49
|
-
/** 默认插槽 */
|
|
50
|
-
default?: () => unknown;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* 面板组件暴露方法接口
|
|
55
|
-
* */
|
|
56
|
-
export interface StSplitterPanelExpose {
|
|
57
|
-
/** 获取面板配置 */
|
|
58
|
-
getConfig: () => StSplitterPanelConfig;
|
|
59
|
-
/** 设置面板可见性 */
|
|
60
|
-
setVisible: (visible: boolean) => void;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export {};
|
|
1
|
+
import type { ClassValue, StyleValue } from 'vue';
|
|
2
|
+
|
|
3
|
+
import type { StSplitterInternalContext, StSplitterPanelConfig } from '../st-splitter/types.d.ts';
|
|
4
|
+
|
|
5
|
+
export type { StSplitterInternalContext, StSplitterPanelConfig };
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* 面板组件属性接口
|
|
9
|
+
* */
|
|
10
|
+
export interface StSplitterPanelProps {
|
|
11
|
+
/**
|
|
12
|
+
* 最小尺寸
|
|
13
|
+
* */
|
|
14
|
+
minSize?: number;
|
|
15
|
+
/**
|
|
16
|
+
* 最大尺寸
|
|
17
|
+
* */
|
|
18
|
+
maxSize?: number;
|
|
19
|
+
/**
|
|
20
|
+
* 是否为弹性面板,自动填充剩余空间
|
|
21
|
+
* */
|
|
22
|
+
flex?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* 是否可见
|
|
25
|
+
* */
|
|
26
|
+
visible?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* 面板 class
|
|
29
|
+
* */
|
|
30
|
+
panelClass?: ClassValue;
|
|
31
|
+
/**
|
|
32
|
+
* 面板 style
|
|
33
|
+
* */
|
|
34
|
+
panelStyle?: StyleValue;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* 面板组件事件接口
|
|
39
|
+
* */
|
|
40
|
+
export interface StSplitterPanelEmits {
|
|
41
|
+
/** 可见性变化事件 */
|
|
42
|
+
'update:visible': [visible: boolean];
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* 面板组件插槽接口
|
|
47
|
+
* */
|
|
48
|
+
export interface StSplitterPanelSlots {
|
|
49
|
+
/** 默认插槽 */
|
|
50
|
+
default?: () => unknown;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* 面板组件暴露方法接口
|
|
55
|
+
* */
|
|
56
|
+
export interface StSplitterPanelExpose {
|
|
57
|
+
/** 获取面板配置 */
|
|
58
|
+
getConfig: () => StSplitterPanelConfig;
|
|
59
|
+
/** 设置面板可见性 */
|
|
60
|
+
setVisible: (visible: boolean) => void;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export {};
|