@vtj/ui 0.8.91 → 0.8.93

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 (53) hide show
  1. package/dist/index.mjs +3 -3
  2. package/dist/index.umd.js +3 -3
  3. package/package.json +4 -4
  4. package/types/components/action/Action.d.ts +52 -124
  5. package/types/components/action/Trigger.d.ts +7 -81
  6. package/types/components/action/hooks.d.ts +6 -6
  7. package/types/components/action/types.d.ts +3 -41
  8. package/types/components/action-bar/ActionBar.d.ts +37 -285
  9. package/types/components/action-bar/types.d.ts +5 -43
  10. package/types/components/attachment/Attachment.d.ts +10 -8
  11. package/types/components/container/Container.d.ts +10 -8
  12. package/types/components/container/types.d.ts +2 -2
  13. package/types/components/data-item/DataItem.d.ts +38 -36
  14. package/types/components/dialog/Dialog.d.ts +14 -16
  15. package/types/components/dialog/types.d.ts +2 -4
  16. package/types/components/dialog-form/DialogForm.d.ts +12 -11
  17. package/types/components/dialog-form/types.d.ts +2 -3
  18. package/types/components/dialog-grid/DialogGrid.d.ts +8 -6
  19. package/types/components/field/Field.d.ts +23 -25
  20. package/types/components/field/editors/SelectEditor.d.ts +8 -6
  21. package/types/components/field/types.d.ts +3 -5
  22. package/types/components/form/Form.d.ts +10 -8
  23. package/types/components/grid/Grid.d.ts +281 -295
  24. package/types/components/grid/hooks/useEditRender.d.ts +2 -2
  25. package/types/components/grid/hooks/useLoader.d.ts +251 -267
  26. package/types/components/grid/hooks/useProps.d.ts +44 -44
  27. package/types/components/grid/hooks/useState.d.ts +251 -267
  28. package/types/components/grid/props.d.ts +3 -4
  29. package/types/components/header/Header.d.ts +8 -6
  30. package/types/components/icon/Icon.d.ts +9 -11
  31. package/types/components/icon/types.d.ts +2 -4
  32. package/types/components/import-button/ImportButton.d.ts +6 -4
  33. package/types/components/input-unit/InputUnit.d.ts +4 -4
  34. package/types/components/input-unit/types.d.ts +1 -1
  35. package/types/components/list/List.d.ts +12 -10
  36. package/types/components/mask/Mask.d.ts +41 -39
  37. package/types/components/mask/components/Avatar.d.ts +4 -2
  38. package/types/components/mask/components/Brand.d.ts +7 -5
  39. package/types/components/mask/components/Content.d.ts +4 -2
  40. package/types/components/mask/components/Sidebar.d.ts +4 -2
  41. package/types/components/mask/components/Toolbar.d.ts +6 -4
  42. package/types/components/panel/Panel.d.ts +20 -328
  43. package/types/components/panel/types.d.ts +6 -170
  44. package/types/components/picker/Picker.d.ts +14 -341
  45. package/types/components/picker/props.d.ts +7 -176
  46. package/types/components/qr-code/QrCode.d.ts +6 -4
  47. package/types/components/query-form/QueryForm.d.ts +29 -27
  48. package/types/components/tabs/Tabs.d.ts +48 -222
  49. package/types/components/tabs/types.d.ts +1 -1
  50. package/types/components/test/Test.d.ts +36 -34
  51. package/types/install.d.ts +1 -1
  52. package/types/utils/util.d.ts +1 -1
  53. package/types/version.d.ts +2 -2
