@vtj/ui 0.5.3 → 0.6.0
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/cdn/index.js +1 -1
- package/cdn/style.css +1 -1
- package/lib/index.js +2739 -246
- package/lib/style.css +1 -1
- package/package.json +11 -11
- package/types/components/action/Action.d.ts +363 -0
- package/types/components/action/Trigger.d.ts +187 -0
- package/types/components/action/hooks.d.ts +43 -0
- package/types/components/action/index.d.ts +3 -0
- package/types/components/action/types.d.ts +151 -0
- package/types/components/action-bar/ActionBar.d.ts +684 -0
- package/types/components/action-bar/index.d.ts +3 -0
- package/types/components/action-bar/types.d.ts +124 -0
- package/types/components/container/Container.d.ts +147 -0
- package/types/components/container/index.d.ts +3 -0
- package/types/components/container/types.d.ts +120 -0
- package/types/components/dialog/Dialog.d.ts +334 -0
- package/types/components/dialog/create.d.ts +11 -0
- package/types/components/dialog/hooks.d.ts +58 -0
- package/types/components/dialog/index.d.ts +4 -0
- package/types/components/dialog/types.d.ts +124 -0
- package/types/components/header/Header.d.ts +61 -0
- package/types/components/header/index.d.ts +3 -0
- package/types/components/header/types.d.ts +29 -0
- package/types/components/icon/Icon.d.ts +1 -1
- package/types/components/index.d.ts +7 -0
- package/types/components/mask/Mask.d.ts +469 -0
- package/types/components/mask/components/Avatar.d.ts +21 -0
- package/types/components/mask/components/Brand.d.ts +47 -0
- package/types/components/mask/components/Content.d.ts +33 -0
- package/types/components/mask/components/Menu.d.ts +65 -0
- package/types/components/mask/components/Sidebar.d.ts +22 -0
- package/types/components/mask/components/SwitchBar.d.ts +39 -0
- package/types/components/mask/components/Tabs.d.ts +62 -0
- package/types/components/mask/components/ThemeSwitch.d.ts +3 -0
- package/types/components/mask/components/Toolbar.d.ts +50 -0
- package/types/components/mask/defineTab.d.ts +6 -0
- package/types/components/mask/hooks/index.d.ts +5 -0
- package/types/components/mask/hooks/useContent.d.ts +20 -0
- package/types/components/mask/hooks/useHome.d.ts +3 -0
- package/types/components/mask/hooks/useMenus.d.ts +28 -0
- package/types/components/mask/hooks/useSidebar.d.ts +7 -0
- package/types/components/mask/hooks/useTabs.d.ts +22 -0
- package/types/components/mask/index.d.ts +4 -0
- package/types/components/mask/types.d.ts +112 -0
- package/types/components/menu/Menu.d.ts +9 -75
- package/types/components/menu/MenuItem.d.ts +17 -2
- package/types/components/menu/types.d.ts +16 -5
- package/types/components/panel/Panel.d.ts +401 -0
- package/types/components/panel/index.d.ts +3 -0
- package/types/components/panel/types.d.ts +223 -0
- package/types/components/shared.d.ts +12 -0
- package/types/components/startup/Startup.d.ts +10 -0
- package/types/constants.d.ts +0 -3
- package/types/directives/index.d.ts +2 -0
- package/types/directives/vDraggable.d.ts +45 -0
- package/types/directives/vResizable.d.ts +37 -0
- package/types/hooks/index.d.ts +1 -2
- package/types/hooks/useDisabled.d.ts +3 -0
- package/types/hooks/useIcon.d.ts +3 -3
- package/types/index.d.ts +3 -0
- package/types/utils/index.d.ts +0 -2
- package/types/utils/install.d.ts +3 -8
- package/types/utils/util.d.ts +0 -3
- package/types/version.d.ts +1 -0
- package/types/hooks/useDraggable.d.ts +0 -13
- package/types/hooks/useResizable.d.ts +0 -25
- package/types/utils/emits.d.ts +0 -6
- package/types/utils/make-install.d.ts +0 -4
|
@@ -0,0 +1,401 @@
|
|
|
1
|
+
import { IconParam, ContainerDirection, ContainerWrap, ContainerJustifyContent, ContainerAlignItems, ContainerAlignContent } from '../';
|
|
2
|
+
import { BaseSize } from '../shared';
|
|
3
|
+
import { DefineComponent, PropType, ExtractPropTypes, Ref, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps } from 'vue';
|
|
4
|
+
declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
|
|
5
|
+
fit: {
|
|
6
|
+
type: BooleanConstructor;
|
|
7
|
+
default: boolean;
|
|
8
|
+
};
|
|
9
|
+
width: {
|
|
10
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
11
|
+
};
|
|
12
|
+
height: {
|
|
13
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
14
|
+
};
|
|
15
|
+
border: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
19
|
+
radius: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
card: {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
};
|
|
26
|
+
size: {
|
|
27
|
+
type: PropType<BaseSize>;
|
|
28
|
+
};
|
|
29
|
+
shadow: {
|
|
30
|
+
type: PropType<"hover" | "always" | "none">;
|
|
31
|
+
};
|
|
32
|
+
header: {
|
|
33
|
+
type: PropType<string | Readonly<Partial<ExtractPropTypes<{
|
|
34
|
+
size: {
|
|
35
|
+
type: PropType<BaseSize>;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
content: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
42
|
+
subtitle: {
|
|
43
|
+
type: StringConstructor;
|
|
44
|
+
};
|
|
45
|
+
icon: {
|
|
46
|
+
type: PropType<IconParam>;
|
|
47
|
+
};
|
|
48
|
+
border: {
|
|
49
|
+
type: BooleanConstructor;
|
|
50
|
+
};
|
|
51
|
+
more: {
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
};
|
|
54
|
+
}>>> | null>;
|
|
55
|
+
};
|
|
56
|
+
bodyPadding: {
|
|
57
|
+
type: BooleanConstructor;
|
|
58
|
+
default: boolean;
|
|
59
|
+
};
|
|
60
|
+
footerPadding: {
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
default: boolean;
|
|
63
|
+
};
|
|
64
|
+
body: {
|
|
65
|
+
type: PropType<Readonly<Partial<ExtractPropTypes<{
|
|
66
|
+
tag: {
|
|
67
|
+
type: StringConstructor;
|
|
68
|
+
default: string;
|
|
69
|
+
};
|
|
70
|
+
fit: {
|
|
71
|
+
type: BooleanConstructor;
|
|
72
|
+
default: boolean;
|
|
73
|
+
};
|
|
74
|
+
width: {
|
|
75
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
76
|
+
};
|
|
77
|
+
height: {
|
|
78
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
79
|
+
};
|
|
80
|
+
flex: {
|
|
81
|
+
type: BooleanConstructor;
|
|
82
|
+
default: boolean;
|
|
83
|
+
};
|
|
84
|
+
inline: {
|
|
85
|
+
type: BooleanConstructor;
|
|
86
|
+
};
|
|
87
|
+
direction: {
|
|
88
|
+
type: PropType<ContainerDirection>;
|
|
89
|
+
default: string;
|
|
90
|
+
};
|
|
91
|
+
wrap: {
|
|
92
|
+
type: PropType<ContainerWrap>;
|
|
93
|
+
default: string;
|
|
94
|
+
};
|
|
95
|
+
justify: {
|
|
96
|
+
type: PropType<ContainerJustifyContent>;
|
|
97
|
+
default: string;
|
|
98
|
+
};
|
|
99
|
+
align: {
|
|
100
|
+
type: PropType<ContainerAlignItems>;
|
|
101
|
+
default: string;
|
|
102
|
+
};
|
|
103
|
+
alignContent: {
|
|
104
|
+
type: PropType<ContainerAlignContent>;
|
|
105
|
+
default: string;
|
|
106
|
+
};
|
|
107
|
+
grow: {
|
|
108
|
+
type: BooleanConstructor;
|
|
109
|
+
default: boolean;
|
|
110
|
+
};
|
|
111
|
+
shrink: {
|
|
112
|
+
type: BooleanConstructor;
|
|
113
|
+
default: boolean;
|
|
114
|
+
};
|
|
115
|
+
alignSelf: {
|
|
116
|
+
type: PropType<"auto" | ContainerAlignItems>;
|
|
117
|
+
default: string;
|
|
118
|
+
};
|
|
119
|
+
overflow: {
|
|
120
|
+
type: PropType<"hidden" | "visible" | "auto">;
|
|
121
|
+
};
|
|
122
|
+
padding: {
|
|
123
|
+
type: BooleanConstructor;
|
|
124
|
+
default: boolean;
|
|
125
|
+
};
|
|
126
|
+
}>>>>;
|
|
127
|
+
};
|
|
128
|
+
footer: {
|
|
129
|
+
type: PropType<Readonly<Partial<ExtractPropTypes<{
|
|
130
|
+
tag: {
|
|
131
|
+
type: StringConstructor;
|
|
132
|
+
default: string;
|
|
133
|
+
};
|
|
134
|
+
fit: {
|
|
135
|
+
type: BooleanConstructor;
|
|
136
|
+
default: boolean;
|
|
137
|
+
};
|
|
138
|
+
width: {
|
|
139
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
140
|
+
};
|
|
141
|
+
height: {
|
|
142
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
143
|
+
};
|
|
144
|
+
flex: {
|
|
145
|
+
type: BooleanConstructor;
|
|
146
|
+
default: boolean;
|
|
147
|
+
};
|
|
148
|
+
inline: {
|
|
149
|
+
type: BooleanConstructor;
|
|
150
|
+
};
|
|
151
|
+
direction: {
|
|
152
|
+
type: PropType<ContainerDirection>;
|
|
153
|
+
default: string;
|
|
154
|
+
};
|
|
155
|
+
wrap: {
|
|
156
|
+
type: PropType<ContainerWrap>;
|
|
157
|
+
default: string;
|
|
158
|
+
};
|
|
159
|
+
justify: {
|
|
160
|
+
type: PropType<ContainerJustifyContent>;
|
|
161
|
+
default: string;
|
|
162
|
+
};
|
|
163
|
+
align: {
|
|
164
|
+
type: PropType<ContainerAlignItems>;
|
|
165
|
+
default: string;
|
|
166
|
+
};
|
|
167
|
+
alignContent: {
|
|
168
|
+
type: PropType<ContainerAlignContent>;
|
|
169
|
+
default: string;
|
|
170
|
+
};
|
|
171
|
+
grow: {
|
|
172
|
+
type: BooleanConstructor;
|
|
173
|
+
default: boolean;
|
|
174
|
+
};
|
|
175
|
+
shrink: {
|
|
176
|
+
type: BooleanConstructor;
|
|
177
|
+
default: boolean;
|
|
178
|
+
};
|
|
179
|
+
alignSelf: {
|
|
180
|
+
type: PropType<"auto" | ContainerAlignItems>;
|
|
181
|
+
default: string;
|
|
182
|
+
};
|
|
183
|
+
overflow: {
|
|
184
|
+
type: PropType<"hidden" | "visible" | "auto">;
|
|
185
|
+
};
|
|
186
|
+
padding: {
|
|
187
|
+
type: BooleanConstructor;
|
|
188
|
+
default: boolean;
|
|
189
|
+
};
|
|
190
|
+
}>>>>;
|
|
191
|
+
};
|
|
192
|
+
}, {
|
|
193
|
+
bodyRef: Ref<any>;
|
|
194
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
195
|
+
fit: {
|
|
196
|
+
type: BooleanConstructor;
|
|
197
|
+
default: boolean;
|
|
198
|
+
};
|
|
199
|
+
width: {
|
|
200
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
201
|
+
};
|
|
202
|
+
height: {
|
|
203
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
204
|
+
};
|
|
205
|
+
border: {
|
|
206
|
+
type: BooleanConstructor;
|
|
207
|
+
default: boolean;
|
|
208
|
+
};
|
|
209
|
+
radius: {
|
|
210
|
+
type: BooleanConstructor;
|
|
211
|
+
default: boolean;
|
|
212
|
+
};
|
|
213
|
+
card: {
|
|
214
|
+
type: BooleanConstructor;
|
|
215
|
+
};
|
|
216
|
+
size: {
|
|
217
|
+
type: PropType<BaseSize>;
|
|
218
|
+
};
|
|
219
|
+
shadow: {
|
|
220
|
+
type: PropType<"hover" | "always" | "none">;
|
|
221
|
+
};
|
|
222
|
+
header: {
|
|
223
|
+
type: PropType<string | Readonly<Partial<ExtractPropTypes<{
|
|
224
|
+
size: {
|
|
225
|
+
type: PropType<BaseSize>;
|
|
226
|
+
default: string;
|
|
227
|
+
};
|
|
228
|
+
content: {
|
|
229
|
+
type: StringConstructor;
|
|
230
|
+
default: string;
|
|
231
|
+
};
|
|
232
|
+
subtitle: {
|
|
233
|
+
type: StringConstructor;
|
|
234
|
+
};
|
|
235
|
+
icon: {
|
|
236
|
+
type: PropType<IconParam>;
|
|
237
|
+
};
|
|
238
|
+
border: {
|
|
239
|
+
type: BooleanConstructor;
|
|
240
|
+
};
|
|
241
|
+
more: {
|
|
242
|
+
type: BooleanConstructor;
|
|
243
|
+
};
|
|
244
|
+
}>>> | null>;
|
|
245
|
+
};
|
|
246
|
+
bodyPadding: {
|
|
247
|
+
type: BooleanConstructor;
|
|
248
|
+
default: boolean;
|
|
249
|
+
};
|
|
250
|
+
footerPadding: {
|
|
251
|
+
type: BooleanConstructor;
|
|
252
|
+
default: boolean;
|
|
253
|
+
};
|
|
254
|
+
body: {
|
|
255
|
+
type: PropType<Readonly<Partial<ExtractPropTypes<{
|
|
256
|
+
tag: {
|
|
257
|
+
type: StringConstructor;
|
|
258
|
+
default: string;
|
|
259
|
+
};
|
|
260
|
+
fit: {
|
|
261
|
+
type: BooleanConstructor;
|
|
262
|
+
default: boolean;
|
|
263
|
+
};
|
|
264
|
+
width: {
|
|
265
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
266
|
+
};
|
|
267
|
+
height: {
|
|
268
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
269
|
+
};
|
|
270
|
+
flex: {
|
|
271
|
+
type: BooleanConstructor;
|
|
272
|
+
default: boolean;
|
|
273
|
+
};
|
|
274
|
+
inline: {
|
|
275
|
+
type: BooleanConstructor;
|
|
276
|
+
};
|
|
277
|
+
direction: {
|
|
278
|
+
type: PropType<ContainerDirection>;
|
|
279
|
+
default: string;
|
|
280
|
+
};
|
|
281
|
+
wrap: {
|
|
282
|
+
type: PropType<ContainerWrap>;
|
|
283
|
+
default: string;
|
|
284
|
+
};
|
|
285
|
+
justify: {
|
|
286
|
+
type: PropType<ContainerJustifyContent>;
|
|
287
|
+
default: string;
|
|
288
|
+
};
|
|
289
|
+
align: {
|
|
290
|
+
type: PropType<ContainerAlignItems>;
|
|
291
|
+
default: string;
|
|
292
|
+
};
|
|
293
|
+
alignContent: {
|
|
294
|
+
type: PropType<ContainerAlignContent>;
|
|
295
|
+
default: string;
|
|
296
|
+
};
|
|
297
|
+
grow: {
|
|
298
|
+
type: BooleanConstructor;
|
|
299
|
+
default: boolean;
|
|
300
|
+
};
|
|
301
|
+
shrink: {
|
|
302
|
+
type: BooleanConstructor;
|
|
303
|
+
default: boolean;
|
|
304
|
+
};
|
|
305
|
+
alignSelf: {
|
|
306
|
+
type: PropType<"auto" | ContainerAlignItems>;
|
|
307
|
+
default: string;
|
|
308
|
+
};
|
|
309
|
+
overflow: {
|
|
310
|
+
type: PropType<"hidden" | "visible" | "auto">;
|
|
311
|
+
};
|
|
312
|
+
padding: {
|
|
313
|
+
type: BooleanConstructor;
|
|
314
|
+
default: boolean;
|
|
315
|
+
};
|
|
316
|
+
}>>>>;
|
|
317
|
+
};
|
|
318
|
+
footer: {
|
|
319
|
+
type: PropType<Readonly<Partial<ExtractPropTypes<{
|
|
320
|
+
tag: {
|
|
321
|
+
type: StringConstructor;
|
|
322
|
+
default: string;
|
|
323
|
+
};
|
|
324
|
+
fit: {
|
|
325
|
+
type: BooleanConstructor;
|
|
326
|
+
default: boolean;
|
|
327
|
+
};
|
|
328
|
+
width: {
|
|
329
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
330
|
+
};
|
|
331
|
+
height: {
|
|
332
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
333
|
+
};
|
|
334
|
+
flex: {
|
|
335
|
+
type: BooleanConstructor;
|
|
336
|
+
default: boolean;
|
|
337
|
+
};
|
|
338
|
+
inline: {
|
|
339
|
+
type: BooleanConstructor;
|
|
340
|
+
};
|
|
341
|
+
direction: {
|
|
342
|
+
type: PropType<ContainerDirection>;
|
|
343
|
+
default: string;
|
|
344
|
+
};
|
|
345
|
+
wrap: {
|
|
346
|
+
type: PropType<ContainerWrap>;
|
|
347
|
+
default: string;
|
|
348
|
+
};
|
|
349
|
+
justify: {
|
|
350
|
+
type: PropType<ContainerJustifyContent>;
|
|
351
|
+
default: string;
|
|
352
|
+
};
|
|
353
|
+
align: {
|
|
354
|
+
type: PropType<ContainerAlignItems>;
|
|
355
|
+
default: string;
|
|
356
|
+
};
|
|
357
|
+
alignContent: {
|
|
358
|
+
type: PropType<ContainerAlignContent>;
|
|
359
|
+
default: string;
|
|
360
|
+
};
|
|
361
|
+
grow: {
|
|
362
|
+
type: BooleanConstructor;
|
|
363
|
+
default: boolean;
|
|
364
|
+
};
|
|
365
|
+
shrink: {
|
|
366
|
+
type: BooleanConstructor;
|
|
367
|
+
default: boolean;
|
|
368
|
+
};
|
|
369
|
+
alignSelf: {
|
|
370
|
+
type: PropType<"auto" | ContainerAlignItems>;
|
|
371
|
+
default: string;
|
|
372
|
+
};
|
|
373
|
+
overflow: {
|
|
374
|
+
type: PropType<"hidden" | "visible" | "auto">;
|
|
375
|
+
};
|
|
376
|
+
padding: {
|
|
377
|
+
type: BooleanConstructor;
|
|
378
|
+
default: boolean;
|
|
379
|
+
};
|
|
380
|
+
}>>>>;
|
|
381
|
+
};
|
|
382
|
+
}>>, {
|
|
383
|
+
fit: boolean;
|
|
384
|
+
border: boolean;
|
|
385
|
+
radius: boolean;
|
|
386
|
+
card: boolean;
|
|
387
|
+
bodyPadding: boolean;
|
|
388
|
+
footerPadding: boolean;
|
|
389
|
+
}, {}>, {
|
|
390
|
+
header?(_: {}): any;
|
|
391
|
+
title?(_: {}): any;
|
|
392
|
+
actions?(_: {}): any;
|
|
393
|
+
default?(_: {}): any;
|
|
394
|
+
footer?(_: {}): any;
|
|
395
|
+
}>;
|
|
396
|
+
export default _default;
|
|
397
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
398
|
+
new (): {
|
|
399
|
+
$slots: S;
|
|
400
|
+
};
|
|
401
|
+
};
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
import { IconParam, ContainerDirection, ContainerWrap, ContainerJustifyContent, ContainerAlignItems, ContainerAlignContent } from '../';
|
|
2
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
3
|
+
import { ComponentPropsType, BaseSize } from '../shared';
|
|
4
|
+
export declare const panelProps: {
|
|
5
|
+
/**
|
|
6
|
+
* 宽高自适应
|
|
7
|
+
*/
|
|
8
|
+
fit: {
|
|
9
|
+
type: BooleanConstructor;
|
|
10
|
+
default: boolean;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* 指定高度,fit 为true 失效
|
|
14
|
+
*/
|
|
15
|
+
width: {
|
|
16
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* 指定高度,fit 为true失效
|
|
20
|
+
*/
|
|
21
|
+
height: {
|
|
22
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* 显示边框
|
|
26
|
+
*/
|
|
27
|
+
border: {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
default: boolean;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* 圆角
|
|
33
|
+
*/
|
|
34
|
+
radius: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
default: boolean;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* 卡片模式
|
|
40
|
+
*/
|
|
41
|
+
card: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* 尺寸
|
|
46
|
+
*/
|
|
47
|
+
size: {
|
|
48
|
+
type: PropType<BaseSize>;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* 阴影设置
|
|
52
|
+
*/
|
|
53
|
+
shadow: {
|
|
54
|
+
type: PropType<"hover" | "always" | "none">;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* 头部设置
|
|
58
|
+
*/
|
|
59
|
+
header: {
|
|
60
|
+
type: PropType<string | Readonly<Partial<ExtractPropTypes<{
|
|
61
|
+
size: {
|
|
62
|
+
type: PropType<BaseSize>;
|
|
63
|
+
default: string;
|
|
64
|
+
};
|
|
65
|
+
content: {
|
|
66
|
+
type: StringConstructor;
|
|
67
|
+
default: string;
|
|
68
|
+
};
|
|
69
|
+
subtitle: {
|
|
70
|
+
type: StringConstructor;
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* 指定高度,fit 为true失效
|
|
74
|
+
*/
|
|
75
|
+
icon: {
|
|
76
|
+
type: PropType<IconParam>;
|
|
77
|
+
};
|
|
78
|
+
border: {
|
|
79
|
+
type: BooleanConstructor;
|
|
80
|
+
};
|
|
81
|
+
more: {
|
|
82
|
+
type: BooleanConstructor;
|
|
83
|
+
};
|
|
84
|
+
}>>> | null>;
|
|
85
|
+
};
|
|
86
|
+
bodyPadding: {
|
|
87
|
+
type: BooleanConstructor;
|
|
88
|
+
default: boolean;
|
|
89
|
+
};
|
|
90
|
+
footerPadding: {
|
|
91
|
+
type: BooleanConstructor;
|
|
92
|
+
default: boolean;
|
|
93
|
+
};
|
|
94
|
+
body: {
|
|
95
|
+
type: PropType<Readonly<Partial<ExtractPropTypes<{
|
|
96
|
+
tag: {
|
|
97
|
+
type: StringConstructor;
|
|
98
|
+
default: string;
|
|
99
|
+
};
|
|
100
|
+
fit: {
|
|
101
|
+
type: BooleanConstructor;
|
|
102
|
+
default: boolean;
|
|
103
|
+
};
|
|
104
|
+
width: {
|
|
105
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
106
|
+
};
|
|
107
|
+
height: {
|
|
108
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
109
|
+
};
|
|
110
|
+
flex: {
|
|
111
|
+
type: BooleanConstructor;
|
|
112
|
+
default: boolean;
|
|
113
|
+
};
|
|
114
|
+
inline: {
|
|
115
|
+
type: BooleanConstructor;
|
|
116
|
+
};
|
|
117
|
+
direction: {
|
|
118
|
+
type: PropType<ContainerDirection>;
|
|
119
|
+
default: string;
|
|
120
|
+
};
|
|
121
|
+
wrap: {
|
|
122
|
+
type: PropType<ContainerWrap>;
|
|
123
|
+
default: string;
|
|
124
|
+
};
|
|
125
|
+
justify: {
|
|
126
|
+
type: PropType<ContainerJustifyContent>;
|
|
127
|
+
default: string;
|
|
128
|
+
};
|
|
129
|
+
align: {
|
|
130
|
+
type: PropType<ContainerAlignItems>;
|
|
131
|
+
default: string;
|
|
132
|
+
};
|
|
133
|
+
alignContent: {
|
|
134
|
+
type: PropType<ContainerAlignContent>;
|
|
135
|
+
default: string;
|
|
136
|
+
};
|
|
137
|
+
grow: {
|
|
138
|
+
type: BooleanConstructor;
|
|
139
|
+
default: boolean;
|
|
140
|
+
};
|
|
141
|
+
shrink: {
|
|
142
|
+
type: BooleanConstructor;
|
|
143
|
+
default: boolean;
|
|
144
|
+
};
|
|
145
|
+
alignSelf: {
|
|
146
|
+
type: PropType<"auto" | ContainerAlignItems>;
|
|
147
|
+
default: string;
|
|
148
|
+
};
|
|
149
|
+
overflow: {
|
|
150
|
+
type: PropType<"hidden" | "visible" | "auto">;
|
|
151
|
+
};
|
|
152
|
+
padding: {
|
|
153
|
+
type: BooleanConstructor;
|
|
154
|
+
default: boolean;
|
|
155
|
+
};
|
|
156
|
+
}>>>>;
|
|
157
|
+
};
|
|
158
|
+
footer: {
|
|
159
|
+
type: PropType<Readonly<Partial<ExtractPropTypes<{
|
|
160
|
+
tag: {
|
|
161
|
+
type: StringConstructor;
|
|
162
|
+
default: string;
|
|
163
|
+
};
|
|
164
|
+
fit: {
|
|
165
|
+
type: BooleanConstructor;
|
|
166
|
+
default: boolean;
|
|
167
|
+
};
|
|
168
|
+
width: {
|
|
169
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
170
|
+
};
|
|
171
|
+
height: {
|
|
172
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
173
|
+
};
|
|
174
|
+
flex: {
|
|
175
|
+
type: BooleanConstructor;
|
|
176
|
+
default: boolean;
|
|
177
|
+
};
|
|
178
|
+
inline: {
|
|
179
|
+
type: BooleanConstructor;
|
|
180
|
+
};
|
|
181
|
+
direction: {
|
|
182
|
+
type: PropType<ContainerDirection>;
|
|
183
|
+
default: string;
|
|
184
|
+
};
|
|
185
|
+
wrap: {
|
|
186
|
+
type: PropType<ContainerWrap>;
|
|
187
|
+
default: string;
|
|
188
|
+
};
|
|
189
|
+
justify: {
|
|
190
|
+
type: PropType<ContainerJustifyContent>;
|
|
191
|
+
default: string;
|
|
192
|
+
};
|
|
193
|
+
align: {
|
|
194
|
+
type: PropType<ContainerAlignItems>;
|
|
195
|
+
default: string;
|
|
196
|
+
};
|
|
197
|
+
alignContent: {
|
|
198
|
+
type: PropType<ContainerAlignContent>;
|
|
199
|
+
default: string;
|
|
200
|
+
};
|
|
201
|
+
grow: {
|
|
202
|
+
type: BooleanConstructor;
|
|
203
|
+
default: boolean;
|
|
204
|
+
};
|
|
205
|
+
shrink: {
|
|
206
|
+
type: BooleanConstructor;
|
|
207
|
+
default: boolean;
|
|
208
|
+
};
|
|
209
|
+
alignSelf: {
|
|
210
|
+
type: PropType<"auto" | ContainerAlignItems>;
|
|
211
|
+
default: string;
|
|
212
|
+
};
|
|
213
|
+
overflow: {
|
|
214
|
+
type: PropType<"hidden" | "visible" | "auto">;
|
|
215
|
+
};
|
|
216
|
+
padding: {
|
|
217
|
+
type: BooleanConstructor;
|
|
218
|
+
default: boolean;
|
|
219
|
+
};
|
|
220
|
+
}>>>>;
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
export type PanelProps = ComponentPropsType<typeof panelProps>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
|
1
2
|
import type { MenuProps } from './menu';
|
|
2
3
|
export interface MaskProject {
|
|
3
4
|
id?: string;
|
|
@@ -12,3 +13,14 @@ export interface BaseMaskProps {
|
|
|
12
13
|
project?: MaskProject;
|
|
13
14
|
menu?: MenuProps;
|
|
14
15
|
}
|
|
16
|
+
export type ComponentPropsType<T> = Readonly<Partial<ExtractPropTypes<T>>>;
|
|
17
|
+
export type UnReadOnly<T> = {
|
|
18
|
+
-readonly [P in keyof T]: T[P];
|
|
19
|
+
};
|
|
20
|
+
export type BaseSize = 'large' | 'default' | 'small';
|
|
21
|
+
export type BaseType = 'primary' | 'success' | 'warning' | 'danger' | 'info';
|
|
22
|
+
export type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
|
|
23
|
+
export type RecordToUnion<T extends Record<string, any>> = T[keyof T];
|
|
24
|
+
export type Emits<T extends Record<string, any>> = UnionToIntersection<RecordToUnion<{
|
|
25
|
+
[K in keyof T]: (evt: K, ...args: T[K]) => void;
|
|
26
|
+
}>>;
|
|
@@ -1,19 +1,29 @@
|
|
|
1
1
|
import { DefineComponent, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
2
2
|
export interface StartupProps {
|
|
3
3
|
text?: string;
|
|
4
|
+
link?: string;
|
|
4
5
|
}
|
|
5
6
|
declare const _default: __VLS_WithTemplateSlots<DefineComponent<{
|
|
6
7
|
text: {
|
|
7
8
|
type: PropType<string>;
|
|
8
9
|
default: string;
|
|
9
10
|
};
|
|
11
|
+
link: {
|
|
12
|
+
type: PropType<string>;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
10
15
|
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
11
16
|
text: {
|
|
12
17
|
type: PropType<string>;
|
|
13
18
|
default: string;
|
|
14
19
|
};
|
|
20
|
+
link: {
|
|
21
|
+
type: PropType<string>;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
15
24
|
}>>, {
|
|
16
25
|
text: string;
|
|
26
|
+
link: string;
|
|
17
27
|
}, {}>, {
|
|
18
28
|
default?(_: {}): any;
|
|
19
29
|
}>;
|
package/types/constants.d.ts
CHANGED