yd-admin 0.1.5 → 0.1.8

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/dist/index.d.ts DELETED
@@ -1,4036 +0,0 @@
1
- import * as _$vue from "vue";
2
- import { App, Ref } from "vue";
3
- import * as _$vue_i18n0 from "vue-i18n";
4
- import { RouteRecordRaw } from "vue-router";
5
- import { PiniaPluginContext } from "pinia";
6
-
7
- //#region src/types/index.d.ts
8
- /**
9
- * Global type definitions
10
- * 全局 TypeScript 类型
11
- */
12
- /** 组件尺寸 */
13
- type ComponentSize = "xs" | "sm" | "md" | "lg" | "xl";
14
- /** 组件变体 */
15
- type ComponentVariant = "default" | "primary" | "success" | "warning" | "error" | "info";
16
- /** 对齐方式 */
17
- type Alignment = "start" | "center" | "end" | "stretch";
18
- /** 方向 */
19
- type Direction = "horizontal" | "vertical";
20
- /** 事件处理函数 */
21
- type EventHandler<T = Event> = (event: T) => void | Promise<void>;
22
- /** 可选的 Promise */
23
- type MaybePromise<T> = T | Promise<T>;
24
- /** 深度部分可选 */
25
- type DeepPartial<T> = { [P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P] };
26
- /** 字符串字面量工具类型 */
27
- type StringLiteral<T> = T extends string ? (string extends T ? never : T) : never;
28
- /** 深度 Required */
29
- type DeepRequired<T> = { [P in keyof T]-?: T[P] extends object ? DeepRequired<T[P]> : T[P] };
30
- /** 深度 Readonly */
31
- type DeepReadonly<T> = { readonly [P in keyof T]: T[P] extends object ? DeepReadonly<T[P]> : T[P] };
32
- /** 深度冻结 */
33
- type DeepFrozen<T> = { readonly [P in keyof T]: T[P] extends object ? DeepFrozen<T[P]> : Readonly<T[P]> };
34
- /** 键值对 */
35
- type KeyValuePair<K extends string | number = string, V = unknown> = {
36
- key: K;
37
- value: V;
38
- };
39
- /** 记录类型简化 */
40
- type Recordable<T = unknown> = Record<string, T>;
41
- /** 深度只读数组 */
42
- type DeepReadonlyArray<T> = ReadonlyArray<DeepReadonlyArray<T> extends infer R ? R : never>;
43
- /** 无参数函数 */
44
- type Noop = () => void;
45
- /** 构造函数 */
46
- type Constructor<T = unknown> = new (...args: any[]) => T;
47
- /** 类实例 */
48
- type Instanceof<T> = T extends Constructor<infer I> ? I : never;
49
- /** 参数类型 */
50
- type Parameters$1<T extends (...args: any[]) => unknown> = T extends ((...args: infer P) => unknown) ? P : never;
51
- /** 返回类型 */
52
- type ReturnType<T extends (...args: any[]) => unknown> = T extends ((...args: any[]) => infer R) ? R : never;
53
- /** this 类型 */
54
- type ThisParameterType<T> = T extends ((this: infer This, ...args: any[]) => unknown) ? This : never;
55
- /** 箭头函数参数推断 */
56
- type ArrowFunction<P extends any[] = unknown[], R = unknown> = (...args: P) => R;
57
- /** 数组项类型 */
58
- type ArrayElement<T> = T extends (infer U)[] ? U : T extends readonly (infer U)[] ? U : never;
59
- /** 非空数组 */
60
- type NonEmptyArray<T> = [T, ...T[]];
61
- /** 稀疏数组转密集 */
62
- type DenseArray<T> = { [K in keyof T]: T[K] } & unknown[];
63
- /** 表单值类型 */
64
- type FormValue = string | number | boolean | unknown[] | Record<string, unknown> | null | undefined;
65
- /** 表单模型 */
66
- type FormModel = Record<string, FormValue>;
67
- /** 表单规则 (参考 async-validator) - extended version for components */
68
- interface FormRuleExtra {
69
- /** 必填验证 */
70
- required?: boolean;
71
- /** 消息 */
72
- message?: string;
73
- /** 触发事件 */
74
- trigger?: string | string[];
75
- /** 类型验证 */
76
- type?: "string" | "number" | "boolean" | "method" | "regexp" | "integer" | "float" | "array" | "object" | "enum" | "date" | "url" | "hex" | "email";
77
- /** 最小值 */
78
- min?: number;
79
- /** 最大值 */
80
- max?: number;
81
- /** 长度 */
82
- len?: number;
83
- /** 正则 */
84
- pattern?: RegExp;
85
- /** 自定义验证器 */
86
- validator?: (rule: FormRuleExtra, value: unknown) => Promise<void | string> | ((rule: FormRuleExtra, value: unknown) => void | string);
87
- /** 异步自定义验证器 */
88
- transform?: (value: unknown) => unknown;
89
- /** 枚举值 */
90
- enum?: unknown[];
91
- /** whitespace 处理 */
92
- whitespace?: boolean;
93
- }
94
- /** 表单错误 (basic version - use form/types for full version) */
95
- interface FormError {
96
- /** 字段名 */
97
- field: string;
98
- /** 错误消息 */
99
- message: string;
100
- /** 错误规则 */
101
- rule?: FormRuleExtra;
102
- }
103
- /** 表单验证结果 */
104
- interface FormValidateResult {
105
- /** 是否有效 */
106
- valid: boolean;
107
- /** 错误列表 */
108
- errors?: FormError[];
109
- /** 未通过字段 */
110
- failedFields?: string[];
111
- }
112
- /** 表单状态 */
113
- type FormStatus = "idle" | "validating" | "success" | "error";
114
- /** 表单尺寸映射 */
115
- type SizeKeys<T extends ComponentSize> = {
116
- xs: "xs";
117
- sm: "sm";
118
- md: "md";
119
- lg: "lg";
120
- xl: "xl";
121
- }[T];
122
- /** 树节点 */
123
- interface TreeNode<T = unknown> {
124
- /** 唯一键 */
125
- key: string | number;
126
- /** 显示标题 */
127
- title: string;
128
- /** 子节点 */
129
- children?: TreeNode<T>[];
130
- /** 数据 */
131
- data?: T;
132
- /** 是否禁用 */
133
- disabled?: boolean;
134
- /** 是否叶子 */
135
- isLeaf?: boolean;
136
- /** 是否加载中 */
137
- loading?: boolean;
138
- /** 展开 */
139
- expanded?: boolean;
140
- /** 选择 */
141
- selected?: boolean;
142
- /** 勾选 */
143
- checked?: boolean;
144
- }
145
- /** 级联节点 */
146
- interface CascaderNode<T = unknown> {
147
- /** 值 */
148
- value: string | number;
149
- /** 标签 */
150
- label: string;
151
- /** 子节点 */
152
- children?: CascaderNode<T>[];
153
- /** 数据 */
154
- data?: T;
155
- /** 是否禁用 */
156
- disabled?: boolean;
157
- /** 是否叶子 */
158
- isLeaf?: boolean;
159
- }
160
- /** 级联路径 */
161
- type CascaderOption<T = unknown> = CascaderNode<T> | CascaderNode<T>[];
162
- /** 表格列 */
163
- interface TableColumn<T = Record<string, unknown>> {
164
- /** 列键 */
165
- key?: string;
166
- /** 标题 */
167
- title: string;
168
- /** 宽度 */
169
- width?: number | string;
170
- /** 最小宽度 */
171
- minWidth?: number | string;
172
- /** 对齐 */
173
- align?: Alignment;
174
- /** 固定列 */
175
- fixed?: "left" | "right";
176
- /** 排序 */
177
- sortable?: boolean;
178
- /** 筛选 */
179
- filterable?: boolean;
180
- /** 自定义渲染 */
181
- render?: (value: unknown, row: T, index: number) => unknown;
182
- /** 插槽 */
183
- slot?: string;
184
- }
185
- /** 表格行 */
186
- interface TableRow<T = Record<string, unknown>> extends Record<string, unknown> {
187
- /** 唯一键 */
188
- __key?: string | number;
189
- /** 展开 */
190
- __expanded?: boolean;
191
- /** 层级 */
192
- __level?: number;
193
- /** 子行 */
194
- __children?: TableRow<T>[];
195
- /** 虚拟索引 (内部使用) */
196
- __virtualIndex?: number;
197
- }
198
- /** 分页参数 */
199
- interface PaginationParams {
200
- /** 当前页 */
201
- page: number;
202
- /** 每页条数 */
203
- pageSize: number;
204
- }
205
- /** 分页结果 */
206
- interface PaginationResult<T> {
207
- /** 数据 */
208
- list: T[];
209
- /** 总数 */
210
- total: number;
211
- /** 当前页 */
212
- page: number;
213
- /** 每页条数 */
214
- pageSize: number;
215
- }
216
- /** 分页配置 */
217
- interface PaginationConfig extends PaginationParams {
218
- /** 总数 */
219
- total: number;
220
- /** 快速跳转 */
221
- showQuickJumper?: boolean;
222
- /** 选择器 */
223
- showSizeChanger?: boolean;
224
- /** 页面大小选项 */
225
- pageSizeOptions?: number[];
226
- /** 渲染器 */
227
- pageSizeRender?: (total: number, range: [number, number]) => string;
228
- }
229
- /** 选项 */
230
- interface SelectOption<T = unknown> {
231
- /** 标签 */
232
- label: string;
233
- /** 值 */
234
- value: string | number;
235
- /** 是否禁用 */
236
- disabled?: boolean;
237
- /** 额外数据 */
238
- data?: T;
239
- }
240
- /** 选项组 */
241
- interface SelectGroup<T = unknown> {
242
- /** 组标签 */
243
- label: string;
244
- /** 选项 */
245
- options: SelectOption<T>[];
246
- }
247
- /** 选项联合类型 */
248
- type SelectValue = SelectOption | SelectGroup;
249
- /** 选中值 */
250
- type SelectedValue<T = string | number> = T | T[];
251
- /** 模态框配置 */
252
- interface ModalConfig {
253
- /** 标题 */
254
- title?: string;
255
- /** 内容 */
256
- content?: string;
257
- /** 确认文字 */
258
- okText?: string;
259
- /** 取消文字 */
260
- cancelText?: string;
261
- /** 确认加载 */
262
- okLoading?: boolean;
263
- /** 显示取消 */
264
- showCancel?: boolean;
265
- /** 密闭关闭 */
266
- closable?: boolean;
267
- /** 遮罩关闭 */
268
- maskClosable?: boolean;
269
- /** 宽度 */
270
- width?: number | string;
271
- /** 自定义class */
272
- class?: string;
273
- }
274
- /** 抽屉配置 */
275
- interface DrawerConfig extends ModalConfig {
276
- /** 位置 */
277
- placement?: "top" | "right" | "bottom" | "left";
278
- /** 尺寸 */
279
- size?: number | string;
280
- /** 嵌套样式 */
281
- nested?: boolean;
282
- }
283
- /** 消息配置 */
284
- interface MessageConfig {
285
- /** 内容 */
286
- content: string;
287
- /** 持续时间 */
288
- duration?: number;
289
- /** 关闭 */
290
- closable?: boolean;
291
- }
292
- /** 通知配置 */
293
- interface NotificationConfig extends MessageConfig {
294
- /** 标题 */
295
- title?: string;
296
- /** 图标 */
297
- icon?: string;
298
- }
299
- /** 日期格式 */
300
- type DateFormat = "date" | "datetime" | "time" | "week" | "month" | "quarter" | "year";
301
- /** 日期范围 */
302
- type DateRange = [Date, Date] | [string, string];
303
- /** 快捷日期选项 */
304
- interface DateShortcut {
305
- /** 文本 */
306
- text: string;
307
- /** 值 */
308
- value: Date | DateRange | (() => Date | DateRange);
309
- }
310
- /** 文件 */
311
- interface UploadFile {
312
- /** 名字 */
313
- name: string;
314
- /** 大小 */
315
- size: number;
316
- /** 类型 */
317
- type: string;
318
- /** 原始文件 */
319
- raw?: File;
320
- /** URL */
321
- url?: string;
322
- /** 状态 */
323
- status?: "pending" | "uploading" | "done" | "error";
324
- /** 百分比 */
325
- percent?: number;
326
- /** 错误消息 */
327
- message?: string;
328
- }
329
- /** 上传请求参数 */
330
- interface UploadRequest {
331
- /** URL */
332
- url: string;
333
- /** 方法 */
334
- method?: "post" | "put";
335
- /** 字段名 */
336
- name?: string;
337
- /** 请求头 */
338
- headers?: Record<string, string>;
339
- /** 数据 */
340
- data?: Record<string, unknown>;
341
- /** 凭据 */
342
- withCredentials?: boolean;
343
- }
344
- /** 上传请求结果 */
345
- interface UploadResponse {
346
- /** 链接 */
347
- url?: string;
348
- /** 文件名 */
349
- filename?: string;
350
- /** 自定义数据 */
351
- data?: unknown;
352
- }
353
- /** API 响应 */
354
- interface ApiResponse<T = unknown> {
355
- /** 状态码 */
356
- code: number;
357
- /** 消息 */
358
- message: string;
359
- /** 数据 */
360
- data: T;
361
- }
362
- /** 分页 API 响应 */
363
- interface PaginatedApiResponse<T> extends ApiResponse<T[]> {
364
- /** 总数 */
365
- total: number;
366
- }
367
- /** 确保类型 */
368
- type Known<T, Fallback = never> = T extends unknown ? unknown extends T ? Fallback : T : Fallback;
369
- /** 延迟类型 (用于递归) */
370
- type Deferred<T> = T | {
371
- then(callback: (value: T) => void): void;
372
- };
373
- /** 互斥属性 */
374
- type Exclusive<T, U extends keyof T = keyof T> = T & { [K in U]?: never };
375
- /** 可转换类型 */
376
- type Promisable<T> = T | Promise<T>;
377
- /** 回调类型 */
378
- type Callback<T, Args extends any[] = unknown[]> = (...args: Args) => T;
379
- /** 监听器 */
380
- type Listener<T> = (value: T) => void;
381
- /** 发布者 */
382
- interface Emitter<T = unknown> {
383
- emit(event: string, payload?: T): void;
384
- on(event: string, listener: Listener<T>): void;
385
- off(event: string, listener?: Listener<T>): void;
386
- }
387
- /** 是否为数组 */
388
- declare const isArray: (arg: any) => arg is any[];
389
- /** 是否为对象 */
390
- declare const isObject: (val: unknown) => val is Record<string, unknown>;
391
- /** 是否为日期 */
392
- declare const isDate: (val: unknown) => val is Date;
393
- /** 是否为函数 */
394
- declare const isFunction: (val: unknown) => val is (...args: any[]) => unknown;
395
- /** 是否为空 */
396
- declare const isEmpty: (val: unknown) => boolean;
397
- /** 是否为 Promise */
398
- declare const isPromise: (val: unknown) => val is Promise<unknown>;
399
- /** 获取属性类型 */
400
- type GetProp<T, K extends keyof T> = T[K];
401
- /** 获取属性键 */
402
- type GetKeys<T> = keyof T;
403
- /** 属性过滤 */
404
- type FilterKeys<T, U> = { [K in keyof T as T[K] extends U ? K : never]: T[K] };
405
- /**omit 简化 */
406
- type Omit<T, K extends keyof T> = { [P in GetKeys<T> as P extends K ? never : P]: T[P] };
407
- /**pick 简化 */
408
- type Pick<T, K extends keyof T> = { [P in K]: T[P] };
409
- /** 简化交叉 */
410
- type Intersection<T extends object, U extends object> = T & Pick<U, Exclude<keyof U, keyof T>>;
411
- /** CSS 属性值对 */
412
- interface CssProperty {
413
- /** 属性 */
414
- property: string;
415
- /** 值 */
416
- value: string | number;
417
- }
418
- /** 主题令牌 */
419
- interface ThemeTokens {
420
- /** 主色 */
421
- colorPrimary: string;
422
- /** 成功色 */
423
- colorSuccess: string;
424
- /** 警告色 */
425
- colorWarning: string;
426
- /** 错误色 */
427
- colorError: string;
428
- /** 信息色 */
429
- colorInfo: string;
430
- /** 背景色 */
431
- colorBg: string;
432
- /** 边框色 */
433
- colorBorder: string;
434
- /** 文本色 */
435
- colorFg: string;
436
- /** 字号 */
437
- fontSize: number | string;
438
- /** 行高 */
439
- lineHeight: number | string;
440
- /** 圆角 */
441
- borderRadius: number | string;
442
- }
443
- //#endregion
444
- //#region src/components/base/button/button.vue.d.ts
445
- interface Props$63 {
446
- /** 按钮类型 */
447
- variant?: ComponentVariant;
448
- /** 按钮尺寸 */
449
- size?: ComponentSize;
450
- /** 是否为朴素按钮 */
451
- plain?: boolean;
452
- /** 是否为圆角按钮 */
453
- round?: boolean;
454
- /** 是否为圆形按钮 */
455
- circle?: boolean;
456
- /** 是否禁用 */
457
- disabled?: boolean;
458
- /** 是否加载中 */
459
- loading?: boolean;
460
- /** 原生 type 属性 */
461
- nativeType?: "button" | "submit" | "reset";
462
- }
463
- declare var __VLS_1$29: {};
464
- type __VLS_Slots$41 = {} & {
465
- default?: (props: typeof __VLS_1$29) => any;
466
- };
467
- declare const __VLS_base$41: _$vue.DefineComponent<Props$63, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
468
- click: (event: MouseEvent) => any;
469
- }, string, _$vue.PublicProps, Readonly<Props$63> & Readonly<{
470
- onClick?: ((event: MouseEvent) => any) | undefined;
471
- }>, {
472
- size: ComponentSize;
473
- disabled: boolean;
474
- variant: ComponentVariant;
475
- plain: boolean;
476
- round: boolean;
477
- circle: boolean;
478
- loading: boolean;
479
- nativeType: "button" | "submit" | "reset";
480
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
481
- declare const __VLS_export$63: __VLS_WithSlots$41<typeof __VLS_base$41, __VLS_Slots$41>;
482
- declare const _default$5: typeof __VLS_export$63;
483
- type __VLS_WithSlots$41<T, S> = T & {
484
- new (): {
485
- $slots: S;
486
- };
487
- };
488
- //#endregion
489
- //#region src/components/base/input/input.vue.d.ts
490
- interface Props$62 {
491
- modelValue?: string | number;
492
- placeholder?: string;
493
- disabled?: boolean;
494
- readonly?: boolean;
495
- clearable?: boolean;
496
- size?: ComponentSize;
497
- variant?: "default" | "bordered" | "filled" | "underlined";
498
- type?: "text" | "password" | "number" | "email" | "tel" | "url";
499
- prefixIcon?: object;
500
- suffixIcon?: object;
501
- maxlength?: number;
502
- showWordLimit?: boolean;
503
- autocomplete?: string;
504
- }
505
- declare var __VLS_1$28: {}, __VLS_8$4: {};
506
- type __VLS_Slots$40 = {} & {
507
- prefix?: (props: typeof __VLS_1$28) => any;
508
- } & {
509
- suffix?: (props: typeof __VLS_8$4) => any;
510
- };
511
- declare const __VLS_base$40: _$vue.DefineComponent<Props$62, {
512
- focus: () => void | undefined;
513
- blur: () => void | undefined;
514
- select: () => void | undefined;
515
- }, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
516
- "update:modelValue": (value: string | number) => any;
517
- change: (value: string | number) => any;
518
- input: (value: string | number) => any;
519
- focus: (event: FocusEvent) => any;
520
- blur: (event: FocusEvent) => any;
521
- clear: () => any;
522
- keydown: (event: KeyboardEvent) => any;
523
- }, string, _$vue.PublicProps, Readonly<Props$62> & Readonly<{
524
- "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
525
- onChange?: ((value: string | number) => any) | undefined;
526
- onInput?: ((value: string | number) => any) | undefined;
527
- onFocus?: ((event: FocusEvent) => any) | undefined;
528
- onBlur?: ((event: FocusEvent) => any) | undefined;
529
- onClear?: (() => any) | undefined;
530
- onKeydown?: ((event: KeyboardEvent) => any) | undefined;
531
- }>, {
532
- size: ComponentSize;
533
- type: "text" | "password" | "number" | "email" | "tel" | "url";
534
- modelValue: string | number;
535
- placeholder: string;
536
- disabled: boolean;
537
- readonly: boolean;
538
- variant: "default" | "bordered" | "filled" | "underlined";
539
- maxlength: number;
540
- showWordLimit: boolean;
541
- clearable: boolean;
542
- prefixIcon: object;
543
- suffixIcon: object;
544
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
545
- declare const __VLS_export$62: __VLS_WithSlots$40<typeof __VLS_base$40, __VLS_Slots$40>;
546
- declare const _default$25: typeof __VLS_export$62;
547
- type __VLS_WithSlots$40<T, S> = T & {
548
- new (): {
549
- $slots: S;
550
- };
551
- };
552
- //#endregion
553
- //#region src/components/base/textarea/textarea.vue.d.ts
554
- interface Props$61 {
555
- modelValue?: string;
556
- placeholder?: string;
557
- disabled?: boolean;
558
- readonly?: boolean;
559
- rows?: number;
560
- autosize?: boolean | {
561
- minRows?: number;
562
- maxRows?: number;
563
- };
564
- size?: ComponentSize;
565
- variant?: "default" | "bordered" | "filled" | "underlined";
566
- maxlength?: number;
567
- showWordLimit?: boolean;
568
- }
569
- declare const __VLS_export$61: _$vue.DefineComponent<Props$61, {
570
- focus: () => void | undefined;
571
- blur: () => void | undefined;
572
- }, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
573
- "update:modelValue": (value: string) => any;
574
- change: (value: string) => any;
575
- input: (value: string) => any;
576
- focus: (event: FocusEvent) => any;
577
- blur: (event: FocusEvent) => any;
578
- }, string, _$vue.PublicProps, Readonly<Props$61> & Readonly<{
579
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
580
- onChange?: ((value: string) => any) | undefined;
581
- onInput?: ((value: string) => any) | undefined;
582
- onFocus?: ((event: FocusEvent) => any) | undefined;
583
- onBlur?: ((event: FocusEvent) => any) | undefined;
584
- }>, {
585
- size: ComponentSize;
586
- modelValue: string;
587
- placeholder: string;
588
- disabled: boolean;
589
- readonly: boolean;
590
- rows: number;
591
- autosize: boolean | {
592
- minRows?: number;
593
- maxRows?: number;
594
- };
595
- variant: "default" | "bordered" | "filled" | "underlined";
596
- maxlength: number;
597
- showWordLimit: boolean;
598
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
599
- declare const _default$56: typeof __VLS_export$61;
600
- //#endregion
601
- //#region src/components/base/input-number/input-number.vue.d.ts
602
- interface Props$60 {
603
- modelValue?: number;
604
- min?: number;
605
- max?: number;
606
- step?: number;
607
- disabled?: boolean;
608
- size?: ComponentSize;
609
- precision?: number;
610
- prefix?: string;
611
- suffix?: string;
612
- }
613
- declare const __VLS_export$60: _$vue.DefineComponent<Props$60, {
614
- focus: () => void | undefined;
615
- blur: () => void | undefined;
616
- }, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
617
- "update:modelValue": (value: number) => any;
618
- change: (value: number, oldValue: number) => any;
619
- input: (value: string) => any;
620
- }, string, _$vue.PublicProps, Readonly<Props$60> & Readonly<{
621
- "onUpdate:modelValue"?: ((value: number) => any) | undefined;
622
- onChange?: ((value: number, oldValue: number) => any) | undefined;
623
- onInput?: ((value: string) => any) | undefined;
624
- }>, {
625
- size: ComponentSize;
626
- modelValue: number;
627
- disabled: boolean;
628
- min: number;
629
- max: number;
630
- step: number;
631
- precision: number;
632
- prefix: string;
633
- suffix: string;
634
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
635
- declare const _default$26: typeof __VLS_export$60;
636
- //#endregion
637
- //#region src/components/base/select/select.vue.d.ts
638
- interface SelectOption$2 {
639
- label: string;
640
- value: string | number;
641
- disabled?: boolean;
642
- }
643
- interface SelectGroup$1 {
644
- label: string;
645
- options: SelectOption$2[];
646
- }
647
- interface Props$59 {
648
- modelValue?: string | number | (string | number)[];
649
- placeholder?: string;
650
- disabled?: boolean;
651
- multiple?: boolean;
652
- size?: ComponentSize;
653
- variant?: "default" | "bordered" | "filled";
654
- label?: string;
655
- required?: boolean;
656
- error?: string;
657
- hint?: string;
658
- options?: (SelectOption$2 | SelectGroup$1)[];
659
- filterable?: boolean;
660
- remote?: boolean;
661
- remoteMethod?: (query: string) => void;
662
- clearable?: boolean;
663
- dropdownHeight?: number;
664
- }
665
- declare const __VLS_export$59: _$vue.DefineComponent<Props$59, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
666
- "update:modelValue": (value: string | number | (string | number)[]) => any;
667
- change: (value: string | number | (string | number)[]) => any;
668
- focus: (event: FocusEvent) => any;
669
- blur: (event: FocusEvent) => any;
670
- search: (query: string) => any;
671
- }, string, _$vue.PublicProps, Readonly<Props$59> & Readonly<{
672
- "onUpdate:modelValue"?: ((value: string | number | (string | number)[]) => any) | undefined;
673
- onChange?: ((value: string | number | (string | number)[]) => any) | undefined;
674
- onFocus?: ((event: FocusEvent) => any) | undefined;
675
- onBlur?: ((event: FocusEvent) => any) | undefined;
676
- onSearch?: ((query: string) => any) | undefined;
677
- }>, {
678
- size: ComponentSize;
679
- modelValue: string | number | (string | number)[];
680
- placeholder: string;
681
- disabled: boolean;
682
- variant: "default" | "bordered" | "filled";
683
- clearable: boolean;
684
- multiple: boolean;
685
- label: string;
686
- required: boolean;
687
- error: string;
688
- hint: string;
689
- options: (SelectOption$2 | SelectGroup$1)[];
690
- filterable: boolean;
691
- remote: boolean;
692
- remoteMethod: (query: string) => void;
693
- dropdownHeight: number;
694
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
695
- declare const _default$45: typeof __VLS_export$59;
696
- //#endregion
697
- //#region src/components/base/switch/switch.vue.d.ts
698
- interface Props$58 {
699
- modelValue?: boolean;
700
- disabled?: boolean;
701
- size?: ComponentSize;
702
- }
703
- declare const __VLS_export$58: _$vue.DefineComponent<Props$58, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
704
- "update:modelValue": (value: boolean) => any;
705
- change: (value: boolean) => any;
706
- }, string, _$vue.PublicProps, Readonly<Props$58> & Readonly<{
707
- "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
708
- onChange?: ((value: boolean) => any) | undefined;
709
- }>, {
710
- size: ComponentSize;
711
- modelValue: boolean;
712
- disabled: boolean;
713
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
714
- declare const _default$52: typeof __VLS_export$58;
715
- //#endregion
716
- //#region src/components/base/checkbox/checkbox.vue.d.ts
717
- interface Props$57 {
718
- modelValue?: boolean;
719
- label?: string;
720
- value?: string | number | boolean;
721
- disabled?: boolean;
722
- indeterminate?: boolean;
723
- }
724
- declare var __VLS_1$27: {};
725
- type __VLS_Slots$39 = {} & {
726
- default?: (props: typeof __VLS_1$27) => any;
727
- };
728
- declare const __VLS_base$39: _$vue.DefineComponent<Props$57, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
729
- "update:modelValue": (value: boolean) => any;
730
- change: (value: boolean) => any;
731
- }, string, _$vue.PublicProps, Readonly<Props$57> & Readonly<{
732
- "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
733
- onChange?: ((value: boolean) => any) | undefined;
734
- }>, {
735
- modelValue: boolean;
736
- disabled: boolean;
737
- label: string;
738
- value: string | number | boolean;
739
- indeterminate: boolean;
740
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
741
- declare const __VLS_export$57: __VLS_WithSlots$39<typeof __VLS_base$39, __VLS_Slots$39>;
742
- declare const _default$9: typeof __VLS_export$57;
743
- type __VLS_WithSlots$39<T, S> = T & {
744
- new (): {
745
- $slots: S;
746
- };
747
- };
748
- //#endregion
749
- //#region src/components/base/checkbox/checkbox-group.vue.d.ts
750
- interface CheckboxOption$1 {
751
- label: string;
752
- value: string | number | boolean;
753
- disabled?: boolean;
754
- }
755
- interface Props$56 {
756
- modelValue?: (string | number | boolean)[];
757
- options?: CheckboxOption$1[];
758
- disabled?: boolean;
759
- }
760
- declare var __VLS_8$3: {};
761
- type __VLS_Slots$38 = {} & {
762
- default?: (props: typeof __VLS_8$3) => any;
763
- };
764
- declare const __VLS_base$38: _$vue.DefineComponent<Props$56, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
765
- "update:modelValue": (value: (string | number | boolean)[]) => any;
766
- change: (value: (string | number | boolean)[]) => any;
767
- }, string, _$vue.PublicProps, Readonly<Props$56> & Readonly<{
768
- "onUpdate:modelValue"?: ((value: (string | number | boolean)[]) => any) | undefined;
769
- onChange?: ((value: (string | number | boolean)[]) => any) | undefined;
770
- }>, {
771
- modelValue: (string | number | boolean)[];
772
- disabled: boolean;
773
- options: CheckboxOption$1[];
774
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
775
- declare const __VLS_export$56: __VLS_WithSlots$38<typeof __VLS_base$38, __VLS_Slots$38>;
776
- declare const _default$10: typeof __VLS_export$56;
777
- type __VLS_WithSlots$38<T, S> = T & {
778
- new (): {
779
- $slots: S;
780
- };
781
- };
782
- //#endregion
783
- //#region src/components/base/radio/radio.vue.d.ts
784
- interface Props$55 {
785
- modelValue?: string | number | boolean;
786
- value?: string | number | boolean;
787
- label?: string;
788
- disabled?: boolean;
789
- name?: string;
790
- }
791
- declare var __VLS_1$26: {};
792
- type __VLS_Slots$37 = {} & {
793
- default?: (props: typeof __VLS_1$26) => any;
794
- };
795
- declare const __VLS_base$37: _$vue.DefineComponent<Props$55, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
796
- "update:modelValue": (value: string | number | boolean) => any;
797
- change: (value: string | number | boolean) => any;
798
- }, string, _$vue.PublicProps, Readonly<Props$55> & Readonly<{
799
- "onUpdate:modelValue"?: ((value: string | number | boolean) => any) | undefined;
800
- onChange?: ((value: string | number | boolean) => any) | undefined;
801
- }>, {
802
- modelValue: string | number | boolean;
803
- disabled: boolean;
804
- label: string;
805
- value: string | number | boolean;
806
- name: string;
807
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
808
- declare const __VLS_export$55: __VLS_WithSlots$37<typeof __VLS_base$37, __VLS_Slots$37>;
809
- declare const _default$40: typeof __VLS_export$55;
810
- type __VLS_WithSlots$37<T, S> = T & {
811
- new (): {
812
- $slots: S;
813
- };
814
- };
815
- //#endregion
816
- //#region src/components/base/radio/radio-group.vue.d.ts
817
- interface RadioOption$1 {
818
- label: string;
819
- value: string | number | boolean;
820
- disabled?: boolean;
821
- }
822
- interface Props$54 {
823
- modelValue?: string | number | boolean;
824
- options?: RadioOption$1[];
825
- disabled?: boolean;
826
- name?: string;
827
- }
828
- declare var __VLS_8$2: {};
829
- type __VLS_Slots$36 = {} & {
830
- default?: (props: typeof __VLS_8$2) => any;
831
- };
832
- declare const __VLS_base$36: _$vue.DefineComponent<Props$54, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
833
- "update:modelValue": (value: string | number | boolean) => any;
834
- change: (value: string | number | boolean) => any;
835
- }, string, _$vue.PublicProps, Readonly<Props$54> & Readonly<{
836
- "onUpdate:modelValue"?: ((value: string | number | boolean) => any) | undefined;
837
- onChange?: ((value: string | number | boolean) => any) | undefined;
838
- }>, {
839
- modelValue: string | number | boolean;
840
- disabled: boolean;
841
- options: RadioOption$1[];
842
- name: string;
843
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
844
- declare const __VLS_export$54: __VLS_WithSlots$36<typeof __VLS_base$36, __VLS_Slots$36>;
845
- declare const _default$41: typeof __VLS_export$54;
846
- type __VLS_WithSlots$36<T, S> = T & {
847
- new (): {
848
- $slots: S;
849
- };
850
- };
851
- //#endregion
852
- //#region src/components/base/tag/tag.vue.d.ts
853
- interface Props$53 {
854
- variant?: "default" | "primary" | "success" | "warning" | "error" | "info";
855
- size?: ComponentSize;
856
- plain?: boolean;
857
- round?: boolean;
858
- closable?: boolean;
859
- }
860
- declare var __VLS_1$25: {};
861
- type __VLS_Slots$35 = {} & {
862
- default?: (props: typeof __VLS_1$25) => any;
863
- };
864
- declare const __VLS_base$35: _$vue.DefineComponent<Props$53, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
865
- close: () => any;
866
- }, string, _$vue.PublicProps, Readonly<Props$53> & Readonly<{
867
- onClose?: (() => any) | undefined;
868
- }>, {
869
- size: ComponentSize;
870
- variant: "default" | "primary" | "success" | "warning" | "error" | "info";
871
- plain: boolean;
872
- round: boolean;
873
- closable: boolean;
874
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
875
- declare const __VLS_export$53: __VLS_WithSlots$35<typeof __VLS_base$35, __VLS_Slots$35>;
876
- declare const _default$55: typeof __VLS_export$53;
877
- type __VLS_WithSlots$35<T, S> = T & {
878
- new (): {
879
- $slots: S;
880
- };
881
- };
882
- //#endregion
883
- //#region src/components/base/avatar/avatar.vue.d.ts
884
- interface Props$52 {
885
- src?: string;
886
- alt?: string;
887
- text?: string;
888
- size?: ComponentSize;
889
- shape?: "circle" | "square";
890
- color?: string;
891
- }
892
- declare var __VLS_1$24: {};
893
- type __VLS_Slots$34 = {} & {
894
- default?: (props: typeof __VLS_1$24) => any;
895
- };
896
- declare const __VLS_base$34: _$vue.DefineComponent<Props$52, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<Props$52> & Readonly<{}>, {
897
- size: ComponentSize;
898
- text: string;
899
- src: string;
900
- alt: string;
901
- shape: "circle" | "square";
902
- color: string;
903
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
904
- declare const __VLS_export$52: __VLS_WithSlots$34<typeof __VLS_base$34, __VLS_Slots$34>;
905
- declare const _default$2: typeof __VLS_export$52;
906
- type __VLS_WithSlots$34<T, S> = T & {
907
- new (): {
908
- $slots: S;
909
- };
910
- };
911
- //#endregion
912
- //#region src/components/base/badge/badge.vue.d.ts
913
- interface Props$51 {
914
- value?: number | string;
915
- max?: number;
916
- dot?: boolean;
917
- show?: boolean;
918
- variant?: ComponentVariant;
919
- offset?: [number, number];
920
- standalone?: boolean;
921
- }
922
- declare var __VLS_1$23: {};
923
- type __VLS_Slots$33 = {} & {
924
- default?: (props: typeof __VLS_1$23) => any;
925
- };
926
- declare const __VLS_base$33: _$vue.DefineComponent<Props$51, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<Props$51> & Readonly<{}>, {
927
- variant: ComponentVariant;
928
- max: number;
929
- value: number | string;
930
- dot: boolean;
931
- show: boolean;
932
- offset: [number, number];
933
- standalone: boolean;
934
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
935
- declare const __VLS_export$51: __VLS_WithSlots$33<typeof __VLS_base$33, __VLS_Slots$33>;
936
- declare const _default$3: typeof __VLS_export$51;
937
- type __VLS_WithSlots$33<T, S> = T & {
938
- new (): {
939
- $slots: S;
940
- };
941
- };
942
- //#endregion
943
- //#region src/components/base/rate/rate.vue.d.ts
944
- interface Props$50 {
945
- modelValue?: number;
946
- count?: number;
947
- disabled?: boolean;
948
- allowHalf?: boolean;
949
- showText?: boolean;
950
- texts?: string[];
951
- size?: "xs" | "sm" | "md" | "lg";
952
- }
953
- declare const __VLS_export$50: _$vue.DefineComponent<Props$50, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
954
- "update:modelValue": (value: number) => any;
955
- change: (value: number) => any;
956
- }, string, _$vue.PublicProps, Readonly<Props$50> & Readonly<{
957
- "onUpdate:modelValue"?: ((value: number) => any) | undefined;
958
- onChange?: ((value: number) => any) | undefined;
959
- }>, {
960
- size: "xs" | "sm" | "md" | "lg";
961
- modelValue: number;
962
- disabled: boolean;
963
- count: number;
964
- allowHalf: boolean;
965
- showText: boolean;
966
- texts: string[];
967
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
968
- declare const _default$42: typeof __VLS_export$50;
969
- //#endregion
970
- //#region src/components/base/slider/slider.vue.d.ts
971
- interface Props$49 {
972
- modelValue?: number;
973
- min?: number;
974
- max?: number;
975
- step?: number;
976
- disabled?: boolean;
977
- showTooltip?: boolean;
978
- size?: "xs" | "sm" | "md" | "lg";
979
- }
980
- declare const __VLS_export$49: _$vue.DefineComponent<Props$49, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
981
- "update:modelValue": (value: number) => any;
982
- change: (value: number) => any;
983
- }, string, _$vue.PublicProps, Readonly<Props$49> & Readonly<{
984
- "onUpdate:modelValue"?: ((value: number) => any) | undefined;
985
- onChange?: ((value: number) => any) | undefined;
986
- }>, {
987
- size: "xs" | "sm" | "md" | "lg";
988
- modelValue: number;
989
- disabled: boolean;
990
- min: number;
991
- max: number;
992
- step: number;
993
- showTooltip: boolean;
994
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
995
- declare const _default$47: typeof __VLS_export$49;
996
- //#endregion
997
- //#region src/components/base/date-picker/date-picker.vue.d.ts
998
- interface Props$48 {
999
- modelValue?: string;
1000
- placeholder?: string;
1001
- disabled?: boolean;
1002
- type?: "date" | "month" | "year";
1003
- }
1004
- declare const __VLS_export$48: _$vue.DefineComponent<Props$48, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
1005
- "update:modelValue": (value: string) => any;
1006
- change: (value: string) => any;
1007
- }, string, _$vue.PublicProps, Readonly<Props$48> & Readonly<{
1008
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
1009
- onChange?: ((value: string) => any) | undefined;
1010
- }>, {
1011
- type: "date" | "month" | "year";
1012
- modelValue: string;
1013
- placeholder: string;
1014
- disabled: boolean;
1015
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
1016
- declare const _default$15: typeof __VLS_export$48;
1017
- //#endregion
1018
- //#region src/components/base/date-picker/date-range-picker.vue.d.ts
1019
- interface Props$47 {
1020
- modelValue?: [string, string];
1021
- placeholder?: string;
1022
- disabled?: boolean;
1023
- }
1024
- declare const __VLS_export$47: _$vue.DefineComponent<Props$47, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
1025
- "update:modelValue": (value: [string, string]) => any;
1026
- change: (value: [string, string]) => any;
1027
- }, string, _$vue.PublicProps, Readonly<Props$47> & Readonly<{
1028
- "onUpdate:modelValue"?: ((value: [string, string]) => any) | undefined;
1029
- onChange?: ((value: [string, string]) => any) | undefined;
1030
- }>, {
1031
- modelValue: [string, string];
1032
- placeholder: string;
1033
- disabled: boolean;
1034
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
1035
- declare const _default$16: typeof __VLS_export$47;
1036
- //#endregion
1037
- //#region src/components/base/time-picker/time-picker.vue.d.ts
1038
- interface Props$46 {
1039
- modelValue?: string;
1040
- placeholder?: string;
1041
- disabled?: boolean;
1042
- showSeconds?: boolean;
1043
- format?: string;
1044
- }
1045
- declare const __VLS_export$46: _$vue.DefineComponent<Props$46, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
1046
- "update:modelValue": (value: string) => any;
1047
- change: (value: string) => any;
1048
- }, string, _$vue.PublicProps, Readonly<Props$46> & Readonly<{
1049
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
1050
- onChange?: ((value: string) => any) | undefined;
1051
- }>, {
1052
- modelValue: string;
1053
- placeholder: string;
1054
- disabled: boolean;
1055
- showSeconds: boolean;
1056
- format: string;
1057
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
1058
- declare const _default$57: typeof __VLS_export$46;
1059
- //#endregion
1060
- //#region src/components/base/cascader/cascader.vue.d.ts
1061
- interface CascaderOption$1 {
1062
- label: string;
1063
- value: string;
1064
- children?: CascaderOption$1[];
1065
- disabled?: boolean;
1066
- }
1067
- interface Props$45 {
1068
- modelValue?: string[] | string[][];
1069
- options?: CascaderOption$1[];
1070
- placeholder?: string;
1071
- disabled?: boolean;
1072
- filterable?: boolean;
1073
- multiple?: boolean;
1074
- }
1075
- declare const __VLS_export$45: _$vue.DefineComponent<Props$45, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
1076
- "update:modelValue": (value: string[] | string[][]) => any;
1077
- change: (value: string[] | string[][]) => any;
1078
- }, string, _$vue.PublicProps, Readonly<Props$45> & Readonly<{
1079
- "onUpdate:modelValue"?: ((value: string[] | string[][]) => any) | undefined;
1080
- onChange?: ((value: string[] | string[][]) => any) | undefined;
1081
- }>, {
1082
- modelValue: string[] | string[][];
1083
- placeholder: string;
1084
- disabled: boolean;
1085
- multiple: boolean;
1086
- options: CascaderOption$1[];
1087
- filterable: boolean;
1088
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
1089
- declare const _default$8: typeof __VLS_export$45;
1090
- //#endregion
1091
- //#region src/components/base/auto-complete/auto-complete.vue.d.ts
1092
- interface Option {
1093
- label: string;
1094
- value: string;
1095
- }
1096
- interface Props$44 {
1097
- modelValue?: string;
1098
- options?: Option[];
1099
- placeholder?: string;
1100
- disabled?: boolean;
1101
- }
1102
- declare const __VLS_export$44: _$vue.DefineComponent<Props$44, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
1103
- "update:modelValue": (value: string) => any;
1104
- select: (option: Option) => any;
1105
- }, string, _$vue.PublicProps, Readonly<Props$44> & Readonly<{
1106
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
1107
- onSelect?: ((option: Option) => any) | undefined;
1108
- }>, {
1109
- modelValue: string;
1110
- placeholder: string;
1111
- disabled: boolean;
1112
- options: Option[];
1113
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
1114
- declare const _default$1: typeof __VLS_export$44;
1115
- //#endregion
1116
- //#region src/components/base/transfer/transfer.vue.d.ts
1117
- interface TransferOption {
1118
- label: string;
1119
- value: string | number;
1120
- disabled?: boolean;
1121
- }
1122
- interface Props$43 {
1123
- modelValue?: (string | number)[];
1124
- data?: TransferOption[];
1125
- titles?: [string, string];
1126
- height?: string | number;
1127
- }
1128
- declare const __VLS_export$43: _$vue.DefineComponent<Props$43, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
1129
- "update:modelValue": (value: (string | number)[]) => any;
1130
- change: (value: (string | number)[]) => any;
1131
- }, string, _$vue.PublicProps, Readonly<Props$43> & Readonly<{
1132
- "onUpdate:modelValue"?: ((value: (string | number)[]) => any) | undefined;
1133
- onChange?: ((value: (string | number)[]) => any) | undefined;
1134
- }>, {
1135
- modelValue: (string | number)[];
1136
- data: TransferOption[];
1137
- titles: [string, string];
1138
- height: string | number;
1139
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
1140
- declare const _default$60: typeof __VLS_export$43;
1141
- //#endregion
1142
- //#region src/components/base/upload/upload.vue.d.ts
1143
- interface UploadFile$1 {
1144
- uid: string;
1145
- name: string;
1146
- size: number;
1147
- status: "uploading" | "success" | "error";
1148
- raw?: File;
1149
- url?: string;
1150
- }
1151
- interface Props$42 {
1152
- fileList?: UploadFile$1[];
1153
- multiple?: boolean;
1154
- accept?: string;
1155
- disabled?: boolean;
1156
- maxSize?: number;
1157
- maxCount?: number;
1158
- tip?: string;
1159
- action?: string;
1160
- }
1161
- declare var __VLS_6$2: {};
1162
- type __VLS_Slots$32 = {} & {
1163
- default?: (props: typeof __VLS_6$2) => any;
1164
- };
1165
- declare const __VLS_base$32: _$vue.DefineComponent<Props$42, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
1166
- remove: (file: UploadFile$1, fileList: UploadFile$1[]) => any;
1167
- change: (file: UploadFile$1, fileList: UploadFile$1[]) => any;
1168
- "update:fileList": (value: UploadFile$1[]) => any;
1169
- exceed: (file: File) => any;
1170
- }, string, _$vue.PublicProps, Readonly<Props$42> & Readonly<{
1171
- onRemove?: ((file: UploadFile$1, fileList: UploadFile$1[]) => any) | undefined;
1172
- onChange?: ((file: UploadFile$1, fileList: UploadFile$1[]) => any) | undefined;
1173
- "onUpdate:fileList"?: ((value: UploadFile$1[]) => any) | undefined;
1174
- onExceed?: ((file: File) => any) | undefined;
1175
- }>, {
1176
- disabled: boolean;
1177
- multiple: boolean;
1178
- fileList: UploadFile$1[];
1179
- accept: string;
1180
- maxSize: number;
1181
- maxCount: number;
1182
- tip: string;
1183
- action: string;
1184
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
1185
- declare const __VLS_export$42: __VLS_WithSlots$32<typeof __VLS_base$32, __VLS_Slots$32>;
1186
- declare const _default$63: typeof __VLS_export$42;
1187
- type __VLS_WithSlots$32<T, S> = T & {
1188
- new (): {
1189
- $slots: S;
1190
- };
1191
- };
1192
- //#endregion
1193
- //#region src/components/base/login/login.vue.d.ts
1194
- interface LoginFormData$2 {
1195
- username: string;
1196
- password: string;
1197
- phone: string;
1198
- code: string;
1199
- captchaCode: string;
1200
- remember: boolean;
1201
- }
1202
- interface Feature {
1203
- icon: string;
1204
- text: string;
1205
- }
1206
- interface SocialOption$1 {
1207
- key: string;
1208
- label: string;
1209
- icon: string;
1210
- }
1211
- interface TabOption$1 {
1212
- key: string;
1213
- label: string;
1214
- }
1215
- interface Props$41 {
1216
- title?: string;
1217
- subtitle?: string;
1218
- formTitle?: string;
1219
- usernamePlaceholder?: string;
1220
- passwordPlaceholder?: string;
1221
- phonePlaceholder?: string;
1222
- codePlaceholder?: string;
1223
- sendCodeText?: string;
1224
- rememberText?: string;
1225
- forgotText?: string;
1226
- submitText?: string;
1227
- loadingText?: string;
1228
- socialText?: string;
1229
- footerText?: string;
1230
- features?: Feature[];
1231
- socials?: SocialOption$1[];
1232
- tabs?: TabOption$1[];
1233
- loading?: boolean;
1234
- error?: string;
1235
- showTabs?: boolean;
1236
- showSocial?: boolean;
1237
- showCaptcha?: boolean;
1238
- captchaPlaceholder?: string;
1239
- /** 是否显示选项行(记住我 + 忘记密码) */
1240
- showOptions?: boolean;
1241
- /** 是否显示"记住我" */
1242
- showRemember?: boolean;
1243
- /** 是否显示"忘记密码" */
1244
- showForgot?: boolean;
1245
- /** 是否显示账号登录 */
1246
- showAccountLogin?: boolean;
1247
- /** 是否显示手机登录 */
1248
- showPhoneLogin?: boolean;
1249
- /** 后端提供的验证码图片地址 */
1250
- captchaSrc?: string;
1251
- /** 后端提供的验证码答案 */
1252
- captchaCode?: string;
1253
- /** 验证码模式:客户端生成并校验,或后端提供图片由后端校验 */
1254
- captchaMode?: "client" | "server";
1255
- }
1256
- declare var __VLS_1$22: {}, __VLS_17: {};
1257
- type __VLS_Slots$31 = {} & {
1258
- logo?: (props: typeof __VLS_1$22) => any;
1259
- } & {
1260
- footer?: (props: typeof __VLS_17) => any;
1261
- };
1262
- declare const __VLS_base$31: _$vue.DefineComponent<Props$41, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
1263
- submit: (data: LoginFormData$2) => any;
1264
- "send-code": (phone: string) => any;
1265
- "forgot-password": () => any;
1266
- "social-login": (provider: string) => any;
1267
- "tab-change": (tab: string) => any;
1268
- }, string, _$vue.PublicProps, Readonly<Props$41> & Readonly<{
1269
- onSubmit?: ((data: LoginFormData$2) => any) | undefined;
1270
- "onSend-code"?: ((phone: string) => any) | undefined;
1271
- "onForgot-password"?: (() => any) | undefined;
1272
- "onSocial-login"?: ((provider: string) => any) | undefined;
1273
- "onTab-change"?: ((tab: string) => any) | undefined;
1274
- }>, {
1275
- loading: boolean;
1276
- error: string;
1277
- title: string;
1278
- subtitle: string;
1279
- formTitle: string;
1280
- usernamePlaceholder: string;
1281
- passwordPlaceholder: string;
1282
- phonePlaceholder: string;
1283
- codePlaceholder: string;
1284
- sendCodeText: string;
1285
- rememberText: string;
1286
- forgotText: string;
1287
- submitText: string;
1288
- loadingText: string;
1289
- socialText: string;
1290
- footerText: string;
1291
- features: Feature[];
1292
- socials: SocialOption$1[];
1293
- tabs: TabOption$1[];
1294
- showTabs: boolean;
1295
- showSocial: boolean;
1296
- showCaptcha: boolean;
1297
- captchaPlaceholder: string;
1298
- showOptions: boolean;
1299
- showRemember: boolean;
1300
- showForgot: boolean;
1301
- showAccountLogin: boolean;
1302
- showPhoneLogin: boolean;
1303
- captchaSrc: string;
1304
- captchaCode: string;
1305
- captchaMode: "client" | "server";
1306
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
1307
- declare const __VLS_export$41: __VLS_WithSlots$31<typeof __VLS_base$31, __VLS_Slots$31>;
1308
- declare const _default$32: typeof __VLS_export$41;
1309
- type __VLS_WithSlots$31<T, S> = T & {
1310
- new (): {
1311
- $slots: S;
1312
- };
1313
- };
1314
- //#endregion
1315
- //#region src/components/base/login/login-centered.vue.d.ts
1316
- interface SocialOption {
1317
- key: string;
1318
- label: string;
1319
- icon: any;
1320
- }
1321
- interface TabOption {
1322
- key: string;
1323
- label: string;
1324
- }
1325
- interface LoginFormData$1 {
1326
- username: string;
1327
- password: string;
1328
- phone: string;
1329
- code: string;
1330
- captchaCode: string;
1331
- remember: boolean;
1332
- }
1333
- interface Props$40 {
1334
- title?: string;
1335
- subtitle?: string;
1336
- usernameLabel?: string;
1337
- passwordLabel?: string;
1338
- phoneLabel?: string;
1339
- codeLabel?: string;
1340
- captchaLabel?: string;
1341
- usernamePlaceholder?: string;
1342
- passwordPlaceholder?: string;
1343
- phonePlaceholder?: string;
1344
- codePlaceholder?: string;
1345
- captchaPlaceholder?: string;
1346
- sendCodeText?: string;
1347
- rememberText?: string;
1348
- forgotText?: string;
1349
- submitText?: string;
1350
- loadingText?: string;
1351
- socialText?: string;
1352
- footerText?: string;
1353
- socials?: SocialOption[];
1354
- tabs?: TabOption[];
1355
- loading?: boolean;
1356
- error?: string;
1357
- showTabs?: boolean;
1358
- showSocial?: boolean;
1359
- showCaptcha?: boolean;
1360
- theme?: "default" | "gradient" | "minimal";
1361
- }
1362
- declare var __VLS_1$21: {}, __VLS_15$2: {};
1363
- type __VLS_Slots$30 = {} & {
1364
- logo?: (props: typeof __VLS_1$21) => any;
1365
- } & {
1366
- footer?: (props: typeof __VLS_15$2) => any;
1367
- };
1368
- declare const __VLS_base$30: _$vue.DefineComponent<Props$40, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
1369
- submit: (data: LoginFormData$1) => any;
1370
- "send-code": (phone: string) => any;
1371
- "forgot-password": () => any;
1372
- "social-login": (provider: string) => any;
1373
- }, string, _$vue.PublicProps, Readonly<Props$40> & Readonly<{
1374
- onSubmit?: ((data: LoginFormData$1) => any) | undefined;
1375
- "onSend-code"?: ((phone: string) => any) | undefined;
1376
- "onForgot-password"?: (() => any) | undefined;
1377
- "onSocial-login"?: ((provider: string) => any) | undefined;
1378
- }>, {
1379
- theme: "default" | "gradient" | "minimal";
1380
- loading: boolean;
1381
- error: string;
1382
- title: string;
1383
- subtitle: string;
1384
- usernamePlaceholder: string;
1385
- passwordPlaceholder: string;
1386
- phonePlaceholder: string;
1387
- codePlaceholder: string;
1388
- sendCodeText: string;
1389
- rememberText: string;
1390
- forgotText: string;
1391
- submitText: string;
1392
- loadingText: string;
1393
- socialText: string;
1394
- footerText: string;
1395
- socials: SocialOption[];
1396
- tabs: TabOption[];
1397
- showTabs: boolean;
1398
- showSocial: boolean;
1399
- showCaptcha: boolean;
1400
- captchaPlaceholder: string;
1401
- usernameLabel: string;
1402
- passwordLabel: string;
1403
- phoneLabel: string;
1404
- codeLabel: string;
1405
- captchaLabel: string;
1406
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
1407
- declare const __VLS_export$40: __VLS_WithSlots$30<typeof __VLS_base$30, __VLS_Slots$30>;
1408
- declare const _default$33: typeof __VLS_export$40;
1409
- type __VLS_WithSlots$30<T, S> = T & {
1410
- new (): {
1411
- $slots: S;
1412
- };
1413
- };
1414
- //#endregion
1415
- //#region src/components/base/captcha/captcha.vue.d.ts
1416
- interface Props$39 {
1417
- /** 验证码长度(客户端生成时有效) */
1418
- length?: number;
1419
- /** 宽度 */
1420
- width?: number;
1421
- /** 高度 */
1422
- height?: number;
1423
- /** 字体大小(客户端生成时有效) */
1424
- fontSize?: number;
1425
- /** 背景颜色(客户端生成时有效) */
1426
- bgColor?: string;
1427
- /** 后端提供的验证码图片地址 */
1428
- src?: string;
1429
- /** 后端提供的验证码答案(用于校验) */
1430
- code?: string;
1431
- /** 验证码模式:客户端生成并校验,或后端提供图片由后端校验 */
1432
- mode?: "client" | "server";
1433
- }
1434
- declare function refresh(): void;
1435
- declare const __VLS_export$39: _$vue.DefineComponent<Props$39, {
1436
- code: _$vue.Ref<string, string>;
1437
- refresh: typeof refresh;
1438
- }, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
1439
- change: (code: string) => any;
1440
- }, string, _$vue.PublicProps, Readonly<Props$39> & Readonly<{
1441
- onChange?: ((code: string) => any) | undefined;
1442
- }>, {
1443
- length: number;
1444
- mode: "client" | "server";
1445
- src: string;
1446
- height: number;
1447
- width: number;
1448
- fontSize: number;
1449
- bgColor: string;
1450
- code: string;
1451
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
1452
- declare const _default$6: typeof __VLS_export$39;
1453
- //#endregion
1454
- //#region src/components/base/pin-input/pin-input.vue.d.ts
1455
- interface Props$38 {
1456
- modelValue?: string;
1457
- length?: number;
1458
- disabled?: boolean;
1459
- error?: boolean;
1460
- errorMessage?: string;
1461
- mask?: boolean;
1462
- }
1463
- declare const __VLS_export$38: _$vue.DefineComponent<Props$38, {
1464
- focus: (index?: number) => void;
1465
- clear: () => void;
1466
- }, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
1467
- "update:modelValue": (value: string) => any;
1468
- complete: (value: string) => any;
1469
- }, string, _$vue.PublicProps, Readonly<Props$38> & Readonly<{
1470
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
1471
- onComplete?: ((value: string) => any) | undefined;
1472
- }>, {
1473
- length: number;
1474
- modelValue: string;
1475
- disabled: boolean;
1476
- error: boolean;
1477
- errorMessage: string;
1478
- mask: boolean;
1479
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
1480
- declare const _default$37: typeof __VLS_export$38;
1481
- //#endregion
1482
- //#region src/components/base/tree-select/tree-select.vue.d.ts
1483
- interface TreeNodeType$1 {
1484
- key: string;
1485
- title: string;
1486
- children?: TreeNodeType$1[];
1487
- disabled?: boolean;
1488
- isLeaf?: boolean;
1489
- }
1490
- interface Props$37 {
1491
- modelValue?: string | number | string[] | number[];
1492
- placeholder?: string;
1493
- disabled?: boolean;
1494
- multiple?: boolean;
1495
- size?: ComponentSize;
1496
- variant?: "default" | "bordered" | "filled";
1497
- label?: string;
1498
- required?: boolean;
1499
- error?: string;
1500
- hint?: string;
1501
- treeData: TreeNodeType$1[];
1502
- defaultExpandedKeys?: string[];
1503
- defaultCheckedKeys?: string[];
1504
- checkable?: boolean;
1505
- filterable?: boolean;
1506
- clearable?: boolean;
1507
- dropdownHeight?: number;
1508
- /** Enable virtual scroll for large trees */
1509
- virtualScroll?: boolean;
1510
- rowHeight?: number;
1511
- overscan?: number;
1512
- }
1513
- declare const __VLS_export$37: _$vue.DefineComponent<Props$37, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
1514
- "update:modelValue": (value: string | number | string[] | number[]) => any;
1515
- change: (value: string | number | string[] | number[]) => any;
1516
- focus: (event: FocusEvent) => any;
1517
- blur: (event: FocusEvent) => any;
1518
- check: (checkedKeys: string[]) => any;
1519
- }, string, _$vue.PublicProps, Readonly<Props$37> & Readonly<{
1520
- "onUpdate:modelValue"?: ((value: string | number | string[] | number[]) => any) | undefined;
1521
- onChange?: ((value: string | number | string[] | number[]) => any) | undefined;
1522
- onFocus?: ((event: FocusEvent) => any) | undefined;
1523
- onBlur?: ((event: FocusEvent) => any) | undefined;
1524
- onCheck?: ((checkedKeys: string[]) => any) | undefined;
1525
- }>, {
1526
- size: ComponentSize;
1527
- modelValue: string | number | string[] | number[];
1528
- placeholder: string;
1529
- disabled: boolean;
1530
- variant: "default" | "bordered" | "filled";
1531
- clearable: boolean;
1532
- multiple: boolean;
1533
- label: string;
1534
- required: boolean;
1535
- error: string;
1536
- hint: string;
1537
- filterable: boolean;
1538
- dropdownHeight: number;
1539
- treeData: TreeNodeType$1[];
1540
- defaultExpandedKeys: string[];
1541
- defaultCheckedKeys: string[];
1542
- checkable: boolean;
1543
- virtualScroll: boolean;
1544
- rowHeight: number;
1545
- overscan: number;
1546
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
1547
- declare const _default$62: typeof __VLS_export$37;
1548
- //#endregion
1549
- //#region src/components/base/color-picker/color-picker.vue.d.ts
1550
- interface Props$36 {
1551
- modelValue?: string;
1552
- placeholder?: string;
1553
- disabled?: boolean;
1554
- size?: ComponentSize;
1555
- variant?: "default" | "bordered" | "filled";
1556
- label?: string;
1557
- required?: boolean;
1558
- error?: string;
1559
- hint?: string;
1560
- showAlpha?: boolean;
1561
- showPreset?: boolean;
1562
- showPreview?: boolean;
1563
- editable?: boolean;
1564
- clearable?: boolean;
1565
- presetColors?: string[];
1566
- }
1567
- declare const __VLS_export$36: _$vue.DefineComponent<Props$36, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
1568
- "update:modelValue": (value: string) => any;
1569
- change: (value: string) => any;
1570
- focus: (event: FocusEvent) => any;
1571
- blur: (event: FocusEvent) => any;
1572
- }, string, _$vue.PublicProps, Readonly<Props$36> & Readonly<{
1573
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
1574
- onChange?: ((value: string) => any) | undefined;
1575
- onFocus?: ((event: FocusEvent) => any) | undefined;
1576
- onBlur?: ((event: FocusEvent) => any) | undefined;
1577
- }>, {
1578
- size: ComponentSize;
1579
- modelValue: string;
1580
- editable: boolean;
1581
- placeholder: string;
1582
- disabled: boolean;
1583
- variant: "default" | "bordered" | "filled";
1584
- clearable: boolean;
1585
- label: string;
1586
- required: boolean;
1587
- error: string;
1588
- hint: string;
1589
- showAlpha: boolean;
1590
- showPreset: boolean;
1591
- showPreview: boolean;
1592
- presetColors: string[];
1593
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
1594
- declare const _default$12: typeof __VLS_export$36;
1595
- //#endregion
1596
- //#region src/components/form/types.d.ts
1597
- /**
1598
- * 表单校验规则类型
1599
- */
1600
- interface FormRule {
1601
- required?: boolean;
1602
- type?: string;
1603
- min?: number;
1604
- max?: number;
1605
- pattern?: RegExp;
1606
- message?: string;
1607
- trigger?: string | string[];
1608
- validator?: (rule: FormRule, value: unknown, callback: (error?: string) => void) => void;
1609
- }
1610
- type FormRules = Record<string, FormRule | FormRule[]>;
1611
- /**
1612
- * 校验错误信息
1613
- */
1614
- interface ValidateError {
1615
- message: string;
1616
- field: string;
1617
- }
1618
- /**
1619
- * 校验结果
1620
- */
1621
- interface ValidateResult {
1622
- valid: boolean;
1623
- errors: ValidateError[];
1624
- }
1625
- /**
1626
- * 表单实例接口
1627
- */
1628
- interface FormInstance$1 {
1629
- validate: () => Promise<ValidateResult>;
1630
- resetFields: () => void;
1631
- clearValidate: (fields?: string[]) => void;
1632
- }
1633
- /**
1634
- * 表单项实例接口
1635
- */
1636
- interface FormItemInstance {
1637
- validate: (value: unknown) => Promise<ValidateError | null>;
1638
- resetField: () => void;
1639
- clearValidate: () => void;
1640
- prop: string;
1641
- modelValue: unknown;
1642
- }
1643
- /**
1644
- * 支持的表单项组件类型
1645
- */
1646
- type FieldComponent = "Input" | "InputNumber" | "Textarea" | "Select" | "RadioGroup" | "CheckboxGroup" | "Switch" | "DatePicker" | "DateRangePicker" | "TimePicker" | "Cascader" | "AutoComplete" | "Rate" | "Slider";
1647
- /**
1648
- * 基础字段接口 - 所有字段schema的公共部分
1649
- */
1650
- interface BaseFieldSchema {
1651
- /** 字段名 */
1652
- name: string;
1653
- /** 标签文本 */
1654
- label?: string;
1655
- /** 默认值 */
1656
- defaultValue?: unknown;
1657
- /** 字段校验规则 */
1658
- rules?: FormRule[];
1659
- /** 提示文本 */
1660
- placeholder?: string;
1661
- /** 组件类型 */
1662
- component?: FieldComponent;
1663
- /** 传递给组件的props */
1664
- componentProps?: Record<string, unknown>;
1665
- /** 栅格配置 (ColProps) */
1666
- colProps?: {
1667
- span?: number;
1668
- offset?: number;
1669
- xs?: number;
1670
- sm?: number;
1671
- md?: number;
1672
- lg?: number;
1673
- xl?: number;
1674
- };
1675
- /** 条件显示 */
1676
- if?: string | ((values: Record<string, unknown>) => boolean);
1677
- /** 依赖字段 (用于条件显示) */
1678
- dependencies?: string[];
1679
- /** 是否禁用 */
1680
- disabled?: boolean;
1681
- /** 是否隐藏 (保留值但不渲染) */
1682
- hidden?: boolean;
1683
- }
1684
- /**
1685
- * 选择类组件选项
1686
- */
1687
- interface SelectOption$1 {
1688
- label: string;
1689
- value: string | number;
1690
- disabled?: boolean;
1691
- }
1692
- /**
1693
- * RadioGroup选项
1694
- */
1695
- interface RadioOption {
1696
- label: string;
1697
- value: string | number;
1698
- disabled?: boolean;
1699
- }
1700
- /**
1701
- * CheckboxGroup选项
1702
- */
1703
- interface CheckboxOption {
1704
- label: string;
1705
- value: string | number;
1706
- disabled?: boolean;
1707
- }
1708
- /**
1709
- * 基础字段schema
1710
- */
1711
- interface FieldSchema extends BaseFieldSchema {
1712
- /** 下拉选项 (Select/Radio/Checkbox用) */
1713
- options?: SelectOption$1[] | RadioOption[] | CheckboxOption[];
1714
- }
1715
- /**
1716
- * 分组schema - 用于渲染字段组/fieldset
1717
- */
1718
- interface GroupSchema {
1719
- /** 分组类型标识 */
1720
- type: "group";
1721
- /** 分组标题 */
1722
- title?: string;
1723
- /** 分组描述 */
1724
- description?: string;
1725
- /** 是否可折叠 */
1726
- collapsible?: boolean;
1727
- /** 默认折叠状态 */
1728
- defaultCollapsed?: boolean;
1729
- /** 组内字段 */
1730
- children: FormSchema[];
1731
- }
1732
- /**
1733
- * 行容器schema - 用于在一行内渲染多个字段
1734
- */
1735
- interface RowSchema {
1736
- /** 行类型标识 */
1737
- type: "row";
1738
- /** 行内 gutter */
1739
- gutter?: number;
1740
- /** 行内字段 */
1741
- children: FormSchema[];
1742
- }
1743
- /**
1744
- * 自定义slot schema
1745
- */
1746
- interface SlotSchema {
1747
- /** slot类型标识 */
1748
- type: "slot";
1749
- /** slot名称 */
1750
- name: string;
1751
- }
1752
- /**
1753
- * Schema表单可用的schema类型
1754
- */
1755
- type FormSchema = FieldSchema | GroupSchema | RowSchema | SlotSchema;
1756
- /**
1757
- * 表单操作类型 - 暴露给外部的控制方法
1758
- */
1759
- interface FormActionType {
1760
- /** 获取表单值 */
1761
- getValues: () => Record<string, unknown>;
1762
- /** 设置单个字段值 */
1763
- setFieldValue: (name: string, value: unknown) => void;
1764
- /** 重置表单 */
1765
- resetFields: () => void;
1766
- /** 验证表单 */
1767
- validate: () => Promise<ValidateResult>;
1768
- /** 滚动到指定字段 */
1769
- scrollToField: (name: string) => void;
1770
- /** 提交表单 */
1771
- submit: () => Promise<Record<string, unknown>>;
1772
- }
1773
- /**
1774
- * useFormSchema 返回类型
1775
- */
1776
- interface UseFormSchemaReturn {
1777
- /** 当前表单值 */
1778
- modelValue: Record<string, unknown>;
1779
- /** 解析后的schema (已处理条件逻辑) */
1780
- schema: FormSchema[];
1781
- /** 表单操作方法 */
1782
- actions: FormActionType;
1783
- }
1784
- //#endregion
1785
- //#region src/components/form/form/form.vue.d.ts
1786
- interface Props$35 {
1787
- modelValue?: Record<string, unknown>;
1788
- rules?: FormRules;
1789
- layout?: "horizontal" | "vertical" | "inline";
1790
- labelWidth?: string;
1791
- labelPosition?: "left" | "right" | "top";
1792
- disabled?: boolean;
1793
- }
1794
- declare var __VLS_1$20: {};
1795
- type __VLS_Slots$29 = {} & {
1796
- default?: (props: typeof __VLS_1$20) => any;
1797
- };
1798
- declare const __VLS_base$29: _$vue.DefineComponent<Props$35, FormInstance, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
1799
- submit: (values: Record<string, unknown>) => any;
1800
- validate: (result: {
1801
- valid: boolean;
1802
- errors: unknown[];
1803
- }) => any;
1804
- }, string, _$vue.PublicProps, Readonly<Props$35> & Readonly<{
1805
- onSubmit?: ((values: Record<string, unknown>) => any) | undefined;
1806
- onValidate?: ((result: {
1807
- valid: boolean;
1808
- errors: unknown[];
1809
- }) => any) | undefined;
1810
- }>, {
1811
- modelValue: Record<string, unknown>;
1812
- disabled: boolean;
1813
- labelWidth: string;
1814
- layout: "horizontal" | "vertical" | "inline";
1815
- labelPosition: "left" | "right" | "top";
1816
- rules: FormRules;
1817
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
1818
- declare const __VLS_export$35: __VLS_WithSlots$29<typeof __VLS_base$29, __VLS_Slots$29>;
1819
- declare const _default$21: typeof __VLS_export$35;
1820
- type __VLS_WithSlots$29<T, S> = T & {
1821
- new (): {
1822
- $slots: S;
1823
- };
1824
- };
1825
- //#endregion
1826
- //#region src/components/form/form-item/form-item.vue.d.ts
1827
- interface Props$34 {
1828
- prop?: string;
1829
- label?: string;
1830
- required?: boolean;
1831
- extra?: string;
1832
- }
1833
- declare var __VLS_1$19: {};
1834
- type __VLS_Slots$28 = {} & {
1835
- default?: (props: typeof __VLS_1$19) => any;
1836
- };
1837
- declare const __VLS_base$28: _$vue.DefineComponent<Props$34, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<Props$34> & Readonly<{}>, {
1838
- label: string;
1839
- required: boolean;
1840
- prop: string;
1841
- extra: string;
1842
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
1843
- declare const __VLS_export$34: __VLS_WithSlots$28<typeof __VLS_base$28, __VLS_Slots$28>;
1844
- declare const _default$22: typeof __VLS_export$34;
1845
- type __VLS_WithSlots$28<T, S> = T & {
1846
- new (): {
1847
- $slots: S;
1848
- };
1849
- };
1850
- //#endregion
1851
- //#region src/components/form/schema-form/SchemaForm.vue.d.ts
1852
- interface Props$33 {
1853
- schema: FormSchema[];
1854
- modelValue?: Record<string, unknown>;
1855
- labelWidth?: string;
1856
- layout?: "horizontal" | "vertical" | "inline";
1857
- labelPosition?: "left" | "right" | "top";
1858
- disabled?: boolean;
1859
- }
1860
- declare var __VLS_12$2: `group-${string}`, __VLS_13$1: {}, __VLS_22: string, __VLS_23$2: {}, __VLS_33: string, __VLS_34$1: {}, __VLS_43: string, __VLS_44: {}, __VLS_53: {};
1861
- type __VLS_Slots$27 = {} & { [K in NonNullable<typeof __VLS_12$2>]?: (props: typeof __VLS_13$1) => any } & { [K in NonNullable<typeof __VLS_22>]?: (props: typeof __VLS_23$2) => any } & { [K in NonNullable<typeof __VLS_33>]?: (props: typeof __VLS_34$1) => any } & { [K in NonNullable<typeof __VLS_43>]?: (props: typeof __VLS_44) => any } & {
1862
- default?: (props: typeof __VLS_53) => any;
1863
- };
1864
- declare const __VLS_base$27: _$vue.DefineComponent<Props$33, {
1865
- validate: () => Promise<ValidateResult>;
1866
- resetFields: () => void;
1867
- scrollToField: (name: string) => void;
1868
- }, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
1869
- "update:modelValue": (value: Record<string, unknown>) => any;
1870
- change: (name: string, value: unknown) => any;
1871
- submit: (values: Record<string, unknown>) => any;
1872
- reset: () => any;
1873
- }, string, _$vue.PublicProps, Readonly<Props$33> & Readonly<{
1874
- "onUpdate:modelValue"?: ((value: Record<string, unknown>) => any) | undefined;
1875
- onChange?: ((name: string, value: unknown) => any) | undefined;
1876
- onSubmit?: ((values: Record<string, unknown>) => any) | undefined;
1877
- onReset?: (() => any) | undefined;
1878
- }>, {
1879
- modelValue: Record<string, unknown>;
1880
- disabled: boolean;
1881
- labelWidth: string;
1882
- layout: "horizontal" | "vertical" | "inline";
1883
- labelPosition: "left" | "right" | "top";
1884
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
1885
- declare const __VLS_export$33: __VLS_WithSlots$27<typeof __VLS_base$27, __VLS_Slots$27>;
1886
- declare const _default$44: typeof __VLS_export$33;
1887
- type __VLS_WithSlots$27<T, S> = T & {
1888
- new (): {
1889
- $slots: S;
1890
- };
1891
- };
1892
- //#endregion
1893
- //#region src/components/form/useFormSchema.d.ts
1894
- /**
1895
- * useFormSchema - Schema驱动的表单生成
1896
- */
1897
- declare function useFormSchema(schema: FormSchema[], initialValues?: Record<string, unknown>): UseFormSchemaReturn;
1898
- //#endregion
1899
- //#region src/components/layout/space/space.vue.d.ts
1900
- interface Props$32 {
1901
- size?: number | string | [number | string, number | string];
1902
- direction?: Direction;
1903
- wrap?: boolean;
1904
- align?: "start" | "end" | "center" | "baseline";
1905
- }
1906
- declare var __VLS_1$18: {};
1907
- type __VLS_Slots$26 = {} & {
1908
- default?: (props: typeof __VLS_1$18) => any;
1909
- };
1910
- declare const __VLS_base$26: _$vue.DefineComponent<Props$32, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<Props$32> & Readonly<{}>, {
1911
- size: number | string | [number | string, number | string];
1912
- direction: Direction;
1913
- wrap: boolean;
1914
- align: "start" | "end" | "center" | "baseline";
1915
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
1916
- declare const __VLS_export$32: __VLS_WithSlots$26<typeof __VLS_base$26, __VLS_Slots$26>;
1917
- declare const _default$48: typeof __VLS_export$32;
1918
- type __VLS_WithSlots$26<T, S> = T & {
1919
- new (): {
1920
- $slots: S;
1921
- };
1922
- };
1923
- //#endregion
1924
- //#region src/components/layout/divider/divider.vue.d.ts
1925
- interface Props$31 {
1926
- direction?: Direction;
1927
- type?: "default" | "dashed" | "dotted";
1928
- orientation?: "left" | "center" | "right";
1929
- dashed?: boolean;
1930
- variant?: "default" | "primary" | "success" | "warning" | "error";
1931
- }
1932
- declare var __VLS_1$17: {};
1933
- type __VLS_Slots$25 = {} & {
1934
- default?: (props: typeof __VLS_1$17) => any;
1935
- };
1936
- declare const __VLS_base$25: _$vue.DefineComponent<Props$31, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<Props$31> & Readonly<{}>, {
1937
- type: "default" | "dashed" | "dotted";
1938
- direction: Direction;
1939
- variant: "default" | "primary" | "success" | "warning" | "error";
1940
- orientation: "left" | "center" | "right";
1941
- dashed: boolean;
1942
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
1943
- declare const __VLS_export$31: __VLS_WithSlots$25<typeof __VLS_base$25, __VLS_Slots$25>;
1944
- declare const _default$17: typeof __VLS_export$31;
1945
- type __VLS_WithSlots$25<T, S> = T & {
1946
- new (): {
1947
- $slots: S;
1948
- };
1949
- };
1950
- //#endregion
1951
- //#region src/components/layout/layout/layout-types.d.ts
1952
- /**
1953
- * Layout Component Types
1954
- * 布局组件类型定义
1955
- */
1956
- /** 布局主题 */
1957
- type LayoutTheme = "light" | "dark" | "corporate";
1958
- /** 布局尺寸 */
1959
- interface LayoutSize {
1960
- siderWidth: number;
1961
- siderCollapsedWidth: number;
1962
- headerHeight: number;
1963
- }
1964
- /** 默认尺寸 */
1965
- declare const DEFAULT_LAYOUT_SIZE: LayoutSize;
1966
- /** 标签页项 */
1967
- interface TabItem {
1968
- /** 唯一标识 */
1969
- key: string;
1970
- /** 显示标题 */
1971
- title: string;
1972
- /** 是否可关闭 */
1973
- closable?: boolean;
1974
- /** 图标/favicon */
1975
- icon?: string;
1976
- /** 描述(鼠标悬停提示) */
1977
- description?: string;
1978
- }
1979
- /** 菜单项 */
1980
- interface MenuItem {
1981
- /** 唯一标识 */
1982
- key: string;
1983
- /** 显示标题 */
1984
- label: string;
1985
- /** 图标 - 支持字符串、组件名或图标对象 */
1986
- icon?: string | {
1987
- component: string;
1988
- props?: Record<string, unknown>;
1989
- };
1990
- /** 子菜单 */
1991
- children?: MenuItem[];
1992
- /** 是否禁用 */
1993
- disabled?: boolean;
1994
- /** 路由路径(用于面包屑和路由集成) */
1995
- path?: string;
1996
- /** 路由配置(用于 vue-router) */
1997
- route?: string | Record<string, unknown>;
1998
- /** 权限标识(需要拥有的权限才能显示) */
1999
- permission?: string | string[];
2000
- /** 角色标识(需要拥有的角色才能显示) */
2001
- roles?: string[];
2002
- /** 是否隐藏(不显示但保留路径) */
2003
- hidden?: boolean;
2004
- /** 是否展开子菜单 */
2005
- defaultOpen?: boolean;
2006
- /** 是否新窗口打开 */
2007
- external?: boolean;
2008
- /** 打开方式 */
2009
- target?: "_blank" | "_self" | "_parent" | "_top";
2010
- /** 描述/提示 */
2011
- description?: string;
2012
- }
2013
- /**
2014
- * 用户权限信息
2015
- */
2016
- interface UserPermissions {
2017
- /** 用户角色列表 */
2018
- roles?: string[];
2019
- /** 用户权限列表 */
2020
- permissions?: string[];
2021
- }
2022
- /** 用户信息 */
2023
- interface UserInfo {
2024
- /** 用户名 */
2025
- name: string;
2026
- /** 头像 */
2027
- avatar?: string;
2028
- /** 角色 */
2029
- role?: string;
2030
- }
2031
- /** 布局上下文 */
2032
- interface LayoutContext {
2033
- /** 是否折叠 */
2034
- collapsed: boolean;
2035
- /** 主题 */
2036
- theme: LayoutTheme;
2037
- /** 切换折叠 */
2038
- toggleCollapsed: () => void;
2039
- /** 设置折叠 */
2040
- setCollapsed: (collapsed: boolean) => void;
2041
- }
2042
- //#endregion
2043
- //#region src/components/layout/layout/layout.vue.d.ts
2044
- interface Props$30 {
2045
- /** 是否折叠侧边栏 */
2046
- collapsed?: boolean;
2047
- /** 侧边栏宽度 */
2048
- siderWidth?: number;
2049
- /** 折叠时侧边栏宽度 */
2050
- siderCollapsedWidth?: number;
2051
- /** 头部高度 */
2052
- headerHeight?: number;
2053
- /** 主题 */
2054
- theme?: LayoutTheme;
2055
- /** Logo */
2056
- logo?: string;
2057
- /** 系统标题 */
2058
- title?: string;
2059
- /** 菜单数据 */
2060
- menuItems?: MenuItem[];
2061
- /** 当前激活菜单 */
2062
- activeKey?: string;
2063
- /** 标签页数据 */
2064
- tabs?: TabItem[];
2065
- /** 标签页双向绑定(支持拖拽排序) */
2066
- modelTabs?: TabItem[];
2067
- /** 当前激活标签 */
2068
- activeTab?: string;
2069
- /** 用户信息 */
2070
- userInfo?: UserInfo;
2071
- /** 内容区内边距 */
2072
- contentPadding?: number | string;
2073
- /** 是否显示侧边栏 */
2074
- hasSider?: boolean;
2075
- /** 是否显示头部 */
2076
- hasHeader?: boolean;
2077
- /** 是否显示内容区 */
2078
- hasContent?: boolean;
2079
- /** 是否移动端模式(可选,不传则自动检测) */
2080
- isMobile?: boolean;
2081
- /** 菜单瀑布流模式 - 子菜单横向展开为网格 */
2082
- waterfall?: boolean;
2083
- /** 弹窗对齐方式: 'trigger' 对齐触发项, 'container' 对齐整个菜单容器 */
2084
- popupAlign?: "trigger" | "container";
2085
- /** 侧边栏底部支持文字 */
2086
- footerText?: string;
2087
- /** Header 是否固定定位 */
2088
- headerFixed?: boolean;
2089
- /** 是否允许侧边栏拖拽调整宽度 */
2090
- siderResizable?: boolean;
2091
- }
2092
- declare var __VLS_12$1: {}, __VLS_15$1: {}, __VLS_34: {}, __VLS_42: {};
2093
- type __VLS_Slots$24 = {} & {
2094
- logo?: (props: typeof __VLS_12$1) => any;
2095
- } & {
2096
- sider?: (props: typeof __VLS_15$1) => any;
2097
- } & {
2098
- header?: (props: typeof __VLS_34) => any;
2099
- } & {
2100
- default?: (props: typeof __VLS_42) => any;
2101
- };
2102
- declare const __VLS_base$24: _$vue.DefineComponent<Props$30, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
2103
- "update:modelTabs": (value: TabItem[]) => any;
2104
- "tab-change": (key: string) => any;
2105
- collapse: (collapsed: boolean) => any;
2106
- "menu-click": (key: string) => any;
2107
- "tab-close": (key: string) => any;
2108
- "tab-add": () => any;
2109
- "tab-reorder": (payload: {
2110
- from: number;
2111
- to: number;
2112
- }) => any;
2113
- "language-change": (lang: string) => any;
2114
- "user-command": (command: string) => any;
2115
- "settings-click": () => any;
2116
- "update:collapsed": (value: boolean) => any;
2117
- "update:theme": (value: LayoutTheme) => any;
2118
- "theme-change": (theme: LayoutTheme) => any;
2119
- "update:siderWidth": (value: number) => any;
2120
- "sider-width-change": (width: number) => any;
2121
- "update:headerHeight": (value: number) => any;
2122
- "header-height-change": (height: number) => any;
2123
- }, string, _$vue.PublicProps, Readonly<Props$30> & Readonly<{
2124
- "onUpdate:modelTabs"?: ((value: TabItem[]) => any) | undefined;
2125
- "onTab-change"?: ((key: string) => any) | undefined;
2126
- onCollapse?: ((collapsed: boolean) => any) | undefined;
2127
- "onMenu-click"?: ((key: string) => any) | undefined;
2128
- "onTab-close"?: ((key: string) => any) | undefined;
2129
- "onTab-add"?: (() => any) | undefined;
2130
- "onTab-reorder"?: ((payload: {
2131
- from: number;
2132
- to: number;
2133
- }) => any) | undefined;
2134
- "onLanguage-change"?: ((lang: string) => any) | undefined;
2135
- "onUser-command"?: ((command: string) => any) | undefined;
2136
- "onSettings-click"?: (() => any) | undefined;
2137
- "onUpdate:collapsed"?: ((value: boolean) => any) | undefined;
2138
- "onUpdate:theme"?: ((value: LayoutTheme) => any) | undefined;
2139
- "onTheme-change"?: ((theme: LayoutTheme) => any) | undefined;
2140
- "onUpdate:siderWidth"?: ((value: number) => any) | undefined;
2141
- "onSider-width-change"?: ((width: number) => any) | undefined;
2142
- "onUpdate:headerHeight"?: ((value: number) => any) | undefined;
2143
- "onHeader-height-change"?: ((height: number) => any) | undefined;
2144
- }>, {
2145
- theme: LayoutTheme;
2146
- modelTabs: TabItem[];
2147
- collapsed: boolean;
2148
- waterfall: boolean;
2149
- popupAlign: "trigger" | "container";
2150
- title: string;
2151
- footerText: string;
2152
- tabs: TabItem[];
2153
- logo: string;
2154
- menuItems: MenuItem[];
2155
- activeKey: string;
2156
- activeTab: string;
2157
- siderWidth: number;
2158
- headerHeight: number;
2159
- siderCollapsedWidth: number;
2160
- contentPadding: number | string;
2161
- hasSider: boolean;
2162
- hasHeader: boolean;
2163
- hasContent: boolean;
2164
- headerFixed: boolean;
2165
- siderResizable: boolean;
2166
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
2167
- declare const __VLS_export$30: __VLS_WithSlots$24<typeof __VLS_base$24, __VLS_Slots$24>;
2168
- declare const _default$27: typeof __VLS_export$30;
2169
- type __VLS_WithSlots$24<T, S> = T & {
2170
- new (): {
2171
- $slots: S;
2172
- };
2173
- };
2174
- //#endregion
2175
- //#region src/components/layout/layout/layout-sidebar.vue.d.ts
2176
- interface Props$29 {
2177
- /** Logo 图片 */
2178
- logo?: string;
2179
- /** 标题 */
2180
- title?: string;
2181
- /** 是否折叠 */
2182
- collapsed?: boolean;
2183
- /** 主题 */
2184
- theme?: LayoutTheme;
2185
- /** 菜单数据 */
2186
- menuItems?: MenuItem[];
2187
- /** 当前激活菜单 */
2188
- activeKey?: string;
2189
- /** 折叠时的宽度 */
2190
- collapsedWidth?: number;
2191
- /** 展开时的宽度 */
2192
- expandedWidth?: number;
2193
- /** 最小宽度 */
2194
- minWidth?: number;
2195
- /** 最大宽度 */
2196
- maxWidth?: number;
2197
- /** 是否允许拖拽调整宽度 */
2198
- resizable?: boolean;
2199
- /** 是否移动端模式 */
2200
- isMobile?: boolean;
2201
- /** 菜单瀑布流模式 - 子菜单横向展开为网格 */
2202
- waterfall?: boolean;
2203
- /** 弹窗对齐方式: 'trigger' 对齐触发项, 'container' 对齐整个菜单容器 */
2204
- popupAlign?: "trigger" | "container";
2205
- /** 底部支持文字 */
2206
- footerText?: string;
2207
- /** 是否显示搜索框 */
2208
- searchable?: boolean;
2209
- /** 当前用户角色 - 用于权限过滤 */
2210
- roles?: string | string[];
2211
- }
2212
- declare var __VLS_1$16: {}, __VLS_9$2: {};
2213
- type __VLS_Slots$23 = {} & {
2214
- logo?: (props: typeof __VLS_1$16) => any;
2215
- } & {
2216
- sider?: (props: typeof __VLS_9$2) => any;
2217
- };
2218
- declare const __VLS_base$23: _$vue.DefineComponent<Props$29, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
2219
- collapse: (collapsed: boolean) => any;
2220
- "width-change": (width: number) => any;
2221
- "path-change": (path: string[]) => any;
2222
- "menu-click": (key: string, item: MenuItem) => any;
2223
- }, string, _$vue.PublicProps, Readonly<Props$29> & Readonly<{
2224
- onCollapse?: ((collapsed: boolean) => any) | undefined;
2225
- "onWidth-change"?: ((width: number) => any) | undefined;
2226
- "onPath-change"?: ((path: string[]) => any) | undefined;
2227
- "onMenu-click"?: ((key: string, item: MenuItem) => any) | undefined;
2228
- }>, {
2229
- theme: LayoutTheme;
2230
- collapsed: boolean;
2231
- waterfall: boolean;
2232
- popupAlign: "trigger" | "container";
2233
- title: string;
2234
- footerText: string;
2235
- logo: string;
2236
- menuItems: MenuItem[];
2237
- activeKey: string;
2238
- collapsedWidth: number;
2239
- expandedWidth: number;
2240
- minWidth: number;
2241
- maxWidth: number;
2242
- resizable: boolean;
2243
- searchable: boolean;
2244
- roles: string | string[];
2245
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
2246
- declare const __VLS_export$29: __VLS_WithSlots$23<typeof __VLS_base$23, __VLS_Slots$23>;
2247
- declare const _default$30: typeof __VLS_export$29;
2248
- type __VLS_WithSlots$23<T, S> = T & {
2249
- new (): {
2250
- $slots: S;
2251
- };
2252
- };
2253
- //#endregion
2254
- //#region src/components/layout/layout/layout-header.vue.d.ts
2255
- interface Props$28 {
2256
- /** 主题 */
2257
- theme?: LayoutTheme;
2258
- /** 标签页数据 */
2259
- tabs?: TabItem[];
2260
- /** 标签页双向绑定(支持拖拽排序) */
2261
- modelTabs?: TabItem[];
2262
- /** 当前激活标签 */
2263
- activeTab?: string;
2264
- /** 用户信息 */
2265
- userInfo?: UserInfo;
2266
- /** 侧边栏宽度(用于计算 margin) */
2267
- siderWidth?: number;
2268
- /** 通知数量 */
2269
- notificationCount?: number;
2270
- /** 当前语言 */
2271
- currentLanguage?: string;
2272
- /** Header 是否固定定位 */
2273
- fixed?: boolean;
2274
- /** 头部高度 */
2275
- headerHeight?: number;
2276
- }
2277
- declare var __VLS_1$15: {}, __VLS_13: {}, __VLS_23$1: {}, __VLS_31: {}, __VLS_47: {};
2278
- type __VLS_Slots$22 = {} & {
2279
- tabs?: (props: typeof __VLS_1$15) => any;
2280
- } & {
2281
- language?: (props: typeof __VLS_13) => any;
2282
- } & {
2283
- notification?: (props: typeof __VLS_23$1) => any;
2284
- } & {
2285
- user?: (props: typeof __VLS_31) => any;
2286
- } & {
2287
- settings?: (props: typeof __VLS_47) => any;
2288
- };
2289
- declare const __VLS_base$22: _$vue.DefineComponent<Props$28, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
2290
- "update:modelTabs": (value: TabItem[]) => any;
2291
- "tab-change": (key: string) => any;
2292
- "tab-close": (key: string) => any;
2293
- "tab-add": () => any;
2294
- "tab-reorder": (payload: {
2295
- from: number;
2296
- to: number;
2297
- }) => any;
2298
- "language-change": (lang: string) => any;
2299
- "user-command": (command: string) => any;
2300
- "notification-click": () => any;
2301
- "settings-click": () => any;
2302
- "toggle-sider": () => any;
2303
- }, string, _$vue.PublicProps, Readonly<Props$28> & Readonly<{
2304
- "onUpdate:modelTabs"?: ((value: TabItem[]) => any) | undefined;
2305
- "onTab-change"?: ((key: string) => any) | undefined;
2306
- "onTab-close"?: ((key: string) => any) | undefined;
2307
- "onTab-add"?: (() => any) | undefined;
2308
- "onTab-reorder"?: ((payload: {
2309
- from: number;
2310
- to: number;
2311
- }) => any) | undefined;
2312
- "onLanguage-change"?: ((lang: string) => any) | undefined;
2313
- "onUser-command"?: ((command: string) => any) | undefined;
2314
- "onNotification-click"?: (() => any) | undefined;
2315
- "onSettings-click"?: (() => any) | undefined;
2316
- "onToggle-sider"?: (() => any) | undefined;
2317
- }>, {
2318
- theme: LayoutTheme;
2319
- modelTabs: TabItem[];
2320
- tabs: TabItem[];
2321
- activeTab: string;
2322
- siderWidth: number;
2323
- notificationCount: number;
2324
- currentLanguage: string;
2325
- fixed: boolean;
2326
- headerHeight: number;
2327
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
2328
- declare const __VLS_export$28: __VLS_WithSlots$22<typeof __VLS_base$22, __VLS_Slots$22>;
2329
- declare const _default$29: typeof __VLS_export$28;
2330
- type __VLS_WithSlots$22<T, S> = T & {
2331
- new (): {
2332
- $slots: S;
2333
- };
2334
- };
2335
- //#endregion
2336
- //#region src/components/layout/layout/layout-content.vue.d.ts
2337
- interface Props$27 {
2338
- /** 自定义样式 */
2339
- style?: Record<string, string | number>;
2340
- }
2341
- declare var __VLS_1$14: {};
2342
- type __VLS_Slots$21 = {} & {
2343
- default?: (props: typeof __VLS_1$14) => any;
2344
- };
2345
- declare const __VLS_base$21: _$vue.DefineComponent<Props$27, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<Props$27> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
2346
- declare const __VLS_export$27: __VLS_WithSlots$21<typeof __VLS_base$21, __VLS_Slots$21>;
2347
- declare const _default$28: typeof __VLS_export$27;
2348
- type __VLS_WithSlots$21<T, S> = T & {
2349
- new (): {
2350
- $slots: S;
2351
- };
2352
- };
2353
- //#endregion
2354
- //#region src/components/data-display/card/card.vue.d.ts
2355
- interface Props$26 {
2356
- title?: string;
2357
- bordered?: boolean;
2358
- shadow?: "always" | "hover" | "never";
2359
- padding?: "xs" | "sm" | "md" | "lg" | "none";
2360
- }
2361
- declare var __VLS_1$13: {}, __VLS_3$7: {}, __VLS_5$1: {};
2362
- type __VLS_Slots$20 = {} & {
2363
- header?: (props: typeof __VLS_1$13) => any;
2364
- } & {
2365
- default?: (props: typeof __VLS_3$7) => any;
2366
- } & {
2367
- footer?: (props: typeof __VLS_5$1) => any;
2368
- };
2369
- declare const __VLS_base$20: _$vue.DefineComponent<Props$26, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<Props$26> & Readonly<{}>, {
2370
- bordered: boolean;
2371
- title: string;
2372
- shadow: "always" | "hover" | "never";
2373
- padding: "xs" | "sm" | "md" | "lg" | "none";
2374
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
2375
- declare const __VLS_export$26: __VLS_WithSlots$20<typeof __VLS_base$20, __VLS_Slots$20>;
2376
- declare const _default$7: typeof __VLS_export$26;
2377
- type __VLS_WithSlots$20<T, S> = T & {
2378
- new (): {
2379
- $slots: S;
2380
- };
2381
- };
2382
- //#endregion
2383
- //#region src/components/data-display/table/table.vue.d.ts
2384
- interface SortState {
2385
- key: string;
2386
- order: "asc" | "desc" | null;
2387
- priority: number;
2388
- }
2389
- interface Column {
2390
- title: string;
2391
- key: string;
2392
- width?: string;
2393
- minWidth?: string;
2394
- sortable?: boolean;
2395
- /** Support multi-column sorting (Shift+click) */
2396
- multipleSortable?: boolean;
2397
- /** Support column resizing */
2398
- resizable?: boolean;
2399
- /** Support column drag/drop reordering */
2400
- draggable?: boolean;
2401
- align?: "left" | "center" | "right";
2402
- fixed?: "left" | "right";
2403
- /** Show ellipsis with tooltip when content overflows */
2404
- showOverflowTooltip?: boolean;
2405
- }
2406
- interface Props$25 {
2407
- dataSource?: Record<string, unknown>[];
2408
- columns?: Column[];
2409
- loading?: boolean;
2410
- loadingText?: string;
2411
- /** Show skeleton placeholder while loading */
2412
- skeleton?: boolean;
2413
- /** Number of skeleton rows to display */
2414
- skeletonRows?: number;
2415
- pagination?: boolean;
2416
- pageSize?: number;
2417
- hover?: boolean;
2418
- stripe?: boolean;
2419
- bordered?: boolean;
2420
- emptyText?: string;
2421
- height?: string | number;
2422
- stickyHeader?: boolean;
2423
- expandable?: boolean;
2424
- virtualScroll?: boolean;
2425
- rowHeight?: number;
2426
- overscan?: number;
2427
- /** Global: show ellipsis with tooltip for all cells */
2428
- showOverflowTooltip?: boolean;
2429
- /** Enable export toolbar */
2430
- exportable?: boolean;
2431
- /** Export filename prefix */
2432
- exportFilename?: string;
2433
- /** Enable remote mode for server-side pagination/sorting */
2434
- remote?: boolean;
2435
- /** Total number of records (used in remote mode) */
2436
- total?: number;
2437
- /** Trigger load more when scroll reaches end (remote mode with virtual scroll) */
2438
- loadMore?: boolean;
2439
- }
2440
- declare function exportToCSV(filename?: string): void;
2441
- declare function exportToExcel(filename?: string): void;
2442
- declare function exportToJSON(filename?: string): void;
2443
- declare var __VLS_7$1: string, __VLS_8$1: {
2444
- row: Record<string, unknown> | {
2445
- __virtualIndex: number;
2446
- };
2447
- column: Column;
2448
- index: number;
2449
- }, __VLS_10$1: {
2450
- row: Record<string, unknown> | {
2451
- __virtualIndex: number;
2452
- };
2453
- index: number;
2454
- }, __VLS_12: {}, __VLS_20: string, __VLS_21: {
2455
- row: Record<string, unknown>;
2456
- column: Column;
2457
- index: number;
2458
- }, __VLS_23: {
2459
- row: Record<string, unknown>;
2460
- index: number;
2461
- }, __VLS_25: {};
2462
- type __VLS_Slots$19 = {} & { [K in NonNullable<typeof __VLS_7$1>]?: (props: typeof __VLS_8$1) => any } & { [K in NonNullable<typeof __VLS_20>]?: (props: typeof __VLS_21) => any } & {
2463
- expand?: (props: typeof __VLS_10$1) => any;
2464
- } & {
2465
- empty?: (props: typeof __VLS_12) => any;
2466
- } & {
2467
- expand?: (props: typeof __VLS_23) => any;
2468
- } & {
2469
- empty?: (props: typeof __VLS_25) => any;
2470
- };
2471
- declare const __VLS_base$19: _$vue.DefineComponent<Props$25, {
2472
- exportToCSV: typeof exportToCSV;
2473
- exportToExcel: typeof exportToExcel;
2474
- exportToJSON: typeof exportToJSON;
2475
- }, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
2476
- sort: (key: string, order: string) => any;
2477
- "page-change": (page: number) => any;
2478
- expand: (row: Record<string, unknown>, index: number) => any;
2479
- "sort-change": (sortStates: SortState[]) => any;
2480
- "row-click": (row: Record<string, unknown>) => any;
2481
- "scroll-end": () => any;
2482
- "column-resize": (key: string, width: string) => any;
2483
- "column-reorder": (fromIndex: number, toIndex: number) => any;
2484
- }, string, _$vue.PublicProps, Readonly<Props$25> & Readonly<{
2485
- onSort?: ((key: string, order: string) => any) | undefined;
2486
- "onPage-change"?: ((page: number) => any) | undefined;
2487
- onExpand?: ((row: Record<string, unknown>, index: number) => any) | undefined;
2488
- "onSort-change"?: ((sortStates: SortState[]) => any) | undefined;
2489
- "onRow-click"?: ((row: Record<string, unknown>) => any) | undefined;
2490
- "onScroll-end"?: (() => any) | undefined;
2491
- "onColumn-resize"?: ((key: string, width: string) => any) | undefined;
2492
- "onColumn-reorder"?: ((fromIndex: number, toIndex: number) => any) | undefined;
2493
- }>, {
2494
- hover: boolean;
2495
- pageSize: number;
2496
- total: number;
2497
- bordered: boolean;
2498
- loading: boolean;
2499
- remote: boolean;
2500
- height: string | number;
2501
- loadingText: string;
2502
- virtualScroll: boolean;
2503
- rowHeight: number;
2504
- overscan: number;
2505
- dataSource: Record<string, unknown>[];
2506
- emptyText: string;
2507
- skeleton: boolean;
2508
- skeletonRows: number;
2509
- columns: Column[];
2510
- pagination: boolean;
2511
- stripe: boolean;
2512
- stickyHeader: boolean;
2513
- expandable: boolean;
2514
- showOverflowTooltip: boolean;
2515
- exportable: boolean;
2516
- exportFilename: string;
2517
- loadMore: boolean;
2518
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
2519
- declare const __VLS_export$25: __VLS_WithSlots$19<typeof __VLS_base$19, __VLS_Slots$19>;
2520
- declare const _default$53: typeof __VLS_export$25;
2521
- type __VLS_WithSlots$19<T, S> = T & {
2522
- new (): {
2523
- $slots: S;
2524
- };
2525
- };
2526
- //#endregion
2527
- //#region src/components/data-display/progress/progress.vue.d.ts
2528
- interface Props$24 {
2529
- percent?: number;
2530
- type?: "line" | "circle" | "dashboard";
2531
- size?: ComponentSize;
2532
- status?: "normal" | "success" | "exception";
2533
- showInfo?: boolean;
2534
- strokeWidth?: number;
2535
- strokeColor?: string;
2536
- }
2537
- declare var __VLS_1$12: {
2538
- percent: number;
2539
- }, __VLS_3$6: {
2540
- percent: number;
2541
- };
2542
- type __VLS_Slots$18 = {} & {
2543
- format?: (props: typeof __VLS_1$12) => any;
2544
- } & {
2545
- format?: (props: typeof __VLS_3$6) => any;
2546
- };
2547
- declare const __VLS_base$18: _$vue.DefineComponent<Props$24, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<Props$24> & Readonly<{}>, {
2548
- size: ComponentSize;
2549
- type: "line" | "circle" | "dashboard";
2550
- status: "normal" | "success" | "exception";
2551
- percent: number;
2552
- showInfo: boolean;
2553
- strokeWidth: number;
2554
- strokeColor: string;
2555
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
2556
- declare const __VLS_export$24: __VLS_WithSlots$18<typeof __VLS_base$18, __VLS_Slots$18>;
2557
- declare const _default$39: typeof __VLS_export$24;
2558
- type __VLS_WithSlots$18<T, S> = T & {
2559
- new (): {
2560
- $slots: S;
2561
- };
2562
- };
2563
- //#endregion
2564
- //#region src/components/data-display/statistic/statistic.vue.d.ts
2565
- interface Props$23 {
2566
- value?: string | number;
2567
- title?: string;
2568
- prefix?: string;
2569
- suffix?: string;
2570
- precision?: number;
2571
- decimalSeparator?: string;
2572
- groupSeparator?: string;
2573
- valueStyle?: string;
2574
- animation?: boolean;
2575
- animationDuration?: number;
2576
- }
2577
- declare var __VLS_1$11: {}, __VLS_3$5: {};
2578
- type __VLS_Slots$17 = {} & {
2579
- prefix?: (props: typeof __VLS_1$11) => any;
2580
- } & {
2581
- suffix?: (props: typeof __VLS_3$5) => any;
2582
- };
2583
- declare const __VLS_base$17: _$vue.DefineComponent<Props$23, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<Props$23> & Readonly<{}>, {
2584
- precision: number;
2585
- prefix: string;
2586
- suffix: string;
2587
- value: string | number;
2588
- title: string;
2589
- decimalSeparator: string;
2590
- groupSeparator: string;
2591
- valueStyle: string;
2592
- animation: boolean;
2593
- animationDuration: number;
2594
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
2595
- declare const __VLS_export$23: __VLS_WithSlots$17<typeof __VLS_base$17, __VLS_Slots$17>;
2596
- declare const _default$50: typeof __VLS_export$23;
2597
- type __VLS_WithSlots$17<T, S> = T & {
2598
- new (): {
2599
- $slots: S;
2600
- };
2601
- };
2602
- //#endregion
2603
- //#region src/components/data-display/collapse/collapse.vue.d.ts
2604
- interface CollapseItem {
2605
- key: string;
2606
- title: string;
2607
- content?: string;
2608
- disabled?: boolean;
2609
- }
2610
- interface Props$22 {
2611
- items?: CollapseItem[];
2612
- accordion?: boolean;
2613
- modelValue?: string[];
2614
- }
2615
- declare var __VLS_8: string, __VLS_9$1: {};
2616
- type __VLS_Slots$16 = {} & { [K in NonNullable<typeof __VLS_8>]?: (props: typeof __VLS_9$1) => any };
2617
- declare const __VLS_base$16: _$vue.DefineComponent<Props$22, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
2618
- "update:modelValue": (value: string[]) => any;
2619
- change: (value: string[]) => any;
2620
- }, string, _$vue.PublicProps, Readonly<Props$22> & Readonly<{
2621
- "onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
2622
- onChange?: ((value: string[]) => any) | undefined;
2623
- }>, {
2624
- modelValue: string[];
2625
- items: CollapseItem[];
2626
- accordion: boolean;
2627
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
2628
- declare const __VLS_export$22: __VLS_WithSlots$16<typeof __VLS_base$16, __VLS_Slots$16>;
2629
- declare const _default$11: typeof __VLS_export$22;
2630
- type __VLS_WithSlots$16<T, S> = T & {
2631
- new (): {
2632
- $slots: S;
2633
- };
2634
- };
2635
- //#endregion
2636
- //#region src/components/data-display/timeline/timeline.vue.d.ts
2637
- interface TimelineItem {
2638
- label?: string;
2639
- description?: string;
2640
- content?: string;
2641
- dot?: string;
2642
- color?: string;
2643
- }
2644
- interface Props$21 {
2645
- items?: TimelineItem[];
2646
- type?: "default" | "alternate";
2647
- mode?: "left" | "alternate";
2648
- color?: string;
2649
- }
2650
- declare var __VLS_2: `dot-${number}`, __VLS_3$4: {}, __VLS_6$1: `content-${number}`, __VLS_7: {};
2651
- type __VLS_Slots$15 = {} & { [K in NonNullable<typeof __VLS_2>]?: (props: typeof __VLS_3$4) => any } & { [K in NonNullable<typeof __VLS_6$1>]?: (props: typeof __VLS_7) => any };
2652
- declare const __VLS_base$15: _$vue.DefineComponent<Props$21, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<Props$21> & Readonly<{}>, {
2653
- type: "default" | "alternate";
2654
- items: TimelineItem[];
2655
- mode: "left" | "alternate";
2656
- color: string;
2657
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
2658
- declare const __VLS_export$21: __VLS_WithSlots$15<typeof __VLS_base$15, __VLS_Slots$15>;
2659
- declare const _default$58: typeof __VLS_export$21;
2660
- type __VLS_WithSlots$15<T, S> = T & {
2661
- new (): {
2662
- $slots: S;
2663
- };
2664
- };
2665
- //#endregion
2666
- //#region src/components/data-display/tree/tree.vue.d.ts
2667
- interface TreeNodeType {
2668
- key: string;
2669
- title: string;
2670
- children?: TreeNodeType[];
2671
- disabled?: boolean;
2672
- isLeaf?: boolean;
2673
- loading?: boolean;
2674
- }
2675
- interface Props$20 {
2676
- nodes?: TreeNodeType[];
2677
- showLine?: boolean;
2678
- selectable?: boolean;
2679
- showCheckbox?: boolean;
2680
- defaultExpandedKeys?: string[];
2681
- defaultCheckedKeys?: string[];
2682
- loadFunction?: (node: TreeNodeType) => Promise<TreeNodeType[]>;
2683
- draggable?: boolean;
2684
- /** Enable virtual scroll */
2685
- virtualScroll?: boolean;
2686
- /** Container height for virtual scroll */
2687
- height?: string | number;
2688
- /** Row height in pixels */
2689
- rowHeight?: number;
2690
- /** Overscan row count */
2691
- overscan?: number;
2692
- }
2693
- declare const __VLS_export$20: _$vue.DefineComponent<Props$20, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
2694
- select: (node: TreeNodeType) => any;
2695
- check: (checkedKeys: string[]) => any;
2696
- expand: (node: TreeNodeType) => any;
2697
- "node-drop": (draggedNode: TreeNodeType, targetNode: TreeNodeType) => any;
2698
- }, string, _$vue.PublicProps, Readonly<Props$20> & Readonly<{
2699
- onSelect?: ((node: TreeNodeType) => any) | undefined;
2700
- onCheck?: ((checkedKeys: string[]) => any) | undefined;
2701
- onExpand?: ((node: TreeNodeType) => any) | undefined;
2702
- "onNode-drop"?: ((draggedNode: TreeNodeType, targetNode: TreeNodeType) => any) | undefined;
2703
- }>, {
2704
- height: string | number;
2705
- defaultExpandedKeys: string[];
2706
- defaultCheckedKeys: string[];
2707
- virtualScroll: boolean;
2708
- rowHeight: number;
2709
- overscan: number;
2710
- nodes: TreeNodeType[];
2711
- showLine: boolean;
2712
- selectable: boolean;
2713
- showCheckbox: boolean;
2714
- loadFunction: (node: TreeNodeType) => Promise<TreeNodeType[]>;
2715
- draggable: boolean;
2716
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
2717
- declare const _default$61: typeof __VLS_export$20;
2718
- //#endregion
2719
- //#region src/components/data-display/list/list.vue.d.ts
2720
- interface Props$19 {
2721
- dataSource?: Record<string, unknown>[];
2722
- header?: string;
2723
- footer?: string;
2724
- bordered?: boolean;
2725
- split?: boolean;
2726
- emptyText?: string;
2727
- /** Show skeleton placeholder while loading */
2728
- skeleton?: boolean;
2729
- /** Number of skeleton rows */
2730
- skeletonRows?: number;
2731
- }
2732
- declare var __VLS_1$10: {}, __VLS_3$3: {
2733
- item: Record<string, unknown>;
2734
- index: number;
2735
- }, __VLS_10: {};
2736
- type __VLS_Slots$14 = {} & {
2737
- header?: (props: typeof __VLS_1$10) => any;
2738
- } & {
2739
- default?: (props: typeof __VLS_3$3) => any;
2740
- } & {
2741
- footer?: (props: typeof __VLS_10) => any;
2742
- };
2743
- declare const __VLS_base$14: _$vue.DefineComponent<Props$19, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
2744
- "item-click": (item: Record<string, unknown>, index: number) => any;
2745
- }, string, _$vue.PublicProps, Readonly<Props$19> & Readonly<{
2746
- "onItem-click"?: ((item: Record<string, unknown>, index: number) => any) | undefined;
2747
- }>, {
2748
- bordered: boolean;
2749
- split: boolean;
2750
- dataSource: Record<string, unknown>[];
2751
- header: string;
2752
- footer: string;
2753
- emptyText: string;
2754
- skeleton: boolean;
2755
- skeletonRows: number;
2756
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
2757
- declare const __VLS_export$19: __VLS_WithSlots$14<typeof __VLS_base$14, __VLS_Slots$14>;
2758
- declare const _default$31: typeof __VLS_export$19;
2759
- type __VLS_WithSlots$14<T, S> = T & {
2760
- new (): {
2761
- $slots: S;
2762
- };
2763
- };
2764
- //#endregion
2765
- //#region src/components/data-display/empty/empty.vue.d.ts
2766
- interface Props$18 {
2767
- description?: string;
2768
- imageStyle?: string;
2769
- }
2770
- declare var __VLS_1$9: {}, __VLS_3$2: {};
2771
- type __VLS_Slots$13 = {} & {
2772
- image?: (props: typeof __VLS_1$9) => any;
2773
- } & {
2774
- default?: (props: typeof __VLS_3$2) => any;
2775
- };
2776
- declare const __VLS_base$13: _$vue.DefineComponent<Props$18, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<Props$18> & Readonly<{}>, {
2777
- imageStyle: string;
2778
- description: string;
2779
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
2780
- declare const __VLS_export$18: __VLS_WithSlots$13<typeof __VLS_base$13, __VLS_Slots$13>;
2781
- declare const _default$20: typeof __VLS_export$18;
2782
- type __VLS_WithSlots$13<T, S> = T & {
2783
- new (): {
2784
- $slots: S;
2785
- };
2786
- };
2787
- //#endregion
2788
- //#region src/components/data-display/image/image.vue.d.ts
2789
- interface Props$17 {
2790
- src?: string;
2791
- alt?: string;
2792
- width?: string | number;
2793
- height?: string | number;
2794
- fit?: "contain" | "cover" | "fill" | "none" | "scale-down";
2795
- rounded?: boolean;
2796
- preview?: boolean;
2797
- loading?: boolean;
2798
- }
2799
- declare var __VLS_6: {};
2800
- type __VLS_Slots$12 = {} & {
2801
- fallback?: (props: typeof __VLS_6) => any;
2802
- };
2803
- declare const __VLS_base$12: _$vue.DefineComponent<Props$17, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
2804
- click: (event: MouseEvent) => any;
2805
- error: (event: Event) => any;
2806
- load: (event: Event) => any;
2807
- }, string, _$vue.PublicProps, Readonly<Props$17> & Readonly<{
2808
- onClick?: ((event: MouseEvent) => any) | undefined;
2809
- onError?: ((event: Event) => any) | undefined;
2810
- onLoad?: ((event: Event) => any) | undefined;
2811
- }>, {
2812
- rounded: boolean;
2813
- loading: boolean;
2814
- src: string;
2815
- alt: string;
2816
- height: string | number;
2817
- width: string | number;
2818
- fit: "contain" | "cover" | "fill" | "none" | "scale-down";
2819
- preview: boolean;
2820
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
2821
- declare const __VLS_export$17: __VLS_WithSlots$12<typeof __VLS_base$12, __VLS_Slots$12>;
2822
- declare const _default$23: typeof __VLS_export$17;
2823
- type __VLS_WithSlots$12<T, S> = T & {
2824
- new (): {
2825
- $slots: S;
2826
- };
2827
- };
2828
- //#endregion
2829
- //#region src/components/data-display/image/image-preview-group.vue.d.ts
2830
- interface Props$16 {
2831
- images?: string[];
2832
- }
2833
- declare var __VLS_1$8: {};
2834
- type __VLS_Slots$11 = {} & {
2835
- default?: (props: typeof __VLS_1$8) => any;
2836
- };
2837
- declare const __VLS_base$11: _$vue.DefineComponent<Props$16, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<Props$16> & Readonly<{}>, {
2838
- images: string[];
2839
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
2840
- declare const __VLS_export$16: __VLS_WithSlots$11<typeof __VLS_base$11, __VLS_Slots$11>;
2841
- declare const _default$24: typeof __VLS_export$16;
2842
- type __VLS_WithSlots$11<T, S> = T & {
2843
- new (): {
2844
- $slots: S;
2845
- };
2846
- };
2847
- //#endregion
2848
- //#region src/components/navigation/menu/menu.vue.d.ts
2849
- interface MenuItem$1 {
2850
- label: string;
2851
- key: string;
2852
- /** 图标 - 支持字符串、组件名或图标对象 */
2853
- icon?: string | {
2854
- component: string;
2855
- props?: Record<string, unknown>;
2856
- };
2857
- disabled?: boolean;
2858
- route?: string;
2859
- badge?: string | number;
2860
- badgeType?: "primary" | "success" | "warning" | "danger" | "info";
2861
- image?: string;
2862
- children?: MenuItem$1[];
2863
- /** 权限标识 */
2864
- permission?: string | string[];
2865
- /** 是否隐藏 */
2866
- hidden?: boolean;
2867
- }
2868
- /**
2869
- * YdMenu Props
2870
- * @description 导航菜单组件
2871
- */
2872
- interface Props$15 {
2873
- /** 当前选中的菜单项 key */
2874
- modelValue?: string;
2875
- /** 菜单项列表 */
2876
- items?: MenuItem$1[];
2877
- /** 菜单模式 */
2878
- mode?: "vertical" | "horizontal";
2879
- /** 是否折叠 */
2880
- collapsed?: boolean;
2881
- /** 是否使用瀑布式下拉 */
2882
- waterfall?: boolean;
2883
- /** 瀑布式网格布局风格: auto-自动列数(新), classic-列布局(旧) */
2884
- gridStyle?: "auto" | "classic";
2885
- /** 图片风格瀑布式布局: 以图片为主的卡片式展示 */
2886
- imageStyle?: "default" | "cover" | "contain" | "fill" | "elegant";
2887
- /** 是否启用路由 */
2888
- router?: boolean;
2889
- /** 瀑布式下拉对齐方式 */
2890
- popupAlign?: "trigger" | "container";
2891
- /** 下拉主题 */
2892
- dropdownTheme?: "default" | "glass" | "dark";
2893
- }
2894
- declare const __VLS_export$15: _$vue.DefineComponent<Props$15, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
2895
- "update:modelValue": (value: string) => any;
2896
- select: (item: MenuItem$1) => any;
2897
- }, string, _$vue.PublicProps, Readonly<Props$15> & Readonly<{
2898
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
2899
- onSelect?: ((item: MenuItem$1) => any) | undefined;
2900
- }>, {
2901
- modelValue: string;
2902
- items: MenuItem$1[];
2903
- mode: "vertical" | "horizontal";
2904
- collapsed: boolean;
2905
- waterfall: boolean;
2906
- gridStyle: "auto" | "classic";
2907
- router: boolean;
2908
- popupAlign: "trigger" | "container";
2909
- dropdownTheme: "default" | "glass" | "dark";
2910
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
2911
- declare const _default$34: typeof __VLS_export$15;
2912
- //#endregion
2913
- //#region src/components/navigation/tabs/tabs.vue.d.ts
2914
- /**
2915
- * Tab item interface
2916
- */
2917
- interface TabItem$1 {
2918
- /** Tab 显示文本 */
2919
- label: string;
2920
- /** Tab 唯一标识 */
2921
- key: string;
2922
- /** 是否可关闭 */
2923
- closable?: boolean;
2924
- /** 是否禁用 */
2925
- disabled?: boolean;
2926
- /** 图标(用于 chrome 风格) */
2927
- icon?: string;
2928
- /** 悬停提示内容 */
2929
- description?: string;
2930
- }
2931
- /**
2932
- * YdTabs Props
2933
- * @description 标签页组件,支持多种样式和拖拽排序
2934
- */
2935
- interface Props$14 {
2936
- /** 当前激活的 tab key */
2937
- modelValue?: string;
2938
- /** 受控的 tabs 数据(双向绑定) */
2939
- modelTabs?: TabItem$1[];
2940
- /** 非受控的 tabs 数据 */
2941
- items?: TabItem$1[];
2942
- /** Tabs 样式类型 */
2943
- type?: "line" | "card" | "segment" | "border-card" | "chrome" | "rounded" | "minimal" | "envelope" | "glass";
2944
- editable?: boolean;
2945
- theme?: "light" | "dark" | "corporate";
2946
- /** localStorage key for persisting tab order */
2947
- storageKey?: string;
2948
- }
2949
- declare var __VLS_1$7: {};
2950
- type __VLS_Slots$10 = {} & {
2951
- default?: (props: typeof __VLS_1$7) => any;
2952
- };
2953
- declare const __VLS_base$10: _$vue.DefineComponent<Props$14, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
2954
- "update:modelValue": (value: string) => any;
2955
- "update:modelTabs": (value: TabItem$1[]) => any;
2956
- reorder: (payload: {
2957
- from: number;
2958
- to: number;
2959
- }) => any;
2960
- "context-menu": (action: string, item: TabItem$1) => any;
2961
- "drag-start": (index: number, item: TabItem$1) => any;
2962
- "drag-end": (payload: {
2963
- from: number;
2964
- to: number;
2965
- success: boolean;
2966
- }) => any;
2967
- edit: (action: "add" | "remove", item?: TabItem$1 | undefined) => any;
2968
- }, string, _$vue.PublicProps, Readonly<Props$14> & Readonly<{
2969
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
2970
- "onUpdate:modelTabs"?: ((value: TabItem$1[]) => any) | undefined;
2971
- onReorder?: ((payload: {
2972
- from: number;
2973
- to: number;
2974
- }) => any) | undefined;
2975
- "onContext-menu"?: ((action: string, item: TabItem$1) => any) | undefined;
2976
- "onDrag-start"?: ((index: number, item: TabItem$1) => any) | undefined;
2977
- "onDrag-end"?: ((payload: {
2978
- from: number;
2979
- to: number;
2980
- success: boolean;
2981
- }) => any) | undefined;
2982
- onEdit?: ((action: "add" | "remove", item?: TabItem$1 | undefined) => any) | undefined;
2983
- }>, {
2984
- theme: "light" | "dark" | "corporate";
2985
- type: "line" | "card" | "segment" | "border-card" | "chrome" | "rounded" | "minimal" | "envelope" | "glass";
2986
- modelValue: string;
2987
- modelTabs: TabItem$1[];
2988
- items: TabItem$1[];
2989
- editable: boolean;
2990
- storageKey: string;
2991
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
2992
- declare const __VLS_export$14: __VLS_WithSlots$10<typeof __VLS_base$10, __VLS_Slots$10>;
2993
- declare const _default$54: typeof __VLS_export$14;
2994
- type __VLS_WithSlots$10<T, S> = T & {
2995
- new (): {
2996
- $slots: S;
2997
- };
2998
- };
2999
- //#endregion
3000
- //#region src/components/navigation/breadcrumb/breadcrumb.vue.d.ts
3001
- interface BreadcrumbItem {
3002
- label: string;
3003
- to?: string;
3004
- disabled?: boolean;
3005
- }
3006
- interface Props$13 {
3007
- items?: BreadcrumbItem[];
3008
- separator?: string;
3009
- }
3010
- declare var __VLS_9: {};
3011
- type __VLS_Slots$9 = {} & {
3012
- separator?: (props: typeof __VLS_9) => any;
3013
- };
3014
- declare const __VLS_base$9: _$vue.DefineComponent<Props$13, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
3015
- navigate: (item: BreadcrumbItem) => any;
3016
- }, string, _$vue.PublicProps, Readonly<Props$13> & Readonly<{
3017
- onNavigate?: ((item: BreadcrumbItem) => any) | undefined;
3018
- }>, {
3019
- items: BreadcrumbItem[];
3020
- separator: string;
3021
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
3022
- declare const __VLS_export$13: __VLS_WithSlots$9<typeof __VLS_base$9, __VLS_Slots$9>;
3023
- declare const _default$4: typeof __VLS_export$13;
3024
- type __VLS_WithSlots$9<T, S> = T & {
3025
- new (): {
3026
- $slots: S;
3027
- };
3028
- };
3029
- //#endregion
3030
- //#region src/components/navigation/pagination/pagination.vue.d.ts
3031
- interface Props$12 {
3032
- currentPage?: number;
3033
- pageSize?: number;
3034
- total?: number;
3035
- pageSizes?: number[];
3036
- showTotal?: boolean;
3037
- showSizeChanger?: boolean;
3038
- showQuickJumper?: boolean;
3039
- simple?: boolean;
3040
- }
3041
- declare const __VLS_export$12: _$vue.DefineComponent<Props$12, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
3042
- "update:currentPage": (value: number) => any;
3043
- "update:pageSize": (value: number) => any;
3044
- "page-change": (page: number) => any;
3045
- "size-change": (size: number) => any;
3046
- }, string, _$vue.PublicProps, Readonly<Props$12> & Readonly<{
3047
- "onUpdate:currentPage"?: ((value: number) => any) | undefined;
3048
- "onUpdate:pageSize"?: ((value: number) => any) | undefined;
3049
- "onPage-change"?: ((page: number) => any) | undefined;
3050
- "onSize-change"?: ((size: number) => any) | undefined;
3051
- }>, {
3052
- currentPage: number;
3053
- pageSize: number;
3054
- total: number;
3055
- pageSizes: number[];
3056
- showTotal: boolean;
3057
- showSizeChanger: boolean;
3058
- showQuickJumper: boolean;
3059
- simple: boolean;
3060
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
3061
- declare const _default$36: typeof __VLS_export$12;
3062
- //#endregion
3063
- //#region src/components/navigation/dropdown/dropdown.vue.d.ts
3064
- interface DropdownItem {
3065
- label: string;
3066
- key: string;
3067
- disabled?: boolean;
3068
- }
3069
- /**
3070
- * YdDropdown Props
3071
- * @description 下拉菜单组件
3072
- */
3073
- interface Props$11 {
3074
- /** 菜单项列表 */
3075
- items?: DropdownItem[];
3076
- /** 触发方式 */
3077
- trigger?: "hover" | "click";
3078
- /** 菜单位置 */
3079
- placement?: "bottom-start" | "bottom" | "bottom-end" | "top-start" | "top" | "top-end";
3080
- /** 触发器 aria-label */
3081
- triggerLabel?: string;
3082
- }
3083
- declare var __VLS_1$6: {};
3084
- type __VLS_Slots$8 = {} & {
3085
- default?: (props: typeof __VLS_1$6) => any;
3086
- };
3087
- declare const __VLS_base$8: _$vue.DefineComponent<Props$11, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
3088
- select: (item: DropdownItem) => any;
3089
- }, string, _$vue.PublicProps, Readonly<Props$11> & Readonly<{
3090
- onSelect?: ((item: DropdownItem) => any) | undefined;
3091
- }>, {
3092
- items: DropdownItem[];
3093
- trigger: "hover" | "click";
3094
- placement: "bottom-start" | "bottom" | "bottom-end" | "top-start" | "top" | "top-end";
3095
- triggerLabel: string;
3096
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
3097
- declare const __VLS_export$11: __VLS_WithSlots$8<typeof __VLS_base$8, __VLS_Slots$8>;
3098
- declare const _default$19: typeof __VLS_export$11;
3099
- type __VLS_WithSlots$8<T, S> = T & {
3100
- new (): {
3101
- $slots: S;
3102
- };
3103
- };
3104
- //#endregion
3105
- //#region src/components/navigation/steps/steps.vue.d.ts
3106
- interface StepItem {
3107
- title: string;
3108
- description?: string;
3109
- status?: "wait" | "process" | "finish" | "error";
3110
- }
3111
- interface Props$10 {
3112
- items?: StepItem[];
3113
- current?: number;
3114
- direction?: "horizontal" | "vertical";
3115
- size?: "default" | "small";
3116
- }
3117
- declare const __VLS_export$10: _$vue.DefineComponent<Props$10, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<Props$10> & Readonly<{}>, {
3118
- size: "default" | "small";
3119
- items: StepItem[];
3120
- current: number;
3121
- direction: "horizontal" | "vertical";
3122
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
3123
- declare const _default$51: typeof __VLS_export$10;
3124
- //#endregion
3125
- //#region src/components/navigation/anchor/anchor.vue.d.ts
3126
- interface AnchorItem {
3127
- title: string;
3128
- href: string;
3129
- children?: AnchorItem[];
3130
- }
3131
- interface Props$9 {
3132
- items?: AnchorItem[];
3133
- }
3134
- declare const __VLS_export$9: _$vue.DefineComponent<Props$9, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
3135
- change: (href: string) => any;
3136
- }, string, _$vue.PublicProps, Readonly<Props$9> & Readonly<{
3137
- onChange?: ((href: string) => any) | undefined;
3138
- }>, {
3139
- items: AnchorItem[];
3140
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
3141
- declare const _default: typeof __VLS_export$9;
3142
- //#endregion
3143
- //#region src/components/feedback/modal/modal.vue.d.ts
3144
- /**
3145
- * YdModal Props
3146
- * @description 模态对话框组件,支持聚焦管理、ARIA 属性和键盘导航
3147
- */
3148
- interface Props$8 {
3149
- /** 绑定值,控制对话框显示 */
3150
- modelValue?: boolean;
3151
- /** 对话框标题 */
3152
- title?: string;
3153
- /** 对话框宽度 */
3154
- width?: string | number;
3155
- /** 是否显示头部 */
3156
- showHeader?: boolean;
3157
- /** 是否显示底部按钮区 */
3158
- showFooter?: boolean;
3159
- /** 是否显示关闭按钮 */
3160
- closable?: boolean;
3161
- /** 点击遮罩是否可关闭 */
3162
- maskClosable?: boolean;
3163
- /** 关闭时是否销毁内容 */
3164
- destroyOnClose?: boolean;
3165
- /** 是否使用 Teleport 渲染到 body */
3166
- teleport?: boolean;
3167
- /** 取消按钮文本 */
3168
- cancelText?: string;
3169
- /** 确认按钮文本 */
3170
- confirmText?: string;
3171
- /** 确认按钮加载状态 */
3172
- confirmLoading?: boolean;
3173
- }
3174
- declare var __VLS_16$1: {}, __VLS_18$1: {};
3175
- type __VLS_Slots$7 = {} & {
3176
- default?: (props: typeof __VLS_16$1) => any;
3177
- } & {
3178
- footer?: (props: typeof __VLS_18$1) => any;
3179
- };
3180
- declare const __VLS_base$7: _$vue.DefineComponent<Props$8, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
3181
- "update:modelValue": (value: boolean) => any;
3182
- close: () => any;
3183
- open: () => any;
3184
- confirm: () => any;
3185
- cancel: () => any;
3186
- }, string, _$vue.PublicProps, Readonly<Props$8> & Readonly<{
3187
- "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
3188
- onClose?: (() => any) | undefined;
3189
- onOpen?: (() => any) | undefined;
3190
- onConfirm?: (() => any) | undefined;
3191
- onCancel?: (() => any) | undefined;
3192
- }>, {
3193
- modelValue: boolean;
3194
- closable: boolean;
3195
- title: string;
3196
- width: string | number;
3197
- showHeader: boolean;
3198
- showFooter: boolean;
3199
- maskClosable: boolean;
3200
- destroyOnClose: boolean;
3201
- teleport: boolean;
3202
- cancelText: string;
3203
- confirmText: string;
3204
- confirmLoading: boolean;
3205
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
3206
- declare const __VLS_export$8: __VLS_WithSlots$7<typeof __VLS_base$7, __VLS_Slots$7>;
3207
- declare const _default$35: typeof __VLS_export$8;
3208
- type __VLS_WithSlots$7<T, S> = T & {
3209
- new (): {
3210
- $slots: S;
3211
- };
3212
- };
3213
- //#endregion
3214
- //#region src/components/feedback/drawer/drawer.vue.d.ts
3215
- /**
3216
- * YdDrawer Props
3217
- * @description 抽屉组件,从一侧滑入的对话框
3218
- */
3219
- interface Props$7 {
3220
- /** 绑定值,控制抽屉显示 */
3221
- modelValue?: boolean;
3222
- /** 抽屉标题 */
3223
- title?: string;
3224
- /** 抽屉位置 */
3225
- placement?: "left" | "right" | "top" | "bottom";
3226
- /** 抽屉宽度/高度 */
3227
- width?: string | number;
3228
- /** 是否显示头部 */
3229
- showHeader?: boolean;
3230
- /** 是否显示关闭按钮 */
3231
- closable?: boolean;
3232
- /** 点击遮罩是否可关闭 */
3233
- maskClosable?: boolean;
3234
- /** 关闭时是否销毁内容 */
3235
- destroyOnClose?: boolean;
3236
- /** 是否使用 Teleport */
3237
- teleport?: boolean;
3238
- }
3239
- declare var __VLS_16: {}, __VLS_18: {};
3240
- type __VLS_Slots$6 = {} & {
3241
- default?: (props: typeof __VLS_16) => any;
3242
- } & {
3243
- footer?: (props: typeof __VLS_18) => any;
3244
- };
3245
- declare const __VLS_base$6: _$vue.DefineComponent<Props$7, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
3246
- "update:modelValue": (value: boolean) => any;
3247
- close: () => any;
3248
- open: () => any;
3249
- }, string, _$vue.PublicProps, Readonly<Props$7> & Readonly<{
3250
- "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
3251
- onClose?: (() => any) | undefined;
3252
- onOpen?: (() => any) | undefined;
3253
- }>, {
3254
- modelValue: boolean;
3255
- placement: "left" | "right" | "top" | "bottom";
3256
- closable: boolean;
3257
- title: string;
3258
- width: string | number;
3259
- showHeader: boolean;
3260
- maskClosable: boolean;
3261
- destroyOnClose: boolean;
3262
- teleport: boolean;
3263
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
3264
- declare const __VLS_export$7: __VLS_WithSlots$6<typeof __VLS_base$6, __VLS_Slots$6>;
3265
- declare const _default$18: typeof __VLS_export$7;
3266
- type __VLS_WithSlots$6<T, S> = T & {
3267
- new (): {
3268
- $slots: S;
3269
- };
3270
- };
3271
- //#endregion
3272
- //#region src/components/feedback/message/index.d.ts
3273
- interface MessageOptions {
3274
- content: string;
3275
- duration?: number;
3276
- closable?: boolean;
3277
- }
3278
- declare const Message: {
3279
- info: (options: string | MessageOptions) => {
3280
- id: string;
3281
- };
3282
- success: (options: string | MessageOptions) => {
3283
- id: string;
3284
- };
3285
- warning: (options: string | MessageOptions) => {
3286
- id: string;
3287
- };
3288
- error: (options: string | MessageOptions) => {
3289
- id: string;
3290
- };
3291
- };
3292
- //#endregion
3293
- //#region src/components/feedback/notification/index.d.ts
3294
- interface NotificationOptions {
3295
- title?: string;
3296
- message?: string;
3297
- duration?: number;
3298
- closable?: boolean;
3299
- }
3300
- declare const Notification: {
3301
- info: (options: string | NotificationOptions) => {
3302
- id: string;
3303
- };
3304
- success: (options: string | NotificationOptions) => {
3305
- id: string;
3306
- };
3307
- warning: (options: string | NotificationOptions) => {
3308
- id: string;
3309
- };
3310
- error: (options: string | NotificationOptions) => {
3311
- id: string;
3312
- };
3313
- };
3314
- //#endregion
3315
- //#region src/components/feedback/tooltip/tooltip.vue.d.ts
3316
- interface Props$6 {
3317
- content?: string;
3318
- placement?: "top" | "bottom" | "left" | "right";
3319
- trigger?: "hover" | "click";
3320
- delay?: number;
3321
- }
3322
- declare var __VLS_1$5: {}, __VLS_15: {};
3323
- type __VLS_Slots$5 = {} & {
3324
- default?: (props: typeof __VLS_1$5) => any;
3325
- } & {
3326
- content?: (props: typeof __VLS_15) => any;
3327
- };
3328
- declare const __VLS_base$5: _$vue.DefineComponent<Props$6, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<Props$6> & Readonly<{}>, {
3329
- trigger: "hover" | "click";
3330
- placement: "top" | "bottom" | "left" | "right";
3331
- content: string;
3332
- delay: number;
3333
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
3334
- declare const __VLS_export$6: __VLS_WithSlots$5<typeof __VLS_base$5, __VLS_Slots$5>;
3335
- declare const _default$59: typeof __VLS_export$6;
3336
- type __VLS_WithSlots$5<T, S> = T & {
3337
- new (): {
3338
- $slots: S;
3339
- };
3340
- };
3341
- //#endregion
3342
- //#region src/components/feedback/spin/spin.vue.d.ts
3343
- interface Props$5 {
3344
- spinning?: boolean;
3345
- size?: number;
3346
- tip?: string;
3347
- delay?: number;
3348
- }
3349
- declare var __VLS_1$4: {}, __VLS_3$1: {};
3350
- type __VLS_Slots$4 = {} & {
3351
- indicator?: (props: typeof __VLS_1$4) => any;
3352
- } & {
3353
- default?: (props: typeof __VLS_3$1) => any;
3354
- };
3355
- declare const __VLS_base$4: _$vue.DefineComponent<Props$5, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<Props$5> & Readonly<{}>, {
3356
- size: number;
3357
- tip: string;
3358
- delay: number;
3359
- spinning: boolean;
3360
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
3361
- declare const __VLS_export$5: __VLS_WithSlots$4<typeof __VLS_base$4, __VLS_Slots$4>;
3362
- declare const _default$49: typeof __VLS_export$5;
3363
- type __VLS_WithSlots$4<T, S> = T & {
3364
- new (): {
3365
- $slots: S;
3366
- };
3367
- };
3368
- //#endregion
3369
- //#region src/components/feedback/skeleton/skeleton.vue.d.ts
3370
- interface Props$4 {
3371
- loading?: boolean;
3372
- avatar?: boolean | number | string;
3373
- title?: boolean;
3374
- titleWidth?: string;
3375
- titleHeight?: string;
3376
- rows?: number;
3377
- lastRowWidth?: string;
3378
- animated?: boolean;
3379
- }
3380
- declare var __VLS_1$3: {};
3381
- type __VLS_Slots$3 = {} & {
3382
- default?: (props: typeof __VLS_1$3) => any;
3383
- };
3384
- declare const __VLS_base$3: _$vue.DefineComponent<Props$4, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<Props$4> & Readonly<{}>, {
3385
- rows: number;
3386
- loading: boolean;
3387
- title: boolean;
3388
- avatar: boolean | number | string;
3389
- titleWidth: string;
3390
- titleHeight: string;
3391
- lastRowWidth: string;
3392
- animated: boolean;
3393
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
3394
- declare const __VLS_export$4: __VLS_WithSlots$3<typeof __VLS_base$3, __VLS_Slots$3>;
3395
- declare const _default$46: typeof __VLS_export$4;
3396
- type __VLS_WithSlots$3<T, S> = T & {
3397
- new (): {
3398
- $slots: S;
3399
- };
3400
- };
3401
- //#endregion
3402
- //#region src/components/feedback/popconfirm/popconfirm.vue.d.ts
3403
- interface Props$3 {
3404
- title?: string;
3405
- confirmText?: string;
3406
- cancelText?: string;
3407
- }
3408
- declare var __VLS_1$2: {};
3409
- type __VLS_Slots$2 = {} & {
3410
- default?: (props: typeof __VLS_1$2) => any;
3411
- };
3412
- declare const __VLS_base$2: _$vue.DefineComponent<Props$3, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
3413
- confirm: () => any;
3414
- cancel: () => any;
3415
- }, string, _$vue.PublicProps, Readonly<Props$3> & Readonly<{
3416
- onConfirm?: (() => any) | undefined;
3417
- onCancel?: (() => any) | undefined;
3418
- }>, {
3419
- title: string;
3420
- cancelText: string;
3421
- confirmText: string;
3422
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
3423
- declare const __VLS_export$3: __VLS_WithSlots$2<typeof __VLS_base$2, __VLS_Slots$2>;
3424
- declare const _default$38: typeof __VLS_export$3;
3425
- type __VLS_WithSlots$2<T, S> = T & {
3426
- new (): {
3427
- $slots: S;
3428
- };
3429
- };
3430
- //#endregion
3431
- //#region src/components/feedback/result/result.vue.d.ts
3432
- interface Props$2 {
3433
- status?: "success" | "error" | "warning" | "info" | "404" | "403" | "500";
3434
- title?: string;
3435
- subTitle?: string;
3436
- }
3437
- declare var __VLS_1$1: {}, __VLS_3: {}, __VLS_5: {};
3438
- type __VLS_Slots$1 = {} & {
3439
- icon?: (props: typeof __VLS_1$1) => any;
3440
- } & {
3441
- default?: (props: typeof __VLS_3) => any;
3442
- } & {
3443
- extra?: (props: typeof __VLS_5) => any;
3444
- };
3445
- declare const __VLS_base$1: _$vue.DefineComponent<Props$2, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<Props$2> & Readonly<{}>, {
3446
- title: string;
3447
- status: "success" | "error" | "warning" | "info" | "404" | "403" | "500";
3448
- subTitle: string;
3449
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
3450
- declare const __VLS_export$2: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
3451
- declare const _default$43: typeof __VLS_export$2;
3452
- type __VLS_WithSlots$1<T, S> = T & {
3453
- new (): {
3454
- $slots: S;
3455
- };
3456
- };
3457
- //#endregion
3458
- //#region src/components/feedback/context-menu/context-menu.vue.d.ts
3459
- interface ContextMenuItem {
3460
- key?: string;
3461
- label: string;
3462
- icon?: string;
3463
- shortcut?: string;
3464
- disabled?: boolean;
3465
- active?: boolean;
3466
- separator?: boolean;
3467
- children?: ContextMenuItem[];
3468
- }
3469
- interface Props$1 {
3470
- items?: ContextMenuItem[];
3471
- visible?: boolean;
3472
- x?: number;
3473
- y?: number;
3474
- }
3475
- declare const __VLS_export$1: _$vue.DefineComponent<Props$1, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
3476
- select: (item: ContextMenuItem) => any;
3477
- "update:visible": (value: boolean) => any;
3478
- }, string, _$vue.PublicProps, Readonly<Props$1> & Readonly<{
3479
- onSelect?: ((item: ContextMenuItem) => any) | undefined;
3480
- "onUpdate:visible"?: ((value: boolean) => any) | undefined;
3481
- }>, {
3482
- items: ContextMenuItem[];
3483
- visible: boolean;
3484
- x: number;
3485
- y: number;
3486
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
3487
- declare const _default$14: typeof __VLS_export$1;
3488
- //#endregion
3489
- //#region src/components/config-provider/config-provider.vue.d.ts
3490
- interface Props {
3491
- theme?: "light" | "dark" | "auto";
3492
- locale?: string;
3493
- size?: "xs" | "sm" | "md" | "lg";
3494
- zIndex?: number;
3495
- }
3496
- declare var __VLS_1: {};
3497
- type __VLS_Slots = {} & {
3498
- default?: (props: typeof __VLS_1) => any;
3499
- };
3500
- declare const __VLS_base: _$vue.DefineComponent<Props, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<Props> & Readonly<{}>, {
3501
- locale: string;
3502
- theme: "light" | "dark" | "auto";
3503
- size: "xs" | "sm" | "md" | "lg";
3504
- zIndex: number;
3505
- }, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
3506
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
3507
- declare const _default$13: typeof __VLS_export;
3508
- type __VLS_WithSlots<T, S> = T & {
3509
- new (): {
3510
- $slots: S;
3511
- };
3512
- };
3513
- //#endregion
3514
- //#region src/composables/use-namespace.d.ts
3515
- /**
3516
- * 创建命名空间,用于生成 BEM 风格的 class 名称
3517
- * @param namespace - 命名空间前缀
3518
- * @returns 命名空间工具对象
3519
- */
3520
- declare function useNamespace(namespace: string): {
3521
- b: (element?: string) => string;
3522
- e: (element: string) => string;
3523
- m: (modifier: string) => string;
3524
- bem: (element?: string, modifier?: string) => string;
3525
- };
3526
- //#endregion
3527
- //#region src/composables/use-form-validate.d.ts
3528
- /**
3529
- * 表单校验 composable
3530
- */
3531
- declare function useFormValidate(rules: Ref<FormRules> | FormRules, model: Ref<Record<string, unknown>> | Record<string, unknown>): {
3532
- errors: Record<string, ValidateError[]>;
3533
- items: Ref<FormItemInstance[]>;
3534
- validate: () => Promise<ValidateResult>;
3535
- validateField: (prop: string) => Promise<ValidateError | null>;
3536
- resetFields: () => void;
3537
- clearValidate: (fields?: string[]) => void;
3538
- registerItem: (item: FormItemInstance) => void;
3539
- unregisterItem: (item: FormItemInstance) => void;
3540
- };
3541
- //#endregion
3542
- //#region src/composables/use-login-form.d.ts
3543
- interface LoginFormData {
3544
- username: string;
3545
- password: string;
3546
- phone: string;
3547
- code: string;
3548
- captchaCode: string;
3549
- remember: boolean;
3550
- }
3551
- interface UseLoginFormOptions {
3552
- /** 是否显示验证码 */
3553
- showCaptcha?: boolean;
3554
- /** 验证码实例 */
3555
- captchaCode?: Ref<string>;
3556
- /** 验证码 key (用于刷新) */
3557
- captchaKey?: Ref<number>;
3558
- /** 表单类型: account | phone */
3559
- defaultTab?: string;
3560
- /** 发送验证码回调 */
3561
- onSendCode?: (phone: string) => void;
3562
- /** 后端提供的验证码图片地址 */
3563
- captchaSrc?: Ref<string>;
3564
- /** 后端提供的验证码答案 */
3565
- captchaAnswer?: Ref<string>;
3566
- /** 验证码模式:客户端生成并校验,或后端提供由后端校验 */
3567
- captchaMode?: "client" | "server";
3568
- }
3569
- interface UseLoginFormReturn {
3570
- /** 表单数据 */
3571
- formData: LoginFormData;
3572
- /** 当前 tab */
3573
- activeTab: Ref<string>;
3574
- /** 错误消息 */
3575
- errorMsg: Ref<string>;
3576
- /** 密码可见性 */
3577
- showPassword: Ref<boolean>;
3578
- /** 验证码倒计时 */
3579
- countdown: Ref<number>;
3580
- /** 提交中 */
3581
- loading: Ref<boolean>;
3582
- /** 验证并提交 */
3583
- handleSubmit: () => boolean;
3584
- /** 刷新验证码 */
3585
- refreshCaptcha: () => void;
3586
- /** 发送验证码 */
3587
- handleSendCode: () => void;
3588
- /** 重置表单 */
3589
- resetForm: () => void;
3590
- /** 设置加载状态 */
3591
- setLoading: (loading: boolean) => void;
3592
- /** 设置错误消息 */
3593
- setError: (error: string) => void;
3594
- }
3595
- /**
3596
- * 登录表单逻辑
3597
- */
3598
- declare function useLoginForm(options?: UseLoginFormOptions): UseLoginFormReturn;
3599
- //#endregion
3600
- //#region src/composables/use-menu.d.ts
3601
- /**
3602
- * 过滤菜单项(根据权限和隐藏状态)
3603
- */
3604
- declare function filterMenuItems(items: MenuItem[], userPermissions?: UserPermissions): MenuItem[];
3605
- /**
3606
- * 根据菜单生成路由配置
3607
- */
3608
- declare function menuToRoutes(items: MenuItem[], basePath?: string): {
3609
- path: string;
3610
- name: string;
3611
- meta: Record<string, unknown>;
3612
- }[];
3613
- /**
3614
- * 从当前激活菜单 key 获取面包屑路径
3615
- */
3616
- declare function getBreadcrumbPaths(items: MenuItem[], activeKey: string, currentPath?: MenuItem[]): MenuItem[];
3617
- /**
3618
- * 从菜单 key 查找菜单项
3619
- */
3620
- declare function findMenuItem(items: MenuItem[], key: string): MenuItem | undefined;
3621
- /**
3622
- * 查找菜单项的完整路径
3623
- */
3624
- declare function findMenuPath(items: MenuItem[], key: string, parents?: MenuItem[]): MenuItem[];
3625
- /**
3626
- * 搜索菜单项(模糊搜索,支持权限过滤)
3627
- */
3628
- declare function searchMenuItems(items: MenuItem[], query: string, userPermissions?: UserPermissions): MenuItem[];
3629
- /**
3630
- * 获取菜单项的扁平化列表(用于搜索)
3631
- */
3632
- declare function flattenMenuItems(items: MenuItem[]): MenuItem[];
3633
- //#endregion
3634
- //#region src/hooks/use-loading.d.ts
3635
- /**
3636
- * Loading 状态管理 hook
3637
- * @param initialValue - 初始加载状态
3638
- * @returns 响应式 loading 状态和控制方法
3639
- */
3640
- declare function useLoading(initialValue?: boolean): {
3641
- loading: _$vue.Ref<boolean, boolean>;
3642
- isLoading: _$vue.ComputedRef<boolean>;
3643
- startLoading: () => void;
3644
- stopLoading: () => void;
3645
- withLoading: <T>(fn: () => Promise<T>) => Promise<T>;
3646
- };
3647
- //#endregion
3648
- //#region src/utils/crypto.d.ts
3649
- /**
3650
- * Web Crypto API 加密工具
3651
- * 使用 AES-GCM 算法进行对称加密
3652
- */
3653
- /**
3654
- * 生成随机会话密钥 (AES-GCM 256位)
3655
- */
3656
- declare function generateSessionKey(): Promise<CryptoKey>;
3657
- /**
3658
- * 加密数据
3659
- * @param data 要加密的字符串
3660
- * @param key 加密密钥 (CryptoKey 或 字符串)
3661
- * @returns Base64 编码的密文 (包含 IV)
3662
- */
3663
- declare function encrypt(data: string, key: CryptoKey | string): Promise<string>;
3664
- /**
3665
- * 解密数据
3666
- * @param base64Data Base64 编码的密文
3667
- * @param key 解密密钥
3668
- * @returns 解密后的字符串,失败返回 null
3669
- */
3670
- declare function decrypt(base64Data: string, key: CryptoKey | string): Promise<string | null>;
3671
- //#endregion
3672
- //#region src/utils/secure-storage.d.ts
3673
- /**
3674
- * 初始化安全存储
3675
- * 必须在应用启动时调用
3676
- */
3677
- declare function initSecureStorage(): Promise<void>;
3678
- /**
3679
- * 混合加密存储类
3680
- */
3681
- declare class SecureStorage {
3682
- private storage;
3683
- private key;
3684
- constructor(type: "local" | "session");
3685
- /**
3686
- * 异步写入
3687
- */
3688
- setItem<T = unknown>(key: string, value: T): Promise<void>;
3689
- /**
3690
- * 异步读取
3691
- */
3692
- getItem<T>(key: string): Promise<T | null>;
3693
- /**
3694
- * 同步删除
3695
- */
3696
- removeItem(key: string): void;
3697
- /**
3698
- * 同步清空
3699
- */
3700
- clear(): void;
3701
- }
3702
- declare const secureLocal: SecureStorage;
3703
- declare const secureSession: SecureStorage;
3704
- //#endregion
3705
- //#region src/utils/router.d.ts
3706
- /**
3707
- * 路由元信息
3708
- */
3709
- interface RouteMeta {
3710
- /** 标题 */
3711
- title?: string;
3712
- /** 图标 */
3713
- icon?: string;
3714
- /** 是否隐藏 */
3715
- hidden?: boolean;
3716
- /** 权限 */
3717
- roles?: string[];
3718
- /** 缓存 */
3719
- keepAlive?: boolean;
3720
- /** 固定在 tabs */
3721
- affix?: boolean;
3722
- }
3723
- /**
3724
- * 简单路由记录(基础版本,不依赖 vue-router)
3725
- */
3726
- interface SimpleRouteRecord {
3727
- /** 路由路径 */
3728
- path: string;
3729
- /** 路由名称 */
3730
- name?: string;
3731
- /** 组件 */
3732
- component?: unknown;
3733
- /** 子路由 */
3734
- children?: SimpleRouteRecord[];
3735
- /** 重定向 */
3736
- redirect?: string | SimpleRouteRecord;
3737
- /** 元信息 */
3738
- meta?: RouteMeta;
3739
- /** 是否完全匹配 */
3740
- exact?: boolean;
3741
- }
3742
- /**
3743
- * 路由配置选项
3744
- */
3745
- interface RouterOptions {
3746
- /** 基础路径 */
3747
- base?: string;
3748
- /** 是否使用历史模式 */
3749
- history?: "hash" | "html5" | "memory";
3750
- /** 路由列表 */
3751
- routes?: SimpleRouteRecord[];
3752
- }
3753
- /**
3754
- * 动态路由管理器
3755
- */
3756
- declare class DynamicRouter {
3757
- private routes;
3758
- private routeMap;
3759
- /**
3760
- * 设置路由列表
3761
- */
3762
- setRoutes(routes: SimpleRouteRecord[]): void;
3763
- /**
3764
- * 获取路由列表
3765
- */
3766
- getRoutes(): SimpleRouteRecord[];
3767
- /**
3768
- * 构建路由映射
3769
- */
3770
- private buildRouteMap;
3771
- /**
3772
- * 根据路径获取路由
3773
- */
3774
- getRoute(path: string): SimpleRouteRecord | undefined;
3775
- /**
3776
- * 检查路由是否存在
3777
- */
3778
- hasRoute(path: string): boolean;
3779
- /**
3780
- * 添加路由
3781
- */
3782
- addRoute(route: SimpleRouteRecord, parentPath?: string): void;
3783
- /**
3784
- * 移除路由
3785
- */
3786
- removeRoute(path: string): boolean;
3787
- /**
3788
- * 获取可见路由(根据 meta.hidden)
3789
- */
3790
- getVisibleRoutes(): SimpleRouteRecord[];
3791
- /**
3792
- * 根据权限过滤路由
3793
- */
3794
- filterByRoles(roles: string[]): SimpleRouteRecord[];
3795
- /**
3796
- * 扁平化路由
3797
- */
3798
- flattenRoutes(routes?: SimpleRouteRecord[]): SimpleRouteRecord[];
3799
- /**
3800
- * 路径匹配
3801
- */
3802
- matchPath(path: string, pattern: string | RegExp): boolean;
3803
- /**
3804
- * 查找路由名称
3805
- */
3806
- findRouteByName(name: string): SimpleRouteRecord | undefined;
3807
- /**
3808
- * 查找路由路径
3809
- */
3810
- findPathByName(name: string): string | null;
3811
- }
3812
- /**
3813
- * 路由工具单例
3814
- */
3815
- declare const dynamicRouter: DynamicRouter;
3816
- /**
3817
- * 路径规范化
3818
- */
3819
- declare function normalizePath(path: string): string;
3820
- /**
3821
- * 路径拼接
3822
- */
3823
- declare function joinPath(...parts: string[]): string;
3824
- /**
3825
- * 路径匹配检查
3826
- */
3827
- declare function isPathMatch(path: string, pattern: string | RegExp): boolean;
3828
- /**
3829
- * 路由权限检查
3830
- */
3831
- declare function checkRoutePermission(route: SimpleRouteRecord | undefined, userRoles: string[]): boolean;
3832
- /**
3833
- * 路由标题生成器
3834
- */
3835
- declare function generateRouteTitle(title: string, prefix?: string): string;
3836
- /**
3837
- * 构建面包屑
3838
- */
3839
- declare function buildBreadcrumb(path: string, routes?: SimpleRouteRecord[]): SimpleRouteRecord[];
3840
- /**
3841
- * 路由记录类型转换
3842
- */
3843
- declare function convertToSimpleRoute(route: RouteRecordRaw): SimpleRouteRecord;
3844
- //#endregion
3845
- //#region src/utils/index.d.ts
3846
- /**
3847
- * Utility functions
3848
- * 工具函数集合
3849
- */
3850
- declare const THROTTLE_DEFAULTS: {
3851
- default: number;
3852
- tooltip: number;
3853
- scroll: number;
3854
- resize: number;
3855
- input: number;
3856
- };
3857
- declare const DEBOUNCE_DEFAULTS: {
3858
- default: number;
3859
- search: number;
3860
- resize: number;
3861
- form: number;
3862
- };
3863
- /**
3864
- * 合并 class 名称
3865
- */
3866
- declare function cn(...classes: (string | undefined | null | false)[]): string;
3867
- /**
3868
- * 生成唯一 ID
3869
- */
3870
- declare function generateId(prefix?: string): string;
3871
- /**
3872
- * 防抖函数
3873
- */
3874
- declare function debounce<T extends (...args: unknown[]) => unknown>(fn: T, delay?: number): (...args: Parameters<T>) => void;
3875
- /**
3876
- * 节流函数
3877
- */
3878
- declare function throttle<T extends (...args: unknown[]) => unknown>(fn: T, limit?: number): (...args: Parameters<T>) => void;
3879
- /**
3880
- * 深拷贝
3881
- */
3882
- declare function deepClone<T>(obj: T): T;
3883
- /**
3884
- * 判断是否为空对象
3885
- */
3886
- declare function isEmptyObject(obj: Record<string, unknown>): boolean;
3887
- //#endregion
3888
- //#region src/styles/themes/index.d.ts
3889
- /**
3890
- * Theme definitions
3891
- * 主题变体:light/dark 等
3892
- */
3893
- declare const themes: {
3894
- readonly light: {
3895
- readonly colors: {
3896
- readonly background: "#ffffff";
3897
- readonly foreground: "#111827";
3898
- readonly muted: "#f3f4f6";
3899
- readonly "muted-foreground": "#6b7280";
3900
- readonly border: "#e5e7eb";
3901
- readonly input: "#e5e7eb";
3902
- readonly ring: "#3b82f6";
3903
- };
3904
- };
3905
- readonly dark: {
3906
- readonly colors: {
3907
- readonly background: "#111827";
3908
- readonly foreground: "#f9fafb";
3909
- readonly muted: "#1f2937";
3910
- readonly "muted-foreground": "#9ca3af";
3911
- readonly border: "#374151";
3912
- readonly input: "#374151";
3913
- readonly ring: "#60a5fa";
3914
- };
3915
- };
3916
- };
3917
- type ThemeName = keyof typeof themes;
3918
- type Theme = (typeof themes)[ThemeName];
3919
- //#endregion
3920
- //#region src/constants/index.d.ts
3921
- /**
3922
- * Application constants
3923
- * 常量定义
3924
- */
3925
- /** 组件库前缀 */
3926
- declare const COMPONENT_PREFIX: "Yd";
3927
- /** CSS 类名前缀 */
3928
- declare const CSS_PREFIX: "yd";
3929
- /** 默认动画时长 (ms) */
3930
- declare const ANIMATION_DURATION: 200;
3931
- /** 默认防抖延迟 (ms) */
3932
- declare const DEBOUNCE_DELAY: 300;
3933
- /** 默认节流间隔 (ms) */
3934
- declare const THROTTLE_DELAY: 300;
3935
- /** z-index 层级 */
3936
- declare const Z_INDEX: {
3937
- readonly DROPDOWN: 1000;
3938
- readonly STICKY: 1020;
3939
- readonly FIXED: 1030;
3940
- readonly MODAL_BACKDROP: 1040;
3941
- readonly MODAL: 1050;
3942
- readonly POPOVER: 1060;
3943
- readonly TOOLTIP: 1070;
3944
- };
3945
- //#endregion
3946
- //#region src/stores/plugins/secure-storage.d.ts
3947
- /**
3948
- * 安全存储 Pinia 插件
3949
- */
3950
- declare function secureStoragePlugin({
3951
- store
3952
- }: PiniaPluginContext): void;
3953
- //#endregion
3954
- //#region src/locales/index.d.ts
3955
- type Locale = string;
3956
- declare const i18n: _$vue_i18n0.I18n<{}, {}, {}, string, false>;
3957
- /**
3958
- * 支持的语言
3959
- */
3960
- declare const supportedLocales: readonly [{
3961
- readonly label: "简体中文";
3962
- readonly value: "zh-CN";
3963
- }, {
3964
- readonly label: "English";
3965
- readonly value: "en-US";
3966
- }];
3967
- type SupportedLocale = (typeof supportedLocales)[number]["value"];
3968
- /**
3969
- * 注册懒加载的 locale 文件
3970
- */
3971
- declare function registerLazyLocale(locale: Locale, loader: () => Promise<Record<string, unknown>>): void;
3972
- /**
3973
- * 设置语言
3974
- */
3975
- declare function setLocale(locale: Locale): void;
3976
- /**
3977
- * 获取当前语言
3978
- */
3979
- declare function getCurrentLocale(): Locale;
3980
- /**
3981
- * 初始化 i18n
3982
- */
3983
- declare function setupI18n(app: App, options?: {
3984
- defaultLocale?: Locale;
3985
- lazy?: boolean;
3986
- }): Promise<void>;
3987
- /**
3988
- * 切换语言
3989
- */
3990
- declare function changeLocale(locale: Locale): Promise<void>;
3991
- /**
3992
- * 获取翻译文本
3993
- */
3994
- declare function t(key: string, params?: Record<string, unknown>): string;
3995
- /**
3996
- * 获取翻译文本(复数形式)- 使用 'one' 和 'other' 选择器
3997
- */
3998
- declare function tc(key: string, choice?: number, params?: Record<string, unknown>): string;
3999
- /**
4000
- * 获取日期时间格式化
4001
- */
4002
- declare function dt(value: Date | number | string, options?: Intl.DateTimeFormatOptions, locale?: Locale): string;
4003
- /**
4004
- * 获取数字格式化
4005
- */
4006
- declare function nf(value: number, options?: Intl.NumberFormatOptions, locale?: Locale): string;
4007
- //#endregion
4008
- //#region src/resolver/index.d.ts
4009
- /**
4010
- * yd-admin 按需导入解析器
4011
- * 支持 unplugin-vue-components 自动导入
4012
- *
4013
- * 使用方式:
4014
- * ```ts
4015
- * // vite.config.ts
4016
- * import Components from 'unplugin-vue-components/vite'
4017
- * import { YdAdminResolver } from 'yd-admin/resolver'
4018
- *
4019
- * Components({
4020
- * resolvers: [YdAdminResolver()]
4021
- * })
4022
- * ```
4023
- */
4024
- interface ResolverResult {
4025
- name: string;
4026
- from: string;
4027
- sideImport?: string;
4028
- }
4029
- type ComponentResolverFunc = (componentName: string) => ResolverResult | undefined;
4030
- /**
4031
- * YdAdmin 组件库解析器
4032
- * 将 YdXxx 组件自动映射到 yd-admin 包
4033
- */
4034
- declare function YdAdminResolver(): ComponentResolverFunc;
4035
- //#endregion
4036
- export { ANIMATION_DURATION, Alignment, ApiResponse, ArrayElement, ArrowFunction, COMPONENT_PREFIX, CSS_PREFIX, Callback, CascaderNode, CascaderOption, ComponentSize, ComponentVariant, Constructor, CssProperty, DEBOUNCE_DEFAULTS, DEBOUNCE_DELAY, DEFAULT_LAYOUT_SIZE, DateFormat, DateRange, DateShortcut, DeepFrozen, DeepPartial, DeepReadonly, DeepReadonlyArray, DeepRequired, Deferred, DenseArray, Direction, DrawerConfig, Emitter, EventHandler, Exclusive, FieldComponent, FieldSchema, FilterKeys, FormActionType, FormError, FormInstance$1 as FormInstance, FormItemInstance, FormModel, FormRuleExtra, FormRules, FormSchema, FormStatus, FormValidateResult, FormValue, GetKeys, GetProp, GroupSchema, Instanceof, Intersection, KeyValuePair, Known, LayoutContext, LayoutSize, LayoutTheme, Listener, Locale, MaybePromise, MenuItem, Message, MessageConfig, ModalConfig, NonEmptyArray, Noop, Notification, NotificationConfig, Omit, PaginatedApiResponse, PaginationConfig, PaginationParams, PaginationResult, Parameters$1 as Parameters, Pick, Promisable, Recordable, ReturnType, type RouteMeta, type RouterOptions, RowSchema, SelectGroup, SelectOption, SelectValue, SelectedValue, type SimpleRouteRecord, SizeKeys, SlotSchema, StringLiteral, SupportedLocale, THROTTLE_DEFAULTS, THROTTLE_DELAY, TabItem, TableColumn, TableRow, Theme, ThemeName, ThemeTokens, ThisParameterType, TreeNode, UploadFile, UploadRequest, UploadResponse, UserInfo, ValidateError, ValidateResult, YdAdminResolver, _default as YdAnchor, _default$1 as YdAutoComplete, _default$2 as YdAvatar, _default$3 as YdBadge, _default$4 as YdBreadcrumb, _default$5 as YdButton, _default$6 as YdCaptcha, _default$7 as YdCard, _default$8 as YdCascader, _default$9 as YdCheckbox, _default$10 as YdCheckboxGroup, _default$11 as YdCollapse, _default$12 as YdColorPicker, _default$13 as YdConfigProvider, _default$14 as YdContextMenu, _default$15 as YdDatePicker, _default$16 as YdDateRangePicker, _default$17 as YdDivider, _default$18 as YdDrawer, _default$19 as YdDropdown, _default$20 as YdEmpty, _default$21 as YdForm, _default$22 as YdFormItem, _default$23 as YdImage, _default$24 as YdImagePreviewGroup, _default$25 as YdInput, _default$26 as YdInputNumber, _default$27 as YdLayout, _default$28 as YdLayoutContent, _default$29 as YdLayoutHeader, _default$30 as YdLayoutSidebar, _default$31 as YdList, _default$32 as YdLogin, _default$33 as YdLoginCentered, _default$34 as YdMenu, _default$35 as YdModal, _default$36 as YdPagination, _default$37 as YdPinInput, _default$38 as YdPopconfirm, _default$39 as YdProgress, _default$40 as YdRadio, _default$41 as YdRadioGroup, _default$42 as YdRate, _default$43 as YdResult, _default$44 as YdSchemaForm, _default$45 as YdSelect, _default$46 as YdSkeleton, _default$47 as YdSlider, _default$48 as YdSpace, _default$49 as YdSpin, _default$50 as YdStatistic, _default$51 as YdSteps, _default$52 as YdSwitch, _default$53 as YdTable, _default$54 as YdTabs, _default$55 as YdTag, _default$56 as YdTextarea, _default$57 as YdTimePicker, _default$58 as YdTimeline, _default$59 as YdTooltip, _default$60 as YdTransfer, _default$61 as YdTree, _default$62 as YdTreeSelect, _default$63 as YdUpload, Z_INDEX, buildBreadcrumb, changeLocale, checkRoutePermission, cn, convertToSimpleRoute, debounce, decrypt, deepClone, dt, dynamicRouter, encrypt, filterMenuItems, findMenuItem, findMenuPath, flattenMenuItems, generateId, generateRouteTitle, generateSessionKey, getBreadcrumbPaths, getCurrentLocale, i18n, initSecureStorage, isArray, isDate, isEmpty, isEmptyObject, isFunction, isObject, isPathMatch, isPromise, joinPath, menuToRoutes, nf, normalizePath, registerLazyLocale, searchMenuItems, secureLocal, secureSession, secureStoragePlugin, setLocale, setupI18n, supportedLocales, t, tc, themes, throttle, useFormSchema, useFormValidate, useLoading, useLoginForm, useNamespace };