@@ -1,7 +1,14 @@
1
- import { DefineComponent, PropType, ExtractPropTypes, Ref, ComponentOptionsMixin, PublicProps } from 'vue';
1
+ import { DefineComponent, PropType, Ref, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
2
2
  import { BaseSize } from '../shared';
3
- import { IconParam, ContainerDirection, ContainerWrap, ContainerJustifyContent, ContainerAlignItems, ContainerAlignContent } from '../';
4
- declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
3
+ import { HeaderProps, ContainerProps } from '../';
4
+ declare function __VLS_template(): {
5
+ header?(_: {}): any;
6
+ title?(_: {}): any;
7
+ actions?(_: {}): any;
8
+ default?(_: {}): any;
9
+ footer?(_: {}): any;
10
+ };
11
+ declare const __VLS_component: DefineComponent<{
5
12
  fit: {
6
13
  type: BooleanConstructor;
7
14
  default: boolean;
@@ -27,171 +34,16 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
27
34
  type: PropType<BaseSize>;
28
35
  };
29
36
  shadow: {
30
- type: PropType<"hover" | "always" | "none">;
37
+ type: PropType<"none" | "always" | "hover">;
31
38
  };
32
39
  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>;
40
+ type: PropType<string | HeaderProps | null>;
55
41
  };
56
42
  body: {
57
- type: PropType<Readonly<Partial< ExtractPropTypes<{
58
- tag: {
59
- type: StringConstructor;
60
- default: string;
61
- };
62
- fit: {
63
- type: BooleanConstructor;
64
- default: boolean;
65
- };
66
- width: {
67
- type: (StringConstructor | NumberConstructor)[];
68
- };
69
- height: {
70
- type: (StringConstructor | NumberConstructor)[];
71
- };
72
- flex: {
73
- type: BooleanConstructor;
74
- default: boolean;
75
- };
76
- inline: {
77
- type: BooleanConstructor;
78
- };
79
- direction: {
80
- type: PropType<ContainerDirection>;
81
- default: string;
82
- };
83
- wrap: {
84
- type: PropType<ContainerWrap>;
85
- default: string;
86
- };
87
- justify: {
88
- type: PropType<ContainerJustifyContent>;
89
- default: string;
90
- };
91
- align: {
92
- type: PropType<ContainerAlignItems>;
93
- default: string;
94
- };
95
- alignContent: {
96
- type: PropType<ContainerAlignContent>;
97
- default: string;
98
- };
99
- grow: {
100
- type: BooleanConstructor;
101
- default: boolean;
102
- };
103
- shrink: {
104
- type: BooleanConstructor;
105
- default: boolean;
106
- };
107
- alignSelf: {
108
- type: PropType< ContainerAlignItems | "auto">;
109
- default: string;
110
- };
111
- overflow: {
112
- type: PropType<"hidden" | "visible" | "auto">;
113
- };
114
- padding: {
115
- type: BooleanConstructor;
116
- default: boolean;
117
- };
118
- gap: {
119
- type: BooleanConstructor;
120
- };
121
- autoPointer: {
122
- type: BooleanConstructor;
123
- };
124
- }>>>>;
43
+ type: PropType<ContainerProps>;
125
44
  };
126
45
  footer: {
127
- type: PropType<Readonly<Partial< ExtractPropTypes<{
128
- tag: {
129
- type: StringConstructor;
130
- default: string;
131
- };
132
- fit: {
133
- type: BooleanConstructor;
134
- default: boolean;
135
- };
136
- width: {
137
- type: (StringConstructor | NumberConstructor)[];
138
- };
139
- height: {
140
- type: (StringConstructor | NumberConstructor)[];
141
- };
142
- flex: {
143
- type: BooleanConstructor;
144
- default: boolean;
145
- };
146
- inline: {
147
- type: BooleanConstructor;
148
- };
149
- direction: {
150
- type: PropType<ContainerDirection>;
151
- default: string;
152
- };
153
- wrap: {
154
- type: PropType<ContainerWrap>;
155
- default: string;
156
- };
157
- justify: {
158
- type: PropType<ContainerJustifyContent>;
159
- default: string;
160
- };
161
- align: {
162
- type: PropType<ContainerAlignItems>;
163
- default: string;
164
- };
165
- alignContent: {
166
- type: PropType<ContainerAlignContent>;
167
- default: string;
168
- };
169
- grow: {
170
- type: BooleanConstructor;
171
- default: boolean;
172
- };
173
- shrink: {
174
- type: BooleanConstructor;
175
- default: boolean;
176
- };
177
- alignSelf: {
178
- type: PropType< ContainerAlignItems | "auto">;
179
- default: string;
180
- };
181
- overflow: {
182
- type: PropType<"hidden" | "visible" | "auto">;
183
- };
184
- padding: {
185
- type: BooleanConstructor;
186
- default: boolean;
187
- };
188
- gap: {
189
- type: BooleanConstructor;
190
- };
191
- autoPointer: {
192
- type: BooleanConstructor;
193
- };
194
- }>>>>;
46
+ type: PropType<ContainerProps>;
195
47
  };
196
48
  }, {
197
49
  bodyRef: Ref<any>;
@@ -221,184 +73,24 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
221
73
  type: PropType<BaseSize>;
222
74
  };
