@lytjs/ui 6.0.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/README.md +312 -0
- package/dist/index.cjs +6827 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.css +1804 -0
- package/dist/index.css.map +1 -0
- package/dist/index.d.cts +1983 -0
- package/dist/index.d.ts +1983 -0
- package/dist/index.mjs +6766 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +62 -0
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,1983 @@
|
|
|
1
|
+
import * as _lytjs_component from '@lytjs/component';
|
|
2
|
+
import { AppContext } from '@lytjs/component';
|
|
3
|
+
import { VNode } from '@lytjs/vdom';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @lytjs/ui - 类型定义
|
|
7
|
+
*
|
|
8
|
+
* UI 组件库的核心类型定义
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
type ComponentSize = 'small' | 'medium' | 'large';
|
|
12
|
+
type ComponentStatus = 'default' | 'primary' | 'success' | 'warning' | 'danger' | 'info';
|
|
13
|
+
type AlertType = 'success' | 'warning' | 'info' | 'error';
|
|
14
|
+
type TableAlign = 'left' | 'center' | 'right';
|
|
15
|
+
type TableSortOrder = 'ascending' | 'descending' | '';
|
|
16
|
+
type ButtonNativeType = 'button' | 'submit' | 'reset';
|
|
17
|
+
interface ButtonProps {
|
|
18
|
+
type?: ComponentStatus;
|
|
19
|
+
size?: ComponentSize;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
loading?: boolean;
|
|
22
|
+
plain?: boolean;
|
|
23
|
+
round?: boolean;
|
|
24
|
+
circle?: boolean;
|
|
25
|
+
nativeType?: ButtonNativeType;
|
|
26
|
+
class?: string;
|
|
27
|
+
style?: string | Record<string, string>;
|
|
28
|
+
ariaLabel?: string;
|
|
29
|
+
ariaDescribedBy?: string;
|
|
30
|
+
tabIndex?: number;
|
|
31
|
+
onClick?: (event: MouseEvent) => void;
|
|
32
|
+
onKeydown?: (event: KeyboardEvent) => void;
|
|
33
|
+
}
|
|
34
|
+
interface ButtonSlots {
|
|
35
|
+
default?: () => VNode[];
|
|
36
|
+
loading?: () => VNode[];
|
|
37
|
+
icon?: () => VNode[];
|
|
38
|
+
}
|
|
39
|
+
interface InputProps {
|
|
40
|
+
modelValue?: string | number;
|
|
41
|
+
type?: string;
|
|
42
|
+
placeholder?: string;
|
|
43
|
+
disabled?: boolean;
|
|
44
|
+
readonly?: boolean;
|
|
45
|
+
clearable?: boolean;
|
|
46
|
+
showPassword?: boolean;
|
|
47
|
+
maxlength?: number;
|
|
48
|
+
minlength?: number;
|
|
49
|
+
size?: ComponentSize;
|
|
50
|
+
prefixIcon?: string;
|
|
51
|
+
suffixIcon?: string;
|
|
52
|
+
class?: string;
|
|
53
|
+
style?: string | Record<string, string>;
|
|
54
|
+
ariaLabel?: string;
|
|
55
|
+
ariaDescribedBy?: string;
|
|
56
|
+
ariaInvalid?: boolean;
|
|
57
|
+
ariaRequired?: boolean;
|
|
58
|
+
autocomplete?: string;
|
|
59
|
+
name?: string;
|
|
60
|
+
id?: string;
|
|
61
|
+
tabIndex?: number;
|
|
62
|
+
onInput?: (value: string) => void;
|
|
63
|
+
onChange?: (value: string) => void;
|
|
64
|
+
onFocus?: (event: FocusEvent) => void;
|
|
65
|
+
onBlur?: (event: FocusEvent) => void;
|
|
66
|
+
onClear?: () => void;
|
|
67
|
+
}
|
|
68
|
+
interface InputSlots {
|
|
69
|
+
prefix?: () => VNode[];
|
|
70
|
+
suffix?: () => VNode[];
|
|
71
|
+
prepend?: () => VNode[];
|
|
72
|
+
append?: () => VNode[];
|
|
73
|
+
}
|
|
74
|
+
interface DialogProps {
|
|
75
|
+
modelValue?: boolean;
|
|
76
|
+
title?: string;
|
|
77
|
+
width?: string | number;
|
|
78
|
+
showClose?: boolean;
|
|
79
|
+
closeOnClickModal?: boolean;
|
|
80
|
+
closeOnPressEscape?: boolean;
|
|
81
|
+
lockScroll?: boolean;
|
|
82
|
+
class?: string;
|
|
83
|
+
style?: string | Record<string, string>;
|
|
84
|
+
id?: string;
|
|
85
|
+
ariaLabel?: string;
|
|
86
|
+
ariaDescribedBy?: string;
|
|
87
|
+
ariaModal?: boolean;
|
|
88
|
+
onBeforeOpen?: () => boolean | void | Promise<boolean | void>;
|
|
89
|
+
onBeforeClose?: () => boolean | void | Promise<boolean | void>;
|
|
90
|
+
onOpen?: () => void;
|
|
91
|
+
onClose?: () => void;
|
|
92
|
+
onConfirm?: () => void;
|
|
93
|
+
onCancel?: () => void;
|
|
94
|
+
onKeydown?: (event: KeyboardEvent) => void;
|
|
95
|
+
}
|
|
96
|
+
interface DialogSlots {
|
|
97
|
+
header?: () => VNode[];
|
|
98
|
+
default?: () => VNode[];
|
|
99
|
+
footer?: () => VNode[];
|
|
100
|
+
}
|
|
101
|
+
interface DialogSetupProps extends Record<string, unknown> {
|
|
102
|
+
modelValue: boolean;
|
|
103
|
+
title: string;
|
|
104
|
+
width: string | number;
|
|
105
|
+
showClose: boolean;
|
|
106
|
+
closeOnClickModal: boolean;
|
|
107
|
+
closeOnPressEscape: boolean;
|
|
108
|
+
lockScroll: boolean;
|
|
109
|
+
class: string;
|
|
110
|
+
onBeforeOpen?: () => boolean | void | Promise<boolean | void>;
|
|
111
|
+
onBeforeClose?: () => boolean | void | Promise<boolean | void>;
|
|
112
|
+
onOpen?: () => void;
|
|
113
|
+
onClose?: () => void;
|
|
114
|
+
onConfirm?: () => void;
|
|
115
|
+
onCancel?: () => void;
|
|
116
|
+
}
|
|
117
|
+
interface DialogSetupProps extends Record<string, unknown> {
|
|
118
|
+
modelValue: boolean;
|
|
119
|
+
title: string;
|
|
120
|
+
width: string | number;
|
|
121
|
+
showClose: boolean;
|
|
122
|
+
closeOnClickModal: boolean;
|
|
123
|
+
closeOnPressEscape: boolean;
|
|
124
|
+
lockScroll: boolean;
|
|
125
|
+
class: string;
|
|
126
|
+
id: string;
|
|
127
|
+
ariaLabel: string;
|
|
128
|
+
ariaDescribedBy: string;
|
|
129
|
+
ariaModal: boolean;
|
|
130
|
+
onBeforeOpen?: () => boolean | void | Promise<boolean | void>;
|
|
131
|
+
onBeforeClose?: () => boolean | void | Promise<boolean | void>;
|
|
132
|
+
onOpen?: () => void;
|
|
133
|
+
onClose?: () => void;
|
|
134
|
+
onConfirm?: () => void;
|
|
135
|
+
onCancel?: () => void;
|
|
136
|
+
onKeydown?: (event: KeyboardEvent) => void;
|
|
137
|
+
}
|
|
138
|
+
interface SelectOption {
|
|
139
|
+
label: string;
|
|
140
|
+
value: string | number;
|
|
141
|
+
disabled?: boolean;
|
|
142
|
+
}
|
|
143
|
+
interface SelectSetupProps extends Record<string, unknown> {
|
|
144
|
+
modelValue: string | number | (string | number)[];
|
|
145
|
+
options: SelectOption[];
|
|
146
|
+
placeholder: string;
|
|
147
|
+
disabled: boolean;
|
|
148
|
+
clearable: boolean;
|
|
149
|
+
multiple: boolean;
|
|
150
|
+
size: ComponentSize;
|
|
151
|
+
class: string;
|
|
152
|
+
id: string;
|
|
153
|
+
ariaLabel: string;
|
|
154
|
+
ariaDescribedBy: string;
|
|
155
|
+
ariaInvalid: boolean;
|
|
156
|
+
ariaRequired: boolean;
|
|
157
|
+
tabIndex?: number;
|
|
158
|
+
onChange?: (value: string | number | (string | number)[]) => void;
|
|
159
|
+
onClear?: () => void;
|
|
160
|
+
onKeydown?: (event: KeyboardEvent) => void;
|
|
161
|
+
onVisibleChange?: (visible: boolean) => void;
|
|
162
|
+
}
|
|
163
|
+
interface SelectProps {
|
|
164
|
+
modelValue?: string | number | (string | number)[];
|
|
165
|
+
options?: SelectOption[];
|
|
166
|
+
placeholder?: string;
|
|
167
|
+
disabled?: boolean;
|
|
168
|
+
clearable?: boolean;
|
|
169
|
+
multiple?: boolean;
|
|
170
|
+
size?: ComponentSize;
|
|
171
|
+
class?: string;
|
|
172
|
+
style?: string | Record<string, string>;
|
|
173
|
+
id?: string;
|
|
174
|
+
ariaLabel?: string;
|
|
175
|
+
ariaDescribedBy?: string;
|
|
176
|
+
ariaInvalid?: boolean;
|
|
177
|
+
ariaRequired?: boolean;
|
|
178
|
+
tabIndex?: number;
|
|
179
|
+
onChange?: (value: string | number | (string | number)[]) => void;
|
|
180
|
+
onClear?: () => void;
|
|
181
|
+
onKeydown?: (event: KeyboardEvent) => void;
|
|
182
|
+
onVisibleChange?: (visible: boolean) => void;
|
|
183
|
+
}
|
|
184
|
+
interface SelectSlots {
|
|
185
|
+
default?: () => VNode[];
|
|
186
|
+
option?: (option: SelectOption) => VNode[];
|
|
187
|
+
empty?: () => VNode[];
|
|
188
|
+
}
|
|
189
|
+
interface TabPaneSetupProps extends Record<string, unknown> {
|
|
190
|
+
label: string;
|
|
191
|
+
name: string;
|
|
192
|
+
disabled: boolean;
|
|
193
|
+
closable: boolean;
|
|
194
|
+
}
|
|
195
|
+
interface TabPaneProps {
|
|
196
|
+
label: string;
|
|
197
|
+
name: string;
|
|
198
|
+
disabled?: boolean;
|
|
199
|
+
closable?: boolean;
|
|
200
|
+
}
|
|
201
|
+
interface TabsProps {
|
|
202
|
+
modelValue?: string;
|
|
203
|
+
type?: 'card' | 'border-card';
|
|
204
|
+
class?: string;
|
|
205
|
+
style?: string | Record<string, string>;
|
|
206
|
+
closable?: boolean;
|
|
207
|
+
addable?: boolean;
|
|
208
|
+
editable?: boolean;
|
|
209
|
+
draggable?: boolean;
|
|
210
|
+
id?: string;
|
|
211
|
+
ariaLabel?: string;
|
|
212
|
+
ariaDescribedBy?: string;
|
|
213
|
+
onChange?: (name: string) => void;
|
|
214
|
+
onTabClick?: (pane: {
|
|
215
|
+
props: TabPaneProps;
|
|
216
|
+
children: VNode[];
|
|
217
|
+
}, index: number) => void;
|
|
218
|
+
onTabRemove?: (name: string) => void;
|
|
219
|
+
onTabAdd?: () => void;
|
|
220
|
+
onTabDragStart?: (index: number) => void;
|
|
221
|
+
onTabDragEnd?: (fromIndex: number, toIndex: number) => void;
|
|
222
|
+
onKeydown?: (event: KeyboardEvent) => void;
|
|
223
|
+
}
|
|
224
|
+
interface TabsSlots {
|
|
225
|
+
default?: () => VNode[];
|
|
226
|
+
}
|
|
227
|
+
interface CascaderOption {
|
|
228
|
+
value: string | number;
|
|
229
|
+
label: string;
|
|
230
|
+
children?: CascaderOption[];
|
|
231
|
+
disabled?: boolean;
|
|
232
|
+
isLeaf?: boolean;
|
|
233
|
+
loading?: boolean;
|
|
234
|
+
}
|
|
235
|
+
interface CascaderSetupProps extends Record<string, unknown> {
|
|
236
|
+
options: CascaderOption[];
|
|
237
|
+
modelValue: (string | number)[] | Array<(string | number)[]>;
|
|
238
|
+
placeholder: string;
|
|
239
|
+
disabled: boolean;
|
|
240
|
+
clearable: boolean;
|
|
241
|
+
multiple: boolean;
|
|
242
|
+
filterable: boolean;
|
|
243
|
+
checkStrictly: boolean;
|
|
244
|
+
showAllLevels: boolean;
|
|
245
|
+
collapseTags: boolean;
|
|
246
|
+
separator: string;
|
|
247
|
+
class: string;
|
|
248
|
+
id: string;
|
|
249
|
+
ariaLabel: string;
|
|
250
|
+
ariaDescribedBy: string;
|
|
251
|
+
load?: (node: CascaderOption, resolve: (children: CascaderOption[]) => void) => void;
|
|
252
|
+
onChange?: (value: (string | number)[] | Array<(string | number)[]>) => void;
|
|
253
|
+
onExpandChange?: (value: (string | number)[]) => void;
|
|
254
|
+
onVisibleChange?: (visible: boolean) => void;
|
|
255
|
+
onRemoveTag?: (value: Array<(string | number)[]>) => void;
|
|
256
|
+
onClear?: () => void;
|
|
257
|
+
}
|
|
258
|
+
interface CascaderProps {
|
|
259
|
+
options?: CascaderOption[];
|
|
260
|
+
modelValue?: (string | number)[] | Array<(string | number)[]>;
|
|
261
|
+
placeholder?: string;
|
|
262
|
+
disabled?: boolean;
|
|
263
|
+
clearable?: boolean;
|
|
264
|
+
multiple?: boolean;
|
|
265
|
+
filterable?: boolean;
|
|
266
|
+
checkStrictly?: boolean;
|
|
267
|
+
showAllLevels?: boolean;
|
|
268
|
+
collapseTags?: boolean;
|
|
269
|
+
separator?: string;
|
|
270
|
+
class?: string;
|
|
271
|
+
style?: string | Record<string, string>;
|
|
272
|
+
id?: string;
|
|
273
|
+
ariaLabel?: string;
|
|
274
|
+
ariaDescribedBy?: string;
|
|
275
|
+
load?: (node: CascaderOption, resolve: (children: CascaderOption[]) => void) => void;
|
|
276
|
+
onChange?: (value: (string | number)[] | Array<(string | number)[]>) => void;
|
|
277
|
+
onExpandChange?: (value: (string | number)[]) => void;
|
|
278
|
+
onVisibleChange?: (visible: boolean) => void;
|
|
279
|
+
onRemoveTag?: (value: (string | number)[]) => void;
|
|
280
|
+
onClear?: () => void;
|
|
281
|
+
}
|
|
282
|
+
interface CascaderSlots {
|
|
283
|
+
default?: (option: CascaderOption) => VNode[];
|
|
284
|
+
empty?: () => VNode[];
|
|
285
|
+
}
|
|
286
|
+
type DatePickerType = 'date' | 'datetime' | 'daterange' | 'datetimerange';
|
|
287
|
+
interface DatePickerShortcut {
|
|
288
|
+
text: string;
|
|
289
|
+
value: Date | Date[];
|
|
290
|
+
onClick?: () => void;
|
|
291
|
+
}
|
|
292
|
+
interface DatePickerSetupProps extends Record<string, unknown> {
|
|
293
|
+
modelValue: string | Date | (string | Date)[] | null;
|
|
294
|
+
placeholder: string;
|
|
295
|
+
disabled: boolean;
|
|
296
|
+
clearable: boolean;
|
|
297
|
+
format: string;
|
|
298
|
+
type: DatePickerType;
|
|
299
|
+
disabledDate?: (date: Date) => boolean;
|
|
300
|
+
shortcuts: DatePickerShortcut[];
|
|
301
|
+
class: string;
|
|
302
|
+
onChange?: (value: string | Date | (string | Date)[] | null) => void;
|
|
303
|
+
onOpen?: () => void;
|
|
304
|
+
onClose?: () => void;
|
|
305
|
+
}
|
|
306
|
+
interface DatePickerProps {
|
|
307
|
+
modelValue?: string | Date | (string | Date)[] | null;
|
|
308
|
+
placeholder?: string;
|
|
309
|
+
disabled?: boolean;
|
|
310
|
+
clearable?: boolean;
|
|
311
|
+
format?: string;
|
|
312
|
+
type?: DatePickerType;
|
|
313
|
+
disabledDate?: (date: Date) => boolean;
|
|
314
|
+
shortcuts?: DatePickerShortcut[];
|
|
315
|
+
class?: string;
|
|
316
|
+
style?: string | Record<string, string>;
|
|
317
|
+
onChange?: (value: string | Date | (string | Date)[] | null) => void;
|
|
318
|
+
onOpen?: () => void;
|
|
319
|
+
onClose?: () => void;
|
|
320
|
+
}
|
|
321
|
+
interface DatePickerSlots {
|
|
322
|
+
default?: () => VNode[];
|
|
323
|
+
footer?: () => VNode[];
|
|
324
|
+
}
|
|
325
|
+
interface TableColumn {
|
|
326
|
+
prop?: string;
|
|
327
|
+
label: string;
|
|
328
|
+
width?: string | number;
|
|
329
|
+
align?: TableAlign;
|
|
330
|
+
sortable?: boolean;
|
|
331
|
+
formatter?: (row: TableRowData, column: TableColumn, cellValue: unknown) => string;
|
|
332
|
+
}
|
|
333
|
+
type TableRowData = Record<string, unknown>;
|
|
334
|
+
type TableData = TableRowData[];
|
|
335
|
+
type TableSortCallback = (column: TableColumn, prop: string, order: TableSortOrder) => void;
|
|
336
|
+
type TableRowClickCallback = (row: TableRowData, index: number) => void;
|
|
337
|
+
interface TableSetupProps extends Record<string, unknown> {
|
|
338
|
+
data: TableData;
|
|
339
|
+
columns: TableColumn[];
|
|
340
|
+
stripe: boolean;
|
|
341
|
+
border: boolean;
|
|
342
|
+
rowKey: string;
|
|
343
|
+
showSelection: boolean;
|
|
344
|
+
highlightCurrentRow: boolean;
|
|
345
|
+
class: string;
|
|
346
|
+
id: string;
|
|
347
|
+
ariaLabel: string;
|
|
348
|
+
ariaDescribedBy: string;
|
|
349
|
+
onRowClick?: TableRowClickCallback;
|
|
350
|
+
onSortChange?: TableSortCallback;
|
|
351
|
+
onSelectionChange?: (rows: TableData) => void;
|
|
352
|
+
}
|
|
353
|
+
interface TableProps {
|
|
354
|
+
data?: TableData;
|
|
355
|
+
columns?: TableColumn[];
|
|
356
|
+
stripe?: boolean;
|
|
357
|
+
border?: boolean;
|
|
358
|
+
height?: string | number;
|
|
359
|
+
maxHeight?: string | number;
|
|
360
|
+
rowKey?: string;
|
|
361
|
+
showSelection?: boolean;
|
|
362
|
+
highlightCurrentRow?: boolean;
|
|
363
|
+
class?: string;
|
|
364
|
+
style?: string | Record<string, string>;
|
|
365
|
+
id?: string;
|
|
366
|
+
ariaLabel?: string;
|
|
367
|
+
ariaDescribedBy?: string;
|
|
368
|
+
onRowClick?: TableRowClickCallback;
|
|
369
|
+
onSortChange?: TableSortCallback;
|
|
370
|
+
onSelectionChange?: (rows: TableData) => void;
|
|
371
|
+
}
|
|
372
|
+
interface TableSlots {
|
|
373
|
+
default?: () => VNode[];
|
|
374
|
+
empty?: () => VNode[];
|
|
375
|
+
}
|
|
376
|
+
interface IconProps {
|
|
377
|
+
name?: string;
|
|
378
|
+
size?: string;
|
|
379
|
+
color?: string;
|
|
380
|
+
spin?: boolean;
|
|
381
|
+
class?: string;
|
|
382
|
+
style?: string | Record<string, string>;
|
|
383
|
+
id?: string;
|
|
384
|
+
ariaLabel?: string;
|
|
385
|
+
ariaDescribedBy?: string;
|
|
386
|
+
}
|
|
387
|
+
interface IconSlots {
|
|
388
|
+
default?: () => VNode[];
|
|
389
|
+
}
|
|
390
|
+
interface BadgeProps {
|
|
391
|
+
count?: number;
|
|
392
|
+
maxCount?: number;
|
|
393
|
+
dot?: boolean;
|
|
394
|
+
showZero?: boolean;
|
|
395
|
+
type?: ComponentStatus;
|
|
396
|
+
offset?: [number, number];
|
|
397
|
+
class?: string;
|
|
398
|
+
style?: string | Record<string, string>;
|
|
399
|
+
}
|
|
400
|
+
interface BadgeSlots {
|
|
401
|
+
default?: () => VNode[];
|
|
402
|
+
}
|
|
403
|
+
interface BadgeSetupProps extends Record<string, unknown> {
|
|
404
|
+
count: number;
|
|
405
|
+
maxCount: number;
|
|
406
|
+
dot: boolean;
|
|
407
|
+
showZero: boolean;
|
|
408
|
+
type: string;
|
|
409
|
+
offset?: number[];
|
|
410
|
+
class: string;
|
|
411
|
+
id: string;
|
|
412
|
+
ariaLabel: string;
|
|
413
|
+
ariaDescribedBy: string;
|
|
414
|
+
style?: string | Record<string, string>;
|
|
415
|
+
}
|
|
416
|
+
interface TagProps {
|
|
417
|
+
type?: ComponentStatus;
|
|
418
|
+
closable?: boolean;
|
|
419
|
+
color?: string;
|
|
420
|
+
size?: ComponentSize;
|
|
421
|
+
class?: string;
|
|
422
|
+
style?: string | Record<string, string>;
|
|
423
|
+
id?: string;
|
|
424
|
+
ariaLabel?: string;
|
|
425
|
+
ariaDescribedBy?: string;
|
|
426
|
+
onClose?: () => void;
|
|
427
|
+
}
|
|
428
|
+
interface TagSlots {
|
|
429
|
+
default?: () => VNode[];
|
|
430
|
+
}
|
|
431
|
+
interface TagSetupProps extends Record<string, unknown> {
|
|
432
|
+
type: ComponentStatus;
|
|
433
|
+
closable: boolean;
|
|
434
|
+
color: string;
|
|
435
|
+
size: ComponentSize;
|
|
436
|
+
class: string;
|
|
437
|
+
id: string;
|
|
438
|
+
ariaLabel: string;
|
|
439
|
+
ariaDescribedBy: string;
|
|
440
|
+
style?: string | Record<string, string>;
|
|
441
|
+
onClose?: () => void;
|
|
442
|
+
}
|
|
443
|
+
interface SpinProps {
|
|
444
|
+
spinning?: boolean;
|
|
445
|
+
size?: 'small' | 'default' | 'large';
|
|
446
|
+
tip?: string;
|
|
447
|
+
delay?: number;
|
|
448
|
+
class?: string;
|
|
449
|
+
style?: string | Record<string, string>;
|
|
450
|
+
id?: string;
|
|
451
|
+
ariaLabel?: string;
|
|
452
|
+
ariaDescribedBy?: string;
|
|
453
|
+
}
|
|
454
|
+
interface SpinSlots {
|
|
455
|
+
default?: () => VNode[];
|
|
456
|
+
tip?: () => VNode[];
|
|
457
|
+
}
|
|
458
|
+
interface EmptyProps {
|
|
459
|
+
description?: string;
|
|
460
|
+
image?: string;
|
|
461
|
+
imageSize?: number;
|
|
462
|
+
class?: string;
|
|
463
|
+
style?: string | Record<string, string>;
|
|
464
|
+
id?: string;
|
|
465
|
+
ariaLabel?: string;
|
|
466
|
+
ariaDescribedBy?: string;
|
|
467
|
+
}
|
|
468
|
+
interface EmptySlots {
|
|
469
|
+
default?: () => VNode[];
|
|
470
|
+
image?: () => VNode[];
|
|
471
|
+
description?: () => VNode[];
|
|
472
|
+
}
|
|
473
|
+
interface LinkProps {
|
|
474
|
+
type?: ComponentStatus;
|
|
475
|
+
disabled?: boolean;
|
|
476
|
+
underline?: boolean;
|
|
477
|
+
href?: string;
|
|
478
|
+
target?: '_blank' | '_self' | '_parent' | '_top';
|
|
479
|
+
class?: string;
|
|
480
|
+
style?: string | Record<string, string>;
|
|
481
|
+
id?: string;
|
|
482
|
+
ariaLabel?: string;
|
|
483
|
+
ariaDescribedBy?: string;
|
|
484
|
+
onClick?: (event: MouseEvent) => void;
|
|
485
|
+
}
|
|
486
|
+
interface LinkSlots {
|
|
487
|
+
default?: () => VNode[];
|
|
488
|
+
}
|
|
489
|
+
interface ContainerProps {
|
|
490
|
+
fluid?: boolean;
|
|
491
|
+
class?: string;
|
|
492
|
+
style?: string | Record<string, string>;
|
|
493
|
+
id?: string;
|
|
494
|
+
ariaLabel?: string;
|
|
495
|
+
ariaDescribedBy?: string;
|
|
496
|
+
}
|
|
497
|
+
interface ContainerSlots {
|
|
498
|
+
default?: () => VNode[];
|
|
499
|
+
}
|
|
500
|
+
interface DividerProps {
|
|
501
|
+
type?: 'horizontal' | 'vertical';
|
|
502
|
+
contentPosition?: 'left' | 'center' | 'right';
|
|
503
|
+
class?: string;
|
|
504
|
+
style?: string | Record<string, string>;
|
|
505
|
+
id?: string;
|
|
506
|
+
ariaLabel?: string;
|
|
507
|
+
ariaDescribedBy?: string;
|
|
508
|
+
}
|
|
509
|
+
interface DividerSlots {
|
|
510
|
+
default?: () => VNode[];
|
|
511
|
+
}
|
|
512
|
+
interface ToastProps {
|
|
513
|
+
type?: 'success' | 'warning' | 'info' | 'error';
|
|
514
|
+
message?: string;
|
|
515
|
+
duration?: number;
|
|
516
|
+
showClose?: boolean;
|
|
517
|
+
class?: string;
|
|
518
|
+
style?: string | Record<string, string>;
|
|
519
|
+
id?: string;
|
|
520
|
+
ariaLabel?: string;
|
|
521
|
+
ariaDescribedBy?: string;
|
|
522
|
+
onClose?: () => void;
|
|
523
|
+
}
|
|
524
|
+
interface ToastSlots {
|
|
525
|
+
default?: () => VNode[];
|
|
526
|
+
}
|
|
527
|
+
interface ToastSetupProps extends Record<string, unknown> {
|
|
528
|
+
message: string;
|
|
529
|
+
type: 'success' | 'warning' | 'info' | 'error';
|
|
530
|
+
duration: number;
|
|
531
|
+
position: string;
|
|
532
|
+
icon: string;
|
|
533
|
+
closable: boolean;
|
|
534
|
+
class: string;
|
|
535
|
+
id: string;
|
|
536
|
+
ariaLabel: string;
|
|
537
|
+
ariaDescribedBy: string;
|
|
538
|
+
style?: string | Record<string, string>;
|
|
539
|
+
onClose?: () => void;
|
|
540
|
+
}
|
|
541
|
+
type FormValidateStatus = 'success' | 'error' | 'validating' | '';
|
|
542
|
+
interface FormRule {
|
|
543
|
+
required?: boolean;
|
|
544
|
+
message?: string;
|
|
545
|
+
pattern?: RegExp;
|
|
546
|
+
validator?: (value: unknown, model: Record<string, unknown>) => boolean | string;
|
|
547
|
+
min?: number;
|
|
548
|
+
max?: number;
|
|
549
|
+
type?: 'string' | 'number' | 'boolean' | 'array' | 'date' | 'email' | 'url';
|
|
550
|
+
}
|
|
551
|
+
interface FormRules {
|
|
552
|
+
[field: string]: FormRule[];
|
|
553
|
+
}
|
|
554
|
+
interface FormSetupProps extends Record<string, unknown> {
|
|
555
|
+
model: Record<string, unknown>;
|
|
556
|
+
rules: FormRules;
|
|
557
|
+
labelWidth: string;
|
|
558
|
+
labelPosition: 'left' | 'right' | 'top';
|
|
559
|
+
class: string;
|
|
560
|
+
id: string;
|
|
561
|
+
ariaLabel: string;
|
|
562
|
+
ariaDescribedBy: string;
|
|
563
|
+
onSubmit?: (data: Record<string, unknown>) => void;
|
|
564
|
+
}
|
|
565
|
+
interface FormProps {
|
|
566
|
+
model?: Record<string, unknown>;
|
|
567
|
+
rules?: FormRules;
|
|
568
|
+
labelWidth?: string;
|
|
569
|
+
labelPosition?: 'left' | 'right' | 'top';
|
|
570
|
+
class?: string;
|
|
571
|
+
style?: string | Record<string, string>;
|
|
572
|
+
id?: string;
|
|
573
|
+
ariaLabel?: string;
|
|
574
|
+
ariaDescribedBy?: string;
|
|
575
|
+
onSubmit?: (data: Record<string, unknown>) => void;
|
|
576
|
+
}
|
|
577
|
+
interface FormSlots {
|
|
578
|
+
default?: () => VNode[];
|
|
579
|
+
}
|
|
580
|
+
interface FormItemSetupProps extends Record<string, unknown> {
|
|
581
|
+
label: string;
|
|
582
|
+
prop: string;
|
|
583
|
+
required: boolean;
|
|
584
|
+
rules: FormRule[];
|
|
585
|
+
error: string;
|
|
586
|
+
validateStatus: FormValidateStatus;
|
|
587
|
+
id: string;
|
|
588
|
+
ariaLabel: string;
|
|
589
|
+
ariaDescribedBy: string;
|
|
590
|
+
}
|
|
591
|
+
interface FormItemProps {
|
|
592
|
+
label?: string;
|
|
593
|
+
prop?: string;
|
|
594
|
+
required?: boolean;
|
|
595
|
+
rules?: FormRule[];
|
|
596
|
+
error?: string;
|
|
597
|
+
validateStatus?: FormValidateStatus;
|
|
598
|
+
id?: string;
|
|
599
|
+
ariaLabel?: string;
|
|
600
|
+
ariaDescribedBy?: string;
|
|
601
|
+
}
|
|
602
|
+
interface FormItemSlots {
|
|
603
|
+
default?: () => VNode[];
|
|
604
|
+
label?: () => VNode[];
|
|
605
|
+
error?: () => VNode[];
|
|
606
|
+
}
|
|
607
|
+
interface MenuItem {
|
|
608
|
+
index: string;
|
|
609
|
+
label: string;
|
|
610
|
+
icon?: string;
|
|
611
|
+
disabled?: boolean;
|
|
612
|
+
children?: MenuItem[];
|
|
613
|
+
}
|
|
614
|
+
interface MenuSetupProps extends Record<string, unknown> {
|
|
615
|
+
mode: 'horizontal' | 'vertical';
|
|
616
|
+
defaultActive: string;
|
|
617
|
+
defaultOpeneds: string[];
|
|
618
|
+
uniqueOpened: boolean;
|
|
619
|
+
class: string;
|
|
620
|
+
id: string;
|
|
621
|
+
ariaLabel: string;
|
|
622
|
+
ariaDescribedBy: string;
|
|
623
|
+
onSelect?: (index: string) => void;
|
|
624
|
+
onOpen?: (index: string) => void;
|
|
625
|
+
onClose?: (index: string) => void;
|
|
626
|
+
}
|
|
627
|
+
interface MenuProps {
|
|
628
|
+
mode?: 'horizontal' | 'vertical';
|
|
629
|
+
defaultActive?: string;
|
|
630
|
+
defaultOpeneds?: string[];
|
|
631
|
+
uniqueOpened?: boolean;
|
|
632
|
+
class?: string;
|
|
633
|
+
style?: string | Record<string, string>;
|
|
634
|
+
id?: string;
|
|
635
|
+
ariaLabel?: string;
|
|
636
|
+
ariaDescribedBy?: string;
|
|
637
|
+
onSelect?: (index: string) => void;
|
|
638
|
+
onOpen?: (index: string) => void;
|
|
639
|
+
onClose?: (index: string) => void;
|
|
640
|
+
}
|
|
641
|
+
interface MenuSlots {
|
|
642
|
+
default?: () => VNode[];
|
|
643
|
+
}
|
|
644
|
+
type AlertEffect = 'light' | 'dark';
|
|
645
|
+
interface AlertSetupProps extends Record<string, unknown> {
|
|
646
|
+
title: string;
|
|
647
|
+
description: string;
|
|
648
|
+
type: AlertType;
|
|
649
|
+
closable: boolean;
|
|
650
|
+
showIcon: boolean;
|
|
651
|
+
effect: AlertEffect;
|
|
652
|
+
class: string;
|
|
653
|
+
id: string;
|
|
654
|
+
ariaLabel: string;
|
|
655
|
+
ariaDescribedBy: string;
|
|
656
|
+
onClose?: () => void;
|
|
657
|
+
}
|
|
658
|
+
interface AlertProps {
|
|
659
|
+
type?: AlertType;
|
|
660
|
+
title?: string;
|
|
661
|
+
description?: string;
|
|
662
|
+
closable?: boolean;
|
|
663
|
+
showIcon?: boolean;
|
|
664
|
+
effect?: AlertEffect;
|
|
665
|
+
class?: string;
|
|
666
|
+
style?: string | Record<string, string>;
|
|
667
|
+
id?: string;
|
|
668
|
+
ariaLabel?: string;
|
|
669
|
+
ariaDescribedBy?: string;
|
|
670
|
+
onClose?: () => void;
|
|
671
|
+
}
|
|
672
|
+
interface AlertSlots {
|
|
673
|
+
default?: () => VNode[];
|
|
674
|
+
title?: () => VNode[];
|
|
675
|
+
description?: () => VNode[];
|
|
676
|
+
}
|
|
677
|
+
interface TooltipProps {
|
|
678
|
+
content?: string;
|
|
679
|
+
placement?: 'top' | 'bottom' | 'left' | 'right';
|
|
680
|
+
disabled?: boolean;
|
|
681
|
+
class?: string;
|
|
682
|
+
style?: string | Record<string, string>;
|
|
683
|
+
id?: string;
|
|
684
|
+
ariaLabel?: string;
|
|
685
|
+
ariaDescribedBy?: string;
|
|
686
|
+
}
|
|
687
|
+
interface TooltipSlots {
|
|
688
|
+
default?: () => VNode[];
|
|
689
|
+
content?: () => VNode[];
|
|
690
|
+
}
|
|
691
|
+
interface CheckboxProps {
|
|
692
|
+
modelValue?: boolean | string | number;
|
|
693
|
+
label?: string;
|
|
694
|
+
disabled?: boolean;
|
|
695
|
+
indeterminate?: boolean;
|
|
696
|
+
name?: string;
|
|
697
|
+
id?: string;
|
|
698
|
+
checked?: boolean;
|
|
699
|
+
class?: string;
|
|
700
|
+
style?: string | Record<string, string>;
|
|
701
|
+
ariaLabel?: string;
|
|
702
|
+
ariaDescribedBy?: string;
|
|
703
|
+
ariaInvalid?: boolean;
|
|
704
|
+
ariaRequired?: boolean;
|
|
705
|
+
tabIndex?: number;
|
|
706
|
+
onChange?: (value: boolean) => void;
|
|
707
|
+
onKeydown?: (event: KeyboardEvent) => void;
|
|
708
|
+
}
|
|
709
|
+
interface CheckboxSlots {
|
|
710
|
+
default?: () => VNode[];
|
|
711
|
+
}
|
|
712
|
+
interface CheckboxSetupProps extends Record<string, unknown> {
|
|
713
|
+
modelValue: boolean | string | number;
|
|
714
|
+
label: string;
|
|
715
|
+
trueLabel?: string | number;
|
|
716
|
+
falseLabel?: string | number;
|
|
717
|
+
disabled: boolean;
|
|
718
|
+
checked: boolean;
|
|
719
|
+
indeterminate: boolean;
|
|
720
|
+
name: string;
|
|
721
|
+
id: string;
|
|
722
|
+
class: string;
|
|
723
|
+
style?: string | Record<string, string>;
|
|
724
|
+
ariaLabel: string;
|
|
725
|
+
ariaDescribedBy: string;
|
|
726
|
+
ariaInvalid: boolean;
|
|
727
|
+
ariaRequired: boolean;
|
|
728
|
+
tabIndex?: number;
|
|
729
|
+
onChange?: (value: boolean) => void;
|
|
730
|
+
onKeydown?: (event: KeyboardEvent) => void;
|
|
731
|
+
}
|
|
732
|
+
interface RadioProps {
|
|
733
|
+
modelValue?: string | number | boolean;
|
|
734
|
+
label?: string;
|
|
735
|
+
disabled?: boolean;
|
|
736
|
+
name?: string;
|
|
737
|
+
id?: string;
|
|
738
|
+
class?: string;
|
|
739
|
+
style?: string | Record<string, string>;
|
|
740
|
+
ariaLabel?: string;
|
|
741
|
+
ariaDescribedBy?: string;
|
|
742
|
+
ariaInvalid?: boolean;
|
|
743
|
+
ariaRequired?: boolean;
|
|
744
|
+
tabIndex?: number;
|
|
745
|
+
onChange?: (value: string | number | boolean) => void;
|
|
746
|
+
onKeydown?: (event: KeyboardEvent) => void;
|
|
747
|
+
}
|
|
748
|
+
interface RadioSlots {
|
|
749
|
+
default?: () => VNode[];
|
|
750
|
+
}
|
|
751
|
+
interface RadioSetupProps extends Record<string, unknown> {
|
|
752
|
+
modelValue: string | number | boolean;
|
|
753
|
+
label?: string | number | boolean;
|
|
754
|
+
disabled: boolean;
|
|
755
|
+
name: string;
|
|
756
|
+
id: string;
|
|
757
|
+
class: string;
|
|
758
|
+
style?: string | Record<string, string>;
|
|
759
|
+
ariaLabel: string;
|
|
760
|
+
ariaDescribedBy: string;
|
|
761
|
+
ariaInvalid: boolean;
|
|
762
|
+
ariaRequired: boolean;
|
|
763
|
+
tabIndex?: number;
|
|
764
|
+
onChange?: (value: string | number | boolean) => void;
|
|
765
|
+
onKeydown?: (event: KeyboardEvent) => void;
|
|
766
|
+
}
|
|
767
|
+
interface SwitchProps {
|
|
768
|
+
modelValue?: boolean;
|
|
769
|
+
disabled?: boolean;
|
|
770
|
+
activeText?: string;
|
|
771
|
+
inactiveText?: string;
|
|
772
|
+
activeColor?: string;
|
|
773
|
+
inactiveColor?: string;
|
|
774
|
+
class?: string;
|
|
775
|
+
style?: string | Record<string, string>;
|
|
776
|
+
id?: string;
|
|
777
|
+
ariaLabel?: string;
|
|
778
|
+
ariaDescribedBy?: string;
|
|
779
|
+
ariaInvalid?: boolean;
|
|
780
|
+
ariaRequired?: boolean;
|
|
781
|
+
tabIndex?: number;
|
|
782
|
+
onChange?: (value: boolean) => void;
|
|
783
|
+
onKeydown?: (event: KeyboardEvent) => void;
|
|
784
|
+
}
|
|
785
|
+
interface SwitchSlots {
|
|
786
|
+
default?: () => VNode[];
|
|
787
|
+
active?: () => VNode[];
|
|
788
|
+
inactive?: () => VNode[];
|
|
789
|
+
}
|
|
790
|
+
interface SwitchSetupProps extends Record<string, unknown> {
|
|
791
|
+
modelValue: boolean;
|
|
792
|
+
disabled: boolean;
|
|
793
|
+
loading: boolean;
|
|
794
|
+
size: string;
|
|
795
|
+
activeText: string;
|
|
796
|
+
inactiveText: string;
|
|
797
|
+
activeColor: string;
|
|
798
|
+
inactiveColor: string;
|
|
799
|
+
activeValue: boolean | string | number;
|
|
800
|
+
inactiveValue: boolean | string | number;
|
|
801
|
+
name: string;
|
|
802
|
+
id: string;
|
|
803
|
+
class: string;
|
|
804
|
+
style?: string | Record<string, string>;
|
|
805
|
+
ariaLabel: string;
|
|
806
|
+
ariaDescribedBy: string;
|
|
807
|
+
ariaInvalid: boolean;
|
|
808
|
+
ariaRequired: boolean;
|
|
809
|
+
tabIndex?: number;
|
|
810
|
+
onChange?: (value: boolean) => void;
|
|
811
|
+
onKeydown?: (event: KeyboardEvent) => void;
|
|
812
|
+
}
|
|
813
|
+
interface InputNumberProps {
|
|
814
|
+
modelValue?: number;
|
|
815
|
+
min?: number;
|
|
816
|
+
max?: number;
|
|
817
|
+
step?: number;
|
|
818
|
+
stepStrictly?: boolean;
|
|
819
|
+
disabled?: boolean;
|
|
820
|
+
size?: ComponentSize;
|
|
821
|
+
controls?: boolean;
|
|
822
|
+
controlsPosition?: string;
|
|
823
|
+
precision?: number;
|
|
824
|
+
name?: string;
|
|
825
|
+
label?: string;
|
|
826
|
+
placeholder?: string;
|
|
827
|
+
class?: string;
|
|
828
|
+
style?: string | Record<string, string>;
|
|
829
|
+
id?: string;
|
|
830
|
+
ariaLabel?: string;
|
|
831
|
+
ariaDescribedBy?: string;
|
|
832
|
+
ariaRequired?: boolean;
|
|
833
|
+
ariaInvalid?: boolean;
|
|
834
|
+
tabIndex?: number;
|
|
835
|
+
onChange?: (value: number | undefined) => void;
|
|
836
|
+
onInput?: (value: number | undefined) => void;
|
|
837
|
+
onKeydown?: (event: KeyboardEvent) => void;
|
|
838
|
+
}
|
|
839
|
+
interface InputNumberSlots {
|
|
840
|
+
default?: () => VNode[];
|
|
841
|
+
}
|
|
842
|
+
interface InputNumberSetupProps extends Record<string, unknown> {
|
|
843
|
+
modelValue: number | undefined;
|
|
844
|
+
min: number;
|
|
845
|
+
max: number;
|
|
846
|
+
step: number;
|
|
847
|
+
stepStrictly: boolean;
|
|
848
|
+
precision: number | undefined;
|
|
849
|
+
size: string;
|
|
850
|
+
disabled: boolean;
|
|
851
|
+
controls: boolean;
|
|
852
|
+
controlsPosition: string;
|
|
853
|
+
name: string;
|
|
854
|
+
label: string;
|
|
855
|
+
placeholder: string;
|
|
856
|
+
class: string;
|
|
857
|
+
style?: string | Record<string, string>;
|
|
858
|
+
id: string;
|
|
859
|
+
ariaLabel: string;
|
|
860
|
+
ariaDescribedBy: string;
|
|
861
|
+
ariaRequired: boolean;
|
|
862
|
+
ariaInvalid: boolean;
|
|
863
|
+
tabIndex?: number;
|
|
864
|
+
onChange?: (value: number | undefined) => void;
|
|
865
|
+
onInput?: (value: number | undefined) => void;
|
|
866
|
+
onKeydown?: (event: KeyboardEvent) => void;
|
|
867
|
+
}
|
|
868
|
+
interface TransferOption {
|
|
869
|
+
key: string | number;
|
|
870
|
+
label: string;
|
|
871
|
+
disabled?: boolean;
|
|
872
|
+
}
|
|
873
|
+
interface TransferProps {
|
|
874
|
+
data?: TransferOption[];
|
|
875
|
+
modelValue?: (string | number)[];
|
|
876
|
+
filterable?: boolean;
|
|
877
|
+
filterPlaceholder?: string;
|
|
878
|
+
titles?: string[];
|
|
879
|
+
buttonTexts?: string[];
|
|
880
|
+
leftDefaultChecked?: (string | number)[];
|
|
881
|
+
rightDefaultChecked?: (string | number)[];
|
|
882
|
+
class?: string;
|
|
883
|
+
style?: string | Record<string, string>;
|
|
884
|
+
id?: string;
|
|
885
|
+
ariaLabel?: string;
|
|
886
|
+
ariaDescribedBy?: string;
|
|
887
|
+
onChange?: (value: (string | number)[], direction: 'left' | 'right', movedKeys: (string | number)[]) => void;
|
|
888
|
+
onLeftCheckChange?: (checked: (string | number)[]) => void;
|
|
889
|
+
onRightCheckChange?: (checked: (string | number)[]) => void;
|
|
890
|
+
}
|
|
891
|
+
interface TransferSetupProps extends Record<string, unknown> {
|
|
892
|
+
data: TransferOption[];
|
|
893
|
+
modelValue: (string | number)[];
|
|
894
|
+
filterable: boolean;
|
|
895
|
+
filterPlaceholder: string;
|
|
896
|
+
titles: string[];
|
|
897
|
+
buttonTexts: string[];
|
|
898
|
+
leftDefaultChecked: (string | number)[];
|
|
899
|
+
rightDefaultChecked: (string | number)[];
|
|
900
|
+
class: string;
|
|
901
|
+
id: string;
|
|
902
|
+
ariaLabel: string;
|
|
903
|
+
ariaDescribedBy: string;
|
|
904
|
+
style?: string | Record<string, string>;
|
|
905
|
+
onChange?: (value: (string | number)[], direction: 'left' | 'right', movedKeys: (string | number)[]) => void;
|
|
906
|
+
onLeftCheckChange?: (checked: (string | number)[]) => void;
|
|
907
|
+
onRightCheckChange?: (checked: (string | number)[]) => void;
|
|
908
|
+
}
|
|
909
|
+
interface TransferSlots {
|
|
910
|
+
default?: (option: TransferOption) => VNode[];
|
|
911
|
+
footer?: () => VNode[];
|
|
912
|
+
}
|
|
913
|
+
interface TreeNode {
|
|
914
|
+
id: string | number;
|
|
915
|
+
label: string;
|
|
916
|
+
children?: TreeNode[];
|
|
917
|
+
disabled?: boolean;
|
|
918
|
+
isLeaf?: boolean;
|
|
919
|
+
loading?: boolean;
|
|
920
|
+
expanded?: boolean;
|
|
921
|
+
checked?: boolean;
|
|
922
|
+
indeterminate?: boolean;
|
|
923
|
+
}
|
|
924
|
+
interface TreeProps {
|
|
925
|
+
data?: TreeNode[];
|
|
926
|
+
showLine?: boolean;
|
|
927
|
+
showCheckbox?: boolean;
|
|
928
|
+
checkable?: boolean;
|
|
929
|
+
draggable?: boolean;
|
|
930
|
+
defaultExpandAll?: boolean;
|
|
931
|
+
defaultExpandedKeys?: (string | number)[];
|
|
932
|
+
defaultCheckedKeys?: (string | number)[];
|
|
933
|
+
nodeKey?: string;
|
|
934
|
+
class?: string;
|
|
935
|
+
style?: string | Record<string, string>;
|
|
936
|
+
id?: string;
|
|
937
|
+
ariaLabel?: string;
|
|
938
|
+
ariaDescribedBy?: string;
|
|
939
|
+
onCheck?: (data: TreeNode[], checked: boolean) => void;
|
|
940
|
+
onSelect?: (data: TreeNode) => void;
|
|
941
|
+
onExpand?: (data: TreeNode, expanded: boolean) => void;
|
|
942
|
+
onNodeClick?: (data: TreeNode) => void;
|
|
943
|
+
onDragStart?: (data: TreeNode, event: DragEvent) => void;
|
|
944
|
+
onDragEnd?: (data: TreeNode, event: DragEvent) => void;
|
|
945
|
+
onDrop?: (data: TreeNode, target: TreeNode, position: 'before' | 'after' | 'inner', event: DragEvent) => void;
|
|
946
|
+
}
|
|
947
|
+
interface TreeSetupProps extends Record<string, unknown> {
|
|
948
|
+
data: TreeNode[];
|
|
949
|
+
showLine: boolean;
|
|
950
|
+
showCheckbox: boolean;
|
|
951
|
+
checkable: boolean;
|
|
952
|
+
draggable: boolean;
|
|
953
|
+
defaultExpandAll: boolean;
|
|
954
|
+
defaultExpandedKeys: (string | number)[];
|
|
955
|
+
defaultCheckedKeys: (string | number)[];
|
|
956
|
+
nodeKey: string;
|
|
957
|
+
class: string;
|
|
958
|
+
style?: string | Record<string, string>;
|
|
959
|
+
id: string;
|
|
960
|
+
ariaLabel: string;
|
|
961
|
+
ariaDescribedBy: string;
|
|
962
|
+
onCheck?: (data: TreeNode[], checked: boolean) => void;
|
|
963
|
+
onSelect?: (data: TreeNode) => void;
|
|
964
|
+
onExpand?: (data: TreeNode, expanded: boolean) => void;
|
|
965
|
+
onNodeClick?: (data: TreeNode) => void;
|
|
966
|
+
onDragStart?: (data: TreeNode, event: DragEvent) => void;
|
|
967
|
+
onDragEnd?: (data: TreeNode, event: DragEvent) => void;
|
|
968
|
+
onDrop?: (data: TreeNode, target: TreeNode, position: 'before' | 'after' | 'inner', event: DragEvent) => void;
|
|
969
|
+
}
|
|
970
|
+
interface TreeSlots {
|
|
971
|
+
default?: (data: TreeNode) => VNode[];
|
|
972
|
+
empty?: () => VNode[];
|
|
973
|
+
}
|
|
974
|
+
interface TreeSelectNode {
|
|
975
|
+
value: string | number;
|
|
976
|
+
label: string;
|
|
977
|
+
children?: TreeSelectNode[];
|
|
978
|
+
disabled?: boolean;
|
|
979
|
+
isLeaf?: boolean;
|
|
980
|
+
}
|
|
981
|
+
interface TreeSelectProps {
|
|
982
|
+
modelValue?: string | number | (string | number)[];
|
|
983
|
+
options?: TreeSelectNode[];
|
|
984
|
+
placeholder?: string;
|
|
985
|
+
disabled?: boolean;
|
|
986
|
+
clearable?: boolean;
|
|
987
|
+
multiple?: boolean;
|
|
988
|
+
checkStrictly?: boolean;
|
|
989
|
+
filterable?: boolean;
|
|
990
|
+
showCheckbox?: boolean;
|
|
991
|
+
class?: string;
|
|
992
|
+
id?: string;
|
|
993
|
+
ariaLabel?: string;
|
|
994
|
+
ariaDescribedBy?: string;
|
|
995
|
+
onChange?: (value: string | number | (string | number)[]) => void;
|
|
996
|
+
onClear?: () => void;
|
|
997
|
+
}
|
|
998
|
+
interface TreeSelectSetupProps extends Record<string, unknown> {
|
|
999
|
+
modelValue: string | number | (string | number)[];
|
|
1000
|
+
options: TreeSelectNode[];
|
|
1001
|
+
placeholder: string;
|
|
1002
|
+
disabled: boolean;
|
|
1003
|
+
clearable: boolean;
|
|
1004
|
+
multiple: boolean;
|
|
1005
|
+
checkStrictly: boolean;
|
|
1006
|
+
filterable: boolean;
|
|
1007
|
+
showCheckbox: boolean;
|
|
1008
|
+
class: string;
|
|
1009
|
+
id: string;
|
|
1010
|
+
ariaLabel: string;
|
|
1011
|
+
ariaDescribedBy: string;
|
|
1012
|
+
onChange?: (value: string | number | (string | number)[]) => void;
|
|
1013
|
+
onClear?: () => void;
|
|
1014
|
+
}
|
|
1015
|
+
interface TreeSelectSlots {
|
|
1016
|
+
default?: (node: TreeSelectNode) => VNode[];
|
|
1017
|
+
}
|
|
1018
|
+
type UploadFileStatus = 'pending' | 'uploading' | 'success' | 'error';
|
|
1019
|
+
interface UploadFile {
|
|
1020
|
+
name: string;
|
|
1021
|
+
size: number;
|
|
1022
|
+
status: UploadFileStatus;
|
|
1023
|
+
percentage?: number;
|
|
1024
|
+
url?: string;
|
|
1025
|
+
uid: number;
|
|
1026
|
+
raw?: File;
|
|
1027
|
+
}
|
|
1028
|
+
interface UploadProps {
|
|
1029
|
+
action?: string;
|
|
1030
|
+
headers?: Record<string, string>;
|
|
1031
|
+
data?: Record<string, unknown>;
|
|
1032
|
+
multiple?: boolean;
|
|
1033
|
+
accept?: string;
|
|
1034
|
+
autoUpload?: boolean;
|
|
1035
|
+
disabled?: boolean;
|
|
1036
|
+
limit?: number;
|
|
1037
|
+
class?: string;
|
|
1038
|
+
style?: string | Record<string, string>;
|
|
1039
|
+
id?: string;
|
|
1040
|
+
ariaLabel?: string;
|
|
1041
|
+
ariaDescribedBy?: string;
|
|
1042
|
+
onChange?: (files: UploadFile[]) => void;
|
|
1043
|
+
onSuccess?: (response: unknown, file: UploadFile) => void;
|
|
1044
|
+
onError?: (error: Error, file: UploadFile) => void;
|
|
1045
|
+
onProgress?: (percentage: number, file: UploadFile) => void;
|
|
1046
|
+
onRemove?: (file: UploadFile) => void;
|
|
1047
|
+
beforeUpload?: (file: File) => boolean | Promise<boolean>;
|
|
1048
|
+
}
|
|
1049
|
+
interface UploadSetupProps extends Record<string, unknown> {
|
|
1050
|
+
action: string;
|
|
1051
|
+
headers: Record<string, string>;
|
|
1052
|
+
data: Record<string, unknown>;
|
|
1053
|
+
multiple: boolean;
|
|
1054
|
+
accept: string;
|
|
1055
|
+
autoUpload: boolean;
|
|
1056
|
+
disabled: boolean;
|
|
1057
|
+
limit: number;
|
|
1058
|
+
class: string;
|
|
1059
|
+
id: string;
|
|
1060
|
+
ariaLabel: string;
|
|
1061
|
+
ariaDescribedBy: string;
|
|
1062
|
+
style?: string | Record<string, string>;
|
|
1063
|
+
onChange?: (files: UploadFile[]) => void;
|
|
1064
|
+
onSuccess?: (response: unknown, file: UploadFile) => void;
|
|
1065
|
+
onError?: (error: Error, file: UploadFile) => void;
|
|
1066
|
+
onProgress?: (percentage: number, file: UploadFile) => void;
|
|
1067
|
+
onRemove?: (file: UploadFile) => void;
|
|
1068
|
+
beforeUpload?: (file: File) => boolean | void | Promise<boolean | void>;
|
|
1069
|
+
}
|
|
1070
|
+
interface UploadSlots {
|
|
1071
|
+
default?: () => VNode[];
|
|
1072
|
+
trigger?: () => VNode[];
|
|
1073
|
+
tip?: () => VNode[];
|
|
1074
|
+
file?: (file: UploadFile) => VNode[];
|
|
1075
|
+
}
|
|
1076
|
+
type ImageFit = 'fill' | 'contain' | 'cover' | 'none' | 'scale-down';
|
|
1077
|
+
interface ImageProps {
|
|
1078
|
+
src?: string;
|
|
1079
|
+
alt?: string;
|
|
1080
|
+
fit?: ImageFit;
|
|
1081
|
+
width?: string | number;
|
|
1082
|
+
height?: string | number;
|
|
1083
|
+
lazy?: boolean;
|
|
1084
|
+
preview?: boolean;
|
|
1085
|
+
errorSrc?: string;
|
|
1086
|
+
placeholderSrc?: string;
|
|
1087
|
+
round?: boolean;
|
|
1088
|
+
radius?: string | number;
|
|
1089
|
+
class?: string;
|
|
1090
|
+
style?: string | Record<string, string>;
|
|
1091
|
+
id?: string;
|
|
1092
|
+
ariaLabel?: string;
|
|
1093
|
+
ariaDescribedBy?: string;
|
|
1094
|
+
onLoad?: () => void;
|
|
1095
|
+
onError?: () => void;
|
|
1096
|
+
}
|
|
1097
|
+
interface ImageSlots {
|
|
1098
|
+
default?: () => VNode[];
|
|
1099
|
+
}
|
|
1100
|
+
type NotificationType = 'success' | 'warning' | 'error' | 'info';
|
|
1101
|
+
type NotificationPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
1102
|
+
interface NotificationOptions {
|
|
1103
|
+
type?: NotificationType;
|
|
1104
|
+
title: string;
|
|
1105
|
+
message?: string;
|
|
1106
|
+
duration?: number;
|
|
1107
|
+
position?: NotificationPosition;
|
|
1108
|
+
showClose?: boolean;
|
|
1109
|
+
id?: string;
|
|
1110
|
+
ariaLabel?: string;
|
|
1111
|
+
ariaDescribedBy?: string;
|
|
1112
|
+
onClose?: () => void;
|
|
1113
|
+
onOpen?: () => void;
|
|
1114
|
+
}
|
|
1115
|
+
interface NotificationProps {
|
|
1116
|
+
position?: NotificationPosition;
|
|
1117
|
+
class?: string;
|
|
1118
|
+
id?: string;
|
|
1119
|
+
ariaLabel?: string;
|
|
1120
|
+
ariaDescribedBy?: string;
|
|
1121
|
+
}
|
|
1122
|
+
interface NotificationSlots {
|
|
1123
|
+
default?: () => VNode[];
|
|
1124
|
+
}
|
|
1125
|
+
type CalendarView = 'month' | 'week' | 'day';
|
|
1126
|
+
interface CalendarEvent {
|
|
1127
|
+
title: string;
|
|
1128
|
+
start: Date;
|
|
1129
|
+
end?: Date;
|
|
1130
|
+
color?: string;
|
|
1131
|
+
data?: unknown;
|
|
1132
|
+
}
|
|
1133
|
+
interface CalendarProps {
|
|
1134
|
+
modelValue?: string | Date;
|
|
1135
|
+
view?: CalendarView;
|
|
1136
|
+
events?: CalendarEvent[];
|
|
1137
|
+
disabledDates?: (date: Date) => boolean;
|
|
1138
|
+
firstDayOfWeek?: number;
|
|
1139
|
+
weekNames?: string[];
|
|
1140
|
+
monthNames?: string[];
|
|
1141
|
+
class?: string;
|
|
1142
|
+
style?: string | Record<string, string>;
|
|
1143
|
+
id?: string;
|
|
1144
|
+
ariaLabel?: string;
|
|
1145
|
+
ariaDescribedBy?: string;
|
|
1146
|
+
onChange?: (date: Date) => void;
|
|
1147
|
+
onEventClick?: (event: CalendarEvent) => void;
|
|
1148
|
+
onDateClick?: (date: Date) => void;
|
|
1149
|
+
}
|
|
1150
|
+
interface CalendarSlots {
|
|
1151
|
+
default?: () => VNode[];
|
|
1152
|
+
}
|
|
1153
|
+
interface ColorPickerProps {
|
|
1154
|
+
modelValue?: string;
|
|
1155
|
+
showAlpha?: boolean;
|
|
1156
|
+
showClear?: boolean;
|
|
1157
|
+
showPreset?: boolean;
|
|
1158
|
+
showHistory?: boolean;
|
|
1159
|
+
presets?: string[];
|
|
1160
|
+
history?: string[];
|
|
1161
|
+
class?: string;
|
|
1162
|
+
style?: string | Record<string, string>;
|
|
1163
|
+
id?: string;
|
|
1164
|
+
ariaLabel?: string;
|
|
1165
|
+
ariaDescribedBy?: string;
|
|
1166
|
+
onChange?: (color: string) => void;
|
|
1167
|
+
onClear?: () => void;
|
|
1168
|
+
}
|
|
1169
|
+
interface ColorPickerSlots {
|
|
1170
|
+
default?: () => VNode[];
|
|
1171
|
+
}
|
|
1172
|
+
interface DescriptionsItemData {
|
|
1173
|
+
label: string;
|
|
1174
|
+
value: string;
|
|
1175
|
+
span?: number;
|
|
1176
|
+
labelStyle?: Record<string, string>;
|
|
1177
|
+
contentStyle?: Record<string, string>;
|
|
1178
|
+
}
|
|
1179
|
+
interface DescriptionsProps {
|
|
1180
|
+
title?: string;
|
|
1181
|
+
column?: number;
|
|
1182
|
+
border?: boolean;
|
|
1183
|
+
size?: ComponentSize;
|
|
1184
|
+
layout?: 'horizontal' | 'vertical';
|
|
1185
|
+
class?: string;
|
|
1186
|
+
style?: string | Record<string, string>;
|
|
1187
|
+
id?: string;
|
|
1188
|
+
ariaLabel?: string;
|
|
1189
|
+
ariaDescribedBy?: string;
|
|
1190
|
+
}
|
|
1191
|
+
interface DescriptionsSlots {
|
|
1192
|
+
default?: () => VNode[];
|
|
1193
|
+
title?: () => VNode[];
|
|
1194
|
+
}
|
|
1195
|
+
interface DescriptionsItemProps {
|
|
1196
|
+
label?: string;
|
|
1197
|
+
span?: number;
|
|
1198
|
+
labelStyle?: Record<string, string>;
|
|
1199
|
+
contentStyle?: Record<string, string>;
|
|
1200
|
+
id?: string;
|
|
1201
|
+
ariaLabel?: string;
|
|
1202
|
+
ariaDescribedBy?: string;
|
|
1203
|
+
}
|
|
1204
|
+
interface DescriptionsItemSlots {
|
|
1205
|
+
default?: () => VNode[];
|
|
1206
|
+
label?: () => VNode[];
|
|
1207
|
+
}
|
|
1208
|
+
type DrawerDirection = 'ltr' | 'rtl' | 'ttb' | 'btt';
|
|
1209
|
+
interface DrawerProps {
|
|
1210
|
+
modelValue?: boolean;
|
|
1211
|
+
title?: string;
|
|
1212
|
+
size?: string | number;
|
|
1213
|
+
direction?: DrawerDirection;
|
|
1214
|
+
showClose?: boolean;
|
|
1215
|
+
closeOnClickModal?: boolean;
|
|
1216
|
+
closeOnPressEscape?: boolean;
|
|
1217
|
+
lockScroll?: boolean;
|
|
1218
|
+
appendToBody?: boolean;
|
|
1219
|
+
withHeader?: boolean;
|
|
1220
|
+
customClass?: string;
|
|
1221
|
+
class?: string;
|
|
1222
|
+
id?: string;
|
|
1223
|
+
ariaLabel?: string;
|
|
1224
|
+
ariaDescribedBy?: string;
|
|
1225
|
+
ariaModal?: boolean;
|
|
1226
|
+
onBeforeOpen?: () => boolean | void | Promise<boolean | void>;
|
|
1227
|
+
onBeforeClose?: () => boolean | void | Promise<boolean | void>;
|
|
1228
|
+
onOpen?: () => void;
|
|
1229
|
+
onClose?: () => void;
|
|
1230
|
+
}
|
|
1231
|
+
interface DrawerSlots {
|
|
1232
|
+
default?: () => VNode[];
|
|
1233
|
+
header?: () => VNode[];
|
|
1234
|
+
footer?: () => VNode[];
|
|
1235
|
+
}
|
|
1236
|
+
interface RateProps {
|
|
1237
|
+
modelValue?: number;
|
|
1238
|
+
max?: number;
|
|
1239
|
+
allowHalf?: boolean;
|
|
1240
|
+
readonly?: boolean;
|
|
1241
|
+
disabled?: boolean;
|
|
1242
|
+
showText?: boolean;
|
|
1243
|
+
showScore?: boolean;
|
|
1244
|
+
texts?: string[];
|
|
1245
|
+
voidIcon?: string;
|
|
1246
|
+
voidColor?: string;
|
|
1247
|
+
disabledVoidColor?: string;
|
|
1248
|
+
class?: string;
|
|
1249
|
+
style?: string | Record<string, string>;
|
|
1250
|
+
id?: string;
|
|
1251
|
+
ariaLabel?: string;
|
|
1252
|
+
ariaDescribedBy?: string;
|
|
1253
|
+
onChange?: (value: number) => void;
|
|
1254
|
+
}
|
|
1255
|
+
interface RateSlots {
|
|
1256
|
+
default?: () => VNode[];
|
|
1257
|
+
}
|
|
1258
|
+
interface CheckboxGroupProps {
|
|
1259
|
+
modelValue?: (string | number | boolean)[];
|
|
1260
|
+
disabled?: boolean;
|
|
1261
|
+
min?: number;
|
|
1262
|
+
max?: number;
|
|
1263
|
+
size?: ComponentSize;
|
|
1264
|
+
class?: string;
|
|
1265
|
+
style?: string | Record<string, string>;
|
|
1266
|
+
id?: string;
|
|
1267
|
+
ariaLabel?: string;
|
|
1268
|
+
ariaDescribedBy?: string;
|
|
1269
|
+
ariaRequired?: boolean;
|
|
1270
|
+
onChange?: (value: (string | number | boolean)[]) => void;
|
|
1271
|
+
}
|
|
1272
|
+
interface CheckboxGroupSlots {
|
|
1273
|
+
default?: () => VNode[];
|
|
1274
|
+
}
|
|
1275
|
+
interface CheckboxGroupSetupProps extends Record<string, unknown> {
|
|
1276
|
+
modelValue: (string | number | boolean)[];
|
|
1277
|
+
disabled: boolean;
|
|
1278
|
+
min: number;
|
|
1279
|
+
max: number;
|
|
1280
|
+
size: ComponentSize;
|
|
1281
|
+
class: string;
|
|
1282
|
+
style?: string | Record<string, string>;
|
|
1283
|
+
id: string;
|
|
1284
|
+
ariaLabel: string;
|
|
1285
|
+
ariaDescribedBy: string;
|
|
1286
|
+
ariaRequired: boolean;
|
|
1287
|
+
onChange?: (value: (string | number | boolean)[]) => void;
|
|
1288
|
+
}
|
|
1289
|
+
interface RadioGroupProps {
|
|
1290
|
+
modelValue?: string | number | boolean;
|
|
1291
|
+
disabled?: boolean;
|
|
1292
|
+
size?: ComponentSize;
|
|
1293
|
+
class?: string;
|
|
1294
|
+
style?: string | Record<string, string>;
|
|
1295
|
+
id?: string;
|
|
1296
|
+
ariaLabel?: string;
|
|
1297
|
+
ariaDescribedBy?: string;
|
|
1298
|
+
ariaRequired?: boolean;
|
|
1299
|
+
onChange?: (value: string | number | boolean) => void;
|
|
1300
|
+
}
|
|
1301
|
+
interface RadioGroupSlots {
|
|
1302
|
+
default?: () => VNode[];
|
|
1303
|
+
}
|
|
1304
|
+
interface RadioGroupSetupProps extends Record<string, unknown> {
|
|
1305
|
+
modelValue: string | number | boolean;
|
|
1306
|
+
disabled: boolean;
|
|
1307
|
+
size: ComponentSize;
|
|
1308
|
+
class: string;
|
|
1309
|
+
style?: string | Record<string, string>;
|
|
1310
|
+
id: string;
|
|
1311
|
+
ariaLabel: string;
|
|
1312
|
+
ariaDescribedBy: string;
|
|
1313
|
+
ariaRequired: boolean;
|
|
1314
|
+
onChange?: (value: string | number | boolean) => void;
|
|
1315
|
+
}
|
|
1316
|
+
interface ProgressProps {
|
|
1317
|
+
percentage?: number;
|
|
1318
|
+
type?: 'line' | 'circle' | 'dashboard';
|
|
1319
|
+
status?: 'success' | 'exception' | 'warning';
|
|
1320
|
+
strokeWidth?: number;
|
|
1321
|
+
textInside?: boolean;
|
|
1322
|
+
showText?: boolean;
|
|
1323
|
+
color?: string | string[] | Record<string, string>;
|
|
1324
|
+
width?: number;
|
|
1325
|
+
strokeLinecap?: 'butt' | 'round' | 'square';
|
|
1326
|
+
format?: (percentage: number) => string;
|
|
1327
|
+
class?: string;
|
|
1328
|
+
style?: string | Record<string, string>;
|
|
1329
|
+
id?: string;
|
|
1330
|
+
ariaLabel?: string;
|
|
1331
|
+
ariaDescribedBy?: string;
|
|
1332
|
+
}
|
|
1333
|
+
interface ProgressSlots {
|
|
1334
|
+
default?: () => VNode[];
|
|
1335
|
+
}
|
|
1336
|
+
interface ProgressSetupProps extends Record<string, unknown> {
|
|
1337
|
+
percentage: number;
|
|
1338
|
+
type: 'line' | 'circle' | 'dashboard';
|
|
1339
|
+
status: 'success' | 'exception' | 'warning' | '';
|
|
1340
|
+
strokeWidth: number;
|
|
1341
|
+
textInside: boolean;
|
|
1342
|
+
showText: boolean;
|
|
1343
|
+
color: string | string[] | Record<string, string>;
|
|
1344
|
+
width: number;
|
|
1345
|
+
strokeLinecap: 'butt' | 'round' | 'square';
|
|
1346
|
+
format?: (percentage: number) => string;
|
|
1347
|
+
class: string;
|
|
1348
|
+
id: string;
|
|
1349
|
+
ariaLabel: string;
|
|
1350
|
+
ariaDescribedBy: string;
|
|
1351
|
+
style?: string | Record<string, string>;
|
|
1352
|
+
}
|
|
1353
|
+
interface SliderProps {
|
|
1354
|
+
modelValue?: number | number[];
|
|
1355
|
+
min?: number;
|
|
1356
|
+
max?: number;
|
|
1357
|
+
step?: number;
|
|
1358
|
+
showInput?: boolean;
|
|
1359
|
+
showInputControls?: boolean;
|
|
1360
|
+
inputSize?: ComponentSize;
|
|
1361
|
+
showStops?: boolean;
|
|
1362
|
+
showTooltip?: boolean;
|
|
1363
|
+
formatTooltip?: (value: number) => string;
|
|
1364
|
+
disabled?: boolean;
|
|
1365
|
+
range?: boolean;
|
|
1366
|
+
vertical?: boolean;
|
|
1367
|
+
height?: string;
|
|
1368
|
+
label?: string;
|
|
1369
|
+
class?: string;
|
|
1370
|
+
style?: string | Record<string, string>;
|
|
1371
|
+
id?: string;
|
|
1372
|
+
ariaLabel?: string;
|
|
1373
|
+
ariaDescribedBy?: string;
|
|
1374
|
+
ariaRequired?: boolean;
|
|
1375
|
+
ariaInvalid?: boolean;
|
|
1376
|
+
tabIndex?: number;
|
|
1377
|
+
onChange?: (value: number | number[]) => void;
|
|
1378
|
+
onInput?: (value: number | number[]) => void;
|
|
1379
|
+
onKeydown?: (event: KeyboardEvent) => void;
|
|
1380
|
+
}
|
|
1381
|
+
interface SliderSlots {
|
|
1382
|
+
default?: () => VNode[];
|
|
1383
|
+
}
|
|
1384
|
+
interface SliderSetupProps extends Record<string, unknown> {
|
|
1385
|
+
modelValue: number | number[];
|
|
1386
|
+
min: number;
|
|
1387
|
+
max: number;
|
|
1388
|
+
step: number;
|
|
1389
|
+
showInput: boolean;
|
|
1390
|
+
showInputControls: boolean;
|
|
1391
|
+
inputSize: ComponentSize;
|
|
1392
|
+
showStops: boolean;
|
|
1393
|
+
showTooltip: boolean;
|
|
1394
|
+
formatTooltip?: (value: number) => string;
|
|
1395
|
+
disabled: boolean;
|
|
1396
|
+
range: boolean;
|
|
1397
|
+
vertical: boolean;
|
|
1398
|
+
height: string;
|
|
1399
|
+
label: string;
|
|
1400
|
+
class: string;
|
|
1401
|
+
style?: string | Record<string, string>;
|
|
1402
|
+
id: string;
|
|
1403
|
+
ariaLabel: string;
|
|
1404
|
+
ariaDescribedBy: string;
|
|
1405
|
+
ariaRequired: boolean;
|
|
1406
|
+
ariaInvalid: boolean;
|
|
1407
|
+
tabIndex?: number;
|
|
1408
|
+
onChange?: (value: number | number[]) => void;
|
|
1409
|
+
onInput?: (value: number | number[]) => void;
|
|
1410
|
+
onKeydown?: (event: KeyboardEvent) => void;
|
|
1411
|
+
}
|
|
1412
|
+
interface AvatarProps {
|
|
1413
|
+
size?: number | ComponentSize;
|
|
1414
|
+
shape?: 'circle' | 'square';
|
|
1415
|
+
icon?: string;
|
|
1416
|
+
src?: string;
|
|
1417
|
+
srcSet?: string;
|
|
1418
|
+
alt?: string;
|
|
1419
|
+
fit?: 'fill' | 'contain' | 'cover' | 'none' | 'scale-down';
|
|
1420
|
+
class?: string;
|
|
1421
|
+
style?: string | Record<string, string>;
|
|
1422
|
+
id?: string;
|
|
1423
|
+
ariaLabel?: string;
|
|
1424
|
+
ariaDescribedBy?: string;
|
|
1425
|
+
onError?: () => boolean;
|
|
1426
|
+
}
|
|
1427
|
+
interface AvatarSlots {
|
|
1428
|
+
default?: () => VNode[];
|
|
1429
|
+
}
|
|
1430
|
+
interface AvatarSetupProps extends Record<string, unknown> {
|
|
1431
|
+
size: number | ComponentSize;
|
|
1432
|
+
shape: 'circle' | 'square';
|
|
1433
|
+
icon: string;
|
|
1434
|
+
src: string;
|
|
1435
|
+
srcSet: string;
|
|
1436
|
+
alt: string;
|
|
1437
|
+
fit: 'fill' | 'contain' | 'cover' | 'none' | 'scale-down';
|
|
1438
|
+
class: string;
|
|
1439
|
+
id: string;
|
|
1440
|
+
ariaLabel: string;
|
|
1441
|
+
ariaDescribedBy: string;
|
|
1442
|
+
style?: string | Record<string, string>;
|
|
1443
|
+
onError?: () => boolean;
|
|
1444
|
+
}
|
|
1445
|
+
interface CardProps {
|
|
1446
|
+
header?: string;
|
|
1447
|
+
bodyStyle?: Record<string, string>;
|
|
1448
|
+
shadow?: 'always' | 'hover' | 'never';
|
|
1449
|
+
class?: string;
|
|
1450
|
+
style?: string | Record<string, string>;
|
|
1451
|
+
id?: string;
|
|
1452
|
+
ariaLabel?: string;
|
|
1453
|
+
ariaDescribedBy?: string;
|
|
1454
|
+
}
|
|
1455
|
+
interface CardSlots {
|
|
1456
|
+
default?: () => VNode[];
|
|
1457
|
+
header?: () => VNode[];
|
|
1458
|
+
}
|
|
1459
|
+
interface CardSetupProps extends Record<string, unknown> {
|
|
1460
|
+
header: string;
|
|
1461
|
+
bodyStyle: Record<string, string>;
|
|
1462
|
+
shadow: 'always' | 'hover' | 'never';
|
|
1463
|
+
class: string;
|
|
1464
|
+
id: string;
|
|
1465
|
+
ariaLabel: string;
|
|
1466
|
+
ariaDescribedBy: string;
|
|
1467
|
+
style?: string | Record<string, string>;
|
|
1468
|
+
}
|
|
1469
|
+
interface TimelineProps {
|
|
1470
|
+
reverse?: boolean;
|
|
1471
|
+
mode?: 'left' | 'right' | 'alternate';
|
|
1472
|
+
class?: string;
|
|
1473
|
+
style?: string | Record<string, string>;
|
|
1474
|
+
id?: string;
|
|
1475
|
+
ariaLabel?: string;
|
|
1476
|
+
ariaDescribedBy?: string;
|
|
1477
|
+
}
|
|
1478
|
+
interface TimelineSlots {
|
|
1479
|
+
default?: () => VNode[];
|
|
1480
|
+
}
|
|
1481
|
+
interface TimelineSetupProps extends Record<string, unknown> {
|
|
1482
|
+
reverse: boolean;
|
|
1483
|
+
mode: 'left' | 'right' | 'alternate';
|
|
1484
|
+
class: string;
|
|
1485
|
+
id: string;
|
|
1486
|
+
ariaLabel: string;
|
|
1487
|
+
ariaDescribedBy: string;
|
|
1488
|
+
style?: string | Record<string, string>;
|
|
1489
|
+
}
|
|
1490
|
+
interface TimelineItemProps {
|
|
1491
|
+
color?: string;
|
|
1492
|
+
type?: 'primary' | 'success' | 'warning' | 'danger' | 'info';
|
|
1493
|
+
size?: 'large' | 'default' | 'small';
|
|
1494
|
+
dot?: VNode | string;
|
|
1495
|
+
timestamp?: string;
|
|
1496
|
+
placement?: 'top' | 'bottom';
|
|
1497
|
+
hideTimestamp?: boolean;
|
|
1498
|
+
class?: string;
|
|
1499
|
+
style?: string | Record<string, string>;
|
|
1500
|
+
id?: string;
|
|
1501
|
+
ariaLabel?: string;
|
|
1502
|
+
ariaDescribedBy?: string;
|
|
1503
|
+
}
|
|
1504
|
+
interface TimelineItemSlots {
|
|
1505
|
+
default?: () => VNode[];
|
|
1506
|
+
dot?: () => VNode[];
|
|
1507
|
+
}
|
|
1508
|
+
interface TimelineItemSetupProps extends Record<string, unknown> {
|
|
1509
|
+
color: string;
|
|
1510
|
+
type: 'primary' | 'success' | 'warning' | 'danger' | 'info';
|
|
1511
|
+
size: 'large' | 'default' | 'small';
|
|
1512
|
+
dot: VNode | string;
|
|
1513
|
+
timestamp: string;
|
|
1514
|
+
placement: 'top' | 'bottom';
|
|
1515
|
+
hideTimestamp: boolean;
|
|
1516
|
+
class: string;
|
|
1517
|
+
id: string;
|
|
1518
|
+
ariaLabel: string;
|
|
1519
|
+
ariaDescribedBy: string;
|
|
1520
|
+
style?: string | Record<string, string>;
|
|
1521
|
+
}
|
|
1522
|
+
interface StepsProps {
|
|
1523
|
+
active?: number;
|
|
1524
|
+
processStatus?: 'process' | 'finish' | 'error' | 'success';
|
|
1525
|
+
finishStatus?: 'wait' | 'process' | 'finish' | 'error' | 'success';
|
|
1526
|
+
direction?: 'horizontal' | 'vertical';
|
|
1527
|
+
alignCenter?: boolean;
|
|
1528
|
+
simple?: boolean;
|
|
1529
|
+
class?: string;
|
|
1530
|
+
style?: string | Record<string, string>;
|
|
1531
|
+
id?: string;
|
|
1532
|
+
ariaLabel?: string;
|
|
1533
|
+
ariaDescribedBy?: string;
|
|
1534
|
+
onChange?: (active: number) => void;
|
|
1535
|
+
}
|
|
1536
|
+
interface StepsSlots {
|
|
1537
|
+
default?: () => VNode[];
|
|
1538
|
+
}
|
|
1539
|
+
interface StepsSetupProps extends Record<string, unknown> {
|
|
1540
|
+
active: number;
|
|
1541
|
+
processStatus: 'process' | 'finish' | 'error' | 'success';
|
|
1542
|
+
finishStatus: 'wait' | 'process' | 'finish' | 'error' | 'success';
|
|
1543
|
+
direction: 'horizontal' | 'vertical';
|
|
1544
|
+
alignCenter: boolean;
|
|
1545
|
+
simple: boolean;
|
|
1546
|
+
class: string;
|
|
1547
|
+
id: string;
|
|
1548
|
+
ariaLabel: string;
|
|
1549
|
+
ariaDescribedBy: string;
|
|
1550
|
+
style?: string | Record<string, string>;
|
|
1551
|
+
onChange?: (active: number) => void;
|
|
1552
|
+
}
|
|
1553
|
+
interface StepProps {
|
|
1554
|
+
title?: string;
|
|
1555
|
+
description?: string;
|
|
1556
|
+
icon?: string | VNode;
|
|
1557
|
+
status?: 'wait' | 'process' | 'finish' | 'error' | 'success';
|
|
1558
|
+
class?: string;
|
|
1559
|
+
style?: string | Record<string, string>;
|
|
1560
|
+
id?: string;
|
|
1561
|
+
ariaLabel?: string;
|
|
1562
|
+
ariaDescribedBy?: string;
|
|
1563
|
+
}
|
|
1564
|
+
interface StepSlots {
|
|
1565
|
+
default?: () => VNode[];
|
|
1566
|
+
icon?: () => VNode[];
|
|
1567
|
+
title?: () => VNode[];
|
|
1568
|
+
description?: () => VNode[];
|
|
1569
|
+
}
|
|
1570
|
+
interface StepSetupProps extends Record<string, unknown> {
|
|
1571
|
+
title: string;
|
|
1572
|
+
description: string;
|
|
1573
|
+
icon: string | VNode;
|
|
1574
|
+
status: 'wait' | 'process' | 'finish' | 'error' | 'success';
|
|
1575
|
+
class: string;
|
|
1576
|
+
id: string;
|
|
1577
|
+
ariaLabel: string;
|
|
1578
|
+
ariaDescribedBy: string;
|
|
1579
|
+
style?: string | Record<string, string>;
|
|
1580
|
+
}
|
|
1581
|
+
interface CarouselProps {
|
|
1582
|
+
initialIndex?: number;
|
|
1583
|
+
height?: string;
|
|
1584
|
+
trigger?: 'click' | 'hover';
|
|
1585
|
+
autoplay?: boolean;
|
|
1586
|
+
interval?: number;
|
|
1587
|
+
indicatorPosition?: 'outside' | 'none';
|
|
1588
|
+
arrow?: 'always' | 'hover' | 'never';
|
|
1589
|
+
type?: '' | 'card';
|
|
1590
|
+
loop?: boolean;
|
|
1591
|
+
direction?: 'horizontal' | 'vertical';
|
|
1592
|
+
class?: string;
|
|
1593
|
+
style?: string | Record<string, string>;
|
|
1594
|
+
id?: string;
|
|
1595
|
+
ariaLabel?: string;
|
|
1596
|
+
ariaDescribedBy?: string;
|
|
1597
|
+
onChange?: (index: number, prevIndex: number) => void;
|
|
1598
|
+
}
|
|
1599
|
+
interface CarouselSlots {
|
|
1600
|
+
default?: () => VNode[];
|
|
1601
|
+
}
|
|
1602
|
+
interface CarouselSetupProps extends Record<string, unknown> {
|
|
1603
|
+
initialIndex: number;
|
|
1604
|
+
height: string;
|
|
1605
|
+
trigger: 'click' | 'hover';
|
|
1606
|
+
autoplay: boolean;
|
|
1607
|
+
interval: number;
|
|
1608
|
+
indicatorPosition: 'outside' | 'none';
|
|
1609
|
+
arrow: 'always' | 'hover' | 'never';
|
|
1610
|
+
type: '' | 'card';
|
|
1611
|
+
loop: boolean;
|
|
1612
|
+
direction: 'horizontal' | 'vertical';
|
|
1613
|
+
class: string;
|
|
1614
|
+
id: string;
|
|
1615
|
+
ariaLabel: string;
|
|
1616
|
+
ariaDescribedBy: string;
|
|
1617
|
+
style?: string | Record<string, string>;
|
|
1618
|
+
onChange?: (index: number, prevIndex: number) => void;
|
|
1619
|
+
}
|
|
1620
|
+
interface CarouselItemProps {
|
|
1621
|
+
name?: string | number;
|
|
1622
|
+
label?: string;
|
|
1623
|
+
class?: string;
|
|
1624
|
+
style?: string | Record<string, string>;
|
|
1625
|
+
id?: string;
|
|
1626
|
+
ariaLabel?: string;
|
|
1627
|
+
ariaDescribedBy?: string;
|
|
1628
|
+
}
|
|
1629
|
+
interface CarouselItemSlots {
|
|
1630
|
+
default?: () => VNode[];
|
|
1631
|
+
}
|
|
1632
|
+
interface CarouselItemSetupProps extends Record<string, unknown> {
|
|
1633
|
+
name: string | number;
|
|
1634
|
+
label: string;
|
|
1635
|
+
class: string;
|
|
1636
|
+
id: string;
|
|
1637
|
+
ariaLabel: string;
|
|
1638
|
+
ariaDescribedBy: string;
|
|
1639
|
+
style?: string | Record<string, string>;
|
|
1640
|
+
}
|
|
1641
|
+
interface PopconfirmProps {
|
|
1642
|
+
title?: string;
|
|
1643
|
+
confirmButtonText?: string;
|
|
1644
|
+
cancelButtonText?: string;
|
|
1645
|
+
confirmButtonType?: string;
|
|
1646
|
+
cancelButtonType?: string;
|
|
1647
|
+
icon?: string;
|
|
1648
|
+
iconColor?: string;
|
|
1649
|
+
hideIcon?: boolean;
|
|
1650
|
+
disabled?: boolean;
|
|
1651
|
+
width?: number;
|
|
1652
|
+
class?: string;
|
|
1653
|
+
style?: string | Record<string, string>;
|
|
1654
|
+
id?: string;
|
|
1655
|
+
ariaLabel?: string;
|
|
1656
|
+
ariaDescribedBy?: string;
|
|
1657
|
+
onConfirm?: () => void;
|
|
1658
|
+
onCancel?: () => void;
|
|
1659
|
+
}
|
|
1660
|
+
interface PopconfirmSlots {
|
|
1661
|
+
default?: () => VNode[];
|
|
1662
|
+
reference?: () => VNode[];
|
|
1663
|
+
icon?: () => VNode[];
|
|
1664
|
+
}
|
|
1665
|
+
interface PopconfirmSetupProps extends Record<string, unknown> {
|
|
1666
|
+
title: string;
|
|
1667
|
+
confirmButtonText: string;
|
|
1668
|
+
cancelButtonText: string;
|
|
1669
|
+
confirmButtonType: string;
|
|
1670
|
+
cancelButtonType: string;
|
|
1671
|
+
icon: string;
|
|
1672
|
+
iconColor: string;
|
|
1673
|
+
hideIcon: boolean;
|
|
1674
|
+
disabled: boolean;
|
|
1675
|
+
width: number;
|
|
1676
|
+
class: string;
|
|
1677
|
+
style?: string | Record<string, string>;
|
|
1678
|
+
id: string;
|
|
1679
|
+
ariaLabel: string;
|
|
1680
|
+
ariaDescribedBy: string;
|
|
1681
|
+
onConfirm?: () => void;
|
|
1682
|
+
onCancel?: () => void;
|
|
1683
|
+
}
|
|
1684
|
+
|
|
1685
|
+
interface RichTextEditorProps {
|
|
1686
|
+
modelValue?: string;
|
|
1687
|
+
placeholder?: string;
|
|
1688
|
+
disabled?: boolean;
|
|
1689
|
+
readonly?: boolean;
|
|
1690
|
+
height?: string;
|
|
1691
|
+
class?: string;
|
|
1692
|
+
style?: string | Record<string, string>;
|
|
1693
|
+
id?: string;
|
|
1694
|
+
ariaLabel?: string;
|
|
1695
|
+
ariaDescribedBy?: string;
|
|
1696
|
+
onInput?: (value: string) => void;
|
|
1697
|
+
onFocus?: (event: FocusEvent) => void;
|
|
1698
|
+
onBlur?: (event: FocusEvent) => void;
|
|
1699
|
+
}
|
|
1700
|
+
interface RichTextEditorSlots {
|
|
1701
|
+
default?: () => VNode[];
|
|
1702
|
+
toolbar?: () => VNode[];
|
|
1703
|
+
}
|
|
1704
|
+
interface RichTextEditorSetupProps extends Record<string, unknown> {
|
|
1705
|
+
modelValue: string;
|
|
1706
|
+
placeholder: string;
|
|
1707
|
+
disabled: boolean;
|
|
1708
|
+
readonly: boolean;
|
|
1709
|
+
height: string;
|
|
1710
|
+
class: string;
|
|
1711
|
+
style?: string | Record<string, string>;
|
|
1712
|
+
id: string;
|
|
1713
|
+
ariaLabel: string;
|
|
1714
|
+
ariaDescribedBy: string;
|
|
1715
|
+
onInput?: (value: string) => void;
|
|
1716
|
+
onFocus?: (event: FocusEvent) => void;
|
|
1717
|
+
onBlur?: (event: FocusEvent) => void;
|
|
1718
|
+
}
|
|
1719
|
+
|
|
1720
|
+
/**
|
|
1721
|
+
* @lytjs/ui - Button 组件
|
|
1722
|
+
*
|
|
1723
|
+
* 基础按钮组件,支持多种类型、尺寸和状态
|
|
1724
|
+
*/
|
|
1725
|
+
declare const Button: _lytjs_component.ComponentOptions<Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
1726
|
+
|
|
1727
|
+
/**
|
|
1728
|
+
* @lytjs/ui - Input 组件
|
|
1729
|
+
*
|
|
1730
|
+
* 基础输入框组件,支持多种类型和状态
|
|
1731
|
+
*/
|
|
1732
|
+
declare const Input: _lytjs_component.ComponentOptions<Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
1733
|
+
|
|
1734
|
+
/**
|
|
1735
|
+
* @lytjs/ui - Dialog 组件
|
|
1736
|
+
*
|
|
1737
|
+
* 对话框组件,支持全屏、拖拽等高级功能
|
|
1738
|
+
*/
|
|
1739
|
+
declare const Dialog: _lytjs_component.ComponentOptions<Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
1740
|
+
|
|
1741
|
+
/**
|
|
1742
|
+
* @lytjs/ui - Select 组件
|
|
1743
|
+
*
|
|
1744
|
+
* 选择器组件,支持单选、多选、搜索等功能
|
|
1745
|
+
*/
|
|
1746
|
+
declare const Select: _lytjs_component.ComponentOptions<Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
1747
|
+
|
|
1748
|
+
interface TabPane {
|
|
1749
|
+
props: TabPaneSetupProps;
|
|
1750
|
+
children: VNode[];
|
|
1751
|
+
}
|
|
1752
|
+
declare const TabPane: _lytjs_component.ComponentOptions<Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
1753
|
+
declare const Tabs: _lytjs_component.ComponentOptions<Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
1754
|
+
|
|
1755
|
+
declare const Table: _lytjs_component.ComponentOptions<Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
1756
|
+
|
|
1757
|
+
/**
|
|
1758
|
+
* @lytjs/ui - Form 组件
|
|
1759
|
+
*
|
|
1760
|
+
* 表单组件,支持表单验证和布局
|
|
1761
|
+
*/
|
|
1762
|
+
declare const Form: _lytjs_component.ComponentOptions<Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
1763
|
+
declare const FormItem: _lytjs_component.ComponentOptions<Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
1764
|
+
|
|
1765
|
+
/**
|
|
1766
|
+
* @lytjs/ui - Transition 组件
|
|
1767
|
+
*
|
|
1768
|
+
* 过渡动画组件,支持进入/离开动画
|
|
1769
|
+
*/
|
|
1770
|
+
/**
|
|
1771
|
+
* Transition 组件
|
|
1772
|
+
*/
|
|
1773
|
+
declare const Transition: _lytjs_component.ComponentOptions<Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
1774
|
+
/**
|
|
1775
|
+
* TransitionGroup 组件
|
|
1776
|
+
*/
|
|
1777
|
+
declare const TransitionGroup: _lytjs_component.ComponentOptions<Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
1778
|
+
|
|
1779
|
+
/**
|
|
1780
|
+
* @lytjs/ui - DatePicker 组件
|
|
1781
|
+
*
|
|
1782
|
+
* 日期选择器组件,支持范围选择、时间选择、禁用日期、快捷选项,自研日期处理逻辑(零依赖)
|
|
1783
|
+
*/
|
|
1784
|
+
declare const DatePicker: _lytjs_component.ComponentOptions<Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
1785
|
+
|
|
1786
|
+
declare const Tree: _lytjs_component.ComponentOptions<Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
1787
|
+
|
|
1788
|
+
declare const Menu: _lytjs_component.ComponentOptions<Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
1789
|
+
|
|
1790
|
+
/**
|
|
1791
|
+
* @lytjs/ui - Cascader 组件
|
|
1792
|
+
*
|
|
1793
|
+
* 级联选择器组件,支持多选、懒加载、数据回显等功能
|
|
1794
|
+
*/
|
|
1795
|
+
declare const Cascader: _lytjs_component.ComponentOptions<Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
1796
|
+
|
|
1797
|
+
declare const TreeSelect: _lytjs_component.ComponentOptions<Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
1798
|
+
|
|
1799
|
+
declare const Transfer: _lytjs_component.ComponentOptions<Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
1800
|
+
|
|
1801
|
+
declare const Descriptions: _lytjs_component.ComponentOptions<Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
1802
|
+
declare const DescriptionsItem: _lytjs_component.ComponentOptions<Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
1803
|
+
|
|
1804
|
+
/**
|
|
1805
|
+
* @lytjs/ui - Modal 组件
|
|
1806
|
+
*
|
|
1807
|
+
* 对话框组件,支持拖拽移动、全屏显示、自定义页脚、层级管理、动画优化
|
|
1808
|
+
*/
|
|
1809
|
+
declare const Modal: _lytjs_component.ComponentOptions<Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
1810
|
+
|
|
1811
|
+
/**
|
|
1812
|
+
* @lytjs/ui - Drawer 组件
|
|
1813
|
+
*
|
|
1814
|
+
* 抽屉组件,支持上下左右弹出、遮罩控制、宽度自适应、嵌套弹窗功能
|
|
1815
|
+
*/
|
|
1816
|
+
declare const Drawer: _lytjs_component.ComponentOptions<Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
1817
|
+
|
|
1818
|
+
/**
|
|
1819
|
+
* @lytjs/ui - Upload 组件
|
|
1820
|
+
*
|
|
1821
|
+
* 文件上传组件,支持拖拽上传、文件预览、进度显示、分片上传
|
|
1822
|
+
*/
|
|
1823
|
+
declare const Upload: _lytjs_component.ComponentOptions<Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
1824
|
+
|
|
1825
|
+
declare const Notification: _lytjs_component.ComponentOptions<Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
1826
|
+
|
|
1827
|
+
declare const Calendar: _lytjs_component.ComponentOptions<Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
1828
|
+
|
|
1829
|
+
/**
|
|
1830
|
+
* @lytjs/ui - Image 组件
|
|
1831
|
+
*
|
|
1832
|
+
* 图片组件,支持懒加载、预览弹窗、错误兜底、自适应功能,适配主题样式
|
|
1833
|
+
*/
|
|
1834
|
+
declare const Image: _lytjs_component.ComponentOptions<Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
1835
|
+
|
|
1836
|
+
/**
|
|
1837
|
+
* @lytjs/ui - Rate 组件
|
|
1838
|
+
*
|
|
1839
|
+
* 评分组件,支持半星、只读、自定义图标、数量配置功能,统一组件API
|
|
1840
|
+
*/
|
|
1841
|
+
declare const Rate: _lytjs_component.ComponentOptions<Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
1842
|
+
|
|
1843
|
+
/**
|
|
1844
|
+
* @lytjs/ui - ColorPicker 组件
|
|
1845
|
+
*
|
|
1846
|
+
* 颜色选择器组件,取色器、预设色、hex/rgb转换功能,零第三方依赖
|
|
1847
|
+
*/
|
|
1848
|
+
declare const ColorPicker: _lytjs_component.ComponentOptions<Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
1849
|
+
|
|
1850
|
+
/**
|
|
1851
|
+
* Icon 组件
|
|
1852
|
+
*/
|
|
1853
|
+
declare const Icon: _lytjs_component.ComponentOptions<Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
1854
|
+
|
|
1855
|
+
declare const Badge: _lytjs_component.ComponentOptions<Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
1856
|
+
|
|
1857
|
+
/**
|
|
1858
|
+
* Tag 组件
|
|
1859
|
+
*/
|
|
1860
|
+
declare const Tag: _lytjs_component.ComponentOptions<Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
1861
|
+
|
|
1862
|
+
/**
|
|
1863
|
+
* Spin 组件
|
|
1864
|
+
*/
|
|
1865
|
+
declare const Spin: _lytjs_component.ComponentOptions<Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
1866
|
+
|
|
1867
|
+
/**
|
|
1868
|
+
* Empty 组件
|
|
1869
|
+
*/
|
|
1870
|
+
declare const Empty: _lytjs_component.ComponentOptions<Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
1871
|
+
|
|
1872
|
+
/**
|
|
1873
|
+
* Link 组件
|
|
1874
|
+
*/
|
|
1875
|
+
declare const Link: _lytjs_component.ComponentOptions<Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
1876
|
+
|
|
1877
|
+
/**
|
|
1878
|
+
* Container 组件
|
|
1879
|
+
*/
|
|
1880
|
+
declare const Container: _lytjs_component.ComponentOptions<Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
1881
|
+
|
|
1882
|
+
/**
|
|
1883
|
+
* Divider 组件
|
|
1884
|
+
*/
|
|
1885
|
+
declare const Divider: _lytjs_component.ComponentOptions<Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
1886
|
+
|
|
1887
|
+
/**
|
|
1888
|
+
* Toast 组件
|
|
1889
|
+
*/
|
|
1890
|
+
declare const Toast: _lytjs_component.ComponentOptions<Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
1891
|
+
|
|
1892
|
+
/**
|
|
1893
|
+
* @lytjs/ui - Alert 组件
|
|
1894
|
+
*
|
|
1895
|
+
* 警告提示组件,用于展示重要的提示信息
|
|
1896
|
+
*/
|
|
1897
|
+
declare const Alert: _lytjs_component.ComponentOptions<Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
1898
|
+
|
|
1899
|
+
/**
|
|
1900
|
+
* Tooltip 组件
|
|
1901
|
+
*/
|
|
1902
|
+
declare const Tooltip: _lytjs_component.ComponentOptions<Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
1903
|
+
|
|
1904
|
+
declare const Checkbox: _lytjs_component.ComponentOptions<Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
1905
|
+
|
|
1906
|
+
/**
|
|
1907
|
+
* CheckboxGroup 组件
|
|
1908
|
+
*/
|
|
1909
|
+
declare const CheckboxGroup: _lytjs_component.ComponentOptions<Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
1910
|
+
|
|
1911
|
+
declare const Radio: _lytjs_component.ComponentOptions<Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
1912
|
+
|
|
1913
|
+
declare const RadioGroup: _lytjs_component.ComponentOptions<Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
1914
|
+
|
|
1915
|
+
/**
|
|
1916
|
+
* Switch 组件
|
|
1917
|
+
*/
|
|
1918
|
+
declare const Switch: _lytjs_component.ComponentOptions<Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
1919
|
+
|
|
1920
|
+
/**
|
|
1921
|
+
* InputNumber 组件
|
|
1922
|
+
*/
|
|
1923
|
+
declare const InputNumber: _lytjs_component.ComponentOptions<Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
1924
|
+
|
|
1925
|
+
declare const Progress: _lytjs_component.ComponentOptions<Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
1926
|
+
|
|
1927
|
+
declare const Slider: _lytjs_component.ComponentOptions<Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
1928
|
+
|
|
1929
|
+
declare const Avatar: _lytjs_component.ComponentOptions<Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
1930
|
+
|
|
1931
|
+
declare const Card: _lytjs_component.ComponentOptions<Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
1932
|
+
|
|
1933
|
+
/**
|
|
1934
|
+
* Timeline 时间轴组件
|
|
1935
|
+
*/
|
|
1936
|
+
declare const Timeline: _lytjs_component.ComponentOptions<Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
1937
|
+
|
|
1938
|
+
/**
|
|
1939
|
+
* TimelineItem 时间轴项组件
|
|
1940
|
+
*/
|
|
1941
|
+
declare const TimelineItem: _lytjs_component.ComponentOptions<Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
1942
|
+
|
|
1943
|
+
/**
|
|
1944
|
+
* Steps 步骤条组件
|
|
1945
|
+
*/
|
|
1946
|
+
declare const Steps: _lytjs_component.ComponentOptions<Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
1947
|
+
|
|
1948
|
+
/**
|
|
1949
|
+
* Step 步骤项组件
|
|
1950
|
+
*/
|
|
1951
|
+
declare const Step: _lytjs_component.ComponentOptions<Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
1952
|
+
|
|
1953
|
+
declare const Carousel: _lytjs_component.ComponentOptions<Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
1954
|
+
|
|
1955
|
+
/**
|
|
1956
|
+
* CarouselItem 走马灯项组件
|
|
1957
|
+
*/
|
|
1958
|
+
declare const CarouselItem: _lytjs_component.ComponentOptions<Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
1959
|
+
|
|
1960
|
+
declare const Popconfirm: _lytjs_component.ComponentOptions<Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
1961
|
+
|
|
1962
|
+
/**
|
|
1963
|
+
* @lytjs/ui - RichTextEditor 组件
|
|
1964
|
+
*
|
|
1965
|
+
* 轻量级富文本编辑器,使用原生 API 实现,零第三方依赖
|
|
1966
|
+
*/
|
|
1967
|
+
declare const RichTextEditor: _lytjs_component.ComponentOptions<Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>>;
|
|
1968
|
+
|
|
1969
|
+
/**
|
|
1970
|
+
* @lytjs/ui - 入口文件
|
|
1971
|
+
*
|
|
1972
|
+
* LytJS UI 组件库
|
|
1973
|
+
*/
|
|
1974
|
+
|
|
1975
|
+
/**
|
|
1976
|
+
* 安装所有组件
|
|
1977
|
+
*/
|
|
1978
|
+
declare function install(app: AppContext): void;
|
|
1979
|
+
declare const _default: {
|
|
1980
|
+
install: typeof install;
|
|
1981
|
+
};
|
|
1982
|
+
|
|
1983
|
+
export { Alert, type AlertEffect, type AlertProps, type AlertSetupProps, type AlertSlots, type AlertType, Avatar, type AvatarProps, type AvatarSetupProps, type AvatarSlots, Badge, type BadgeProps, type BadgeSetupProps, type BadgeSlots, Button, type ButtonProps, type ButtonSlots, Calendar, type CalendarEvent, type CalendarProps, type CalendarSlots, type CalendarView, Card, type CardProps, type CardSetupProps, type CardSlots, Carousel, CarouselItem, type CarouselItemProps, type CarouselItemSetupProps, type CarouselItemSlots, type CarouselProps, type CarouselSetupProps, type CarouselSlots, Cascader, type CascaderOption, type CascaderProps, type CascaderSetupProps, type CascaderSlots, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxGroupSetupProps, type CheckboxGroupSlots, type CheckboxProps, type CheckboxSetupProps, type CheckboxSlots, ColorPicker, type ColorPickerProps, type ColorPickerSlots, type ComponentSize, type ComponentStatus, Container, type ContainerProps, type ContainerSlots, DatePicker, type DatePickerProps, type DatePickerSetupProps, type DatePickerShortcut, type DatePickerSlots, type DatePickerType, Descriptions, DescriptionsItem, type DescriptionsItemData, type DescriptionsItemProps, type DescriptionsItemSlots, type DescriptionsProps, type DescriptionsSlots, Dialog, type DialogProps, type DialogSetupProps, type DialogSlots, Divider, type DividerProps, type DividerSlots, Drawer, type DrawerDirection, type DrawerProps, type DrawerSlots, Empty, type EmptyProps, type EmptySlots, Form, FormItem, type FormItemProps, type FormItemSetupProps, type FormItemSlots, type FormProps, type FormRule, type FormRules, type FormSetupProps, type FormSlots, type FormValidateStatus, Icon, type IconProps, type IconSlots, Image, type ImageFit, type ImageProps, type ImageSlots, Input, InputNumber, type InputNumberProps, type InputNumberSetupProps, type InputNumberSlots, type InputProps, type InputSlots, Link, type LinkProps, type LinkSlots, Menu, type MenuItem, type MenuProps, type MenuSetupProps, type MenuSlots, Modal, Notification, type NotificationOptions, type NotificationPosition, type NotificationProps, type NotificationSlots, type NotificationType, Popconfirm, type PopconfirmProps, type PopconfirmSetupProps, type PopconfirmSlots, Progress, type ProgressProps, type ProgressSetupProps, type ProgressSlots, Radio, RadioGroup, type RadioGroupProps, type RadioGroupSetupProps, type RadioGroupSlots, type RadioProps, type RadioSetupProps, type RadioSlots, Rate, type RateProps, type RateSlots, RichTextEditor, type RichTextEditorProps, type RichTextEditorSetupProps, type RichTextEditorSlots, Select, type SelectOption, type SelectProps, type SelectSetupProps, type SelectSlots, Slider, type SliderProps, type SliderSetupProps, type SliderSlots, Spin, type SpinProps, type SpinSlots, Step, type StepProps, type StepSetupProps, type StepSlots, Steps, type StepsProps, type StepsSetupProps, type StepsSlots, Switch, type SwitchProps, type SwitchSetupProps, type SwitchSlots, TabPane, type TabPaneProps, Table, type TableColumn, type TableData, type TableProps, type TableRowData, type TableSetupProps, type TableSlots, Tabs, type TabsProps, type TabsSlots, Tag, type TagProps, type TagSetupProps, type TagSlots, Timeline, TimelineItem, type TimelineItemProps, type TimelineItemSetupProps, type TimelineItemSlots, type TimelineProps, type TimelineSetupProps, type TimelineSlots, Toast, type ToastProps, type ToastSetupProps, type ToastSlots, Tooltip, type TooltipProps, type TooltipSlots, Transfer, type TransferOption, type TransferProps, type TransferSetupProps, type TransferSlots, Transition, TransitionGroup, Tree, type TreeNode, type TreeProps, TreeSelect, type TreeSelectNode, type TreeSelectProps, type TreeSelectSetupProps, type TreeSelectSlots, type TreeSetupProps, type TreeSlots, Upload, type UploadFile, type UploadFileStatus, type UploadProps, type UploadSetupProps, type UploadSlots, _default as default, install };
|