223
75
  shadow: {
224
- type: PropType<"hover" | "always" | "none">;
76
+ type: PropType<"none" | "always" | "hover">;
225
77
  };
226
78
  header: {
227
- type: PropType<string | Readonly<Partial< ExtractPropTypes<{
228
- size: {
229
- type: PropType<BaseSize>;
230
- default: string;
231
- };
232
- content: {
233
- type: StringConstructor;
234
- default: string;
235
- };
236
- subtitle: {
237
- type: StringConstructor;
238
- };
239
- icon: {
240
- type: PropType<IconParam>;
241
- };
242
- border: {
243
- type: BooleanConstructor;
244
- };
245
- more: {
246
- type: BooleanConstructor;
247
- };
248
- }>>> | null>;
79
+ type: PropType<string | HeaderProps | null>;
249
80
  };
250
81
  body: {
251
- type: PropType<Readonly<Partial< ExtractPropTypes<{
252
- tag: {
253
- type: StringConstructor;
254
- default: string;
255
- };
256
- fit: {
257
- type: BooleanConstructor;
258
- default: boolean;
259
- };
260
- width: {
261
- type: (StringConstructor | NumberConstructor)[];
262
- };
263
- height: {
264
- type: (StringConstructor | NumberConstructor)[];
265
- };
266
- flex: {
267
- type: BooleanConstructor;
268
- default: boolean;
269
- };
270
- inline: {
271
- type: BooleanConstructor;
272
- };
273
- direction: {
274
- type: PropType<ContainerDirection>;
275
- default: string;
276
- };
277
- wrap: {
278
- type: PropType<ContainerWrap>;
279
- default: string;
280
- };
281
- justify: {
282
- type: PropType<ContainerJustifyContent>;
283
- default: string;
284
- };
285
- align: {
286
- type: PropType<ContainerAlignItems>;
287
- default: string;
288
- };
289
- alignContent: {
290
- type: PropType<ContainerAlignContent>;
291
- default: string;
292
- };
293
- grow: {
294
- type: BooleanConstructor;
295
- default: boolean;
296
- };
297
- shrink: {
298
- type: BooleanConstructor;
299
- default: boolean;
300
- };
301
- alignSelf: {
302
- type: PropType< ContainerAlignItems | "auto">;
303
- default: string;
304
- };
305
- overflow: {
306
- type: PropType<"hidden" | "visible" | "auto">;
307
- };
308
- padding: {
309
- type: BooleanConstructor;
310
- default: boolean;
311
- };
312
- gap: {
313
- type: BooleanConstructor;
314
- };
315
- autoPointer: {
316
- type: BooleanConstructor;
317
- };
318
- }>>>>;
82
+ type: PropType<ContainerProps>;
319
83
  };
320
84
  footer: {
321
- type: PropType<Readonly<Partial< ExtractPropTypes<{
322
- tag: {
323
- type: StringConstructor;
324
- default: string;
325
- };
326
- fit: {
327
- type: BooleanConstructor;
328
- default: boolean;
329
- };
330
- width: {
331
- type: (StringConstructor | NumberConstructor)[];
332
- };
333
- height: {
334
- type: (StringConstructor | NumberConstructor)[];
335
- };
336
- flex: {
337
- type: BooleanConstructor;
338
- default: boolean;
339
- };
340
- inline: {
341
- type: BooleanConstructor;
342
- };
343
- direction: {
344
- type: PropType<ContainerDirection>;
345
- default: string;
346
- };
347
- wrap: {
348
- type: PropType<ContainerWrap>;
349
- default: string;
350
- };
351
- justify: {
352
- type: PropType<ContainerJustifyContent>;
353
- default: string;
354
- };
355
- align: {
356
- type: PropType<ContainerAlignItems>;
357
- default: string;
358
- };
359
- alignContent: {
360
- type: PropType<ContainerAlignContent>;
361
- default: string;
362
- };
363
- grow: {
364
- type: BooleanConstructor;
365
- default: boolean;
366
- };
367
- shrink: {
368
- type: BooleanConstructor;
369
- default: boolean;
370
- };
371
- alignSelf: {
372
- type: PropType< ContainerAlignItems | "auto">;
373
- default: string;
374
- };
375
- overflow: {
376
- type: PropType<"hidden" | "visible" | "auto">;
377
- };
378
- padding: {
379
- type: BooleanConstructor;
380
- default: boolean;
381
- };
382
- gap: {
383
- type: BooleanConstructor;
384
- };
385
- autoPointer: {
386
- type: BooleanConstructor;
387
- };
388
- }>>>>;
85
+ type: PropType<ContainerProps>;
389
86
  };
390
87
  }>>, {
391
88
  radius: boolean;
392
89
  fit: boolean;
393
90
  border: boolean;
394
91
  card: boolean;
395
- }, {}>, {
396
- header?(_: {}): any;
397
- title?(_: {}): any;
398
- actions?(_: {}): any;
399
- default?(_: {}): any;
400
- footer?(_: {}): any;
401
- }>;
92
+ }, {}>;
93
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
402
94
  export default _default;
403
95
  type __VLS_WithTemplateSlots<T, S> = T & {
404
96
  new (): {
@@ -1,6 +1,6 @@
1
- import { PropType, ExtractPropTypes } from 'vue';
1
+ import { PropType } from 'vue';
2
2
  import { ComponentPropsType, BaseSize } from '../shared';
3
- import { IconParam, ContainerDirection, ContainerWrap, ContainerJustifyContent, ContainerAlignItems, ContainerAlignContent } from '../';
3
+ import { HeaderProps, ContainerProps } from '../';
4
4
 
5
5
  export declare const panelProps: {
6
6
  /**
@@ -52,183 +52,19 @@ export declare const panelProps: {
52
52
  * 阴影设置
53
53
  */
54
54
  shadow: {
55
- type: PropType<"hover" | "always" | "none">;
55
+ type: PropType<"none" | "always" | "hover">;
56
56
  };
57
57
  /**
58
58
  * 头部设置
59
59
  */
60
60
  header: {
61
- type: PropType<string | Readonly<Partial< ExtractPropTypes<{
62
- size: {
63
- type: PropType<BaseSize>;
64
- default: string;
65
- };
66
- content: {
67
- type: StringConstructor;
68
- default: string;
69
- };
70
- subtitle: {
71
- type: StringConstructor;
72
- };
73
- /**
74
- * 指定高度,fit 为true失效
75
- */
76
- icon: {
77
- type: PropType< IconParam>;
78
- };
79
- border: {
80
- type: BooleanConstructor;
81
- };
82
- more: {
83
- type: BooleanConstructor;
84
- };
85
- }>>> | null>;
61
+ type: PropType<string | HeaderProps | null>;
86
62
  };
87
63
  body: {
88
- type: PropType<Readonly<Partial< ExtractPropTypes<{
89
- /**
90
- * 阴影设置
91
- */
92
- tag: {
93
- type: StringConstructor;
94
- default: string;
95
- };
96
- fit: {
97
- type: BooleanConstructor;
98
- default: boolean;
99
- };
100
- width: {
101
- type: (StringConstructor | NumberConstructor)[];
102
- };
103
- height: {
104
- type: (StringConstructor | NumberConstructor)[];
105
- };
106
- flex: {
107
- type: BooleanConstructor;
108
- default: boolean;
109
- };
110
- inline: {
111
- type: BooleanConstructor;
112
- };
113
- direction: {
114
- type: PropType< ContainerDirection>;
115
- default: string;
116
- };
117
- wrap: {
118
- type: PropType< ContainerWrap>;
119
- default: string;
120
- };
121
- justify: {
122
- type: PropType< ContainerJustifyContent>;
123
- default: string;
124
- };
125
- align: {
126
- type: PropType< ContainerAlignItems>;
127
- default: string;
128
- };
129
- alignContent: {
130
- type: PropType< ContainerAlignContent>;
131
- default: string;
132
- };
133
- grow: {
134
- type: BooleanConstructor;
135
- default: boolean;
136
- };
137
- shrink: {
138
- type: BooleanConstructor;
139
- default: boolean;
140
- };
141
- alignSelf: {
142
- type: PropType< ContainerAlignItems | "auto">;
143
- default: string;
144
- };
145
- overflow: {
146
- type: PropType<"hidden" | "visible" | "auto">;
147
- };
148
- padding: {
149
- type: BooleanConstructor;
150
- default: boolean;
151
- };
152
- gap: {
153
- type: BooleanConstructor;
154
- };
155
- autoPointer: {
156
- type: BooleanConstructor;
157
- };
158
- }>>>>;
64
+ type: PropType<ContainerProps>;
159
65
  };
160
66
  footer: {
161
- type: PropType<Readonly<Partial< ExtractPropTypes<{
162
- /**
163
- * 阴影设置
164
- */
165
- tag: {
166
- type: StringConstructor;
167
- default: string;
168
- };
169
- fit: {
170
- type: BooleanConstructor;
171
- default: boolean;
172
- };
173
- width: {
174
- type: (StringConstructor | NumberConstructor)[];
175
- };
176
- height: {
177
- type: (StringConstructor | NumberConstructor)[];
178
- };
179
- flex: {
180
- type: BooleanConstructor;
181
- default: boolean;
182
- };
183
- inline: {
184
- type: BooleanConstructor;
185
- };
186
- direction: {
187
- type: PropType< ContainerDirection>;
188
- default: string;
189
- };
190
- wrap: {
191
- type: PropType< ContainerWrap>;
192
- default: string;
193
- };
194
- justify: {
195
- type: PropType< ContainerJustifyContent>;
196
- default: string;
197
- };
198
- align: {
199
- type: PropType< ContainerAlignItems>;
200
- default: string;
201
- };
202
- alignContent: {
203
- type: PropType< ContainerAlignContent>;
204
- default: string;
205
- };
206
- grow: {
207
- type: BooleanConstructor;
208
- default: boolean;
209
- };
210
- shrink: {
211
- type: BooleanConstructor;
212
- default: boolean;
213
- };
214
- alignSelf: {
215
- type: PropType< ContainerAlignItems | "auto">;
216
- default: string;
217
- };
218
- overflow: {
219
- type: PropType<"hidden" | "visible" | "auto">;
220
- };
221
- padding: {
222
- type: BooleanConstructor;
223
- default: boolean;
224
- };
225
- gap: {
226
- type: BooleanConstructor;
227
- };
228
- autoPointer: {
229
- type: BooleanConstructor;
230
- };
231
- }>>>>;
67
+ type: PropType<ContainerProps>;
232
68
  };
233
69
  };
234
70
  export type PanelProps = ComponentPropsType<typeof panelProps>;