yd-admin 0.1.4 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +327 -295
- package/dist/chunk-pbuEa-1d.js +13 -0
- package/dist/index.d.ts +2037 -420
- package/dist/index.js +3340 -311
- package/dist/style.css +2068 -1484
- package/package.json +81 -74
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as _$vue from "vue";
|
|
2
|
-
import { App, Ref } from "vue";
|
|
2
|
+
import { App, ComputedRef, Ref, VNode } from "vue";
|
|
3
3
|
import * as _$vue_i18n0 from "vue-i18n";
|
|
4
|
+
import { NavigationGuardNext, RouteLocationNormalized, RouteLocationNormalized as RouteLocationNormalized$1, RouteRecordName, RouteRecordRaw, RouteRecordRaw as RouteRecordRaw$1, Router, Router as Router$1, createMemoryHistory, createWebHashHistory, createWebHistory } from "vue-router";
|
|
4
5
|
import { PiniaPluginContext } from "pinia";
|
|
5
6
|
|
|
6
7
|
//#region src/types/index.d.ts
|
|
@@ -24,9 +25,424 @@ type MaybePromise<T> = T | Promise<T>;
|
|
|
24
25
|
type DeepPartial<T> = { [P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P] };
|
|
25
26
|
/** 字符串字面量工具类型 */
|
|
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$1<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
|
+
}
|
|
27
443
|
//#endregion
|
|
28
444
|
//#region src/components/base/button/button.vue.d.ts
|
|
29
|
-
interface Props$
|
|
445
|
+
interface Props$65 {
|
|
30
446
|
/** 按钮类型 */
|
|
31
447
|
variant?: ComponentVariant;
|
|
32
448
|
/** 按钮尺寸 */
|
|
@@ -44,34 +460,75 @@ interface Props$60 {
|
|
|
44
460
|
/** 原生 type 属性 */
|
|
45
461
|
nativeType?: "button" | "submit" | "reset";
|
|
46
462
|
}
|
|
47
|
-
declare var __VLS_1$
|
|
48
|
-
type __VLS_Slots$
|
|
49
|
-
default?: (props: typeof __VLS_1$
|
|
463
|
+
declare var __VLS_1$30: {};
|
|
464
|
+
type __VLS_Slots$42 = {} & {
|
|
465
|
+
default?: (props: typeof __VLS_1$30) => any;
|
|
50
466
|
};
|
|
51
|
-
declare const __VLS_base$
|
|
467
|
+
declare const __VLS_base$42: _$vue.DefineComponent<Props$65, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
52
468
|
click: (event: MouseEvent) => any;
|
|
53
|
-
}, string, _$vue.PublicProps, Readonly<Props$
|
|
469
|
+
}, string, _$vue.PublicProps, Readonly<Props$65> & Readonly<{
|
|
54
470
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
55
471
|
}>, {
|
|
56
472
|
size: ComponentSize;
|
|
57
473
|
variant: ComponentVariant;
|
|
58
474
|
loading: boolean;
|
|
59
475
|
circle: boolean;
|
|
60
|
-
disabled: boolean;
|
|
61
476
|
plain: boolean;
|
|
62
477
|
round: boolean;
|
|
478
|
+
disabled: boolean;
|
|
63
479
|
nativeType: "button" | "submit" | "reset";
|
|
64
480
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
65
|
-
declare const __VLS_export$
|
|
66
|
-
declare const _default$5: typeof __VLS_export$
|
|
67
|
-
type __VLS_WithSlots$
|
|
481
|
+
declare const __VLS_export$65: __VLS_WithSlots$42<typeof __VLS_base$42, __VLS_Slots$42>;
|
|
482
|
+
declare const _default$5: typeof __VLS_export$65;
|
|
483
|
+
type __VLS_WithSlots$42<T, S> = T & {
|
|
484
|
+
new (): {
|
|
485
|
+
$slots: S;
|
|
486
|
+
};
|
|
487
|
+
};
|
|
488
|
+
//#endregion
|
|
489
|
+
//#region src/components/base/icon/icon.vue.d.ts
|
|
490
|
+
interface Props$64 {
|
|
491
|
+
/** Icon name or SVG content */
|
|
492
|
+
name?: string;
|
|
493
|
+
/** Icon size (number in px or string with unit) */
|
|
494
|
+
size?: number | string;
|
|
495
|
+
/** Icon color */
|
|
496
|
+
color?: string;
|
|
497
|
+
/** Rotation in degrees */
|
|
498
|
+
rotate?: number;
|
|
499
|
+
/** Spin animation */
|
|
500
|
+
spin?: boolean;
|
|
501
|
+
}
|
|
502
|
+
declare var __VLS_1$29: {};
|
|
503
|
+
type __VLS_Slots$41 = {} & {
|
|
504
|
+
default?: (props: typeof __VLS_1$29) => any;
|
|
505
|
+
};
|
|
506
|
+
declare const __VLS_base$41: _$vue.DefineComponent<Props$64, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
507
|
+
click: (event: MouseEvent) => any;
|
|
508
|
+
}, string, _$vue.PublicProps, Readonly<Props$64> & Readonly<{
|
|
509
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
510
|
+
}>, {
|
|
511
|
+
size: number | string;
|
|
512
|
+
name: string;
|
|
513
|
+
color: string;
|
|
514
|
+
rotate: number;
|
|
515
|
+
spin: boolean;
|
|
516
|
+
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
517
|
+
declare const __VLS_export$64: __VLS_WithSlots$41<typeof __VLS_base$41, __VLS_Slots$41>;
|
|
518
|
+
declare const _default$23: typeof __VLS_export$64;
|
|
519
|
+
type __VLS_WithSlots$41<T, S> = T & {
|
|
68
520
|
new (): {
|
|
69
521
|
$slots: S;
|
|
70
522
|
};
|
|
71
523
|
};
|
|
72
524
|
//#endregion
|
|
525
|
+
//#region src/components/base/icon/registry.d.ts
|
|
526
|
+
declare function registerIcon(name: string, svg: string): void;
|
|
527
|
+
declare function getIcon(name: string): string;
|
|
528
|
+
declare function getIconRegistry(): Record<string, string>;
|
|
529
|
+
//#endregion
|
|
73
530
|
//#region src/components/base/input/input.vue.d.ts
|
|
74
|
-
interface Props$
|
|
531
|
+
interface Props$63 {
|
|
75
532
|
modelValue?: string | number;
|
|
76
533
|
placeholder?: string;
|
|
77
534
|
disabled?: boolean;
|
|
@@ -87,26 +544,26 @@ interface Props$59 {
|
|
|
87
544
|
autocomplete?: string;
|
|
88
545
|
}
|
|
89
546
|
declare var __VLS_1$28: {}, __VLS_8$4: {};
|
|
90
|
-
type __VLS_Slots$
|
|
547
|
+
type __VLS_Slots$40 = {} & {
|
|
91
548
|
prefix?: (props: typeof __VLS_1$28) => any;
|
|
92
549
|
} & {
|
|
93
550
|
suffix?: (props: typeof __VLS_8$4) => any;
|
|
94
551
|
};
|
|
95
|
-
declare const __VLS_base$
|
|
552
|
+
declare const __VLS_base$40: _$vue.DefineComponent<Props$63, {
|
|
96
553
|
focus: () => void | undefined;
|
|
97
554
|
blur: () => void | undefined;
|
|
98
555
|
select: () => void | undefined;
|
|
99
556
|
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
100
|
-
change: (value: string | number) => any;
|
|
101
557
|
"update:modelValue": (value: string | number) => any;
|
|
558
|
+
change: (value: string | number) => any;
|
|
102
559
|
clear: () => any;
|
|
103
560
|
input: (value: string | number) => any;
|
|
104
561
|
focus: (event: FocusEvent) => any;
|
|
105
562
|
blur: (event: FocusEvent) => any;
|
|
106
563
|
keydown: (event: KeyboardEvent) => any;
|
|
107
|
-
}, string, _$vue.PublicProps, Readonly<Props$
|
|
108
|
-
onChange?: ((value: string | number) => any) | undefined;
|
|
564
|
+
}, string, _$vue.PublicProps, Readonly<Props$63> & Readonly<{
|
|
109
565
|
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
566
|
+
onChange?: ((value: string | number) => any) | undefined;
|
|
110
567
|
onClear?: (() => any) | undefined;
|
|
111
568
|
onInput?: ((value: string | number) => any) | undefined;
|
|
112
569
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
@@ -119,23 +576,23 @@ declare const __VLS_base$39: _$vue.DefineComponent<Props$59, {
|
|
|
119
576
|
modelValue: string | number;
|
|
120
577
|
disabled: boolean;
|
|
121
578
|
placeholder: string;
|
|
122
|
-
readonly: boolean;
|
|
123
579
|
clearable: boolean;
|
|
580
|
+
readonly: boolean;
|
|
124
581
|
prefixIcon: object;
|
|
125
582
|
suffixIcon: object;
|
|
126
583
|
maxlength: number;
|
|
127
584
|
showWordLimit: boolean;
|
|
128
585
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
129
|
-
declare const __VLS_export$
|
|
130
|
-
declare const _default$
|
|
131
|
-
type __VLS_WithSlots$
|
|
586
|
+
declare const __VLS_export$63: __VLS_WithSlots$40<typeof __VLS_base$40, __VLS_Slots$40>;
|
|
587
|
+
declare const _default$26: typeof __VLS_export$63;
|
|
588
|
+
type __VLS_WithSlots$40<T, S> = T & {
|
|
132
589
|
new (): {
|
|
133
590
|
$slots: S;
|
|
134
591
|
};
|
|
135
592
|
};
|
|
136
593
|
//#endregion
|
|
137
594
|
//#region src/components/base/textarea/textarea.vue.d.ts
|
|
138
|
-
interface Props$
|
|
595
|
+
interface Props$62 {
|
|
139
596
|
modelValue?: string;
|
|
140
597
|
placeholder?: string;
|
|
141
598
|
disabled?: boolean;
|
|
@@ -150,18 +607,18 @@ interface Props$58 {
|
|
|
150
607
|
maxlength?: number;
|
|
151
608
|
showWordLimit?: boolean;
|
|
152
609
|
}
|
|
153
|
-
declare const __VLS_export$
|
|
610
|
+
declare const __VLS_export$62: _$vue.DefineComponent<Props$62, {
|
|
154
611
|
focus: () => void | undefined;
|
|
155
612
|
blur: () => void | undefined;
|
|
156
613
|
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
157
|
-
change: (value: string) => any;
|
|
158
614
|
"update:modelValue": (value: string) => any;
|
|
615
|
+
change: (value: string) => any;
|
|
159
616
|
input: (value: string) => any;
|
|
160
617
|
focus: (event: FocusEvent) => any;
|
|
161
618
|
blur: (event: FocusEvent) => any;
|
|
162
|
-
}, string, _$vue.PublicProps, Readonly<Props$
|
|
163
|
-
onChange?: ((value: string) => any) | undefined;
|
|
619
|
+
}, string, _$vue.PublicProps, Readonly<Props$62> & Readonly<{
|
|
164
620
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
621
|
+
onChange?: ((value: string) => any) | undefined;
|
|
165
622
|
onInput?: ((value: string) => any) | undefined;
|
|
166
623
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
167
624
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
@@ -180,10 +637,10 @@ declare const __VLS_export$58: _$vue.DefineComponent<Props$58, {
|
|
|
180
637
|
maxRows?: number;
|
|
181
638
|
};
|
|
182
639
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
183
|
-
declare const _default$
|
|
640
|
+
declare const _default$58: typeof __VLS_export$62;
|
|
184
641
|
//#endregion
|
|
185
642
|
//#region src/components/base/input-number/input-number.vue.d.ts
|
|
186
|
-
interface Props$
|
|
643
|
+
interface Props$61 {
|
|
187
644
|
modelValue?: number;
|
|
188
645
|
min?: number;
|
|
189
646
|
max?: number;
|
|
@@ -194,16 +651,16 @@ interface Props$57 {
|
|
|
194
651
|
prefix?: string;
|
|
195
652
|
suffix?: string;
|
|
196
653
|
}
|
|
197
|
-
declare const __VLS_export$
|
|
654
|
+
declare const __VLS_export$61: _$vue.DefineComponent<Props$61, {
|
|
198
655
|
focus: () => void | undefined;
|
|
199
656
|
blur: () => void | undefined;
|
|
200
657
|
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
201
|
-
change: (value: number, oldValue: number) => any;
|
|
202
658
|
"update:modelValue": (value: number) => any;
|
|
659
|
+
change: (value: number, oldValue: number) => any;
|
|
203
660
|
input: (value: string) => any;
|
|
204
|
-
}, string, _$vue.PublicProps, Readonly<Props$
|
|
205
|
-
onChange?: ((value: number, oldValue: number) => any) | undefined;
|
|
661
|
+
}, string, _$vue.PublicProps, Readonly<Props$61> & Readonly<{
|
|
206
662
|
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
663
|
+
onChange?: ((value: number, oldValue: number) => any) | undefined;
|
|
207
664
|
onInput?: ((value: string) => any) | undefined;
|
|
208
665
|
}>, {
|
|
209
666
|
size: ComponentSize;
|
|
@@ -216,19 +673,19 @@ declare const __VLS_export$57: _$vue.DefineComponent<Props$57, {
|
|
|
216
673
|
max: number;
|
|
217
674
|
step: number;
|
|
218
675
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
219
|
-
declare const _default$
|
|
676
|
+
declare const _default$27: typeof __VLS_export$61;
|
|
220
677
|
//#endregion
|
|
221
678
|
//#region src/components/base/select/select.vue.d.ts
|
|
222
|
-
interface SelectOption {
|
|
679
|
+
interface SelectOption$2 {
|
|
223
680
|
label: string;
|
|
224
681
|
value: string | number;
|
|
225
682
|
disabled?: boolean;
|
|
226
683
|
}
|
|
227
|
-
interface SelectGroup {
|
|
684
|
+
interface SelectGroup$1 {
|
|
228
685
|
label: string;
|
|
229
|
-
options: SelectOption[];
|
|
686
|
+
options: SelectOption$2[];
|
|
230
687
|
}
|
|
231
|
-
interface Props$
|
|
688
|
+
interface Props$60 {
|
|
232
689
|
modelValue?: string | number | (string | number)[];
|
|
233
690
|
placeholder?: string;
|
|
234
691
|
disabled?: boolean;
|
|
@@ -239,22 +696,22 @@ interface Props$56 {
|
|
|
239
696
|
required?: boolean;
|
|
240
697
|
error?: string;
|
|
241
698
|
hint?: string;
|
|
242
|
-
options?: (SelectOption | SelectGroup)[];
|
|
699
|
+
options?: (SelectOption$2 | SelectGroup$1)[];
|
|
243
700
|
filterable?: boolean;
|
|
244
701
|
remote?: boolean;
|
|
245
702
|
remoteMethod?: (query: string) => void;
|
|
246
703
|
clearable?: boolean;
|
|
247
704
|
dropdownHeight?: number;
|
|
248
705
|
}
|
|
249
|
-
declare const __VLS_export$
|
|
250
|
-
change: (value: string | number | (string | number)[]) => any;
|
|
706
|
+
declare const __VLS_export$60: _$vue.DefineComponent<Props$60, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
251
707
|
"update:modelValue": (value: string | number | (string | number)[]) => any;
|
|
708
|
+
change: (value: string | number | (string | number)[]) => any;
|
|
252
709
|
search: (query: string) => any;
|
|
253
710
|
focus: (event: FocusEvent) => any;
|
|
254
711
|
blur: (event: FocusEvent) => any;
|
|
255
|
-
}, string, _$vue.PublicProps, Readonly<Props$
|
|
256
|
-
onChange?: ((value: string | number | (string | number)[]) => any) | undefined;
|
|
712
|
+
}, string, _$vue.PublicProps, Readonly<Props$60> & Readonly<{
|
|
257
713
|
"onUpdate:modelValue"?: ((value: string | number | (string | number)[]) => any) | undefined;
|
|
714
|
+
onChange?: ((value: string | number | (string | number)[]) => any) | undefined;
|
|
258
715
|
onSearch?: ((query: string) => any) | undefined;
|
|
259
716
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
260
717
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
@@ -263,42 +720,42 @@ declare const __VLS_export$56: _$vue.DefineComponent<Props$56, {}, {}, {}, {}, _
|
|
|
263
720
|
variant: "default" | "bordered" | "filled";
|
|
264
721
|
error: string;
|
|
265
722
|
modelValue: string | number | (string | number)[];
|
|
723
|
+
remote: boolean;
|
|
266
724
|
disabled: boolean;
|
|
725
|
+
label: string;
|
|
267
726
|
placeholder: string;
|
|
268
|
-
clearable: boolean;
|
|
269
727
|
multiple: boolean;
|
|
270
|
-
label: string;
|
|
271
728
|
required: boolean;
|
|
272
729
|
hint: string;
|
|
273
|
-
options: (SelectOption | SelectGroup)[];
|
|
730
|
+
options: (SelectOption$2 | SelectGroup$1)[];
|
|
274
731
|
filterable: boolean;
|
|
275
|
-
remote: boolean;
|
|
276
732
|
remoteMethod: (query: string) => void;
|
|
733
|
+
clearable: boolean;
|
|
277
734
|
dropdownHeight: number;
|
|
278
735
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
279
|
-
declare const _default$
|
|
736
|
+
declare const _default$47: typeof __VLS_export$60;
|
|
280
737
|
//#endregion
|
|
281
738
|
//#region src/components/base/switch/switch.vue.d.ts
|
|
282
|
-
interface Props$
|
|
739
|
+
interface Props$59 {
|
|
283
740
|
modelValue?: boolean;
|
|
284
741
|
disabled?: boolean;
|
|
285
742
|
size?: ComponentSize;
|
|
286
743
|
}
|
|
287
|
-
declare const __VLS_export$
|
|
288
|
-
change: (value: boolean) => any;
|
|
744
|
+
declare const __VLS_export$59: _$vue.DefineComponent<Props$59, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
289
745
|
"update:modelValue": (value: boolean) => any;
|
|
290
|
-
|
|
291
|
-
|
|
746
|
+
change: (value: boolean) => any;
|
|
747
|
+
}, string, _$vue.PublicProps, Readonly<Props$59> & Readonly<{
|
|
292
748
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
749
|
+
onChange?: ((value: boolean) => any) | undefined;
|
|
293
750
|
}>, {
|
|
294
751
|
size: ComponentSize;
|
|
295
752
|
modelValue: boolean;
|
|
296
753
|
disabled: boolean;
|
|
297
754
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
298
|
-
declare const _default$
|
|
755
|
+
declare const _default$54: typeof __VLS_export$59;
|
|
299
756
|
//#endregion
|
|
300
757
|
//#region src/components/base/checkbox/checkbox.vue.d.ts
|
|
301
|
-
interface Props$
|
|
758
|
+
interface Props$58 {
|
|
302
759
|
modelValue?: boolean;
|
|
303
760
|
label?: string;
|
|
304
761
|
value?: string | number | boolean;
|
|
@@ -306,15 +763,15 @@ interface Props$54 {
|
|
|
306
763
|
indeterminate?: boolean;
|
|
307
764
|
}
|
|
308
765
|
declare var __VLS_1$27: {};
|
|
309
|
-
type __VLS_Slots$
|
|
766
|
+
type __VLS_Slots$39 = {} & {
|
|
310
767
|
default?: (props: typeof __VLS_1$27) => any;
|
|
311
768
|
};
|
|
312
|
-
declare const __VLS_base$
|
|
313
|
-
change: (value: boolean) => any;
|
|
769
|
+
declare const __VLS_base$39: _$vue.DefineComponent<Props$58, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
314
770
|
"update:modelValue": (value: boolean) => any;
|
|
315
|
-
|
|
316
|
-
|
|
771
|
+
change: (value: boolean) => any;
|
|
772
|
+
}, string, _$vue.PublicProps, Readonly<Props$58> & Readonly<{
|
|
317
773
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
774
|
+
onChange?: ((value: boolean) => any) | undefined;
|
|
318
775
|
}>, {
|
|
319
776
|
modelValue: boolean;
|
|
320
777
|
value: string | number | boolean;
|
|
@@ -322,50 +779,50 @@ declare const __VLS_base$38: _$vue.DefineComponent<Props$54, {}, {}, {}, {}, _$v
|
|
|
322
779
|
label: string;
|
|
323
780
|
indeterminate: boolean;
|
|
324
781
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
325
|
-
declare const __VLS_export$
|
|
326
|
-
declare const _default$9: typeof __VLS_export$
|
|
327
|
-
type __VLS_WithSlots$
|
|
782
|
+
declare const __VLS_export$58: __VLS_WithSlots$39<typeof __VLS_base$39, __VLS_Slots$39>;
|
|
783
|
+
declare const _default$9: typeof __VLS_export$58;
|
|
784
|
+
type __VLS_WithSlots$39<T, S> = T & {
|
|
328
785
|
new (): {
|
|
329
786
|
$slots: S;
|
|
330
787
|
};
|
|
331
788
|
};
|
|
332
789
|
//#endregion
|
|
333
790
|
//#region src/components/base/checkbox/checkbox-group.vue.d.ts
|
|
334
|
-
interface CheckboxOption {
|
|
791
|
+
interface CheckboxOption$1 {
|
|
335
792
|
label: string;
|
|
336
793
|
value: string | number | boolean;
|
|
337
794
|
disabled?: boolean;
|
|
338
795
|
}
|
|
339
|
-
interface Props$
|
|
796
|
+
interface Props$57 {
|
|
340
797
|
modelValue?: (string | number | boolean)[];
|
|
341
|
-
options?: CheckboxOption[];
|
|
798
|
+
options?: CheckboxOption$1[];
|
|
342
799
|
disabled?: boolean;
|
|
343
800
|
}
|
|
344
801
|
declare var __VLS_8$3: {};
|
|
345
|
-
type __VLS_Slots$
|
|
802
|
+
type __VLS_Slots$38 = {} & {
|
|
346
803
|
default?: (props: typeof __VLS_8$3) => any;
|
|
347
804
|
};
|
|
348
|
-
declare const __VLS_base$
|
|
349
|
-
change: (value: (string | number | boolean)[]) => any;
|
|
805
|
+
declare const __VLS_base$38: _$vue.DefineComponent<Props$57, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
350
806
|
"update:modelValue": (value: (string | number | boolean)[]) => any;
|
|
351
|
-
|
|
352
|
-
|
|
807
|
+
change: (value: (string | number | boolean)[]) => any;
|
|
808
|
+
}, string, _$vue.PublicProps, Readonly<Props$57> & Readonly<{
|
|
353
809
|
"onUpdate:modelValue"?: ((value: (string | number | boolean)[]) => any) | undefined;
|
|
810
|
+
onChange?: ((value: (string | number | boolean)[]) => any) | undefined;
|
|
354
811
|
}>, {
|
|
355
812
|
modelValue: (string | number | boolean)[];
|
|
356
813
|
disabled: boolean;
|
|
357
|
-
options: CheckboxOption[];
|
|
814
|
+
options: CheckboxOption$1[];
|
|
358
815
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
359
|
-
declare const __VLS_export$
|
|
360
|
-
declare const _default$10: typeof __VLS_export$
|
|
361
|
-
type __VLS_WithSlots$
|
|
816
|
+
declare const __VLS_export$57: __VLS_WithSlots$38<typeof __VLS_base$38, __VLS_Slots$38>;
|
|
817
|
+
declare const _default$10: typeof __VLS_export$57;
|
|
818
|
+
type __VLS_WithSlots$38<T, S> = T & {
|
|
362
819
|
new (): {
|
|
363
820
|
$slots: S;
|
|
364
821
|
};
|
|
365
822
|
};
|
|
366
823
|
//#endregion
|
|
367
824
|
//#region src/components/base/radio/radio.vue.d.ts
|
|
368
|
-
interface Props$
|
|
825
|
+
interface Props$56 {
|
|
369
826
|
modelValue?: string | number | boolean;
|
|
370
827
|
value?: string | number | boolean;
|
|
371
828
|
label?: string;
|
|
@@ -373,68 +830,68 @@ interface Props$52 {
|
|
|
373
830
|
name?: string;
|
|
374
831
|
}
|
|
375
832
|
declare var __VLS_1$26: {};
|
|
376
|
-
type __VLS_Slots$
|
|
833
|
+
type __VLS_Slots$37 = {} & {
|
|
377
834
|
default?: (props: typeof __VLS_1$26) => any;
|
|
378
835
|
};
|
|
379
|
-
declare const __VLS_base$
|
|
380
|
-
change: (value: string | number | boolean) => any;
|
|
836
|
+
declare const __VLS_base$37: _$vue.DefineComponent<Props$56, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
381
837
|
"update:modelValue": (value: string | number | boolean) => any;
|
|
382
|
-
|
|
383
|
-
|
|
838
|
+
change: (value: string | number | boolean) => any;
|
|
839
|
+
}, string, _$vue.PublicProps, Readonly<Props$56> & Readonly<{
|
|
384
840
|
"onUpdate:modelValue"?: ((value: string | number | boolean) => any) | undefined;
|
|
841
|
+
onChange?: ((value: string | number | boolean) => any) | undefined;
|
|
385
842
|
}>, {
|
|
843
|
+
name: string;
|
|
386
844
|
modelValue: string | number | boolean;
|
|
387
845
|
value: string | number | boolean;
|
|
388
846
|
disabled: boolean;
|
|
389
847
|
label: string;
|
|
390
|
-
name: string;
|
|
391
848
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
392
|
-
declare const __VLS_export$
|
|
393
|
-
declare const _default$
|
|
394
|
-
type __VLS_WithSlots$
|
|
849
|
+
declare const __VLS_export$56: __VLS_WithSlots$37<typeof __VLS_base$37, __VLS_Slots$37>;
|
|
850
|
+
declare const _default$42: typeof __VLS_export$56;
|
|
851
|
+
type __VLS_WithSlots$37<T, S> = T & {
|
|
395
852
|
new (): {
|
|
396
853
|
$slots: S;
|
|
397
854
|
};
|
|
398
855
|
};
|
|
399
856
|
//#endregion
|
|
400
857
|
//#region src/components/base/radio/radio-group.vue.d.ts
|
|
401
|
-
interface RadioOption {
|
|
858
|
+
interface RadioOption$1 {
|
|
402
859
|
label: string;
|
|
403
860
|
value: string | number | boolean;
|
|
404
861
|
disabled?: boolean;
|
|
405
862
|
}
|
|
406
|
-
interface Props$
|
|
863
|
+
interface Props$55 {
|
|
407
864
|
modelValue?: string | number | boolean;
|
|
408
|
-
options?: RadioOption[];
|
|
865
|
+
options?: RadioOption$1[];
|
|
409
866
|
disabled?: boolean;
|
|
410
867
|
name?: string;
|
|
411
868
|
}
|
|
412
869
|
declare var __VLS_8$2: {};
|
|
413
|
-
type __VLS_Slots$
|
|
870
|
+
type __VLS_Slots$36 = {} & {
|
|
414
871
|
default?: (props: typeof __VLS_8$2) => any;
|
|
415
872
|
};
|
|
416
|
-
declare const __VLS_base$
|
|
417
|
-
change: (value: string | number | boolean) => any;
|
|
873
|
+
declare const __VLS_base$36: _$vue.DefineComponent<Props$55, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
418
874
|
"update:modelValue": (value: string | number | boolean) => any;
|
|
419
|
-
|
|
420
|
-
|
|
875
|
+
change: (value: string | number | boolean) => any;
|
|
876
|
+
}, string, _$vue.PublicProps, Readonly<Props$55> & Readonly<{
|
|
421
877
|
"onUpdate:modelValue"?: ((value: string | number | boolean) => any) | undefined;
|
|
878
|
+
onChange?: ((value: string | number | boolean) => any) | undefined;
|
|
422
879
|
}>, {
|
|
880
|
+
name: string;
|
|
423
881
|
modelValue: string | number | boolean;
|
|
424
882
|
disabled: boolean;
|
|
425
|
-
options: RadioOption[];
|
|
426
|
-
name: string;
|
|
883
|
+
options: RadioOption$1[];
|
|
427
884
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
428
|
-
declare const __VLS_export$
|
|
429
|
-
declare const _default$
|
|
430
|
-
type __VLS_WithSlots$
|
|
885
|
+
declare const __VLS_export$55: __VLS_WithSlots$36<typeof __VLS_base$36, __VLS_Slots$36>;
|
|
886
|
+
declare const _default$43: typeof __VLS_export$55;
|
|
887
|
+
type __VLS_WithSlots$36<T, S> = T & {
|
|
431
888
|
new (): {
|
|
432
889
|
$slots: S;
|
|
433
890
|
};
|
|
434
891
|
};
|
|
435
892
|
//#endregion
|
|
436
893
|
//#region src/components/base/tag/tag.vue.d.ts
|
|
437
|
-
interface Props$
|
|
894
|
+
interface Props$54 {
|
|
438
895
|
variant?: "default" | "primary" | "success" | "warning" | "error" | "info";
|
|
439
896
|
size?: ComponentSize;
|
|
440
897
|
plain?: boolean;
|
|
@@ -442,12 +899,12 @@ interface Props$50 {
|
|
|
442
899
|
closable?: boolean;
|
|
443
900
|
}
|
|
444
901
|
declare var __VLS_1$25: {};
|
|
445
|
-
type __VLS_Slots$
|
|
902
|
+
type __VLS_Slots$35 = {} & {
|
|
446
903
|
default?: (props: typeof __VLS_1$25) => any;
|
|
447
904
|
};
|
|
448
|
-
declare const __VLS_base$
|
|
905
|
+
declare const __VLS_base$35: _$vue.DefineComponent<Props$54, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
449
906
|
close: () => any;
|
|
450
|
-
}, string, _$vue.PublicProps, Readonly<Props$
|
|
907
|
+
}, string, _$vue.PublicProps, Readonly<Props$54> & Readonly<{
|
|
451
908
|
onClose?: (() => any) | undefined;
|
|
452
909
|
}>, {
|
|
453
910
|
size: ComponentSize;
|
|
@@ -456,16 +913,16 @@ declare const __VLS_base$34: _$vue.DefineComponent<Props$50, {}, {}, {}, {}, _$v
|
|
|
456
913
|
plain: boolean;
|
|
457
914
|
round: boolean;
|
|
458
915
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
459
|
-
declare const __VLS_export$
|
|
460
|
-
declare const _default$
|
|
461
|
-
type __VLS_WithSlots$
|
|
916
|
+
declare const __VLS_export$54: __VLS_WithSlots$35<typeof __VLS_base$35, __VLS_Slots$35>;
|
|
917
|
+
declare const _default$57: typeof __VLS_export$54;
|
|
918
|
+
type __VLS_WithSlots$35<T, S> = T & {
|
|
462
919
|
new (): {
|
|
463
920
|
$slots: S;
|
|
464
921
|
};
|
|
465
922
|
};
|
|
466
923
|
//#endregion
|
|
467
924
|
//#region src/components/base/avatar/avatar.vue.d.ts
|
|
468
|
-
interface Props$
|
|
925
|
+
interface Props$53 {
|
|
469
926
|
src?: string;
|
|
470
927
|
alt?: string;
|
|
471
928
|
text?: string;
|
|
@@ -474,10 +931,10 @@ interface Props$49 {
|
|
|
474
931
|
color?: string;
|
|
475
932
|
}
|
|
476
933
|
declare var __VLS_1$24: {};
|
|
477
|
-
type __VLS_Slots$
|
|
934
|
+
type __VLS_Slots$34 = {} & {
|
|
478
935
|
default?: (props: typeof __VLS_1$24) => any;
|
|
479
936
|
};
|
|
480
|
-
declare const __VLS_base$
|
|
937
|
+
declare const __VLS_base$34: _$vue.DefineComponent<Props$53, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<Props$53> & Readonly<{}>, {
|
|
481
938
|
size: ComponentSize;
|
|
482
939
|
color: string;
|
|
483
940
|
src: string;
|
|
@@ -485,16 +942,16 @@ declare const __VLS_base$33: _$vue.DefineComponent<Props$49, {}, {}, {}, {}, _$v
|
|
|
485
942
|
text: string;
|
|
486
943
|
shape: "circle" | "square";
|
|
487
944
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
488
|
-
declare const __VLS_export$
|
|
489
|
-
declare const _default$2: typeof __VLS_export$
|
|
490
|
-
type __VLS_WithSlots$
|
|
945
|
+
declare const __VLS_export$53: __VLS_WithSlots$34<typeof __VLS_base$34, __VLS_Slots$34>;
|
|
946
|
+
declare const _default$2: typeof __VLS_export$53;
|
|
947
|
+
type __VLS_WithSlots$34<T, S> = T & {
|
|
491
948
|
new (): {
|
|
492
949
|
$slots: S;
|
|
493
950
|
};
|
|
494
951
|
};
|
|
495
952
|
//#endregion
|
|
496
953
|
//#region src/components/base/badge/badge.vue.d.ts
|
|
497
|
-
interface Props$
|
|
954
|
+
interface Props$52 {
|
|
498
955
|
value?: number | string;
|
|
499
956
|
max?: number;
|
|
500
957
|
dot?: boolean;
|
|
@@ -504,10 +961,10 @@ interface Props$48 {
|
|
|
504
961
|
standalone?: boolean;
|
|
505
962
|
}
|
|
506
963
|
declare var __VLS_1$23: {};
|
|
507
|
-
type __VLS_Slots$
|
|
964
|
+
type __VLS_Slots$33 = {} & {
|
|
508
965
|
default?: (props: typeof __VLS_1$23) => any;
|
|
509
966
|
};
|
|
510
|
-
declare const __VLS_base$
|
|
967
|
+
declare const __VLS_base$33: _$vue.DefineComponent<Props$52, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<Props$52> & Readonly<{}>, {
|
|
511
968
|
variant: ComponentVariant;
|
|
512
969
|
value: number | string;
|
|
513
970
|
max: number;
|
|
@@ -516,16 +973,16 @@ declare const __VLS_base$32: _$vue.DefineComponent<Props$48, {}, {}, {}, {}, _$v
|
|
|
516
973
|
offset: [number, number];
|
|
517
974
|
standalone: boolean;
|
|
518
975
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
519
|
-
declare const __VLS_export$
|
|
520
|
-
declare const _default$3: typeof __VLS_export$
|
|
521
|
-
type __VLS_WithSlots$
|
|
976
|
+
declare const __VLS_export$52: __VLS_WithSlots$33<typeof __VLS_base$33, __VLS_Slots$33>;
|
|
977
|
+
declare const _default$3: typeof __VLS_export$52;
|
|
978
|
+
type __VLS_WithSlots$33<T, S> = T & {
|
|
522
979
|
new (): {
|
|
523
980
|
$slots: S;
|
|
524
981
|
};
|
|
525
982
|
};
|
|
526
983
|
//#endregion
|
|
527
984
|
//#region src/components/base/rate/rate.vue.d.ts
|
|
528
|
-
interface Props$
|
|
985
|
+
interface Props$51 {
|
|
529
986
|
modelValue?: number;
|
|
530
987
|
count?: number;
|
|
531
988
|
disabled?: boolean;
|
|
@@ -534,12 +991,12 @@ interface Props$47 {
|
|
|
534
991
|
texts?: string[];
|
|
535
992
|
size?: "xs" | "sm" | "md" | "lg";
|
|
536
993
|
}
|
|
537
|
-
declare const __VLS_export$
|
|
538
|
-
change: (value: number) => any;
|
|
994
|
+
declare const __VLS_export$51: _$vue.DefineComponent<Props$51, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
539
995
|
"update:modelValue": (value: number) => any;
|
|
540
|
-
|
|
541
|
-
|
|
996
|
+
change: (value: number) => any;
|
|
997
|
+
}, string, _$vue.PublicProps, Readonly<Props$51> & Readonly<{
|
|
542
998
|
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
999
|
+
onChange?: ((value: number) => any) | undefined;
|
|
543
1000
|
}>, {
|
|
544
1001
|
size: "xs" | "sm" | "md" | "lg";
|
|
545
1002
|
modelValue: number;
|
|
@@ -549,10 +1006,10 @@ declare const __VLS_export$47: _$vue.DefineComponent<Props$47, {}, {}, {}, {}, _
|
|
|
549
1006
|
showText: boolean;
|
|
550
1007
|
texts: string[];
|
|
551
1008
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
552
|
-
declare const _default$
|
|
1009
|
+
declare const _default$44: typeof __VLS_export$51;
|
|
553
1010
|
//#endregion
|
|
554
1011
|
//#region src/components/base/slider/slider.vue.d.ts
|
|
555
|
-
interface Props$
|
|
1012
|
+
interface Props$50 {
|
|
556
1013
|
modelValue?: number;
|
|
557
1014
|
min?: number;
|
|
558
1015
|
max?: number;
|
|
@@ -561,12 +1018,12 @@ interface Props$46 {
|
|
|
561
1018
|
showTooltip?: boolean;
|
|
562
1019
|
size?: "xs" | "sm" | "md" | "lg";
|
|
563
1020
|
}
|
|
564
|
-
declare const __VLS_export$
|
|
565
|
-
change: (value: number) => any;
|
|
1021
|
+
declare const __VLS_export$50: _$vue.DefineComponent<Props$50, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
566
1022
|
"update:modelValue": (value: number) => any;
|
|
567
|
-
|
|
568
|
-
|
|
1023
|
+
change: (value: number) => any;
|
|
1024
|
+
}, string, _$vue.PublicProps, Readonly<Props$50> & Readonly<{
|
|
569
1025
|
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
1026
|
+
onChange?: ((value: number) => any) | undefined;
|
|
570
1027
|
}>, {
|
|
571
1028
|
size: "xs" | "sm" | "md" | "lg";
|
|
572
1029
|
modelValue: number;
|
|
@@ -576,62 +1033,62 @@ declare const __VLS_export$46: _$vue.DefineComponent<Props$46, {}, {}, {}, {}, _
|
|
|
576
1033
|
step: number;
|
|
577
1034
|
showTooltip: boolean;
|
|
578
1035
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
579
|
-
declare const _default$
|
|
1036
|
+
declare const _default$49: typeof __VLS_export$50;
|
|
580
1037
|
//#endregion
|
|
581
1038
|
//#region src/components/base/date-picker/date-picker.vue.d.ts
|
|
582
|
-
interface Props$
|
|
1039
|
+
interface Props$49 {
|
|
583
1040
|
modelValue?: string;
|
|
584
1041
|
placeholder?: string;
|
|
585
1042
|
disabled?: boolean;
|
|
586
1043
|
type?: "date" | "month" | "year";
|
|
587
1044
|
}
|
|
588
|
-
declare const __VLS_export$
|
|
589
|
-
change: (value: string) => any;
|
|
1045
|
+
declare const __VLS_export$49: _$vue.DefineComponent<Props$49, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
590
1046
|
"update:modelValue": (value: string) => any;
|
|
591
|
-
|
|
592
|
-
|
|
1047
|
+
change: (value: string) => any;
|
|
1048
|
+
}, string, _$vue.PublicProps, Readonly<Props$49> & Readonly<{
|
|
593
1049
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
1050
|
+
onChange?: ((value: string) => any) | undefined;
|
|
594
1051
|
}>, {
|
|
595
1052
|
type: "date" | "month" | "year";
|
|
596
1053
|
modelValue: string;
|
|
597
1054
|
disabled: boolean;
|
|
598
1055
|
placeholder: string;
|
|
599
1056
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
600
|
-
declare const _default$
|
|
1057
|
+
declare const _default$15: typeof __VLS_export$49;
|
|
601
1058
|
//#endregion
|
|
602
1059
|
//#region src/components/base/date-picker/date-range-picker.vue.d.ts
|
|
603
|
-
interface Props$
|
|
1060
|
+
interface Props$48 {
|
|
604
1061
|
modelValue?: [string, string];
|
|
605
1062
|
placeholder?: string;
|
|
606
1063
|
disabled?: boolean;
|
|
607
1064
|
}
|
|
608
|
-
declare const __VLS_export$
|
|
609
|
-
change: (value: [string, string]) => any;
|
|
1065
|
+
declare const __VLS_export$48: _$vue.DefineComponent<Props$48, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
610
1066
|
"update:modelValue": (value: [string, string]) => any;
|
|
611
|
-
|
|
612
|
-
|
|
1067
|
+
change: (value: [string, string]) => any;
|
|
1068
|
+
}, string, _$vue.PublicProps, Readonly<Props$48> & Readonly<{
|
|
613
1069
|
"onUpdate:modelValue"?: ((value: [string, string]) => any) | undefined;
|
|
1070
|
+
onChange?: ((value: [string, string]) => any) | undefined;
|
|
614
1071
|
}>, {
|
|
615
1072
|
modelValue: [string, string];
|
|
616
1073
|
disabled: boolean;
|
|
617
1074
|
placeholder: string;
|
|
618
1075
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
619
|
-
declare const _default$
|
|
1076
|
+
declare const _default$16: typeof __VLS_export$48;
|
|
620
1077
|
//#endregion
|
|
621
1078
|
//#region src/components/base/time-picker/time-picker.vue.d.ts
|
|
622
|
-
interface Props$
|
|
1079
|
+
interface Props$47 {
|
|
623
1080
|
modelValue?: string;
|
|
624
1081
|
placeholder?: string;
|
|
625
1082
|
disabled?: boolean;
|
|
626
1083
|
showSeconds?: boolean;
|
|
627
1084
|
format?: string;
|
|
628
1085
|
}
|
|
629
|
-
declare const __VLS_export$
|
|
630
|
-
change: (value: string) => any;
|
|
1086
|
+
declare const __VLS_export$47: _$vue.DefineComponent<Props$47, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
631
1087
|
"update:modelValue": (value: string) => any;
|
|
632
|
-
|
|
633
|
-
|
|
1088
|
+
change: (value: string) => any;
|
|
1089
|
+
}, string, _$vue.PublicProps, Readonly<Props$47> & Readonly<{
|
|
634
1090
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
1091
|
+
onChange?: ((value: string) => any) | undefined;
|
|
635
1092
|
}>, {
|
|
636
1093
|
modelValue: string;
|
|
637
1094
|
disabled: boolean;
|
|
@@ -639,63 +1096,63 @@ declare const __VLS_export$43: _$vue.DefineComponent<Props$43, {}, {}, {}, {}, _
|
|
|
639
1096
|
showSeconds: boolean;
|
|
640
1097
|
format: string;
|
|
641
1098
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
642
|
-
declare const _default$
|
|
1099
|
+
declare const _default$59: typeof __VLS_export$47;
|
|
643
1100
|
//#endregion
|
|
644
1101
|
//#region src/components/base/cascader/cascader.vue.d.ts
|
|
645
|
-
interface CascaderOption {
|
|
1102
|
+
interface CascaderOption$1 {
|
|
646
1103
|
label: string;
|
|
647
1104
|
value: string;
|
|
648
|
-
children?: CascaderOption[];
|
|
1105
|
+
children?: CascaderOption$1[];
|
|
649
1106
|
disabled?: boolean;
|
|
650
1107
|
}
|
|
651
|
-
interface Props$
|
|
1108
|
+
interface Props$46 {
|
|
652
1109
|
modelValue?: string[] | string[][];
|
|
653
|
-
options?: CascaderOption[];
|
|
1110
|
+
options?: CascaderOption$1[];
|
|
654
1111
|
placeholder?: string;
|
|
655
1112
|
disabled?: boolean;
|
|
656
1113
|
filterable?: boolean;
|
|
657
1114
|
multiple?: boolean;
|
|
658
1115
|
}
|
|
659
|
-
declare const __VLS_export$
|
|
660
|
-
change: (value: string[] | string[][]) => any;
|
|
1116
|
+
declare const __VLS_export$46: _$vue.DefineComponent<Props$46, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
661
1117
|
"update:modelValue": (value: string[] | string[][]) => any;
|
|
662
|
-
|
|
663
|
-
|
|
1118
|
+
change: (value: string[] | string[][]) => any;
|
|
1119
|
+
}, string, _$vue.PublicProps, Readonly<Props$46> & Readonly<{
|
|
664
1120
|
"onUpdate:modelValue"?: ((value: string[] | string[][]) => any) | undefined;
|
|
1121
|
+
onChange?: ((value: string[] | string[][]) => any) | undefined;
|
|
665
1122
|
}>, {
|
|
666
1123
|
modelValue: string[] | string[][];
|
|
667
1124
|
disabled: boolean;
|
|
668
1125
|
placeholder: string;
|
|
669
1126
|
multiple: boolean;
|
|
670
|
-
options: CascaderOption[];
|
|
1127
|
+
options: CascaderOption$1[];
|
|
671
1128
|
filterable: boolean;
|
|
672
1129
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
673
|
-
declare const _default$8: typeof __VLS_export$
|
|
1130
|
+
declare const _default$8: typeof __VLS_export$46;
|
|
674
1131
|
//#endregion
|
|
675
1132
|
//#region src/components/base/auto-complete/auto-complete.vue.d.ts
|
|
676
1133
|
interface Option {
|
|
677
1134
|
label: string;
|
|
678
1135
|
value: string;
|
|
679
1136
|
}
|
|
680
|
-
interface Props$
|
|
1137
|
+
interface Props$45 {
|
|
681
1138
|
modelValue?: string;
|
|
682
1139
|
options?: Option[];
|
|
683
1140
|
placeholder?: string;
|
|
684
1141
|
disabled?: boolean;
|
|
685
1142
|
}
|
|
686
|
-
declare const __VLS_export$
|
|
687
|
-
select: (option: Option) => any;
|
|
1143
|
+
declare const __VLS_export$45: _$vue.DefineComponent<Props$45, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
688
1144
|
"update:modelValue": (value: string) => any;
|
|
689
|
-
|
|
690
|
-
|
|
1145
|
+
select: (option: Option) => any;
|
|
1146
|
+
}, string, _$vue.PublicProps, Readonly<Props$45> & Readonly<{
|
|
691
1147
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
1148
|
+
onSelect?: ((option: Option) => any) | undefined;
|
|
692
1149
|
}>, {
|
|
693
1150
|
modelValue: string;
|
|
694
1151
|
disabled: boolean;
|
|
695
1152
|
placeholder: string;
|
|
696
1153
|
options: Option[];
|
|
697
1154
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
698
|
-
declare const _default$1: typeof __VLS_export$
|
|
1155
|
+
declare const _default$1: typeof __VLS_export$45;
|
|
699
1156
|
//#endregion
|
|
700
1157
|
//#region src/components/base/transfer/transfer.vue.d.ts
|
|
701
1158
|
interface TransferOption {
|
|
@@ -703,28 +1160,28 @@ interface TransferOption {
|
|
|
703
1160
|
value: string | number;
|
|
704
1161
|
disabled?: boolean;
|
|
705
1162
|
}
|
|
706
|
-
interface Props$
|
|
1163
|
+
interface Props$44 {
|
|
707
1164
|
modelValue?: (string | number)[];
|
|
708
1165
|
data?: TransferOption[];
|
|
709
1166
|
titles?: [string, string];
|
|
710
1167
|
height?: string | number;
|
|
711
1168
|
}
|
|
712
|
-
declare const __VLS_export$
|
|
713
|
-
change: (value: (string | number)[]) => any;
|
|
1169
|
+
declare const __VLS_export$44: _$vue.DefineComponent<Props$44, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
714
1170
|
"update:modelValue": (value: (string | number)[]) => any;
|
|
715
|
-
|
|
716
|
-
|
|
1171
|
+
change: (value: (string | number)[]) => any;
|
|
1172
|
+
}, string, _$vue.PublicProps, Readonly<Props$44> & Readonly<{
|
|
717
1173
|
"onUpdate:modelValue"?: ((value: (string | number)[]) => any) | undefined;
|
|
1174
|
+
onChange?: ((value: (string | number)[]) => any) | undefined;
|
|
718
1175
|
}>, {
|
|
719
1176
|
modelValue: (string | number)[];
|
|
720
1177
|
height: string | number;
|
|
721
1178
|
data: TransferOption[];
|
|
722
1179
|
titles: [string, string];
|
|
723
1180
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
724
|
-
declare const _default$
|
|
1181
|
+
declare const _default$62: typeof __VLS_export$44;
|
|
725
1182
|
//#endregion
|
|
726
1183
|
//#region src/components/base/upload/upload.vue.d.ts
|
|
727
|
-
interface UploadFile {
|
|
1184
|
+
interface UploadFile$1 {
|
|
728
1185
|
uid: string;
|
|
729
1186
|
name: string;
|
|
730
1187
|
size: number;
|
|
@@ -732,8 +1189,8 @@ interface UploadFile {
|
|
|
732
1189
|
raw?: File;
|
|
733
1190
|
url?: string;
|
|
734
1191
|
}
|
|
735
|
-
interface Props$
|
|
736
|
-
fileList?: UploadFile[];
|
|
1192
|
+
interface Props$43 {
|
|
1193
|
+
fileList?: UploadFile$1[];
|
|
737
1194
|
multiple?: boolean;
|
|
738
1195
|
accept?: string;
|
|
739
1196
|
disabled?: boolean;
|
|
@@ -743,32 +1200,32 @@ interface Props$39 {
|
|
|
743
1200
|
action?: string;
|
|
744
1201
|
}
|
|
745
1202
|
declare var __VLS_6$2: {};
|
|
746
|
-
type __VLS_Slots$
|
|
1203
|
+
type __VLS_Slots$32 = {} & {
|
|
747
1204
|
default?: (props: typeof __VLS_6$2) => any;
|
|
748
1205
|
};
|
|
749
|
-
declare const __VLS_base$
|
|
750
|
-
change: (file: UploadFile, fileList: UploadFile[]) => any;
|
|
751
|
-
remove: (file: UploadFile, fileList: UploadFile[]) => any;
|
|
752
|
-
"update:fileList": (value: UploadFile[]) => any;
|
|
1206
|
+
declare const __VLS_base$32: _$vue.DefineComponent<Props$43, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
1207
|
+
change: (file: UploadFile$1, fileList: UploadFile$1[]) => any;
|
|
1208
|
+
remove: (file: UploadFile$1, fileList: UploadFile$1[]) => any;
|
|
1209
|
+
"update:fileList": (value: UploadFile$1[]) => any;
|
|
753
1210
|
exceed: (file: File) => any;
|
|
754
|
-
}, string, _$vue.PublicProps, Readonly<Props$
|
|
755
|
-
onChange?: ((file: UploadFile, fileList: UploadFile[]) => any) | undefined;
|
|
756
|
-
onRemove?: ((file: UploadFile, fileList: UploadFile[]) => any) | undefined;
|
|
757
|
-
"onUpdate:fileList"?: ((value: UploadFile[]) => any) | undefined;
|
|
1211
|
+
}, string, _$vue.PublicProps, Readonly<Props$43> & Readonly<{
|
|
1212
|
+
onChange?: ((file: UploadFile$1, fileList: UploadFile$1[]) => any) | undefined;
|
|
1213
|
+
onRemove?: ((file: UploadFile$1, fileList: UploadFile$1[]) => any) | undefined;
|
|
1214
|
+
"onUpdate:fileList"?: ((value: UploadFile$1[]) => any) | undefined;
|
|
758
1215
|
onExceed?: ((file: File) => any) | undefined;
|
|
759
1216
|
}>, {
|
|
760
1217
|
tip: string;
|
|
761
1218
|
disabled: boolean;
|
|
762
1219
|
multiple: boolean;
|
|
763
|
-
fileList: UploadFile[];
|
|
1220
|
+
fileList: UploadFile$1[];
|
|
764
1221
|
accept: string;
|
|
765
1222
|
maxSize: number;
|
|
766
1223
|
maxCount: number;
|
|
767
1224
|
action: string;
|
|
768
1225
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
769
|
-
declare const __VLS_export$
|
|
770
|
-
declare const _default$
|
|
771
|
-
type __VLS_WithSlots$
|
|
1226
|
+
declare const __VLS_export$43: __VLS_WithSlots$32<typeof __VLS_base$32, __VLS_Slots$32>;
|
|
1227
|
+
declare const _default$65: typeof __VLS_export$43;
|
|
1228
|
+
type __VLS_WithSlots$32<T, S> = T & {
|
|
772
1229
|
new (): {
|
|
773
1230
|
$slots: S;
|
|
774
1231
|
};
|
|
@@ -796,7 +1253,7 @@ interface TabOption$1 {
|
|
|
796
1253
|
key: string;
|
|
797
1254
|
label: string;
|
|
798
1255
|
}
|
|
799
|
-
interface Props$
|
|
1256
|
+
interface Props$42 {
|
|
800
1257
|
title?: string;
|
|
801
1258
|
subtitle?: string;
|
|
802
1259
|
formTitle?: string;
|
|
@@ -820,20 +1277,36 @@ interface Props$38 {
|
|
|
820
1277
|
showSocial?: boolean;
|
|
821
1278
|
showCaptcha?: boolean;
|
|
822
1279
|
captchaPlaceholder?: string;
|
|
1280
|
+
/** 是否显示选项行(记住我 + 忘记密码) */
|
|
1281
|
+
showOptions?: boolean;
|
|
1282
|
+
/** 是否显示"记住我" */
|
|
1283
|
+
showRemember?: boolean;
|
|
1284
|
+
/** 是否显示"忘记密码" */
|
|
1285
|
+
showForgot?: boolean;
|
|
1286
|
+
/** 是否显示账号登录 */
|
|
1287
|
+
showAccountLogin?: boolean;
|
|
1288
|
+
/** 是否显示手机登录 */
|
|
1289
|
+
showPhoneLogin?: boolean;
|
|
1290
|
+
/** 后端提供的验证码图片地址 */
|
|
1291
|
+
captchaSrc?: string;
|
|
1292
|
+
/** 后端提供的验证码答案 */
|
|
1293
|
+
captchaCode?: string;
|
|
1294
|
+
/** 验证码模式:客户端生成并校验,或后端提供图片由后端校验 */
|
|
1295
|
+
captchaMode?: "client" | "server";
|
|
823
1296
|
}
|
|
824
1297
|
declare var __VLS_1$22: {}, __VLS_17: {};
|
|
825
|
-
type __VLS_Slots$
|
|
1298
|
+
type __VLS_Slots$31 = {} & {
|
|
826
1299
|
logo?: (props: typeof __VLS_1$22) => any;
|
|
827
1300
|
} & {
|
|
828
1301
|
footer?: (props: typeof __VLS_17) => any;
|
|
829
1302
|
};
|
|
830
|
-
declare const __VLS_base$
|
|
1303
|
+
declare const __VLS_base$31: _$vue.DefineComponent<Props$42, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
831
1304
|
"tab-change": (tab: string) => any;
|
|
832
1305
|
submit: (data: LoginFormData$2) => any;
|
|
833
1306
|
"send-code": (phone: string) => any;
|
|
834
1307
|
"forgot-password": () => any;
|
|
835
1308
|
"social-login": (provider: string) => any;
|
|
836
|
-
}, string, _$vue.PublicProps, Readonly<Props$
|
|
1309
|
+
}, string, _$vue.PublicProps, Readonly<Props$42> & Readonly<{
|
|
837
1310
|
"onTab-change"?: ((tab: string) => any) | undefined;
|
|
838
1311
|
onSubmit?: ((data: LoginFormData$2) => any) | undefined;
|
|
839
1312
|
"onSend-code"?: ((phone: string) => any) | undefined;
|
|
@@ -847,26 +1320,34 @@ declare const __VLS_base$30: _$vue.DefineComponent<Props$38, {}, {}, {}, {}, _$v
|
|
|
847
1320
|
loading: boolean;
|
|
848
1321
|
loadingText: string;
|
|
849
1322
|
subtitle: string;
|
|
1323
|
+
formTitle: string;
|
|
850
1324
|
usernamePlaceholder: string;
|
|
851
1325
|
passwordPlaceholder: string;
|
|
852
1326
|
phonePlaceholder: string;
|
|
853
1327
|
codePlaceholder: string;
|
|
854
|
-
captchaPlaceholder: string;
|
|
855
1328
|
sendCodeText: string;
|
|
856
1329
|
rememberText: string;
|
|
857
1330
|
forgotText: string;
|
|
858
1331
|
submitText: string;
|
|
859
1332
|
socialText: string;
|
|
1333
|
+
features: Feature[];
|
|
860
1334
|
socials: SocialOption$1[];
|
|
861
1335
|
showTabs: boolean;
|
|
862
1336
|
showSocial: boolean;
|
|
863
1337
|
showCaptcha: boolean;
|
|
864
|
-
|
|
865
|
-
|
|
1338
|
+
captchaPlaceholder: string;
|
|
1339
|
+
showOptions: boolean;
|
|
1340
|
+
showRemember: boolean;
|
|
1341
|
+
showForgot: boolean;
|
|
1342
|
+
showAccountLogin: boolean;
|
|
1343
|
+
showPhoneLogin: boolean;
|
|
1344
|
+
captchaSrc: string;
|
|
1345
|
+
captchaCode: string;
|
|
1346
|
+
captchaMode: "client" | "server";
|
|
866
1347
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
867
|
-
declare const __VLS_export$
|
|
868
|
-
declare const _default$
|
|
869
|
-
type __VLS_WithSlots$
|
|
1348
|
+
declare const __VLS_export$42: __VLS_WithSlots$31<typeof __VLS_base$31, __VLS_Slots$31>;
|
|
1349
|
+
declare const _default$34: typeof __VLS_export$42;
|
|
1350
|
+
type __VLS_WithSlots$31<T, S> = T & {
|
|
870
1351
|
new (): {
|
|
871
1352
|
$slots: S;
|
|
872
1353
|
};
|
|
@@ -890,7 +1371,7 @@ interface LoginFormData$1 {
|
|
|
890
1371
|
captchaCode: string;
|
|
891
1372
|
remember: boolean;
|
|
892
1373
|
}
|
|
893
|
-
interface Props$
|
|
1374
|
+
interface Props$41 {
|
|
894
1375
|
title?: string;
|
|
895
1376
|
subtitle?: string;
|
|
896
1377
|
usernameLabel?: string;
|
|
@@ -920,17 +1401,17 @@ interface Props$37 {
|
|
|
920
1401
|
theme?: "default" | "gradient" | "minimal";
|
|
921
1402
|
}
|
|
922
1403
|
declare var __VLS_1$21: {}, __VLS_15$2: {};
|
|
923
|
-
type __VLS_Slots$
|
|
1404
|
+
type __VLS_Slots$30 = {} & {
|
|
924
1405
|
logo?: (props: typeof __VLS_1$21) => any;
|
|
925
1406
|
} & {
|
|
926
1407
|
footer?: (props: typeof __VLS_15$2) => any;
|
|
927
1408
|
};
|
|
928
|
-
declare const __VLS_base$
|
|
1409
|
+
declare const __VLS_base$30: _$vue.DefineComponent<Props$41, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
929
1410
|
submit: (data: LoginFormData$1) => any;
|
|
930
1411
|
"send-code": (phone: string) => any;
|
|
931
1412
|
"forgot-password": () => any;
|
|
932
1413
|
"social-login": (provider: string) => any;
|
|
933
|
-
}, string, _$vue.PublicProps, Readonly<Props$
|
|
1414
|
+
}, string, _$vue.PublicProps, Readonly<Props$41> & Readonly<{
|
|
934
1415
|
onSubmit?: ((data: LoginFormData$1) => any) | undefined;
|
|
935
1416
|
"onSend-code"?: ((phone: string) => any) | undefined;
|
|
936
1417
|
"onForgot-password"?: (() => any) | undefined;
|
|
@@ -944,16 +1425,10 @@ declare const __VLS_base$29: _$vue.DefineComponent<Props$37, {}, {}, {}, {}, _$v
|
|
|
944
1425
|
loading: boolean;
|
|
945
1426
|
loadingText: string;
|
|
946
1427
|
subtitle: string;
|
|
947
|
-
usernameLabel: string;
|
|
948
|
-
passwordLabel: string;
|
|
949
|
-
phoneLabel: string;
|
|
950
|
-
codeLabel: string;
|
|
951
|
-
captchaLabel: string;
|
|
952
1428
|
usernamePlaceholder: string;
|
|
953
1429
|
passwordPlaceholder: string;
|
|
954
1430
|
phonePlaceholder: string;
|
|
955
1431
|
codePlaceholder: string;
|
|
956
|
-
captchaPlaceholder: string;
|
|
957
1432
|
sendCodeText: string;
|
|
958
1433
|
rememberText: string;
|
|
959
1434
|
forgotText: string;
|
|
@@ -963,42 +1438,62 @@ declare const __VLS_base$29: _$vue.DefineComponent<Props$37, {}, {}, {}, {}, _$v
|
|
|
963
1438
|
showTabs: boolean;
|
|
964
1439
|
showSocial: boolean;
|
|
965
1440
|
showCaptcha: boolean;
|
|
1441
|
+
captchaPlaceholder: string;
|
|
1442
|
+
usernameLabel: string;
|
|
1443
|
+
passwordLabel: string;
|
|
1444
|
+
phoneLabel: string;
|
|
1445
|
+
codeLabel: string;
|
|
1446
|
+
captchaLabel: string;
|
|
966
1447
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
967
|
-
declare const __VLS_export$
|
|
968
|
-
declare const _default$
|
|
969
|
-
type __VLS_WithSlots$
|
|
1448
|
+
declare const __VLS_export$41: __VLS_WithSlots$30<typeof __VLS_base$30, __VLS_Slots$30>;
|
|
1449
|
+
declare const _default$35: typeof __VLS_export$41;
|
|
1450
|
+
type __VLS_WithSlots$30<T, S> = T & {
|
|
970
1451
|
new (): {
|
|
971
1452
|
$slots: S;
|
|
972
1453
|
};
|
|
973
1454
|
};
|
|
974
1455
|
//#endregion
|
|
975
1456
|
//#region src/components/base/captcha/captcha.vue.d.ts
|
|
976
|
-
interface Props$
|
|
1457
|
+
interface Props$40 {
|
|
1458
|
+
/** 验证码长度(客户端生成时有效) */
|
|
977
1459
|
length?: number;
|
|
1460
|
+
/** 宽度 */
|
|
978
1461
|
width?: number;
|
|
1462
|
+
/** 高度 */
|
|
979
1463
|
height?: number;
|
|
1464
|
+
/** 字体大小(客户端生成时有效) */
|
|
980
1465
|
fontSize?: number;
|
|
1466
|
+
/** 背景颜色(客户端生成时有效) */
|
|
981
1467
|
bgColor?: string;
|
|
1468
|
+
/** 后端提供的验证码图片地址 */
|
|
1469
|
+
src?: string;
|
|
1470
|
+
/** 后端提供的验证码答案(用于校验) */
|
|
1471
|
+
code?: string;
|
|
1472
|
+
/** 验证码模式:客户端生成并校验,或后端提供图片由后端校验 */
|
|
1473
|
+
mode?: "client" | "server";
|
|
982
1474
|
}
|
|
983
1475
|
declare function refresh(): void;
|
|
984
|
-
declare const __VLS_export$
|
|
1476
|
+
declare const __VLS_export$40: _$vue.DefineComponent<Props$40, {
|
|
985
1477
|
code: _$vue.Ref<string, string>;
|
|
986
1478
|
refresh: typeof refresh;
|
|
987
1479
|
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
988
1480
|
change: (code: string) => any;
|
|
989
|
-
}, string, _$vue.PublicProps, Readonly<Props$
|
|
1481
|
+
}, string, _$vue.PublicProps, Readonly<Props$40> & Readonly<{
|
|
990
1482
|
onChange?: ((code: string) => any) | undefined;
|
|
991
1483
|
}>, {
|
|
992
1484
|
length: number;
|
|
993
|
-
height: number;
|
|
994
1485
|
width: number;
|
|
1486
|
+
mode: "client" | "server";
|
|
1487
|
+
height: number;
|
|
1488
|
+
src: string;
|
|
995
1489
|
fontSize: number;
|
|
996
1490
|
bgColor: string;
|
|
1491
|
+
code: string;
|
|
997
1492
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
998
|
-
declare const _default$6: typeof __VLS_export$
|
|
1493
|
+
declare const _default$6: typeof __VLS_export$40;
|
|
999
1494
|
//#endregion
|
|
1000
1495
|
//#region src/components/base/pin-input/pin-input.vue.d.ts
|
|
1001
|
-
interface Props$
|
|
1496
|
+
interface Props$39 {
|
|
1002
1497
|
modelValue?: string;
|
|
1003
1498
|
length?: number;
|
|
1004
1499
|
disabled?: boolean;
|
|
@@ -1006,13 +1501,13 @@ interface Props$35 {
|
|
|
1006
1501
|
errorMessage?: string;
|
|
1007
1502
|
mask?: boolean;
|
|
1008
1503
|
}
|
|
1009
|
-
declare const __VLS_export$
|
|
1504
|
+
declare const __VLS_export$39: _$vue.DefineComponent<Props$39, {
|
|
1010
1505
|
focus: (index?: number) => void;
|
|
1011
1506
|
clear: () => void;
|
|
1012
1507
|
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
1013
1508
|
"update:modelValue": (value: string) => any;
|
|
1014
1509
|
complete: (value: string) => any;
|
|
1015
|
-
}, string, _$vue.PublicProps, Readonly<Props$
|
|
1510
|
+
}, string, _$vue.PublicProps, Readonly<Props$39> & Readonly<{
|
|
1016
1511
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
1017
1512
|
onComplete?: ((value: string) => any) | undefined;
|
|
1018
1513
|
}>, {
|
|
@@ -1023,7 +1518,121 @@ declare const __VLS_export$35: _$vue.DefineComponent<Props$35, {
|
|
|
1023
1518
|
errorMessage: string;
|
|
1024
1519
|
mask: boolean;
|
|
1025
1520
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
1026
|
-
declare const _default$
|
|
1521
|
+
declare const _default$39: typeof __VLS_export$39;
|
|
1522
|
+
//#endregion
|
|
1523
|
+
//#region src/components/base/tree-select/tree-select.vue.d.ts
|
|
1524
|
+
interface TreeNodeType$1 {
|
|
1525
|
+
key: string;
|
|
1526
|
+
title: string;
|
|
1527
|
+
children?: TreeNodeType$1[];
|
|
1528
|
+
disabled?: boolean;
|
|
1529
|
+
isLeaf?: boolean;
|
|
1530
|
+
}
|
|
1531
|
+
interface Props$38 {
|
|
1532
|
+
modelValue?: string | number | string[] | number[];
|
|
1533
|
+
placeholder?: string;
|
|
1534
|
+
disabled?: boolean;
|
|
1535
|
+
multiple?: boolean;
|
|
1536
|
+
size?: ComponentSize;
|
|
1537
|
+
variant?: "default" | "bordered" | "filled";
|
|
1538
|
+
label?: string;
|
|
1539
|
+
required?: boolean;
|
|
1540
|
+
error?: string;
|
|
1541
|
+
hint?: string;
|
|
1542
|
+
treeData: TreeNodeType$1[];
|
|
1543
|
+
defaultExpandedKeys?: string[];
|
|
1544
|
+
defaultCheckedKeys?: string[];
|
|
1545
|
+
checkable?: boolean;
|
|
1546
|
+
filterable?: boolean;
|
|
1547
|
+
clearable?: boolean;
|
|
1548
|
+
dropdownHeight?: number;
|
|
1549
|
+
/** Enable virtual scroll for large trees */
|
|
1550
|
+
virtualScroll?: boolean;
|
|
1551
|
+
rowHeight?: number;
|
|
1552
|
+
overscan?: number;
|
|
1553
|
+
}
|
|
1554
|
+
declare const __VLS_export$38: _$vue.DefineComponent<Props$38, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
1555
|
+
"update:modelValue": (value: string | number | string[] | number[]) => any;
|
|
1556
|
+
change: (value: string | number | string[] | number[]) => any;
|
|
1557
|
+
check: (checkedKeys: string[]) => any;
|
|
1558
|
+
focus: (event: FocusEvent) => any;
|
|
1559
|
+
blur: (event: FocusEvent) => any;
|
|
1560
|
+
}, string, _$vue.PublicProps, Readonly<Props$38> & Readonly<{
|
|
1561
|
+
"onUpdate:modelValue"?: ((value: string | number | string[] | number[]) => any) | undefined;
|
|
1562
|
+
onChange?: ((value: string | number | string[] | number[]) => any) | undefined;
|
|
1563
|
+
onCheck?: ((checkedKeys: string[]) => any) | undefined;
|
|
1564
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
1565
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
1566
|
+
}>, {
|
|
1567
|
+
size: ComponentSize;
|
|
1568
|
+
variant: "default" | "bordered" | "filled";
|
|
1569
|
+
error: string;
|
|
1570
|
+
modelValue: string | number | string[] | number[];
|
|
1571
|
+
virtualScroll: boolean;
|
|
1572
|
+
rowHeight: number;
|
|
1573
|
+
overscan: number;
|
|
1574
|
+
defaultExpandedKeys: string[];
|
|
1575
|
+
defaultCheckedKeys: string[];
|
|
1576
|
+
disabled: boolean;
|
|
1577
|
+
label: string;
|
|
1578
|
+
placeholder: string;
|
|
1579
|
+
multiple: boolean;
|
|
1580
|
+
required: boolean;
|
|
1581
|
+
hint: string;
|
|
1582
|
+
filterable: boolean;
|
|
1583
|
+
clearable: boolean;
|
|
1584
|
+
dropdownHeight: number;
|
|
1585
|
+
treeData: TreeNodeType$1[];
|
|
1586
|
+
checkable: boolean;
|
|
1587
|
+
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
1588
|
+
declare const _default$64: typeof __VLS_export$38;
|
|
1589
|
+
//#endregion
|
|
1590
|
+
//#region src/components/base/color-picker/color-picker.vue.d.ts
|
|
1591
|
+
interface Props$37 {
|
|
1592
|
+
modelValue?: string;
|
|
1593
|
+
placeholder?: string;
|
|
1594
|
+
disabled?: boolean;
|
|
1595
|
+
size?: ComponentSize;
|
|
1596
|
+
variant?: "default" | "bordered" | "filled";
|
|
1597
|
+
label?: string;
|
|
1598
|
+
required?: boolean;
|
|
1599
|
+
error?: string;
|
|
1600
|
+
hint?: string;
|
|
1601
|
+
showAlpha?: boolean;
|
|
1602
|
+
showPreset?: boolean;
|
|
1603
|
+
showPreview?: boolean;
|
|
1604
|
+
editable?: boolean;
|
|
1605
|
+
clearable?: boolean;
|
|
1606
|
+
presetColors?: string[];
|
|
1607
|
+
}
|
|
1608
|
+
declare const __VLS_export$37: _$vue.DefineComponent<Props$37, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
1609
|
+
"update:modelValue": (value: string) => any;
|
|
1610
|
+
change: (value: string) => any;
|
|
1611
|
+
focus: (event: FocusEvent) => any;
|
|
1612
|
+
blur: (event: FocusEvent) => any;
|
|
1613
|
+
}, string, _$vue.PublicProps, Readonly<Props$37> & Readonly<{
|
|
1614
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
1615
|
+
onChange?: ((value: string) => any) | undefined;
|
|
1616
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
1617
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
1618
|
+
}>, {
|
|
1619
|
+
size: ComponentSize;
|
|
1620
|
+
variant: "default" | "bordered" | "filled";
|
|
1621
|
+
error: string;
|
|
1622
|
+
modelValue: string;
|
|
1623
|
+
editable: boolean;
|
|
1624
|
+
disabled: boolean;
|
|
1625
|
+
label: string;
|
|
1626
|
+
placeholder: string;
|
|
1627
|
+
required: boolean;
|
|
1628
|
+
hint: string;
|
|
1629
|
+
clearable: boolean;
|
|
1630
|
+
showAlpha: boolean;
|
|
1631
|
+
showPreset: boolean;
|
|
1632
|
+
showPreview: boolean;
|
|
1633
|
+
presetColors: string[];
|
|
1634
|
+
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
1635
|
+
declare const _default$12: typeof __VLS_export$37;
|
|
1027
1636
|
//#endregion
|
|
1028
1637
|
//#region src/components/form/types.d.ts
|
|
1029
1638
|
/**
|
|
@@ -1057,7 +1666,7 @@ interface ValidateResult {
|
|
|
1057
1666
|
/**
|
|
1058
1667
|
* 表单实例接口
|
|
1059
1668
|
*/
|
|
1060
|
-
interface FormInstance
|
|
1669
|
+
interface FormInstance {
|
|
1061
1670
|
validate: () => Promise<ValidateResult>;
|
|
1062
1671
|
resetFields: () => void;
|
|
1063
1672
|
clearValidate: (fields?: string[]) => void;
|
|
@@ -1072,9 +1681,150 @@ interface FormItemInstance {
|
|
|
1072
1681
|
prop: string;
|
|
1073
1682
|
modelValue: unknown;
|
|
1074
1683
|
}
|
|
1684
|
+
/**
|
|
1685
|
+
* 支持的表单项组件类型
|
|
1686
|
+
*/
|
|
1687
|
+
type FieldComponent = "Input" | "InputNumber" | "Textarea" | "Select" | "RadioGroup" | "CheckboxGroup" | "Switch" | "DatePicker" | "DateRangePicker" | "TimePicker" | "Cascader" | "AutoComplete" | "Rate" | "Slider";
|
|
1688
|
+
/**
|
|
1689
|
+
* 基础字段接口 - 所有字段schema的公共部分
|
|
1690
|
+
*/
|
|
1691
|
+
interface BaseFieldSchema {
|
|
1692
|
+
/** 字段名 */
|
|
1693
|
+
name: string;
|
|
1694
|
+
/** 标签文本 */
|
|
1695
|
+
label?: string;
|
|
1696
|
+
/** 默认值 */
|
|
1697
|
+
defaultValue?: unknown;
|
|
1698
|
+
/** 字段校验规则 */
|
|
1699
|
+
rules?: FormRule[];
|
|
1700
|
+
/** 提示文本 */
|
|
1701
|
+
placeholder?: string;
|
|
1702
|
+
/** 组件类型 */
|
|
1703
|
+
component?: FieldComponent;
|
|
1704
|
+
/** 传递给组件的props */
|
|
1705
|
+
componentProps?: Record<string, unknown>;
|
|
1706
|
+
/** 栅格配置 (ColProps) */
|
|
1707
|
+
colProps?: {
|
|
1708
|
+
span?: number;
|
|
1709
|
+
offset?: number;
|
|
1710
|
+
xs?: number;
|
|
1711
|
+
sm?: number;
|
|
1712
|
+
md?: number;
|
|
1713
|
+
lg?: number;
|
|
1714
|
+
xl?: number;
|
|
1715
|
+
};
|
|
1716
|
+
/** 条件显示 */
|
|
1717
|
+
if?: string | ((values: Record<string, unknown>) => boolean);
|
|
1718
|
+
/** 依赖字段 (用于条件显示) */
|
|
1719
|
+
dependencies?: string[];
|
|
1720
|
+
/** 是否禁用 */
|
|
1721
|
+
disabled?: boolean;
|
|
1722
|
+
/** 是否隐藏 (保留值但不渲染) */
|
|
1723
|
+
hidden?: boolean;
|
|
1724
|
+
}
|
|
1725
|
+
/**
|
|
1726
|
+
* 选择类组件选项
|
|
1727
|
+
*/
|
|
1728
|
+
interface SelectOption$1 {
|
|
1729
|
+
label: string;
|
|
1730
|
+
value: string | number;
|
|
1731
|
+
disabled?: boolean;
|
|
1732
|
+
}
|
|
1733
|
+
/**
|
|
1734
|
+
* RadioGroup选项
|
|
1735
|
+
*/
|
|
1736
|
+
interface RadioOption {
|
|
1737
|
+
label: string;
|
|
1738
|
+
value: string | number;
|
|
1739
|
+
disabled?: boolean;
|
|
1740
|
+
}
|
|
1741
|
+
/**
|
|
1742
|
+
* CheckboxGroup选项
|
|
1743
|
+
*/
|
|
1744
|
+
interface CheckboxOption {
|
|
1745
|
+
label: string;
|
|
1746
|
+
value: string | number;
|
|
1747
|
+
disabled?: boolean;
|
|
1748
|
+
}
|
|
1749
|
+
/**
|
|
1750
|
+
* 基础字段schema
|
|
1751
|
+
*/
|
|
1752
|
+
interface FieldSchema extends BaseFieldSchema {
|
|
1753
|
+
/** 下拉选项 (Select/Radio/Checkbox用) */
|
|
1754
|
+
options?: SelectOption$1[] | RadioOption[] | CheckboxOption[];
|
|
1755
|
+
}
|
|
1756
|
+
/**
|
|
1757
|
+
* 分组schema - 用于渲染字段组/fieldset
|
|
1758
|
+
*/
|
|
1759
|
+
interface GroupSchema {
|
|
1760
|
+
/** 分组类型标识 */
|
|
1761
|
+
type: "group";
|
|
1762
|
+
/** 分组标题 */
|
|
1763
|
+
title?: string;
|
|
1764
|
+
/** 分组描述 */
|
|
1765
|
+
description?: string;
|
|
1766
|
+
/** 是否可折叠 */
|
|
1767
|
+
collapsible?: boolean;
|
|
1768
|
+
/** 默认折叠状态 */
|
|
1769
|
+
defaultCollapsed?: boolean;
|
|
1770
|
+
/** 组内字段 */
|
|
1771
|
+
children: FormSchema[];
|
|
1772
|
+
}
|
|
1773
|
+
/**
|
|
1774
|
+
* 行容器schema - 用于在一行内渲染多个字段
|
|
1775
|
+
*/
|
|
1776
|
+
interface RowSchema {
|
|
1777
|
+
/** 行类型标识 */
|
|
1778
|
+
type: "row";
|
|
1779
|
+
/** 行内 gutter */
|
|
1780
|
+
gutter?: number;
|
|
1781
|
+
/** 行内字段 */
|
|
1782
|
+
children: FormSchema[];
|
|
1783
|
+
}
|
|
1784
|
+
/**
|
|
1785
|
+
* 自定义slot schema
|
|
1786
|
+
*/
|
|
1787
|
+
interface SlotSchema {
|
|
1788
|
+
/** slot类型标识 */
|
|
1789
|
+
type: "slot";
|
|
1790
|
+
/** slot名称 */
|
|
1791
|
+
name: string;
|
|
1792
|
+
}
|
|
1793
|
+
/**
|
|
1794
|
+
* Schema表单可用的schema类型
|
|
1795
|
+
*/
|
|
1796
|
+
type FormSchema = FieldSchema | GroupSchema | RowSchema | SlotSchema;
|
|
1797
|
+
/**
|
|
1798
|
+
* 表单操作类型 - 暴露给外部的控制方法
|
|
1799
|
+
*/
|
|
1800
|
+
interface FormActionType {
|
|
1801
|
+
/** 获取表单值 */
|
|
1802
|
+
getValues: () => Record<string, unknown>;
|
|
1803
|
+
/** 设置单个字段值 */
|
|
1804
|
+
setFieldValue: (name: string, value: unknown) => void;
|
|
1805
|
+
/** 重置表单 */
|
|
1806
|
+
resetFields: () => void;
|
|
1807
|
+
/** 验证表单 */
|
|
1808
|
+
validate: () => Promise<ValidateResult>;
|
|
1809
|
+
/** 滚动到指定字段 */
|
|
1810
|
+
scrollToField: (name: string) => void;
|
|
1811
|
+
/** 提交表单 */
|
|
1812
|
+
submit: () => Promise<Record<string, unknown>>;
|
|
1813
|
+
}
|
|
1814
|
+
/**
|
|
1815
|
+
* useFormSchema 返回类型
|
|
1816
|
+
*/
|
|
1817
|
+
interface UseFormSchemaReturn {
|
|
1818
|
+
/** 当前表单值 */
|
|
1819
|
+
modelValue: Record<string, unknown>;
|
|
1820
|
+
/** 解析后的schema (已处理条件逻辑) */
|
|
1821
|
+
schema: FormSchema[];
|
|
1822
|
+
/** 表单操作方法 */
|
|
1823
|
+
actions: FormActionType;
|
|
1824
|
+
}
|
|
1075
1825
|
//#endregion
|
|
1076
1826
|
//#region src/components/form/form/form.vue.d.ts
|
|
1077
|
-
interface Props$
|
|
1827
|
+
interface Props$36 {
|
|
1078
1828
|
modelValue?: Record<string, unknown>;
|
|
1079
1829
|
rules?: FormRules;
|
|
1080
1830
|
layout?: "horizontal" | "vertical" | "inline";
|
|
@@ -1083,16 +1833,16 @@ interface Props$34 {
|
|
|
1083
1833
|
disabled?: boolean;
|
|
1084
1834
|
}
|
|
1085
1835
|
declare var __VLS_1$20: {};
|
|
1086
|
-
type __VLS_Slots$
|
|
1836
|
+
type __VLS_Slots$29 = {} & {
|
|
1087
1837
|
default?: (props: typeof __VLS_1$20) => any;
|
|
1088
1838
|
};
|
|
1089
|
-
declare const __VLS_base$
|
|
1839
|
+
declare const __VLS_base$29: _$vue.DefineComponent<Props$36, FormInstance, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
1090
1840
|
submit: (values: Record<string, unknown>) => any;
|
|
1091
1841
|
validate: (result: {
|
|
1092
1842
|
valid: boolean;
|
|
1093
1843
|
errors: unknown[];
|
|
1094
1844
|
}) => any;
|
|
1095
|
-
}, string, _$vue.PublicProps, Readonly<Props$
|
|
1845
|
+
}, string, _$vue.PublicProps, Readonly<Props$36> & Readonly<{
|
|
1096
1846
|
onSubmit?: ((values: Record<string, unknown>) => any) | undefined;
|
|
1097
1847
|
onValidate?: ((result: {
|
|
1098
1848
|
valid: boolean;
|
|
@@ -1106,41 +1856,89 @@ declare const __VLS_base$28: _$vue.DefineComponent<Props$34, FormInstance, {}, {
|
|
|
1106
1856
|
labelWidth: string;
|
|
1107
1857
|
labelPosition: "left" | "right" | "top";
|
|
1108
1858
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
1109
|
-
declare const __VLS_export$
|
|
1110
|
-
declare const _default$
|
|
1111
|
-
type __VLS_WithSlots$
|
|
1859
|
+
declare const __VLS_export$36: __VLS_WithSlots$29<typeof __VLS_base$29, __VLS_Slots$29>;
|
|
1860
|
+
declare const _default$21: typeof __VLS_export$36;
|
|
1861
|
+
type __VLS_WithSlots$29<T, S> = T & {
|
|
1112
1862
|
new (): {
|
|
1113
1863
|
$slots: S;
|
|
1114
1864
|
};
|
|
1115
1865
|
};
|
|
1116
1866
|
//#endregion
|
|
1117
1867
|
//#region src/components/form/form-item/form-item.vue.d.ts
|
|
1118
|
-
interface Props$
|
|
1868
|
+
interface Props$35 {
|
|
1119
1869
|
prop?: string;
|
|
1120
1870
|
label?: string;
|
|
1121
1871
|
required?: boolean;
|
|
1122
1872
|
extra?: string;
|
|
1123
1873
|
}
|
|
1124
1874
|
declare var __VLS_1$19: {};
|
|
1125
|
-
type __VLS_Slots$
|
|
1875
|
+
type __VLS_Slots$28 = {} & {
|
|
1126
1876
|
default?: (props: typeof __VLS_1$19) => any;
|
|
1127
1877
|
};
|
|
1128
|
-
declare const __VLS_base$
|
|
1878
|
+
declare const __VLS_base$28: _$vue.DefineComponent<Props$35, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<Props$35> & Readonly<{}>, {
|
|
1129
1879
|
label: string;
|
|
1130
1880
|
required: boolean;
|
|
1131
1881
|
prop: string;
|
|
1132
1882
|
extra: string;
|
|
1133
1883
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
1134
|
-
declare const __VLS_export$
|
|
1135
|
-
declare const _default$
|
|
1884
|
+
declare const __VLS_export$35: __VLS_WithSlots$28<typeof __VLS_base$28, __VLS_Slots$28>;
|
|
1885
|
+
declare const _default$22: typeof __VLS_export$35;
|
|
1886
|
+
type __VLS_WithSlots$28<T, S> = T & {
|
|
1887
|
+
new (): {
|
|
1888
|
+
$slots: S;
|
|
1889
|
+
};
|
|
1890
|
+
};
|
|
1891
|
+
//#endregion
|
|
1892
|
+
//#region src/components/form/schema-form/SchemaForm.vue.d.ts
|
|
1893
|
+
interface Props$34 {
|
|
1894
|
+
schema: FormSchema[];
|
|
1895
|
+
modelValue?: Record<string, unknown>;
|
|
1896
|
+
labelWidth?: string;
|
|
1897
|
+
layout?: "horizontal" | "vertical" | "inline";
|
|
1898
|
+
labelPosition?: "left" | "right" | "top";
|
|
1899
|
+
disabled?: boolean;
|
|
1900
|
+
}
|
|
1901
|
+
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: {};
|
|
1902
|
+
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 } & {
|
|
1903
|
+
default?: (props: typeof __VLS_53) => any;
|
|
1904
|
+
};
|
|
1905
|
+
declare const __VLS_base$27: _$vue.DefineComponent<Props$34, {
|
|
1906
|
+
validate: () => Promise<ValidateResult>;
|
|
1907
|
+
resetFields: () => void;
|
|
1908
|
+
scrollToField: (name: string) => void;
|
|
1909
|
+
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
1910
|
+
"update:modelValue": (value: Record<string, unknown>) => any;
|
|
1911
|
+
change: (name: string, value: unknown) => any;
|
|
1912
|
+
submit: (values: Record<string, unknown>) => any;
|
|
1913
|
+
reset: () => any;
|
|
1914
|
+
}, string, _$vue.PublicProps, Readonly<Props$34> & Readonly<{
|
|
1915
|
+
"onUpdate:modelValue"?: ((value: Record<string, unknown>) => any) | undefined;
|
|
1916
|
+
onChange?: ((name: string, value: unknown) => any) | undefined;
|
|
1917
|
+
onSubmit?: ((values: Record<string, unknown>) => any) | undefined;
|
|
1918
|
+
onReset?: (() => any) | undefined;
|
|
1919
|
+
}>, {
|
|
1920
|
+
modelValue: Record<string, unknown>;
|
|
1921
|
+
disabled: boolean;
|
|
1922
|
+
layout: "horizontal" | "vertical" | "inline";
|
|
1923
|
+
labelWidth: string;
|
|
1924
|
+
labelPosition: "left" | "right" | "top";
|
|
1925
|
+
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
1926
|
+
declare const __VLS_export$34: __VLS_WithSlots$27<typeof __VLS_base$27, __VLS_Slots$27>;
|
|
1927
|
+
declare const _default$46: typeof __VLS_export$34;
|
|
1136
1928
|
type __VLS_WithSlots$27<T, S> = T & {
|
|
1137
1929
|
new (): {
|
|
1138
1930
|
$slots: S;
|
|
1139
1931
|
};
|
|
1140
1932
|
};
|
|
1141
1933
|
//#endregion
|
|
1934
|
+
//#region src/components/form/useFormSchema.d.ts
|
|
1935
|
+
/**
|
|
1936
|
+
* useFormSchema - Schema驱动的表单生成
|
|
1937
|
+
*/
|
|
1938
|
+
declare function useFormSchema(schema: FormSchema[], initialValues?: Record<string, unknown>): UseFormSchemaReturn;
|
|
1939
|
+
//#endregion
|
|
1142
1940
|
//#region src/components/layout/space/space.vue.d.ts
|
|
1143
|
-
interface Props$
|
|
1941
|
+
interface Props$33 {
|
|
1144
1942
|
size?: number | string | [number | string, number | string];
|
|
1145
1943
|
direction?: Direction;
|
|
1146
1944
|
wrap?: boolean;
|
|
@@ -1150,14 +1948,14 @@ declare var __VLS_1$18: {};
|
|
|
1150
1948
|
type __VLS_Slots$26 = {} & {
|
|
1151
1949
|
default?: (props: typeof __VLS_1$18) => any;
|
|
1152
1950
|
};
|
|
1153
|
-
declare const __VLS_base$26: _$vue.DefineComponent<Props$
|
|
1951
|
+
declare const __VLS_base$26: _$vue.DefineComponent<Props$33, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<Props$33> & Readonly<{}>, {
|
|
1154
1952
|
size: number | string | [number | string, number | string];
|
|
1155
1953
|
direction: Direction;
|
|
1156
1954
|
wrap: boolean;
|
|
1157
1955
|
align: "start" | "end" | "center" | "baseline";
|
|
1158
1956
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
1159
|
-
declare const __VLS_export$
|
|
1160
|
-
declare const _default$
|
|
1957
|
+
declare const __VLS_export$33: __VLS_WithSlots$26<typeof __VLS_base$26, __VLS_Slots$26>;
|
|
1958
|
+
declare const _default$50: typeof __VLS_export$33;
|
|
1161
1959
|
type __VLS_WithSlots$26<T, S> = T & {
|
|
1162
1960
|
new (): {
|
|
1163
1961
|
$slots: S;
|
|
@@ -1165,7 +1963,7 @@ type __VLS_WithSlots$26<T, S> = T & {
|
|
|
1165
1963
|
};
|
|
1166
1964
|
//#endregion
|
|
1167
1965
|
//#region src/components/layout/divider/divider.vue.d.ts
|
|
1168
|
-
interface Props$
|
|
1966
|
+
interface Props$32 {
|
|
1169
1967
|
direction?: Direction;
|
|
1170
1968
|
type?: "default" | "dashed" | "dotted";
|
|
1171
1969
|
orientation?: "left" | "center" | "right";
|
|
@@ -1176,15 +1974,15 @@ declare var __VLS_1$17: {};
|
|
|
1176
1974
|
type __VLS_Slots$25 = {} & {
|
|
1177
1975
|
default?: (props: typeof __VLS_1$17) => any;
|
|
1178
1976
|
};
|
|
1179
|
-
declare const __VLS_base$25: _$vue.DefineComponent<Props$
|
|
1977
|
+
declare const __VLS_base$25: _$vue.DefineComponent<Props$32, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<Props$32> & Readonly<{}>, {
|
|
1180
1978
|
type: "default" | "dashed" | "dotted";
|
|
1181
1979
|
direction: Direction;
|
|
1182
1980
|
orientation: "left" | "center" | "right";
|
|
1183
1981
|
dashed: boolean;
|
|
1184
1982
|
variant: "default" | "primary" | "success" | "warning" | "error";
|
|
1185
1983
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
1186
|
-
declare const __VLS_export$
|
|
1187
|
-
declare const _default$
|
|
1984
|
+
declare const __VLS_export$32: __VLS_WithSlots$25<typeof __VLS_base$25, __VLS_Slots$25>;
|
|
1985
|
+
declare const _default$17: typeof __VLS_export$32;
|
|
1188
1986
|
type __VLS_WithSlots$25<T, S> = T & {
|
|
1189
1987
|
new (): {
|
|
1190
1988
|
$slots: S;
|
|
@@ -1225,12 +2023,42 @@ interface MenuItem {
|
|
|
1225
2023
|
key: string;
|
|
1226
2024
|
/** 显示标题 */
|
|
1227
2025
|
label: string;
|
|
1228
|
-
/** 图标 */
|
|
1229
|
-
icon?: string
|
|
2026
|
+
/** 图标 - 支持字符串、组件名或图标对象 */
|
|
2027
|
+
icon?: string | {
|
|
2028
|
+
component: string;
|
|
2029
|
+
props?: Record<string, unknown>;
|
|
2030
|
+
};
|
|
1230
2031
|
/** 子菜单 */
|
|
1231
2032
|
children?: MenuItem[];
|
|
1232
2033
|
/** 是否禁用 */
|
|
1233
2034
|
disabled?: boolean;
|
|
2035
|
+
/** 路由路径(用于面包屑和路由集成) */
|
|
2036
|
+
path?: string;
|
|
2037
|
+
/** 路由配置(用于 vue-router) */
|
|
2038
|
+
route?: string | Record<string, unknown>;
|
|
2039
|
+
/** 权限标识(需要拥有的权限才能显示) */
|
|
2040
|
+
permission?: string | string[];
|
|
2041
|
+
/** 角色标识(需要拥有的角色才能显示) */
|
|
2042
|
+
roles?: string[];
|
|
2043
|
+
/** 是否隐藏(不显示但保留路径) */
|
|
2044
|
+
hidden?: boolean;
|
|
2045
|
+
/** 是否展开子菜单 */
|
|
2046
|
+
defaultOpen?: boolean;
|
|
2047
|
+
/** 是否新窗口打开 */
|
|
2048
|
+
external?: boolean;
|
|
2049
|
+
/** 打开方式 */
|
|
2050
|
+
target?: "_blank" | "_self" | "_parent" | "_top";
|
|
2051
|
+
/** 描述/提示 */
|
|
2052
|
+
description?: string;
|
|
2053
|
+
}
|
|
2054
|
+
/**
|
|
2055
|
+
* 用户权限信息
|
|
2056
|
+
*/
|
|
2057
|
+
interface UserPermissions$1 {
|
|
2058
|
+
/** 用户角色列表 */
|
|
2059
|
+
roles?: string[];
|
|
2060
|
+
/** 用户权限列表 */
|
|
2061
|
+
permissions?: string[];
|
|
1234
2062
|
}
|
|
1235
2063
|
/** 用户信息 */
|
|
1236
2064
|
interface UserInfo {
|
|
@@ -1254,7 +2082,7 @@ interface LayoutContext {
|
|
|
1254
2082
|
}
|
|
1255
2083
|
//#endregion
|
|
1256
2084
|
//#region src/components/layout/layout/layout.vue.d.ts
|
|
1257
|
-
interface Props$
|
|
2085
|
+
interface Props$31 {
|
|
1258
2086
|
/** 是否折叠侧边栏 */
|
|
1259
2087
|
collapsed?: boolean;
|
|
1260
2088
|
/** 侧边栏宽度 */
|
|
@@ -1312,7 +2140,7 @@ type __VLS_Slots$24 = {} & {
|
|
|
1312
2140
|
} & {
|
|
1313
2141
|
default?: (props: typeof __VLS_42) => any;
|
|
1314
2142
|
};
|
|
1315
|
-
declare const __VLS_base$24: _$vue.DefineComponent<Props$
|
|
2143
|
+
declare const __VLS_base$24: _$vue.DefineComponent<Props$31, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
1316
2144
|
"update:collapsed": (value: boolean) => any;
|
|
1317
2145
|
collapse: (collapsed: boolean) => any;
|
|
1318
2146
|
"menu-click": (key: string) => any;
|
|
@@ -1333,7 +2161,7 @@ declare const __VLS_base$24: _$vue.DefineComponent<Props$30, {}, {}, {}, {}, _$v
|
|
|
1333
2161
|
"sider-width-change": (width: number) => any;
|
|
1334
2162
|
"update:headerHeight": (value: number) => any;
|
|
1335
2163
|
"header-height-change": (height: number) => any;
|
|
1336
|
-
}, string, _$vue.PublicProps, Readonly<Props$
|
|
2164
|
+
}, string, _$vue.PublicProps, Readonly<Props$31> & Readonly<{
|
|
1337
2165
|
"onUpdate:collapsed"?: ((value: boolean) => any) | undefined;
|
|
1338
2166
|
onCollapse?: ((collapsed: boolean) => any) | undefined;
|
|
1339
2167
|
"onMenu-click"?: ((key: string) => any) | undefined;
|
|
@@ -1377,8 +2205,8 @@ declare const __VLS_base$24: _$vue.DefineComponent<Props$30, {}, {}, {}, {}, _$v
|
|
|
1377
2205
|
headerFixed: boolean;
|
|
1378
2206
|
siderResizable: boolean;
|
|
1379
2207
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
1380
|
-
declare const __VLS_export$
|
|
1381
|
-
declare const _default$
|
|
2208
|
+
declare const __VLS_export$31: __VLS_WithSlots$24<typeof __VLS_base$24, __VLS_Slots$24>;
|
|
2209
|
+
declare const _default$28: typeof __VLS_export$31;
|
|
1382
2210
|
type __VLS_WithSlots$24<T, S> = T & {
|
|
1383
2211
|
new (): {
|
|
1384
2212
|
$slots: S;
|
|
@@ -1386,7 +2214,7 @@ type __VLS_WithSlots$24<T, S> = T & {
|
|
|
1386
2214
|
};
|
|
1387
2215
|
//#endregion
|
|
1388
2216
|
//#region src/components/layout/layout/layout-sidebar.vue.d.ts
|
|
1389
|
-
interface Props$
|
|
2217
|
+
interface Props$30 {
|
|
1390
2218
|
/** Logo 图片 */
|
|
1391
2219
|
logo?: string;
|
|
1392
2220
|
/** 标题 */
|
|
@@ -1417,6 +2245,10 @@ interface Props$29 {
|
|
|
1417
2245
|
popupAlign?: "trigger" | "container";
|
|
1418
2246
|
/** 底部支持文字 */
|
|
1419
2247
|
footerText?: string;
|
|
2248
|
+
/** 是否显示搜索框 */
|
|
2249
|
+
searchable?: boolean;
|
|
2250
|
+
/** 当前用户角色 - 用于权限过滤 */
|
|
2251
|
+
roles?: string | string[];
|
|
1420
2252
|
}
|
|
1421
2253
|
declare var __VLS_1$16: {}, __VLS_9$2: {};
|
|
1422
2254
|
type __VLS_Slots$23 = {} & {
|
|
@@ -1424,14 +2256,16 @@ type __VLS_Slots$23 = {} & {
|
|
|
1424
2256
|
} & {
|
|
1425
2257
|
sider?: (props: typeof __VLS_9$2) => any;
|
|
1426
2258
|
};
|
|
1427
|
-
declare const __VLS_base$23: _$vue.DefineComponent<Props$
|
|
2259
|
+
declare const __VLS_base$23: _$vue.DefineComponent<Props$30, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
1428
2260
|
collapse: (collapsed: boolean) => any;
|
|
1429
|
-
"menu-click": (key: string) => any;
|
|
2261
|
+
"menu-click": (key: string, item: MenuItem) => any;
|
|
1430
2262
|
"width-change": (width: number) => any;
|
|
1431
|
-
|
|
2263
|
+
"path-change": (path: string[]) => any;
|
|
2264
|
+
}, string, _$vue.PublicProps, Readonly<Props$30> & Readonly<{
|
|
1432
2265
|
onCollapse?: ((collapsed: boolean) => any) | undefined;
|
|
1433
|
-
"onMenu-click"?: ((key: string) => any) | undefined;
|
|
2266
|
+
"onMenu-click"?: ((key: string, item: MenuItem) => any) | undefined;
|
|
1434
2267
|
"onWidth-change"?: ((width: number) => any) | undefined;
|
|
2268
|
+
"onPath-change"?: ((path: string[]) => any) | undefined;
|
|
1435
2269
|
}>, {
|
|
1436
2270
|
theme: LayoutTheme;
|
|
1437
2271
|
collapsed: boolean;
|
|
@@ -1447,9 +2281,11 @@ declare const __VLS_base$23: _$vue.DefineComponent<Props$29, {}, {}, {}, {}, _$v
|
|
|
1447
2281
|
minWidth: number;
|
|
1448
2282
|
maxWidth: number;
|
|
1449
2283
|
resizable: boolean;
|
|
2284
|
+
searchable: boolean;
|
|
2285
|
+
roles: string | string[];
|
|
1450
2286
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
1451
|
-
declare const __VLS_export$
|
|
1452
|
-
declare const _default$
|
|
2287
|
+
declare const __VLS_export$30: __VLS_WithSlots$23<typeof __VLS_base$23, __VLS_Slots$23>;
|
|
2288
|
+
declare const _default$31: typeof __VLS_export$30;
|
|
1453
2289
|
type __VLS_WithSlots$23<T, S> = T & {
|
|
1454
2290
|
new (): {
|
|
1455
2291
|
$slots: S;
|
|
@@ -1457,7 +2293,7 @@ type __VLS_WithSlots$23<T, S> = T & {
|
|
|
1457
2293
|
};
|
|
1458
2294
|
//#endregion
|
|
1459
2295
|
//#region src/components/layout/layout/layout-header.vue.d.ts
|
|
1460
|
-
interface Props$
|
|
2296
|
+
interface Props$29 {
|
|
1461
2297
|
/** 主题 */
|
|
1462
2298
|
theme?: LayoutTheme;
|
|
1463
2299
|
/** 标签页数据 */
|
|
@@ -1491,7 +2327,7 @@ type __VLS_Slots$22 = {} & {
|
|
|
1491
2327
|
} & {
|
|
1492
2328
|
settings?: (props: typeof __VLS_47) => any;
|
|
1493
2329
|
};
|
|
1494
|
-
declare const __VLS_base$22: _$vue.DefineComponent<Props$
|
|
2330
|
+
declare const __VLS_base$22: _$vue.DefineComponent<Props$29, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
1495
2331
|
"tab-change": (key: string) => any;
|
|
1496
2332
|
"tab-close": (key: string) => any;
|
|
1497
2333
|
"tab-add": () => any;
|
|
@@ -1505,7 +2341,7 @@ declare const __VLS_base$22: _$vue.DefineComponent<Props$28, {}, {}, {}, {}, _$v
|
|
|
1505
2341
|
"settings-click": () => any;
|
|
1506
2342
|
"notification-click": () => any;
|
|
1507
2343
|
"toggle-sider": () => any;
|
|
1508
|
-
}, string, _$vue.PublicProps, Readonly<Props$
|
|
2344
|
+
}, string, _$vue.PublicProps, Readonly<Props$29> & Readonly<{
|
|
1509
2345
|
"onTab-change"?: ((key: string) => any) | undefined;
|
|
1510
2346
|
"onTab-close"?: ((key: string) => any) | undefined;
|
|
1511
2347
|
"onTab-add"?: (() => any) | undefined;
|
|
@@ -1530,8 +2366,8 @@ declare const __VLS_base$22: _$vue.DefineComponent<Props$28, {}, {}, {}, {}, _$v
|
|
|
1530
2366
|
currentLanguage: string;
|
|
1531
2367
|
fixed: boolean;
|
|
1532
2368
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
1533
|
-
declare const __VLS_export$
|
|
1534
|
-
declare const _default$
|
|
2369
|
+
declare const __VLS_export$29: __VLS_WithSlots$22<typeof __VLS_base$22, __VLS_Slots$22>;
|
|
2370
|
+
declare const _default$30: typeof __VLS_export$29;
|
|
1535
2371
|
type __VLS_WithSlots$22<T, S> = T & {
|
|
1536
2372
|
new (): {
|
|
1537
2373
|
$slots: S;
|
|
@@ -1539,7 +2375,7 @@ type __VLS_WithSlots$22<T, S> = T & {
|
|
|
1539
2375
|
};
|
|
1540
2376
|
//#endregion
|
|
1541
2377
|
//#region src/components/layout/layout/layout-content.vue.d.ts
|
|
1542
|
-
interface Props$
|
|
2378
|
+
interface Props$28 {
|
|
1543
2379
|
/** 自定义样式 */
|
|
1544
2380
|
style?: Record<string, string | number>;
|
|
1545
2381
|
}
|
|
@@ -1547,9 +2383,9 @@ declare var __VLS_1$14: {};
|
|
|
1547
2383
|
type __VLS_Slots$21 = {} & {
|
|
1548
2384
|
default?: (props: typeof __VLS_1$14) => any;
|
|
1549
2385
|
};
|
|
1550
|
-
declare const __VLS_base$21: _$vue.DefineComponent<Props$
|
|
1551
|
-
declare const __VLS_export$
|
|
1552
|
-
declare const _default$
|
|
2386
|
+
declare const __VLS_base$21: _$vue.DefineComponent<Props$28, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<Props$28> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
2387
|
+
declare const __VLS_export$28: __VLS_WithSlots$21<typeof __VLS_base$21, __VLS_Slots$21>;
|
|
2388
|
+
declare const _default$29: typeof __VLS_export$28;
|
|
1553
2389
|
type __VLS_WithSlots$21<T, S> = T & {
|
|
1554
2390
|
new (): {
|
|
1555
2391
|
$slots: S;
|
|
@@ -1557,7 +2393,7 @@ type __VLS_WithSlots$21<T, S> = T & {
|
|
|
1557
2393
|
};
|
|
1558
2394
|
//#endregion
|
|
1559
2395
|
//#region src/components/data-display/card/card.vue.d.ts
|
|
1560
|
-
interface Props$
|
|
2396
|
+
interface Props$27 {
|
|
1561
2397
|
title?: string;
|
|
1562
2398
|
bordered?: boolean;
|
|
1563
2399
|
shadow?: "always" | "hover" | "never";
|
|
@@ -1571,14 +2407,14 @@ type __VLS_Slots$20 = {} & {
|
|
|
1571
2407
|
} & {
|
|
1572
2408
|
footer?: (props: typeof __VLS_5$1) => any;
|
|
1573
2409
|
};
|
|
1574
|
-
declare const __VLS_base$20: _$vue.DefineComponent<Props$
|
|
2410
|
+
declare const __VLS_base$20: _$vue.DefineComponent<Props$27, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<Props$27> & Readonly<{}>, {
|
|
1575
2411
|
title: string;
|
|
1576
2412
|
bordered: boolean;
|
|
1577
2413
|
shadow: "always" | "hover" | "never";
|
|
1578
2414
|
padding: "xs" | "sm" | "md" | "lg" | "none";
|
|
1579
2415
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
1580
|
-
declare const __VLS_export$
|
|
1581
|
-
declare const _default$7: typeof __VLS_export$
|
|
2416
|
+
declare const __VLS_export$27: __VLS_WithSlots$20<typeof __VLS_base$20, __VLS_Slots$20>;
|
|
2417
|
+
declare const _default$7: typeof __VLS_export$27;
|
|
1582
2418
|
type __VLS_WithSlots$20<T, S> = T & {
|
|
1583
2419
|
new (): {
|
|
1584
2420
|
$slots: S;
|
|
@@ -1586,17 +2422,29 @@ type __VLS_WithSlots$20<T, S> = T & {
|
|
|
1586
2422
|
};
|
|
1587
2423
|
//#endregion
|
|
1588
2424
|
//#region src/components/data-display/table/table.vue.d.ts
|
|
2425
|
+
interface SortState {
|
|
2426
|
+
key: string;
|
|
2427
|
+
order: "asc" | "desc" | null;
|
|
2428
|
+
priority: number;
|
|
2429
|
+
}
|
|
1589
2430
|
interface Column {
|
|
1590
2431
|
title: string;
|
|
1591
2432
|
key: string;
|
|
1592
2433
|
width?: string;
|
|
2434
|
+
minWidth?: string;
|
|
1593
2435
|
sortable?: boolean;
|
|
2436
|
+
/** Support multi-column sorting (Shift+click) */
|
|
2437
|
+
multipleSortable?: boolean;
|
|
2438
|
+
/** Support column resizing */
|
|
2439
|
+
resizable?: boolean;
|
|
2440
|
+
/** Support column drag/drop reordering */
|
|
2441
|
+
draggable?: boolean;
|
|
1594
2442
|
align?: "left" | "center" | "right";
|
|
1595
2443
|
fixed?: "left" | "right";
|
|
1596
2444
|
/** Show ellipsis with tooltip when content overflows */
|
|
1597
2445
|
showOverflowTooltip?: boolean;
|
|
1598
2446
|
}
|
|
1599
|
-
interface Props$
|
|
2447
|
+
interface Props$26 {
|
|
1600
2448
|
dataSource?: Record<string, unknown>[];
|
|
1601
2449
|
columns?: Column[];
|
|
1602
2450
|
loading?: boolean;
|
|
@@ -1623,6 +2471,12 @@ interface Props$25 {
|
|
|
1623
2471
|
exportable?: boolean;
|
|
1624
2472
|
/** Export filename prefix */
|
|
1625
2473
|
exportFilename?: string;
|
|
2474
|
+
/** Enable remote mode for server-side pagination/sorting */
|
|
2475
|
+
remote?: boolean;
|
|
2476
|
+
/** Total number of records (used in remote mode) */
|
|
2477
|
+
total?: number;
|
|
2478
|
+
/** Trigger load more when scroll reaches end (remote mode with virtual scroll) */
|
|
2479
|
+
loadMore?: boolean;
|
|
1626
2480
|
}
|
|
1627
2481
|
declare function exportToCSV(filename?: string): void;
|
|
1628
2482
|
declare function exportToExcel(filename?: string): void;
|
|
@@ -1655,45 +2509,56 @@ type __VLS_Slots$19 = {} & { [K in NonNullable<typeof __VLS_7$1>]?: (props: type
|
|
|
1655
2509
|
} & {
|
|
1656
2510
|
empty?: (props: typeof __VLS_25) => any;
|
|
1657
2511
|
};
|
|
1658
|
-
declare const __VLS_base$19: _$vue.DefineComponent<Props$
|
|
2512
|
+
declare const __VLS_base$19: _$vue.DefineComponent<Props$26, {
|
|
1659
2513
|
exportToCSV: typeof exportToCSV;
|
|
1660
2514
|
exportToExcel: typeof exportToExcel;
|
|
1661
2515
|
exportToJSON: typeof exportToJSON;
|
|
1662
2516
|
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
1663
2517
|
sort: (key: string, order: string) => any;
|
|
1664
2518
|
"page-change": (page: number) => any;
|
|
1665
|
-
|
|
2519
|
+
"sort-change": (sortStates: SortState[]) => any;
|
|
1666
2520
|
"row-click": (row: Record<string, unknown>) => any;
|
|
1667
|
-
|
|
2521
|
+
expand: (row: Record<string, unknown>, index: number) => any;
|
|
2522
|
+
"scroll-end": () => any;
|
|
2523
|
+
"column-resize": (key: string, width: string) => any;
|
|
2524
|
+
"column-reorder": (fromIndex: number, toIndex: number) => any;
|
|
2525
|
+
}, string, _$vue.PublicProps, Readonly<Props$26> & Readonly<{
|
|
1668
2526
|
onSort?: ((key: string, order: string) => any) | undefined;
|
|
1669
2527
|
"onPage-change"?: ((page: number) => any) | undefined;
|
|
1670
|
-
|
|
2528
|
+
"onSort-change"?: ((sortStates: SortState[]) => any) | undefined;
|
|
1671
2529
|
"onRow-click"?: ((row: Record<string, unknown>) => any) | undefined;
|
|
2530
|
+
onExpand?: ((row: Record<string, unknown>, index: number) => any) | undefined;
|
|
2531
|
+
"onScroll-end"?: (() => any) | undefined;
|
|
2532
|
+
"onColumn-resize"?: ((key: string, width: string) => any) | undefined;
|
|
2533
|
+
"onColumn-reorder"?: ((fromIndex: number, toIndex: number) => any) | undefined;
|
|
1672
2534
|
}>, {
|
|
1673
|
-
pageSize: number;
|
|
1674
2535
|
hover: boolean;
|
|
1675
|
-
virtualScroll: boolean;
|
|
1676
|
-
height: string | number;
|
|
1677
|
-
rowHeight: number;
|
|
1678
|
-
overscan: number;
|
|
1679
|
-
dataSource: Record<string, unknown>[];
|
|
1680
|
-
bordered: boolean;
|
|
1681
|
-
emptyText: string;
|
|
1682
|
-
skeleton: boolean;
|
|
1683
|
-
skeletonRows: number;
|
|
1684
2536
|
loading: boolean;
|
|
2537
|
+
pageSize: number;
|
|
2538
|
+
total: number;
|
|
2539
|
+
dataSource: Record<string, unknown>[];
|
|
1685
2540
|
columns: Column[];
|
|
1686
2541
|
loadingText: string;
|
|
2542
|
+
skeleton: boolean;
|
|
2543
|
+
skeletonRows: number;
|
|
1687
2544
|
pagination: boolean;
|
|
1688
2545
|
stripe: boolean;
|
|
2546
|
+
bordered: boolean;
|
|
2547
|
+
emptyText: string;
|
|
2548
|
+
height: string | number;
|
|
1689
2549
|
stickyHeader: boolean;
|
|
1690
2550
|
expandable: boolean;
|
|
2551
|
+
virtualScroll: boolean;
|
|
2552
|
+
rowHeight: number;
|
|
2553
|
+
overscan: number;
|
|
1691
2554
|
showOverflowTooltip: boolean;
|
|
1692
2555
|
exportable: boolean;
|
|
1693
2556
|
exportFilename: string;
|
|
2557
|
+
remote: boolean;
|
|
2558
|
+
loadMore: boolean;
|
|
1694
2559
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
1695
|
-
declare const __VLS_export$
|
|
1696
|
-
declare const _default$
|
|
2560
|
+
declare const __VLS_export$26: __VLS_WithSlots$19<typeof __VLS_base$19, __VLS_Slots$19>;
|
|
2561
|
+
declare const _default$55: typeof __VLS_export$26;
|
|
1697
2562
|
type __VLS_WithSlots$19<T, S> = T & {
|
|
1698
2563
|
new (): {
|
|
1699
2564
|
$slots: S;
|
|
@@ -1701,7 +2566,7 @@ type __VLS_WithSlots$19<T, S> = T & {
|
|
|
1701
2566
|
};
|
|
1702
2567
|
//#endregion
|
|
1703
2568
|
//#region src/components/data-display/progress/progress.vue.d.ts
|
|
1704
|
-
interface Props$
|
|
2569
|
+
interface Props$25 {
|
|
1705
2570
|
percent?: number;
|
|
1706
2571
|
type?: "line" | "circle" | "dashboard";
|
|
1707
2572
|
size?: ComponentSize;
|
|
@@ -1720,7 +2585,7 @@ type __VLS_Slots$18 = {} & {
|
|
|
1720
2585
|
} & {
|
|
1721
2586
|
format?: (props: typeof __VLS_3$6) => any;
|
|
1722
2587
|
};
|
|
1723
|
-
declare const __VLS_base$18: _$vue.DefineComponent<Props$
|
|
2588
|
+
declare const __VLS_base$18: _$vue.DefineComponent<Props$25, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<Props$25> & Readonly<{}>, {
|
|
1724
2589
|
size: ComponentSize;
|
|
1725
2590
|
type: "line" | "circle" | "dashboard";
|
|
1726
2591
|
percent: number;
|
|
@@ -1729,8 +2594,8 @@ declare const __VLS_base$18: _$vue.DefineComponent<Props$24, {}, {}, {}, {}, _$v
|
|
|
1729
2594
|
strokeWidth: number;
|
|
1730
2595
|
strokeColor: string;
|
|
1731
2596
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
1732
|
-
declare const __VLS_export$
|
|
1733
|
-
declare const _default$
|
|
2597
|
+
declare const __VLS_export$25: __VLS_WithSlots$18<typeof __VLS_base$18, __VLS_Slots$18>;
|
|
2598
|
+
declare const _default$41: typeof __VLS_export$25;
|
|
1734
2599
|
type __VLS_WithSlots$18<T, S> = T & {
|
|
1735
2600
|
new (): {
|
|
1736
2601
|
$slots: S;
|
|
@@ -1738,7 +2603,7 @@ type __VLS_WithSlots$18<T, S> = T & {
|
|
|
1738
2603
|
};
|
|
1739
2604
|
//#endregion
|
|
1740
2605
|
//#region src/components/data-display/statistic/statistic.vue.d.ts
|
|
1741
|
-
interface Props$
|
|
2606
|
+
interface Props$24 {
|
|
1742
2607
|
value?: string | number;
|
|
1743
2608
|
title?: string;
|
|
1744
2609
|
prefix?: string;
|
|
@@ -1756,7 +2621,7 @@ type __VLS_Slots$17 = {} & {
|
|
|
1756
2621
|
} & {
|
|
1757
2622
|
suffix?: (props: typeof __VLS_3$5) => any;
|
|
1758
2623
|
};
|
|
1759
|
-
declare const __VLS_base$17: _$vue.DefineComponent<Props$
|
|
2624
|
+
declare const __VLS_base$17: _$vue.DefineComponent<Props$24, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<Props$24> & Readonly<{}>, {
|
|
1760
2625
|
title: string;
|
|
1761
2626
|
value: string | number;
|
|
1762
2627
|
prefix: string;
|
|
@@ -1768,8 +2633,8 @@ declare const __VLS_base$17: _$vue.DefineComponent<Props$23, {}, {}, {}, {}, _$v
|
|
|
1768
2633
|
animation: boolean;
|
|
1769
2634
|
animationDuration: number;
|
|
1770
2635
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
1771
|
-
declare const __VLS_export$
|
|
1772
|
-
declare const _default$
|
|
2636
|
+
declare const __VLS_export$24: __VLS_WithSlots$17<typeof __VLS_base$17, __VLS_Slots$17>;
|
|
2637
|
+
declare const _default$52: typeof __VLS_export$24;
|
|
1773
2638
|
type __VLS_WithSlots$17<T, S> = T & {
|
|
1774
2639
|
new (): {
|
|
1775
2640
|
$slots: S;
|
|
@@ -1783,26 +2648,26 @@ interface CollapseItem {
|
|
|
1783
2648
|
content?: string;
|
|
1784
2649
|
disabled?: boolean;
|
|
1785
2650
|
}
|
|
1786
|
-
interface Props$
|
|
2651
|
+
interface Props$23 {
|
|
1787
2652
|
items?: CollapseItem[];
|
|
1788
2653
|
accordion?: boolean;
|
|
1789
2654
|
modelValue?: string[];
|
|
1790
2655
|
}
|
|
1791
2656
|
declare var __VLS_8: string, __VLS_9$1: {};
|
|
1792
2657
|
type __VLS_Slots$16 = {} & { [K in NonNullable<typeof __VLS_8>]?: (props: typeof __VLS_9$1) => any };
|
|
1793
|
-
declare const __VLS_base$16: _$vue.DefineComponent<Props$
|
|
1794
|
-
change: (value: string[]) => any;
|
|
2658
|
+
declare const __VLS_base$16: _$vue.DefineComponent<Props$23, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
1795
2659
|
"update:modelValue": (value: string[]) => any;
|
|
1796
|
-
|
|
1797
|
-
|
|
2660
|
+
change: (value: string[]) => any;
|
|
2661
|
+
}, string, _$vue.PublicProps, Readonly<Props$23> & Readonly<{
|
|
1798
2662
|
"onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
|
|
2663
|
+
onChange?: ((value: string[]) => any) | undefined;
|
|
1799
2664
|
}>, {
|
|
1800
|
-
items: CollapseItem[];
|
|
1801
2665
|
modelValue: string[];
|
|
2666
|
+
items: CollapseItem[];
|
|
1802
2667
|
accordion: boolean;
|
|
1803
2668
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
1804
|
-
declare const __VLS_export$
|
|
1805
|
-
declare const _default$11: typeof __VLS_export$
|
|
2669
|
+
declare const __VLS_export$23: __VLS_WithSlots$16<typeof __VLS_base$16, __VLS_Slots$16>;
|
|
2670
|
+
declare const _default$11: typeof __VLS_export$23;
|
|
1806
2671
|
type __VLS_WithSlots$16<T, S> = T & {
|
|
1807
2672
|
new (): {
|
|
1808
2673
|
$slots: S;
|
|
@@ -1817,7 +2682,7 @@ interface TimelineItem {
|
|
|
1817
2682
|
dot?: string;
|
|
1818
2683
|
color?: string;
|
|
1819
2684
|
}
|
|
1820
|
-
interface Props$
|
|
2685
|
+
interface Props$22 {
|
|
1821
2686
|
items?: TimelineItem[];
|
|
1822
2687
|
type?: "default" | "alternate";
|
|
1823
2688
|
mode?: "left" | "alternate";
|
|
@@ -1825,14 +2690,14 @@ interface Props$21 {
|
|
|
1825
2690
|
}
|
|
1826
2691
|
declare var __VLS_2: `dot-${number}`, __VLS_3$4: {}, __VLS_6$1: `content-${number}`, __VLS_7: {};
|
|
1827
2692
|
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 };
|
|
1828
|
-
declare const __VLS_base$15: _$vue.DefineComponent<Props$
|
|
2693
|
+
declare const __VLS_base$15: _$vue.DefineComponent<Props$22, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<Props$22> & Readonly<{}>, {
|
|
1829
2694
|
type: "default" | "alternate";
|
|
2695
|
+
color: string;
|
|
1830
2696
|
items: TimelineItem[];
|
|
1831
2697
|
mode: "left" | "alternate";
|
|
1832
|
-
color: string;
|
|
1833
2698
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
1834
|
-
declare const __VLS_export$
|
|
1835
|
-
declare const _default$
|
|
2699
|
+
declare const __VLS_export$22: __VLS_WithSlots$15<typeof __VLS_base$15, __VLS_Slots$15>;
|
|
2700
|
+
declare const _default$60: typeof __VLS_export$22;
|
|
1836
2701
|
type __VLS_WithSlots$15<T, S> = T & {
|
|
1837
2702
|
new (): {
|
|
1838
2703
|
$slots: S;
|
|
@@ -1848,7 +2713,7 @@ interface TreeNodeType {
|
|
|
1848
2713
|
isLeaf?: boolean;
|
|
1849
2714
|
loading?: boolean;
|
|
1850
2715
|
}
|
|
1851
|
-
interface Props$
|
|
2716
|
+
interface Props$21 {
|
|
1852
2717
|
nodes?: TreeNodeType[];
|
|
1853
2718
|
showLine?: boolean;
|
|
1854
2719
|
selectable?: boolean;
|
|
@@ -1866,17 +2731,21 @@ interface Props$20 {
|
|
|
1866
2731
|
/** Overscan row count */
|
|
1867
2732
|
overscan?: number;
|
|
1868
2733
|
}
|
|
1869
|
-
declare const __VLS_export$
|
|
2734
|
+
declare const __VLS_export$21: _$vue.DefineComponent<Props$21, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
1870
2735
|
select: (node: TreeNodeType) => any;
|
|
1871
2736
|
expand: (node: TreeNodeType) => any;
|
|
1872
2737
|
check: (checkedKeys: string[]) => any;
|
|
1873
2738
|
"node-drop": (draggedNode: TreeNodeType, targetNode: TreeNodeType) => any;
|
|
1874
|
-
}, string, _$vue.PublicProps, Readonly<Props$
|
|
2739
|
+
}, string, _$vue.PublicProps, Readonly<Props$21> & Readonly<{
|
|
1875
2740
|
onSelect?: ((node: TreeNodeType) => any) | undefined;
|
|
1876
2741
|
onExpand?: ((node: TreeNodeType) => any) | undefined;
|
|
1877
2742
|
onCheck?: ((checkedKeys: string[]) => any) | undefined;
|
|
1878
2743
|
"onNode-drop"?: ((draggedNode: TreeNodeType, targetNode: TreeNodeType) => any) | undefined;
|
|
1879
2744
|
}>, {
|
|
2745
|
+
height: string | number;
|
|
2746
|
+
virtualScroll: boolean;
|
|
2747
|
+
rowHeight: number;
|
|
2748
|
+
overscan: number;
|
|
1880
2749
|
nodes: TreeNodeType[];
|
|
1881
2750
|
showLine: boolean;
|
|
1882
2751
|
selectable: boolean;
|
|
@@ -1885,15 +2754,11 @@ declare const __VLS_export$20: _$vue.DefineComponent<Props$20, {}, {}, {}, {}, _
|
|
|
1885
2754
|
defaultCheckedKeys: string[];
|
|
1886
2755
|
loadFunction: (node: TreeNodeType) => Promise<TreeNodeType[]>;
|
|
1887
2756
|
draggable: boolean;
|
|
1888
|
-
virtualScroll: boolean;
|
|
1889
|
-
height: string | number;
|
|
1890
|
-
rowHeight: number;
|
|
1891
|
-
overscan: number;
|
|
1892
2757
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
1893
|
-
declare const _default$
|
|
2758
|
+
declare const _default$63: typeof __VLS_export$21;
|
|
1894
2759
|
//#endregion
|
|
1895
2760
|
//#region src/components/data-display/list/list.vue.d.ts
|
|
1896
|
-
interface Props$
|
|
2761
|
+
interface Props$20 {
|
|
1897
2762
|
dataSource?: Record<string, unknown>[];
|
|
1898
2763
|
header?: string;
|
|
1899
2764
|
footer?: string;
|
|
@@ -1916,22 +2781,22 @@ type __VLS_Slots$14 = {} & {
|
|
|
1916
2781
|
} & {
|
|
1917
2782
|
footer?: (props: typeof __VLS_10) => any;
|
|
1918
2783
|
};
|
|
1919
|
-
declare const __VLS_base$14: _$vue.DefineComponent<Props$
|
|
2784
|
+
declare const __VLS_base$14: _$vue.DefineComponent<Props$20, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
1920
2785
|
"item-click": (item: Record<string, unknown>, index: number) => any;
|
|
1921
|
-
}, string, _$vue.PublicProps, Readonly<Props$
|
|
2786
|
+
}, string, _$vue.PublicProps, Readonly<Props$20> & Readonly<{
|
|
1922
2787
|
"onItem-click"?: ((item: Record<string, unknown>, index: number) => any) | undefined;
|
|
1923
2788
|
}>, {
|
|
1924
|
-
split: boolean;
|
|
1925
2789
|
dataSource: Record<string, unknown>[];
|
|
1926
|
-
header: string;
|
|
1927
|
-
footer: string;
|
|
1928
|
-
bordered: boolean;
|
|
1929
|
-
emptyText: string;
|
|
1930
2790
|
skeleton: boolean;
|
|
1931
2791
|
skeletonRows: number;
|
|
2792
|
+
bordered: boolean;
|
|
2793
|
+
emptyText: string;
|
|
2794
|
+
split: boolean;
|
|
2795
|
+
header: string;
|
|
2796
|
+
footer: string;
|
|
1932
2797
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
1933
|
-
declare const __VLS_export$
|
|
1934
|
-
declare const _default$
|
|
2798
|
+
declare const __VLS_export$20: __VLS_WithSlots$14<typeof __VLS_base$14, __VLS_Slots$14>;
|
|
2799
|
+
declare const _default$32: typeof __VLS_export$20;
|
|
1935
2800
|
type __VLS_WithSlots$14<T, S> = T & {
|
|
1936
2801
|
new (): {
|
|
1937
2802
|
$slots: S;
|
|
@@ -1939,7 +2804,7 @@ type __VLS_WithSlots$14<T, S> = T & {
|
|
|
1939
2804
|
};
|
|
1940
2805
|
//#endregion
|
|
1941
2806
|
//#region src/components/data-display/empty/empty.vue.d.ts
|
|
1942
|
-
interface Props$
|
|
2807
|
+
interface Props$19 {
|
|
1943
2808
|
description?: string;
|
|
1944
2809
|
imageStyle?: string;
|
|
1945
2810
|
}
|
|
@@ -1949,12 +2814,12 @@ type __VLS_Slots$13 = {} & {
|
|
|
1949
2814
|
} & {
|
|
1950
2815
|
default?: (props: typeof __VLS_3$2) => any;
|
|
1951
2816
|
};
|
|
1952
|
-
declare const __VLS_base$13: _$vue.DefineComponent<Props$
|
|
2817
|
+
declare const __VLS_base$13: _$vue.DefineComponent<Props$19, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<Props$19> & Readonly<{}>, {
|
|
1953
2818
|
imageStyle: string;
|
|
1954
2819
|
description: string;
|
|
1955
2820
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
1956
|
-
declare const __VLS_export$
|
|
1957
|
-
declare const _default$
|
|
2821
|
+
declare const __VLS_export$19: __VLS_WithSlots$13<typeof __VLS_base$13, __VLS_Slots$13>;
|
|
2822
|
+
declare const _default$20: typeof __VLS_export$19;
|
|
1958
2823
|
type __VLS_WithSlots$13<T, S> = T & {
|
|
1959
2824
|
new (): {
|
|
1960
2825
|
$slots: S;
|
|
@@ -1962,7 +2827,7 @@ type __VLS_WithSlots$13<T, S> = T & {
|
|
|
1962
2827
|
};
|
|
1963
2828
|
//#endregion
|
|
1964
2829
|
//#region src/components/data-display/image/image.vue.d.ts
|
|
1965
|
-
interface Props$
|
|
2830
|
+
interface Props$18 {
|
|
1966
2831
|
src?: string;
|
|
1967
2832
|
alt?: string;
|
|
1968
2833
|
width?: string | number;
|
|
@@ -1976,26 +2841,26 @@ declare var __VLS_6: {};
|
|
|
1976
2841
|
type __VLS_Slots$12 = {} & {
|
|
1977
2842
|
fallback?: (props: typeof __VLS_6) => any;
|
|
1978
2843
|
};
|
|
1979
|
-
declare const __VLS_base$12: _$vue.DefineComponent<Props$
|
|
2844
|
+
declare const __VLS_base$12: _$vue.DefineComponent<Props$18, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
1980
2845
|
error: (event: Event) => any;
|
|
1981
2846
|
click: (event: MouseEvent) => any;
|
|
1982
2847
|
load: (event: Event) => any;
|
|
1983
|
-
}, string, _$vue.PublicProps, Readonly<Props$
|
|
2848
|
+
}, string, _$vue.PublicProps, Readonly<Props$18> & Readonly<{
|
|
1984
2849
|
onError?: ((event: Event) => any) | undefined;
|
|
1985
2850
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
1986
2851
|
onLoad?: ((event: Event) => any) | undefined;
|
|
1987
2852
|
}>, {
|
|
2853
|
+
width: string | number;
|
|
2854
|
+
loading: boolean;
|
|
1988
2855
|
rounded: boolean;
|
|
1989
2856
|
height: string | number;
|
|
1990
2857
|
src: string;
|
|
1991
2858
|
alt: string;
|
|
1992
|
-
width: string | number;
|
|
1993
2859
|
fit: "contain" | "cover" | "fill" | "none" | "scale-down";
|
|
1994
2860
|
preview: boolean;
|
|
1995
|
-
loading: boolean;
|
|
1996
2861
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
1997
|
-
declare const __VLS_export$
|
|
1998
|
-
declare const _default$
|
|
2862
|
+
declare const __VLS_export$18: __VLS_WithSlots$12<typeof __VLS_base$12, __VLS_Slots$12>;
|
|
2863
|
+
declare const _default$24: typeof __VLS_export$18;
|
|
1999
2864
|
type __VLS_WithSlots$12<T, S> = T & {
|
|
2000
2865
|
new (): {
|
|
2001
2866
|
$slots: S;
|
|
@@ -2003,18 +2868,18 @@ type __VLS_WithSlots$12<T, S> = T & {
|
|
|
2003
2868
|
};
|
|
2004
2869
|
//#endregion
|
|
2005
2870
|
//#region src/components/data-display/image/image-preview-group.vue.d.ts
|
|
2006
|
-
interface Props$
|
|
2871
|
+
interface Props$17 {
|
|
2007
2872
|
images?: string[];
|
|
2008
2873
|
}
|
|
2009
2874
|
declare var __VLS_1$8: {};
|
|
2010
2875
|
type __VLS_Slots$11 = {} & {
|
|
2011
2876
|
default?: (props: typeof __VLS_1$8) => any;
|
|
2012
2877
|
};
|
|
2013
|
-
declare const __VLS_base$11: _$vue.DefineComponent<Props$
|
|
2878
|
+
declare const __VLS_base$11: _$vue.DefineComponent<Props$17, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<Props$17> & Readonly<{}>, {
|
|
2014
2879
|
images: string[];
|
|
2015
2880
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
2016
|
-
declare const __VLS_export$
|
|
2017
|
-
declare const _default$
|
|
2881
|
+
declare const __VLS_export$17: __VLS_WithSlots$11<typeof __VLS_base$11, __VLS_Slots$11>;
|
|
2882
|
+
declare const _default$25: typeof __VLS_export$17;
|
|
2018
2883
|
type __VLS_WithSlots$11<T, S> = T & {
|
|
2019
2884
|
new (): {
|
|
2020
2885
|
$slots: S;
|
|
@@ -2025,19 +2890,27 @@ type __VLS_WithSlots$11<T, S> = T & {
|
|
|
2025
2890
|
interface MenuItem$1 {
|
|
2026
2891
|
label: string;
|
|
2027
2892
|
key: string;
|
|
2028
|
-
|
|
2893
|
+
/** 图标 - 支持字符串、组件名或图标对象 */
|
|
2894
|
+
icon?: string | {
|
|
2895
|
+
component: string;
|
|
2896
|
+
props?: Record<string, unknown>;
|
|
2897
|
+
};
|
|
2029
2898
|
disabled?: boolean;
|
|
2030
2899
|
route?: string;
|
|
2031
2900
|
badge?: string | number;
|
|
2032
2901
|
badgeType?: "primary" | "success" | "warning" | "danger" | "info";
|
|
2033
2902
|
image?: string;
|
|
2034
2903
|
children?: MenuItem$1[];
|
|
2904
|
+
/** 权限标识 */
|
|
2905
|
+
permission?: string | string[];
|
|
2906
|
+
/** 是否隐藏 */
|
|
2907
|
+
hidden?: boolean;
|
|
2035
2908
|
}
|
|
2036
2909
|
/**
|
|
2037
2910
|
* YdMenu Props
|
|
2038
2911
|
* @description 导航菜单组件
|
|
2039
2912
|
*/
|
|
2040
|
-
interface Props$
|
|
2913
|
+
interface Props$16 {
|
|
2041
2914
|
/** 当前选中的菜单项 key */
|
|
2042
2915
|
modelValue?: string;
|
|
2043
2916
|
/** 菜单项列表 */
|
|
@@ -2059,24 +2932,24 @@ interface Props$15 {
|
|
|
2059
2932
|
/** 下拉主题 */
|
|
2060
2933
|
dropdownTheme?: "default" | "glass" | "dark";
|
|
2061
2934
|
}
|
|
2062
|
-
declare const __VLS_export$
|
|
2063
|
-
select: (item: MenuItem$1) => any;
|
|
2935
|
+
declare const __VLS_export$16: _$vue.DefineComponent<Props$16, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
2064
2936
|
"update:modelValue": (value: string) => any;
|
|
2065
|
-
|
|
2066
|
-
|
|
2937
|
+
select: (item: MenuItem$1) => any;
|
|
2938
|
+
}, string, _$vue.PublicProps, Readonly<Props$16> & Readonly<{
|
|
2067
2939
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
2940
|
+
onSelect?: ((item: MenuItem$1) => any) | undefined;
|
|
2068
2941
|
}>, {
|
|
2069
2942
|
collapsed: boolean;
|
|
2070
2943
|
waterfall: boolean;
|
|
2071
2944
|
popupAlign: "trigger" | "container";
|
|
2072
|
-
items: MenuItem$1[];
|
|
2073
2945
|
modelValue: string;
|
|
2946
|
+
items: MenuItem$1[];
|
|
2074
2947
|
mode: "vertical" | "horizontal";
|
|
2075
2948
|
gridStyle: "auto" | "classic";
|
|
2076
2949
|
router: boolean;
|
|
2077
2950
|
dropdownTheme: "default" | "glass" | "dark";
|
|
2078
2951
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
2079
|
-
declare const _default$
|
|
2952
|
+
declare const _default$36: typeof __VLS_export$16;
|
|
2080
2953
|
//#endregion
|
|
2081
2954
|
//#region src/components/navigation/tabs/tabs.vue.d.ts
|
|
2082
2955
|
/**
|
|
@@ -2100,7 +2973,7 @@ interface TabItem$1 {
|
|
|
2100
2973
|
* YdTabs Props
|
|
2101
2974
|
* @description 标签页组件,支持多种样式和拖拽排序
|
|
2102
2975
|
*/
|
|
2103
|
-
interface Props$
|
|
2976
|
+
interface Props$15 {
|
|
2104
2977
|
/** 当前激活的 tab key */
|
|
2105
2978
|
modelValue?: string;
|
|
2106
2979
|
/** 受控的 tabs 数据(双向绑定) */
|
|
@@ -2118,7 +2991,7 @@ declare var __VLS_1$7: {};
|
|
|
2118
2991
|
type __VLS_Slots$10 = {} & {
|
|
2119
2992
|
default?: (props: typeof __VLS_1$7) => any;
|
|
2120
2993
|
};
|
|
2121
|
-
declare const __VLS_base$10: _$vue.DefineComponent<Props$
|
|
2994
|
+
declare const __VLS_base$10: _$vue.DefineComponent<Props$15, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
2122
2995
|
"update:modelTabs": (value: TabItem$1[]) => any;
|
|
2123
2996
|
"update:modelValue": (value: string) => any;
|
|
2124
2997
|
reorder: (payload: {
|
|
@@ -2133,7 +3006,7 @@ declare const __VLS_base$10: _$vue.DefineComponent<Props$14, {}, {}, {}, {}, _$v
|
|
|
2133
3006
|
success: boolean;
|
|
2134
3007
|
}) => any;
|
|
2135
3008
|
edit: (action: "add" | "remove", item?: TabItem$1 | undefined) => any;
|
|
2136
|
-
}, string, _$vue.PublicProps, Readonly<Props$
|
|
3009
|
+
}, string, _$vue.PublicProps, Readonly<Props$15> & Readonly<{
|
|
2137
3010
|
"onUpdate:modelTabs"?: ((value: TabItem$1[]) => any) | undefined;
|
|
2138
3011
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
2139
3012
|
onReorder?: ((payload: {
|
|
@@ -2152,13 +3025,13 @@ declare const __VLS_base$10: _$vue.DefineComponent<Props$14, {}, {}, {}, {}, _$v
|
|
|
2152
3025
|
theme: "light" | "dark" | "corporate";
|
|
2153
3026
|
type: "line" | "card" | "segment" | "border-card" | "chrome" | "rounded" | "minimal" | "envelope" | "glass";
|
|
2154
3027
|
modelTabs: TabItem$1[];
|
|
2155
|
-
items: TabItem$1[];
|
|
2156
3028
|
modelValue: string;
|
|
3029
|
+
items: TabItem$1[];
|
|
2157
3030
|
editable: boolean;
|
|
2158
3031
|
storageKey: string;
|
|
2159
3032
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
2160
|
-
declare const __VLS_export$
|
|
2161
|
-
declare const _default$
|
|
3033
|
+
declare const __VLS_export$15: __VLS_WithSlots$10<typeof __VLS_base$10, __VLS_Slots$10>;
|
|
3034
|
+
declare const _default$56: typeof __VLS_export$15;
|
|
2162
3035
|
type __VLS_WithSlots$10<T, S> = T & {
|
|
2163
3036
|
new (): {
|
|
2164
3037
|
$slots: S;
|
|
@@ -2171,7 +3044,7 @@ interface BreadcrumbItem {
|
|
|
2171
3044
|
to?: string;
|
|
2172
3045
|
disabled?: boolean;
|
|
2173
3046
|
}
|
|
2174
|
-
interface Props$
|
|
3047
|
+
interface Props$14 {
|
|
2175
3048
|
items?: BreadcrumbItem[];
|
|
2176
3049
|
separator?: string;
|
|
2177
3050
|
}
|
|
@@ -2179,16 +3052,16 @@ declare var __VLS_9: {};
|
|
|
2179
3052
|
type __VLS_Slots$9 = {} & {
|
|
2180
3053
|
separator?: (props: typeof __VLS_9) => any;
|
|
2181
3054
|
};
|
|
2182
|
-
declare const __VLS_base$9: _$vue.DefineComponent<Props$
|
|
3055
|
+
declare const __VLS_base$9: _$vue.DefineComponent<Props$14, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
2183
3056
|
navigate: (item: BreadcrumbItem) => any;
|
|
2184
|
-
}, string, _$vue.PublicProps, Readonly<Props$
|
|
3057
|
+
}, string, _$vue.PublicProps, Readonly<Props$14> & Readonly<{
|
|
2185
3058
|
onNavigate?: ((item: BreadcrumbItem) => any) | undefined;
|
|
2186
3059
|
}>, {
|
|
2187
3060
|
items: BreadcrumbItem[];
|
|
2188
3061
|
separator: string;
|
|
2189
3062
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
2190
|
-
declare const __VLS_export$
|
|
2191
|
-
declare const _default$4: typeof __VLS_export$
|
|
3063
|
+
declare const __VLS_export$14: __VLS_WithSlots$9<typeof __VLS_base$9, __VLS_Slots$9>;
|
|
3064
|
+
declare const _default$4: typeof __VLS_export$14;
|
|
2192
3065
|
type __VLS_WithSlots$9<T, S> = T & {
|
|
2193
3066
|
new (): {
|
|
2194
3067
|
$slots: S;
|
|
@@ -2196,7 +3069,7 @@ type __VLS_WithSlots$9<T, S> = T & {
|
|
|
2196
3069
|
};
|
|
2197
3070
|
//#endregion
|
|
2198
3071
|
//#region src/components/navigation/pagination/pagination.vue.d.ts
|
|
2199
|
-
interface Props$
|
|
3072
|
+
interface Props$13 {
|
|
2200
3073
|
currentPage?: number;
|
|
2201
3074
|
pageSize?: number;
|
|
2202
3075
|
total?: number;
|
|
@@ -2206,12 +3079,12 @@ interface Props$12 {
|
|
|
2206
3079
|
showQuickJumper?: boolean;
|
|
2207
3080
|
simple?: boolean;
|
|
2208
3081
|
}
|
|
2209
|
-
declare const __VLS_export$
|
|
3082
|
+
declare const __VLS_export$13: _$vue.DefineComponent<Props$13, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
2210
3083
|
"update:currentPage": (value: number) => any;
|
|
2211
3084
|
"update:pageSize": (value: number) => any;
|
|
2212
3085
|
"page-change": (page: number) => any;
|
|
2213
3086
|
"size-change": (size: number) => any;
|
|
2214
|
-
}, string, _$vue.PublicProps, Readonly<Props$
|
|
3087
|
+
}, string, _$vue.PublicProps, Readonly<Props$13> & Readonly<{
|
|
2215
3088
|
"onUpdate:currentPage"?: ((value: number) => any) | undefined;
|
|
2216
3089
|
"onUpdate:pageSize"?: ((value: number) => any) | undefined;
|
|
2217
3090
|
"onPage-change"?: ((page: number) => any) | undefined;
|
|
@@ -2226,7 +3099,7 @@ declare const __VLS_export$12: _$vue.DefineComponent<Props$12, {}, {}, {}, {}, _
|
|
|
2226
3099
|
showQuickJumper: boolean;
|
|
2227
3100
|
simple: boolean;
|
|
2228
3101
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
2229
|
-
declare const _default$
|
|
3102
|
+
declare const _default$38: typeof __VLS_export$13;
|
|
2230
3103
|
//#endregion
|
|
2231
3104
|
//#region src/components/navigation/dropdown/dropdown.vue.d.ts
|
|
2232
3105
|
interface DropdownItem {
|
|
@@ -2238,7 +3111,7 @@ interface DropdownItem {
|
|
|
2238
3111
|
* YdDropdown Props
|
|
2239
3112
|
* @description 下拉菜单组件
|
|
2240
3113
|
*/
|
|
2241
|
-
interface Props$
|
|
3114
|
+
interface Props$12 {
|
|
2242
3115
|
/** 菜单项列表 */
|
|
2243
3116
|
items?: DropdownItem[];
|
|
2244
3117
|
/** 触发方式 */
|
|
@@ -2252,18 +3125,18 @@ declare var __VLS_1$6: {};
|
|
|
2252
3125
|
type __VLS_Slots$8 = {} & {
|
|
2253
3126
|
default?: (props: typeof __VLS_1$6) => any;
|
|
2254
3127
|
};
|
|
2255
|
-
declare const __VLS_base$8: _$vue.DefineComponent<Props$
|
|
3128
|
+
declare const __VLS_base$8: _$vue.DefineComponent<Props$12, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
2256
3129
|
select: (item: DropdownItem) => any;
|
|
2257
|
-
}, string, _$vue.PublicProps, Readonly<Props$
|
|
3130
|
+
}, string, _$vue.PublicProps, Readonly<Props$12> & Readonly<{
|
|
2258
3131
|
onSelect?: ((item: DropdownItem) => any) | undefined;
|
|
2259
3132
|
}>, {
|
|
2260
3133
|
trigger: "hover" | "click";
|
|
2261
|
-
items: DropdownItem[];
|
|
2262
3134
|
placement: "bottom-start" | "bottom" | "bottom-end" | "top-start" | "top" | "top-end";
|
|
3135
|
+
items: DropdownItem[];
|
|
2263
3136
|
triggerLabel: string;
|
|
2264
3137
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
2265
|
-
declare const __VLS_export$
|
|
2266
|
-
declare const _default$
|
|
3138
|
+
declare const __VLS_export$12: __VLS_WithSlots$8<typeof __VLS_base$8, __VLS_Slots$8>;
|
|
3139
|
+
declare const _default$19: typeof __VLS_export$12;
|
|
2267
3140
|
type __VLS_WithSlots$8<T, S> = T & {
|
|
2268
3141
|
new (): {
|
|
2269
3142
|
$slots: S;
|
|
@@ -2276,19 +3149,19 @@ interface StepItem {
|
|
|
2276
3149
|
description?: string;
|
|
2277
3150
|
status?: "wait" | "process" | "finish" | "error";
|
|
2278
3151
|
}
|
|
2279
|
-
interface Props$
|
|
3152
|
+
interface Props$11 {
|
|
2280
3153
|
items?: StepItem[];
|
|
2281
3154
|
current?: number;
|
|
2282
3155
|
direction?: "horizontal" | "vertical";
|
|
2283
3156
|
size?: "default" | "small";
|
|
2284
3157
|
}
|
|
2285
|
-
declare const __VLS_export$
|
|
3158
|
+
declare const __VLS_export$11: _$vue.DefineComponent<Props$11, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<Props$11> & Readonly<{}>, {
|
|
2286
3159
|
size: "default" | "small";
|
|
2287
3160
|
direction: "horizontal" | "vertical";
|
|
2288
3161
|
items: StepItem[];
|
|
2289
3162
|
current: number;
|
|
2290
3163
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
2291
|
-
declare const _default$
|
|
3164
|
+
declare const _default$53: typeof __VLS_export$11;
|
|
2292
3165
|
//#endregion
|
|
2293
3166
|
//#region src/components/navigation/anchor/anchor.vue.d.ts
|
|
2294
3167
|
interface AnchorItem {
|
|
@@ -2296,24 +3169,24 @@ interface AnchorItem {
|
|
|
2296
3169
|
href: string;
|
|
2297
3170
|
children?: AnchorItem[];
|
|
2298
3171
|
}
|
|
2299
|
-
interface Props$
|
|
3172
|
+
interface Props$10 {
|
|
2300
3173
|
items?: AnchorItem[];
|
|
2301
3174
|
}
|
|
2302
|
-
declare const __VLS_export$
|
|
3175
|
+
declare const __VLS_export$10: _$vue.DefineComponent<Props$10, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
2303
3176
|
change: (href: string) => any;
|
|
2304
|
-
}, string, _$vue.PublicProps, Readonly<Props$
|
|
3177
|
+
}, string, _$vue.PublicProps, Readonly<Props$10> & Readonly<{
|
|
2305
3178
|
onChange?: ((href: string) => any) | undefined;
|
|
2306
3179
|
}>, {
|
|
2307
3180
|
items: AnchorItem[];
|
|
2308
3181
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
2309
|
-
declare const _default: typeof __VLS_export$
|
|
3182
|
+
declare const _default: typeof __VLS_export$10;
|
|
2310
3183
|
//#endregion
|
|
2311
3184
|
//#region src/components/feedback/modal/modal.vue.d.ts
|
|
2312
3185
|
/**
|
|
2313
3186
|
* YdModal Props
|
|
2314
3187
|
* @description 模态对话框组件,支持聚焦管理、ARIA 属性和键盘导航
|
|
2315
3188
|
*/
|
|
2316
|
-
interface Props$
|
|
3189
|
+
interface Props$9 {
|
|
2317
3190
|
/** 绑定值,控制对话框显示 */
|
|
2318
3191
|
modelValue?: boolean;
|
|
2319
3192
|
/** 对话框标题 */
|
|
@@ -2345,34 +3218,34 @@ type __VLS_Slots$7 = {} & {
|
|
|
2345
3218
|
} & {
|
|
2346
3219
|
footer?: (props: typeof __VLS_18$1) => any;
|
|
2347
3220
|
};
|
|
2348
|
-
declare const __VLS_base$7: _$vue.DefineComponent<Props$
|
|
2349
|
-
"update:modelValue": (value: boolean) => any;
|
|
3221
|
+
declare const __VLS_base$7: _$vue.DefineComponent<Props$9, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
2350
3222
|
open: () => any;
|
|
2351
3223
|
close: () => any;
|
|
2352
3224
|
confirm: () => any;
|
|
2353
3225
|
cancel: () => any;
|
|
2354
|
-
|
|
2355
|
-
|
|
3226
|
+
"update:modelValue": (value: boolean) => any;
|
|
3227
|
+
}, string, _$vue.PublicProps, Readonly<Props$9> & Readonly<{
|
|
2356
3228
|
onOpen?: (() => any) | undefined;
|
|
2357
3229
|
onClose?: (() => any) | undefined;
|
|
2358
3230
|
onConfirm?: (() => any) | undefined;
|
|
2359
3231
|
onCancel?: (() => any) | undefined;
|
|
3232
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
2360
3233
|
}>, {
|
|
2361
3234
|
title: string;
|
|
2362
3235
|
modelValue: boolean;
|
|
2363
3236
|
width: string | number;
|
|
2364
3237
|
showHeader: boolean;
|
|
3238
|
+
showFooter: boolean;
|
|
2365
3239
|
closable: boolean;
|
|
2366
3240
|
maskClosable: boolean;
|
|
2367
3241
|
destroyOnClose: boolean;
|
|
2368
3242
|
teleport: boolean;
|
|
2369
|
-
showFooter: boolean;
|
|
2370
3243
|
cancelText: string;
|
|
2371
3244
|
confirmText: string;
|
|
2372
3245
|
confirmLoading: boolean;
|
|
2373
3246
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
2374
|
-
declare const __VLS_export$
|
|
2375
|
-
declare const _default$
|
|
3247
|
+
declare const __VLS_export$9: __VLS_WithSlots$7<typeof __VLS_base$7, __VLS_Slots$7>;
|
|
3248
|
+
declare const _default$37: typeof __VLS_export$9;
|
|
2376
3249
|
type __VLS_WithSlots$7<T, S> = T & {
|
|
2377
3250
|
new (): {
|
|
2378
3251
|
$slots: S;
|
|
@@ -2384,7 +3257,7 @@ type __VLS_WithSlots$7<T, S> = T & {
|
|
|
2384
3257
|
* YdDrawer Props
|
|
2385
3258
|
* @description 抽屉组件,从一侧滑入的对话框
|
|
2386
3259
|
*/
|
|
2387
|
-
interface Props$
|
|
3260
|
+
interface Props$8 {
|
|
2388
3261
|
/** 绑定值,控制抽屉显示 */
|
|
2389
3262
|
modelValue?: boolean;
|
|
2390
3263
|
/** 抽屉标题 */
|
|
@@ -2410,17 +3283,16 @@ type __VLS_Slots$6 = {} & {
|
|
|
2410
3283
|
} & {
|
|
2411
3284
|
footer?: (props: typeof __VLS_18) => any;
|
|
2412
3285
|
};
|
|
2413
|
-
declare const __VLS_base$6: _$vue.DefineComponent<Props$
|
|
2414
|
-
"update:modelValue": (value: boolean) => any;
|
|
3286
|
+
declare const __VLS_base$6: _$vue.DefineComponent<Props$8, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
2415
3287
|
open: () => any;
|
|
2416
3288
|
close: () => any;
|
|
2417
|
-
|
|
2418
|
-
|
|
3289
|
+
"update:modelValue": (value: boolean) => any;
|
|
3290
|
+
}, string, _$vue.PublicProps, Readonly<Props$8> & Readonly<{
|
|
2419
3291
|
onOpen?: (() => any) | undefined;
|
|
2420
3292
|
onClose?: (() => any) | undefined;
|
|
3293
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
2421
3294
|
}>, {
|
|
2422
3295
|
title: string;
|
|
2423
|
-
placement: "left" | "right" | "top" | "bottom";
|
|
2424
3296
|
modelValue: boolean;
|
|
2425
3297
|
width: string | number;
|
|
2426
3298
|
showHeader: boolean;
|
|
@@ -2428,9 +3300,10 @@ declare const __VLS_base$6: _$vue.DefineComponent<Props$7, {}, {}, {}, {}, _$vue
|
|
|
2428
3300
|
maskClosable: boolean;
|
|
2429
3301
|
destroyOnClose: boolean;
|
|
2430
3302
|
teleport: boolean;
|
|
3303
|
+
placement: "left" | "right" | "top" | "bottom";
|
|
2431
3304
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
2432
|
-
declare const __VLS_export$
|
|
2433
|
-
declare const _default$
|
|
3305
|
+
declare const __VLS_export$8: __VLS_WithSlots$6<typeof __VLS_base$6, __VLS_Slots$6>;
|
|
3306
|
+
declare const _default$18: typeof __VLS_export$8;
|
|
2434
3307
|
type __VLS_WithSlots$6<T, S> = T & {
|
|
2435
3308
|
new (): {
|
|
2436
3309
|
$slots: S;
|
|
@@ -2481,7 +3354,7 @@ declare const Notification: {
|
|
|
2481
3354
|
};
|
|
2482
3355
|
//#endregion
|
|
2483
3356
|
//#region src/components/feedback/tooltip/tooltip.vue.d.ts
|
|
2484
|
-
interface Props$
|
|
3357
|
+
interface Props$7 {
|
|
2485
3358
|
content?: string;
|
|
2486
3359
|
placement?: "top" | "bottom" | "left" | "right";
|
|
2487
3360
|
trigger?: "hover" | "click";
|
|
@@ -2493,14 +3366,14 @@ type __VLS_Slots$5 = {} & {
|
|
|
2493
3366
|
} & {
|
|
2494
3367
|
content?: (props: typeof __VLS_15) => any;
|
|
2495
3368
|
};
|
|
2496
|
-
declare const __VLS_base$5: _$vue.DefineComponent<Props$
|
|
3369
|
+
declare const __VLS_base$5: _$vue.DefineComponent<Props$7, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<Props$7> & Readonly<{}>, {
|
|
2497
3370
|
trigger: "hover" | "click";
|
|
2498
3371
|
placement: "top" | "bottom" | "left" | "right";
|
|
2499
|
-
delay: number;
|
|
2500
3372
|
content: string;
|
|
3373
|
+
delay: number;
|
|
2501
3374
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
2502
|
-
declare const __VLS_export$
|
|
2503
|
-
declare const _default$
|
|
3375
|
+
declare const __VLS_export$7: __VLS_WithSlots$5<typeof __VLS_base$5, __VLS_Slots$5>;
|
|
3376
|
+
declare const _default$61: typeof __VLS_export$7;
|
|
2504
3377
|
type __VLS_WithSlots$5<T, S> = T & {
|
|
2505
3378
|
new (): {
|
|
2506
3379
|
$slots: S;
|
|
@@ -2508,7 +3381,7 @@ type __VLS_WithSlots$5<T, S> = T & {
|
|
|
2508
3381
|
};
|
|
2509
3382
|
//#endregion
|
|
2510
3383
|
//#region src/components/feedback/spin/spin.vue.d.ts
|
|
2511
|
-
interface Props$
|
|
3384
|
+
interface Props$6 {
|
|
2512
3385
|
spinning?: boolean;
|
|
2513
3386
|
size?: number;
|
|
2514
3387
|
tip?: string;
|
|
@@ -2520,14 +3393,14 @@ type __VLS_Slots$4 = {} & {
|
|
|
2520
3393
|
} & {
|
|
2521
3394
|
default?: (props: typeof __VLS_3$1) => any;
|
|
2522
3395
|
};
|
|
2523
|
-
declare const __VLS_base$4: _$vue.DefineComponent<Props$
|
|
3396
|
+
declare const __VLS_base$4: _$vue.DefineComponent<Props$6, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<Props$6> & Readonly<{}>, {
|
|
2524
3397
|
size: number;
|
|
3398
|
+
delay: number;
|
|
2525
3399
|
spinning: boolean;
|
|
2526
3400
|
tip: string;
|
|
2527
|
-
delay: number;
|
|
2528
3401
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
2529
|
-
declare const __VLS_export$
|
|
2530
|
-
declare const _default$
|
|
3402
|
+
declare const __VLS_export$6: __VLS_WithSlots$4<typeof __VLS_base$4, __VLS_Slots$4>;
|
|
3403
|
+
declare const _default$51: typeof __VLS_export$6;
|
|
2531
3404
|
type __VLS_WithSlots$4<T, S> = T & {
|
|
2532
3405
|
new (): {
|
|
2533
3406
|
$slots: S;
|
|
@@ -2535,7 +3408,7 @@ type __VLS_WithSlots$4<T, S> = T & {
|
|
|
2535
3408
|
};
|
|
2536
3409
|
//#endregion
|
|
2537
3410
|
//#region src/components/feedback/skeleton/skeleton.vue.d.ts
|
|
2538
|
-
interface Props$
|
|
3411
|
+
interface Props$5 {
|
|
2539
3412
|
loading?: boolean;
|
|
2540
3413
|
avatar?: boolean | number | string;
|
|
2541
3414
|
title?: boolean;
|
|
@@ -2549,7 +3422,7 @@ declare var __VLS_1$3: {};
|
|
|
2549
3422
|
type __VLS_Slots$3 = {} & {
|
|
2550
3423
|
default?: (props: typeof __VLS_1$3) => any;
|
|
2551
3424
|
};
|
|
2552
|
-
declare const __VLS_base$3: _$vue.DefineComponent<Props$
|
|
3425
|
+
declare const __VLS_base$3: _$vue.DefineComponent<Props$5, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<Props$5> & Readonly<{}>, {
|
|
2553
3426
|
title: boolean;
|
|
2554
3427
|
loading: boolean;
|
|
2555
3428
|
avatar: boolean | number | string;
|
|
@@ -2559,8 +3432,8 @@ declare const __VLS_base$3: _$vue.DefineComponent<Props$4, {}, {}, {}, {}, _$vue
|
|
|
2559
3432
|
lastRowWidth: string;
|
|
2560
3433
|
animated: boolean;
|
|
2561
3434
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
2562
|
-
declare const __VLS_export$
|
|
2563
|
-
declare const _default$
|
|
3435
|
+
declare const __VLS_export$5: __VLS_WithSlots$3<typeof __VLS_base$3, __VLS_Slots$3>;
|
|
3436
|
+
declare const _default$48: typeof __VLS_export$5;
|
|
2564
3437
|
type __VLS_WithSlots$3<T, S> = T & {
|
|
2565
3438
|
new (): {
|
|
2566
3439
|
$slots: S;
|
|
@@ -2568,7 +3441,7 @@ type __VLS_WithSlots$3<T, S> = T & {
|
|
|
2568
3441
|
};
|
|
2569
3442
|
//#endregion
|
|
2570
3443
|
//#region src/components/feedback/popconfirm/popconfirm.vue.d.ts
|
|
2571
|
-
interface Props$
|
|
3444
|
+
interface Props$4 {
|
|
2572
3445
|
title?: string;
|
|
2573
3446
|
confirmText?: string;
|
|
2574
3447
|
cancelText?: string;
|
|
@@ -2577,10 +3450,10 @@ declare var __VLS_1$2: {};
|
|
|
2577
3450
|
type __VLS_Slots$2 = {} & {
|
|
2578
3451
|
default?: (props: typeof __VLS_1$2) => any;
|
|
2579
3452
|
};
|
|
2580
|
-
declare const __VLS_base$2: _$vue.DefineComponent<Props$
|
|
3453
|
+
declare const __VLS_base$2: _$vue.DefineComponent<Props$4, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
2581
3454
|
confirm: () => any;
|
|
2582
3455
|
cancel: () => any;
|
|
2583
|
-
}, string, _$vue.PublicProps, Readonly<Props$
|
|
3456
|
+
}, string, _$vue.PublicProps, Readonly<Props$4> & Readonly<{
|
|
2584
3457
|
onConfirm?: (() => any) | undefined;
|
|
2585
3458
|
onCancel?: (() => any) | undefined;
|
|
2586
3459
|
}>, {
|
|
@@ -2588,8 +3461,8 @@ declare const __VLS_base$2: _$vue.DefineComponent<Props$3, {}, {}, {}, {}, _$vue
|
|
|
2588
3461
|
cancelText: string;
|
|
2589
3462
|
confirmText: string;
|
|
2590
3463
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
2591
|
-
declare const __VLS_export$
|
|
2592
|
-
declare const _default$
|
|
3464
|
+
declare const __VLS_export$4: __VLS_WithSlots$2<typeof __VLS_base$2, __VLS_Slots$2>;
|
|
3465
|
+
declare const _default$40: typeof __VLS_export$4;
|
|
2593
3466
|
type __VLS_WithSlots$2<T, S> = T & {
|
|
2594
3467
|
new (): {
|
|
2595
3468
|
$slots: S;
|
|
@@ -2597,7 +3470,7 @@ type __VLS_WithSlots$2<T, S> = T & {
|
|
|
2597
3470
|
};
|
|
2598
3471
|
//#endregion
|
|
2599
3472
|
//#region src/components/feedback/result/result.vue.d.ts
|
|
2600
|
-
interface Props$
|
|
3473
|
+
interface Props$3 {
|
|
2601
3474
|
status?: "success" | "error" | "warning" | "info" | "404" | "403" | "500";
|
|
2602
3475
|
title?: string;
|
|
2603
3476
|
subTitle?: string;
|
|
@@ -2610,13 +3483,13 @@ type __VLS_Slots$1 = {} & {
|
|
|
2610
3483
|
} & {
|
|
2611
3484
|
extra?: (props: typeof __VLS_5) => any;
|
|
2612
3485
|
};
|
|
2613
|
-
declare const __VLS_base$1: _$vue.DefineComponent<Props$
|
|
3486
|
+
declare const __VLS_base$1: _$vue.DefineComponent<Props$3, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<Props$3> & Readonly<{}>, {
|
|
2614
3487
|
title: string;
|
|
2615
3488
|
status: "success" | "error" | "warning" | "info" | "404" | "403" | "500";
|
|
2616
3489
|
subTitle: string;
|
|
2617
3490
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
2618
|
-
declare const __VLS_export$
|
|
2619
|
-
declare const _default$
|
|
3491
|
+
declare const __VLS_export$3: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
|
|
3492
|
+
declare const _default$45: typeof __VLS_export$3;
|
|
2620
3493
|
type __VLS_WithSlots$1<T, S> = T & {
|
|
2621
3494
|
new (): {
|
|
2622
3495
|
$slots: S;
|
|
@@ -2634,16 +3507,16 @@ interface ContextMenuItem {
|
|
|
2634
3507
|
separator?: boolean;
|
|
2635
3508
|
children?: ContextMenuItem[];
|
|
2636
3509
|
}
|
|
2637
|
-
interface Props$
|
|
3510
|
+
interface Props$2 {
|
|
2638
3511
|
items?: ContextMenuItem[];
|
|
2639
3512
|
visible?: boolean;
|
|
2640
3513
|
x?: number;
|
|
2641
3514
|
y?: number;
|
|
2642
3515
|
}
|
|
2643
|
-
declare const __VLS_export$
|
|
3516
|
+
declare const __VLS_export$2: _$vue.DefineComponent<Props$2, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
2644
3517
|
select: (item: ContextMenuItem) => any;
|
|
2645
3518
|
"update:visible": (value: boolean) => any;
|
|
2646
|
-
}, string, _$vue.PublicProps, Readonly<Props$
|
|
3519
|
+
}, string, _$vue.PublicProps, Readonly<Props$2> & Readonly<{
|
|
2647
3520
|
onSelect?: ((item: ContextMenuItem) => any) | undefined;
|
|
2648
3521
|
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
2649
3522
|
}>, {
|
|
@@ -2652,7 +3525,33 @@ declare const __VLS_export$1: _$vue.DefineComponent<Props$1, {}, {}, {}, {}, _$v
|
|
|
2652
3525
|
x: number;
|
|
2653
3526
|
y: number;
|
|
2654
3527
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
2655
|
-
declare const _default$
|
|
3528
|
+
declare const _default$14: typeof __VLS_export$2;
|
|
3529
|
+
//#endregion
|
|
3530
|
+
//#region src/components/feedback/loading-bar/loading-bar.vue.d.ts
|
|
3531
|
+
interface Props$1 {
|
|
3532
|
+
percent?: number;
|
|
3533
|
+
status?: "normal" | "success" | "error";
|
|
3534
|
+
size?: ComponentSize;
|
|
3535
|
+
duration?: number;
|
|
3536
|
+
color?: string;
|
|
3537
|
+
}
|
|
3538
|
+
declare function start(): void;
|
|
3539
|
+
declare function finish(): void;
|
|
3540
|
+
declare function setPercent(value: number): void;
|
|
3541
|
+
declare function error(): void;
|
|
3542
|
+
declare const __VLS_export$1: _$vue.DefineComponent<Props$1, {
|
|
3543
|
+
start: typeof start;
|
|
3544
|
+
finish: typeof finish;
|
|
3545
|
+
setPercent: typeof setPercent;
|
|
3546
|
+
error: typeof error;
|
|
3547
|
+
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<Props$1> & Readonly<{}>, {
|
|
3548
|
+
size: ComponentSize;
|
|
3549
|
+
percent: number;
|
|
3550
|
+
status: "normal" | "success" | "error";
|
|
3551
|
+
duration: number;
|
|
3552
|
+
color: string;
|
|
3553
|
+
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
3554
|
+
declare const _default$33: typeof __VLS_export$1;
|
|
2656
3555
|
//#endregion
|
|
2657
3556
|
//#region src/components/config-provider/config-provider.vue.d.ts
|
|
2658
3557
|
interface Props {
|
|
@@ -2667,12 +3566,12 @@ type __VLS_Slots = {} & {
|
|
|
2667
3566
|
};
|
|
2668
3567
|
declare const __VLS_base: _$vue.DefineComponent<Props, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
2669
3568
|
locale: string;
|
|
2670
|
-
theme: "light" | "dark" | "auto";
|
|
2671
3569
|
size: "xs" | "sm" | "md" | "lg";
|
|
3570
|
+
theme: "light" | "dark" | "auto";
|
|
2672
3571
|
zIndex: number;
|
|
2673
3572
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
2674
3573
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
2675
|
-
declare const _default$
|
|
3574
|
+
declare const _default$13: typeof __VLS_export;
|
|
2676
3575
|
type __VLS_WithSlots<T, S> = T & {
|
|
2677
3576
|
new (): {
|
|
2678
3577
|
$slots: S;
|
|
@@ -2692,6 +3591,15 @@ declare function useNamespace(namespace: string): {
|
|
|
2692
3591
|
bem: (element?: string, modifier?: string) => string;
|
|
2693
3592
|
};
|
|
2694
3593
|
//#endregion
|
|
3594
|
+
//#region src/composables/use-config.d.ts
|
|
3595
|
+
interface ConfigContext {
|
|
3596
|
+
theme: ComputedRef<string>;
|
|
3597
|
+
locale: ComputedRef<string>;
|
|
3598
|
+
size: ComputedRef<"xs" | "sm" | "md" | "lg">;
|
|
3599
|
+
zIndex: ComputedRef<number>;
|
|
3600
|
+
}
|
|
3601
|
+
declare function useConfig(): ConfigContext;
|
|
3602
|
+
//#endregion
|
|
2695
3603
|
//#region src/composables/use-form-validate.d.ts
|
|
2696
3604
|
/**
|
|
2697
3605
|
* 表单校验 composable
|
|
@@ -2727,6 +3635,12 @@ interface UseLoginFormOptions {
|
|
|
2727
3635
|
defaultTab?: string;
|
|
2728
3636
|
/** 发送验证码回调 */
|
|
2729
3637
|
onSendCode?: (phone: string) => void;
|
|
3638
|
+
/** 后端提供的验证码图片地址 */
|
|
3639
|
+
captchaSrc?: Ref<string>;
|
|
3640
|
+
/** 后端提供的验证码答案 */
|
|
3641
|
+
captchaAnswer?: Ref<string>;
|
|
3642
|
+
/** 验证码模式:客户端生成并校验,或后端提供由后端校验 */
|
|
3643
|
+
captchaMode?: "client" | "server";
|
|
2730
3644
|
}
|
|
2731
3645
|
interface UseLoginFormReturn {
|
|
2732
3646
|
/** 表单数据 */
|
|
@@ -2759,6 +3673,65 @@ interface UseLoginFormReturn {
|
|
|
2759
3673
|
*/
|
|
2760
3674
|
declare function useLoginForm(options?: UseLoginFormOptions): UseLoginFormReturn;
|
|
2761
3675
|
//#endregion
|
|
3676
|
+
//#region src/composables/use-loading-bar.d.ts
|
|
3677
|
+
/**
|
|
3678
|
+
* LoadingBar 组合式函数
|
|
3679
|
+
* 提供全局加载进度条控制方法
|
|
3680
|
+
* @returns LoadingBar 控制函数
|
|
3681
|
+
*/
|
|
3682
|
+
declare function useLoadingBar(): {
|
|
3683
|
+
start: (options?: {
|
|
3684
|
+
size?: ComponentSize;
|
|
3685
|
+
color?: string;
|
|
3686
|
+
}) => void;
|
|
3687
|
+
finish: () => void;
|
|
3688
|
+
setPercent: (percent: number) => void;
|
|
3689
|
+
error: () => void;
|
|
3690
|
+
};
|
|
3691
|
+
declare const loadingBar: {
|
|
3692
|
+
start: (options?: {
|
|
3693
|
+
size?: ComponentSize;
|
|
3694
|
+
color?: string;
|
|
3695
|
+
}) => void;
|
|
3696
|
+
finish: () => void;
|
|
3697
|
+
setPercent: (percent: number) => void;
|
|
3698
|
+
error: () => void;
|
|
3699
|
+
};
|
|
3700
|
+
//#endregion
|
|
3701
|
+
//#region src/composables/use-menu.d.ts
|
|
3702
|
+
/**
|
|
3703
|
+
* 过滤菜单项(根据权限和隐藏状态)
|
|
3704
|
+
*/
|
|
3705
|
+
declare function filterMenuItems(items: MenuItem[], userPermissions?: UserPermissions$1): MenuItem[];
|
|
3706
|
+
/**
|
|
3707
|
+
* 根据菜单生成路由配置
|
|
3708
|
+
*/
|
|
3709
|
+
declare function menuToRoutes(items: MenuItem[], basePath?: string): {
|
|
3710
|
+
path: string;
|
|
3711
|
+
name: string;
|
|
3712
|
+
meta: Record<string, unknown>;
|
|
3713
|
+
}[];
|
|
3714
|
+
/**
|
|
3715
|
+
* 从当前激活菜单 key 获取面包屑路径
|
|
3716
|
+
*/
|
|
3717
|
+
declare function getBreadcrumbPaths(items: MenuItem[], activeKey: string, currentPath?: MenuItem[]): MenuItem[];
|
|
3718
|
+
/**
|
|
3719
|
+
* 从菜单 key 查找菜单项
|
|
3720
|
+
*/
|
|
3721
|
+
declare function findMenuItem(items: MenuItem[], key: string): MenuItem | undefined;
|
|
3722
|
+
/**
|
|
3723
|
+
* 查找菜单项的完整路径
|
|
3724
|
+
*/
|
|
3725
|
+
declare function findMenuPath(items: MenuItem[], key: string, parents?: MenuItem[]): MenuItem[];
|
|
3726
|
+
/**
|
|
3727
|
+
* 搜索菜单项(模糊搜索,支持权限过滤)
|
|
3728
|
+
*/
|
|
3729
|
+
declare function searchMenuItems(items: MenuItem[], query: string, userPermissions?: UserPermissions$1): MenuItem[];
|
|
3730
|
+
/**
|
|
3731
|
+
* 获取菜单项的扁平化列表(用于搜索)
|
|
3732
|
+
*/
|
|
3733
|
+
declare function flattenMenuItems(items: MenuItem[]): MenuItem[];
|
|
3734
|
+
//#endregion
|
|
2762
3735
|
//#region src/hooks/use-loading.d.ts
|
|
2763
3736
|
/**
|
|
2764
3737
|
* Loading 状态管理 hook
|
|
@@ -2798,22 +3771,58 @@ declare function encrypt(data: string, key: CryptoKey | string): Promise<string>
|
|
|
2798
3771
|
declare function decrypt(base64Data: string, key: CryptoKey | string): Promise<string | null>;
|
|
2799
3772
|
//#endregion
|
|
2800
3773
|
//#region src/utils/secure-storage.d.ts
|
|
3774
|
+
/**
|
|
3775
|
+
* 存储类型
|
|
3776
|
+
*/
|
|
3777
|
+
type StorageType = "local" | "session";
|
|
3778
|
+
/**
|
|
3779
|
+
* 初始化配置接口
|
|
3780
|
+
*/
|
|
3781
|
+
interface SecureStorageConfig {
|
|
3782
|
+
/** 配置文件路径(默认:config/storage.json) */
|
|
3783
|
+
configFile?: string;
|
|
3784
|
+
/** localStorage 密钥 */
|
|
3785
|
+
localStorageKey?: string;
|
|
3786
|
+
/** sessionStorage 密钥 */
|
|
3787
|
+
sessionStorageKey?: string;
|
|
3788
|
+
/** 统一密钥(同时设置 localStorage 和 sessionStorage) */
|
|
3789
|
+
storageKey?: string;
|
|
3790
|
+
}
|
|
2801
3791
|
/**
|
|
2802
3792
|
* 初始化安全存储
|
|
2803
3793
|
* 必须在应用启动时调用
|
|
3794
|
+
* @param config 可选的初始化配置
|
|
2804
3795
|
*/
|
|
2805
|
-
declare function initSecureStorage(): Promise<void>;
|
|
3796
|
+
declare function initSecureStorage(config?: SecureStorageConfig): Promise<void>;
|
|
2806
3797
|
/**
|
|
2807
3798
|
* 混合加密存储类
|
|
2808
3799
|
*/
|
|
2809
3800
|
declare class SecureStorage {
|
|
2810
3801
|
private storage;
|
|
2811
|
-
private
|
|
3802
|
+
private storageType;
|
|
2812
3803
|
constructor(type: "local" | "session");
|
|
3804
|
+
/**
|
|
3805
|
+
* 获取存储类型
|
|
3806
|
+
*/
|
|
3807
|
+
get type(): StorageType;
|
|
3808
|
+
/**
|
|
3809
|
+
* 是否就绪
|
|
3810
|
+
*/
|
|
3811
|
+
get ready(): boolean;
|
|
3812
|
+
/**
|
|
3813
|
+
* 获取密钥(根据存储类型)
|
|
3814
|
+
*/
|
|
3815
|
+
private getCurrentKey;
|
|
2813
3816
|
/**
|
|
2814
3817
|
* 异步写入
|
|
3818
|
+
* @param key 存储键名
|
|
3819
|
+
* @param value 存储值
|
|
3820
|
+
* @param options 写入选项(可选)
|
|
2815
3821
|
*/
|
|
2816
|
-
setItem<T = unknown>(key: string, value: T
|
|
3822
|
+
setItem<T = unknown>(key: string, value: T, options?: {
|
|
3823
|
+
expiresIn?: number;
|
|
3824
|
+
compress?: boolean;
|
|
3825
|
+
}): Promise<void>;
|
|
2817
3826
|
/**
|
|
2818
3827
|
* 异步读取
|
|
2819
3828
|
*/
|
|
@@ -2827,9 +3836,155 @@ declare class SecureStorage {
|
|
|
2827
3836
|
*/
|
|
2828
3837
|
clear(): void;
|
|
2829
3838
|
}
|
|
3839
|
+
/**
|
|
3840
|
+
* 创建独立的 SecureStorage 实例
|
|
3841
|
+
* @param type 存储类型
|
|
3842
|
+
* @param key 可选的独立密钥
|
|
3843
|
+
* @returns SecureStorage 实例
|
|
3844
|
+
*/
|
|
2830
3845
|
declare const secureLocal: SecureStorage;
|
|
2831
3846
|
declare const secureSession: SecureStorage;
|
|
2832
3847
|
//#endregion
|
|
3848
|
+
//#region src/utils/router.d.ts
|
|
3849
|
+
/**
|
|
3850
|
+
* 路由元信息
|
|
3851
|
+
*/
|
|
3852
|
+
interface RouteMeta {
|
|
3853
|
+
/** 标题 */
|
|
3854
|
+
title?: string;
|
|
3855
|
+
/** 图标 */
|
|
3856
|
+
icon?: string;
|
|
3857
|
+
/** 是否隐藏 */
|
|
3858
|
+
hidden?: boolean;
|
|
3859
|
+
/** 权限 */
|
|
3860
|
+
roles?: string[];
|
|
3861
|
+
/** 缓存 */
|
|
3862
|
+
keepAlive?: boolean;
|
|
3863
|
+
/** 固定在 tabs */
|
|
3864
|
+
affix?: boolean;
|
|
3865
|
+
}
|
|
3866
|
+
/**
|
|
3867
|
+
* 简单路由记录(基础版本,不依赖 vue-router)
|
|
3868
|
+
*/
|
|
3869
|
+
interface SimpleRouteRecord {
|
|
3870
|
+
/** 路由路径 */
|
|
3871
|
+
path: string;
|
|
3872
|
+
/** 路由名称 */
|
|
3873
|
+
name?: string;
|
|
3874
|
+
/** 组件 */
|
|
3875
|
+
component?: unknown;
|
|
3876
|
+
/** 子路由 */
|
|
3877
|
+
children?: SimpleRouteRecord[];
|
|
3878
|
+
/** 重定向 */
|
|
3879
|
+
redirect?: string | SimpleRouteRecord;
|
|
3880
|
+
/** 元信息 */
|
|
3881
|
+
meta?: RouteMeta;
|
|
3882
|
+
/** 是否完全匹配 */
|
|
3883
|
+
exact?: boolean;
|
|
3884
|
+
}
|
|
3885
|
+
/**
|
|
3886
|
+
* 路由配置选项
|
|
3887
|
+
*/
|
|
3888
|
+
interface RouterOptions {
|
|
3889
|
+
/** 基础路径 */
|
|
3890
|
+
base?: string;
|
|
3891
|
+
/** 是否使用历史模式 */
|
|
3892
|
+
history?: "hash" | "html5" | "memory";
|
|
3893
|
+
/** 路由列表 */
|
|
3894
|
+
routes?: SimpleRouteRecord[];
|
|
3895
|
+
}
|
|
3896
|
+
/**
|
|
3897
|
+
* 动态路由管理器
|
|
3898
|
+
*/
|
|
3899
|
+
declare class DynamicRouter {
|
|
3900
|
+
private routes;
|
|
3901
|
+
private routeMap;
|
|
3902
|
+
/**
|
|
3903
|
+
* 设置路由列表
|
|
3904
|
+
*/
|
|
3905
|
+
setRoutes(routes: SimpleRouteRecord[]): void;
|
|
3906
|
+
/**
|
|
3907
|
+
* 获取路由列表
|
|
3908
|
+
*/
|
|
3909
|
+
getRoutes(): SimpleRouteRecord[];
|
|
3910
|
+
/**
|
|
3911
|
+
* 构建路由映射
|
|
3912
|
+
*/
|
|
3913
|
+
private buildRouteMap;
|
|
3914
|
+
/**
|
|
3915
|
+
* 根据路径获取路由
|
|
3916
|
+
*/
|
|
3917
|
+
getRoute(path: string): SimpleRouteRecord | undefined;
|
|
3918
|
+
/**
|
|
3919
|
+
* 检查路由是否存在
|
|
3920
|
+
*/
|
|
3921
|
+
hasRoute(path: string): boolean;
|
|
3922
|
+
/**
|
|
3923
|
+
* 添加路由
|
|
3924
|
+
*/
|
|
3925
|
+
addRoute(route: SimpleRouteRecord, parentPath?: string): void;
|
|
3926
|
+
/**
|
|
3927
|
+
* 移除路由
|
|
3928
|
+
*/
|
|
3929
|
+
removeRoute(path: string): boolean;
|
|
3930
|
+
/**
|
|
3931
|
+
* 获取可见路由(根据 meta.hidden)
|
|
3932
|
+
*/
|
|
3933
|
+
getVisibleRoutes(): SimpleRouteRecord[];
|
|
3934
|
+
/**
|
|
3935
|
+
* 根据权限过滤路由
|
|
3936
|
+
*/
|
|
3937
|
+
filterByRoles(roles: string[]): SimpleRouteRecord[];
|
|
3938
|
+
/**
|
|
3939
|
+
* 扁平化路由
|
|
3940
|
+
*/
|
|
3941
|
+
flattenRoutes(routes?: SimpleRouteRecord[]): SimpleRouteRecord[];
|
|
3942
|
+
/**
|
|
3943
|
+
* 路径匹配
|
|
3944
|
+
*/
|
|
3945
|
+
matchPath(path: string, pattern: string | RegExp): boolean;
|
|
3946
|
+
/**
|
|
3947
|
+
* 查找路由名称
|
|
3948
|
+
*/
|
|
3949
|
+
findRouteByName(name: string): SimpleRouteRecord | undefined;
|
|
3950
|
+
/**
|
|
3951
|
+
* 查找路由路径
|
|
3952
|
+
*/
|
|
3953
|
+
findPathByName(name: string): string | null;
|
|
3954
|
+
}
|
|
3955
|
+
/**
|
|
3956
|
+
* 路由工具单例
|
|
3957
|
+
*/
|
|
3958
|
+
declare const dynamicRouter: DynamicRouter;
|
|
3959
|
+
/**
|
|
3960
|
+
* 路径规范化
|
|
3961
|
+
*/
|
|
3962
|
+
declare function normalizePath(path: string): string;
|
|
3963
|
+
/**
|
|
3964
|
+
* 路径拼接
|
|
3965
|
+
*/
|
|
3966
|
+
declare function joinPath(...parts: string[]): string;
|
|
3967
|
+
/**
|
|
3968
|
+
* 路径匹配检查
|
|
3969
|
+
*/
|
|
3970
|
+
declare function isPathMatch(path: string, pattern: string | RegExp): boolean;
|
|
3971
|
+
/**
|
|
3972
|
+
* 路由权限检查
|
|
3973
|
+
*/
|
|
3974
|
+
declare function checkRoutePermission(route: SimpleRouteRecord | undefined, userRoles: string[]): boolean;
|
|
3975
|
+
/**
|
|
3976
|
+
* 路由标题生成器
|
|
3977
|
+
*/
|
|
3978
|
+
declare function generateRouteTitle(title: string, prefix?: string): string;
|
|
3979
|
+
/**
|
|
3980
|
+
* 构建面包屑
|
|
3981
|
+
*/
|
|
3982
|
+
declare function buildBreadcrumb(path: string, routes?: SimpleRouteRecord[]): SimpleRouteRecord[];
|
|
3983
|
+
/**
|
|
3984
|
+
* 路由记录类型转换
|
|
3985
|
+
*/
|
|
3986
|
+
declare function convertToSimpleRoute(route: RouteRecordRaw): SimpleRouteRecord;
|
|
3987
|
+
//#endregion
|
|
2833
3988
|
//#region src/utils/index.d.ts
|
|
2834
3989
|
/**
|
|
2835
3990
|
* Utility functions
|
|
@@ -2953,19 +4108,481 @@ declare const supportedLocales: readonly [{
|
|
|
2953
4108
|
readonly value: "en-US";
|
|
2954
4109
|
}];
|
|
2955
4110
|
type SupportedLocale = (typeof supportedLocales)[number]["value"];
|
|
4111
|
+
/**
|
|
4112
|
+
* 注册懒加载的 locale 文件
|
|
4113
|
+
*/
|
|
4114
|
+
declare function registerLazyLocale(locale: Locale, loader: () => Promise<Record<string, unknown>>): void;
|
|
2956
4115
|
/**
|
|
2957
4116
|
* 设置语言
|
|
2958
4117
|
*/
|
|
2959
4118
|
declare function setLocale(locale: Locale): void;
|
|
4119
|
+
/**
|
|
4120
|
+
* 获取当前语言
|
|
4121
|
+
*/
|
|
4122
|
+
declare function getCurrentLocale(): Locale;
|
|
2960
4123
|
/**
|
|
2961
4124
|
* 初始化 i18n
|
|
2962
4125
|
*/
|
|
2963
4126
|
declare function setupI18n(app: App, options?: {
|
|
2964
4127
|
defaultLocale?: Locale;
|
|
4128
|
+
lazy?: boolean;
|
|
2965
4129
|
}): Promise<void>;
|
|
2966
4130
|
/**
|
|
2967
4131
|
* 切换语言
|
|
2968
4132
|
*/
|
|
2969
4133
|
declare function changeLocale(locale: Locale): Promise<void>;
|
|
4134
|
+
/**
|
|
4135
|
+
* 获取翻译文本
|
|
4136
|
+
*/
|
|
4137
|
+
declare function t(key: string, params?: Record<string, unknown>): string;
|
|
4138
|
+
/**
|
|
4139
|
+
* 获取翻译文本(复数形式)- 使用 'one' 和 'other' 选择器
|
|
4140
|
+
*/
|
|
4141
|
+
declare function tc(key: string, choice?: number, params?: Record<string, unknown>): string;
|
|
4142
|
+
/**
|
|
4143
|
+
* 获取日期时间格式化
|
|
4144
|
+
*/
|
|
4145
|
+
declare function dt(value: Date | number | string, options?: Intl.DateTimeFormatOptions, locale?: Locale): string;
|
|
4146
|
+
/**
|
|
4147
|
+
* 获取数字格式化
|
|
4148
|
+
*/
|
|
4149
|
+
declare function nf(value: number, options?: Intl.NumberFormatOptions, locale?: Locale): string;
|
|
4150
|
+
//#endregion
|
|
4151
|
+
//#region src/resolver/index.d.ts
|
|
4152
|
+
/**
|
|
4153
|
+
* yd-admin 按需导入解析器
|
|
4154
|
+
* 支持 unplugin-vue-components 自动导入
|
|
4155
|
+
*
|
|
4156
|
+
* 使用方式:
|
|
4157
|
+
* ```ts
|
|
4158
|
+
* // vite.config.ts
|
|
4159
|
+
* import Components from 'unplugin-vue-components/vite'
|
|
4160
|
+
* import { YdAdminResolver } from 'yd-admin/resolver'
|
|
4161
|
+
*
|
|
4162
|
+
* Components({
|
|
4163
|
+
* resolvers: [YdAdminResolver()]
|
|
4164
|
+
* })
|
|
4165
|
+
* ```
|
|
4166
|
+
*/
|
|
4167
|
+
interface ResolverResult$1 {
|
|
4168
|
+
name: string;
|
|
4169
|
+
from: string;
|
|
4170
|
+
sideImport?: string;
|
|
4171
|
+
}
|
|
4172
|
+
type ComponentResolverFunc = (componentName: string) => ResolverResult$1 | undefined;
|
|
4173
|
+
/**
|
|
4174
|
+
* YdAdmin 组件库解析器
|
|
4175
|
+
* 将 YdXxx 组件自动映射到 yd-admin 包
|
|
4176
|
+
*/
|
|
4177
|
+
declare function YdAdminResolver(): ComponentResolverFunc;
|
|
4178
|
+
//#endregion
|
|
4179
|
+
//#region src/router/types.d.ts
|
|
4180
|
+
/**
|
|
4181
|
+
* 路由菜单项(避免与组件库冲突)
|
|
4182
|
+
*/
|
|
4183
|
+
interface AppMenuItem {
|
|
4184
|
+
/** 唯一标识 */
|
|
4185
|
+
key: string;
|
|
4186
|
+
/** 显示标题 */
|
|
4187
|
+
label: string;
|
|
4188
|
+
/** 图标 */
|
|
4189
|
+
icon?: string;
|
|
4190
|
+
/** 子菜单 */
|
|
4191
|
+
children?: AppMenuItem[];
|
|
4192
|
+
/** 路由路径 */
|
|
4193
|
+
path?: string;
|
|
4194
|
+
/** 权限 */
|
|
4195
|
+
permission?: string | string[];
|
|
4196
|
+
/** 角色 */
|
|
4197
|
+
roles?: string[];
|
|
4198
|
+
/** 禁用 */
|
|
4199
|
+
disabled?: boolean;
|
|
4200
|
+
}
|
|
4201
|
+
/**
|
|
4202
|
+
* 用户权限
|
|
4203
|
+
*/
|
|
4204
|
+
interface UserPermissions {
|
|
4205
|
+
/** 角色列表 */
|
|
4206
|
+
roles?: string[];
|
|
4207
|
+
/** 权限列表 */
|
|
4208
|
+
permissions?: string[];
|
|
4209
|
+
}
|
|
4210
|
+
/**
|
|
4211
|
+
* 路由元信息扩展 - 扩展标准 Route Meta
|
|
4212
|
+
* 支持布局、包装器、自定义渲染等能力
|
|
4213
|
+
*/
|
|
4214
|
+
interface RouteMeta$1 {
|
|
4215
|
+
/** 页面标题 */
|
|
4216
|
+
title?: string;
|
|
4217
|
+
/** 页面图标 */
|
|
4218
|
+
icon?: string;
|
|
4219
|
+
/** 页面描述 */
|
|
4220
|
+
description?: string;
|
|
4221
|
+
/** 是否需要认证 */
|
|
4222
|
+
requiresAuth?: boolean;
|
|
4223
|
+
/** 是否忽略认证 */
|
|
4224
|
+
ignoreAuth?: boolean;
|
|
4225
|
+
/** 需要的权限 */
|
|
4226
|
+
permission?: string | string[];
|
|
4227
|
+
/** 需要的角色 */
|
|
4228
|
+
roles?: string[];
|
|
4229
|
+
/** 是否缓存页面(配合 keep-alive) */
|
|
4230
|
+
keepAlive?: boolean;
|
|
4231
|
+
/** 是否在标签页显示 */
|
|
4232
|
+
tabAffix?: boolean;
|
|
4233
|
+
/** 面包屑配置 */
|
|
4234
|
+
breadcrumb?: boolean | Array<{
|
|
4235
|
+
label: string;
|
|
4236
|
+
path: string;
|
|
4237
|
+
}>;
|
|
4238
|
+
/** 是否外部链接 */
|
|
4239
|
+
external?: boolean;
|
|
4240
|
+
/** 打开方式 */
|
|
4241
|
+
target?: "_blank" | "_self" | "_parent" | "_top";
|
|
4242
|
+
/** 布局组件 - 包裹页面的布局组件 */
|
|
4243
|
+
layout?: string;
|
|
4244
|
+
/** 包装器组件 - 包裹页面内容 */
|
|
4245
|
+
wrapper?: string;
|
|
4246
|
+
/** 自定义渲染组件 */
|
|
4247
|
+
render?: string;
|
|
4248
|
+
/** Slot 名称 */
|
|
4249
|
+
slot?: string;
|
|
4250
|
+
/** 自定义渲染函数(高级场景) */
|
|
4251
|
+
renderFn?: (props: {
|
|
4252
|
+
route: RouteLocationNormalized$1;
|
|
4253
|
+
}) => VNode;
|
|
4254
|
+
/** 扩展字段 */
|
|
4255
|
+
[key: string]: unknown;
|
|
4256
|
+
}
|
|
4257
|
+
/**
|
|
4258
|
+
* 路由记录(扩展)- 支持自定义 meta 和子路由
|
|
4259
|
+
*/
|
|
4260
|
+
interface AppRouteRecordRaw extends Omit<RouteRecordRaw$1, "meta" | "name" | "children"> {
|
|
4261
|
+
/** 路由名称 */
|
|
4262
|
+
name?: RouteRecordName;
|
|
4263
|
+
/** 路由元信息 */
|
|
4264
|
+
meta?: RouteMeta$1;
|
|
4265
|
+
/** 子路由 */
|
|
4266
|
+
children?: AppRouteRecordRaw[];
|
|
4267
|
+
/** 组件(支持异步导入) */
|
|
4268
|
+
component?: RouteRecordRaw$1["component"];
|
|
4269
|
+
}
|
|
4270
|
+
/**
|
|
4271
|
+
* 路由守卫类型
|
|
4272
|
+
*/
|
|
4273
|
+
type RouteGuard = (to: RouteLocationNormalized$1, from: RouteLocationNormalized$1, next: NavigationGuardNext) => unknown;
|
|
4274
|
+
/**
|
|
4275
|
+
* 异步路由守卫类型
|
|
4276
|
+
*/
|
|
4277
|
+
type AsyncRouteGuard = (to: RouteLocationNormalized$1, from: RouteLocationNormalized$1, next: NavigationGuardNext) => Promise<void>;
|
|
4278
|
+
/**
|
|
4279
|
+
* 路由守卫配置 - 支持多种守卫类型
|
|
4280
|
+
*/
|
|
4281
|
+
interface GuardConfig {
|
|
4282
|
+
/** 全局前置守卫 - 导航开始前调用 */
|
|
4283
|
+
beforeEach?: AsyncRouteGuard | AsyncRouteGuard[];
|
|
4284
|
+
/** 全局后置守卫 - 导航完成后调用 */
|
|
4285
|
+
afterEach?: RouteGuard | RouteGuard[];
|
|
4286
|
+
/** 解析守卫 - 路由解析后(组件加载前)调用 */
|
|
4287
|
+
beforeResolve?: AsyncRouteGuard | AsyncRouteGuard[];
|
|
4288
|
+
/** 离开守卫 - 离开当前路由时调用 */
|
|
4289
|
+
beforeLeave?: AsyncRouteGuard | AsyncRouteGuard[];
|
|
4290
|
+
}
|
|
4291
|
+
/**
|
|
4292
|
+
* 路由历史模式
|
|
4293
|
+
*/
|
|
4294
|
+
type RouterHistoryMode = "hash" | "html5" | "memory";
|
|
4295
|
+
/**
|
|
4296
|
+
* 路由创建选项
|
|
4297
|
+
*/
|
|
4298
|
+
interface CreateRouterOptions {
|
|
4299
|
+
/** 历史模式 - 默认 html5 */
|
|
4300
|
+
history?: RouterHistoryMode;
|
|
4301
|
+
/** 基础路径 */
|
|
4302
|
+
base?: string;
|
|
4303
|
+
/** 初始路由记录 */
|
|
4304
|
+
routes?: AppRouteRecordRaw[];
|
|
4305
|
+
/** 路由守卫配置 */
|
|
4306
|
+
guards?: GuardConfig;
|
|
4307
|
+
/** 公共路由路径(未登录时重定向) */
|
|
4308
|
+
publicPath?: string;
|
|
4309
|
+
/** 登录页面路径 */
|
|
4310
|
+
loginPath?: string;
|
|
4311
|
+
/** 404 页面路径 */
|
|
4312
|
+
notFoundPath?: string;
|
|
4313
|
+
/** 是否严格模式 */
|
|
4314
|
+
strict?: boolean;
|
|
4315
|
+
/** 敏感信息匹配 */
|
|
4316
|
+
sensitive?: boolean;
|
|
4317
|
+
}
|
|
4318
|
+
/**
|
|
4319
|
+
* 动态路由选项
|
|
4320
|
+
*/
|
|
4321
|
+
interface DynamicRouteOptions {
|
|
4322
|
+
/** 父路由名称 */
|
|
4323
|
+
parentName?: string;
|
|
4324
|
+
/** 是否覆盖已存在 */
|
|
4325
|
+
overwrite?: boolean;
|
|
4326
|
+
/** 是否立即生效 */
|
|
4327
|
+
immediate?: boolean;
|
|
4328
|
+
}
|
|
4329
|
+
/**
|
|
4330
|
+
* 路由解析器配置 - 用于多库适配
|
|
4331
|
+
*/
|
|
4332
|
+
interface ResolverConfig {
|
|
4333
|
+
/** 库名称 */
|
|
4334
|
+
libraryName: "yd-admin" | "ant-design-vue" | "element-plus" | "other";
|
|
4335
|
+
/** 组件前缀 */
|
|
4336
|
+
componentPrefix?: string;
|
|
4337
|
+
/** 额外解析规则 */
|
|
4338
|
+
extraRules?: Array<{
|
|
4339
|
+
test: (name: string) => boolean;
|
|
4340
|
+
resolve: (name: string) => {
|
|
4341
|
+
name: string;
|
|
4342
|
+
from: string;
|
|
4343
|
+
};
|
|
4344
|
+
}>;
|
|
4345
|
+
}
|
|
4346
|
+
/**
|
|
4347
|
+
* 路由解析结果
|
|
4348
|
+
*/
|
|
4349
|
+
interface ResolverResult {
|
|
4350
|
+
/** 导入名称 */
|
|
4351
|
+
importName: string;
|
|
4352
|
+
/** 导入路径 */
|
|
4353
|
+
path: string;
|
|
4354
|
+
}
|
|
4355
|
+
/**
|
|
4356
|
+
* 渲染优先级定义
|
|
4357
|
+
*/
|
|
4358
|
+
type RenderPriority = readonly ["layout", "wrapper", "render", "component"];
|
|
4359
|
+
/**
|
|
4360
|
+
* 路由渲染上下文
|
|
4361
|
+
*/
|
|
4362
|
+
interface RenderContext {
|
|
4363
|
+
/** 当前路由 */
|
|
4364
|
+
route: RouteLocationNormalized$1;
|
|
4365
|
+
/** 页面组件 */
|
|
4366
|
+
component?: unknown;
|
|
4367
|
+
/** Slot 映射 */
|
|
4368
|
+
slots?: Record<string, unknown>;
|
|
4369
|
+
}
|
|
4370
|
+
/**
|
|
4371
|
+
* 路由渲染器接口
|
|
4372
|
+
*/
|
|
4373
|
+
interface RouteContentRenderer {
|
|
4374
|
+
/** 渲染优先级 */
|
|
4375
|
+
priority: RenderPriority;
|
|
4376
|
+
/** 解析渲染 */
|
|
4377
|
+
resolve: (ctx: RenderContext) => VNode | null;
|
|
4378
|
+
/** 获取路由元信息 */
|
|
4379
|
+
getMeta: () => RouteMeta$1;
|
|
4380
|
+
}
|
|
4381
|
+
/**
|
|
4382
|
+
* 构建路由选项(链式调用)
|
|
4383
|
+
*/
|
|
4384
|
+
interface RouterBuildOptions {
|
|
4385
|
+
/** 路由路径 */
|
|
4386
|
+
path: string;
|
|
4387
|
+
/** 路由名称 */
|
|
4388
|
+
name?: RouteRecordName;
|
|
4389
|
+
/** 路由元信息 */
|
|
4390
|
+
meta?: RouteMeta$1;
|
|
4391
|
+
/** 组件 */
|
|
4392
|
+
component?: AppRouteRecordRaw["component"];
|
|
4393
|
+
/** 重定向 */
|
|
4394
|
+
redirect?: RouteRecordRaw$1["redirect"];
|
|
4395
|
+
/** 子路由 */
|
|
4396
|
+
children?: AppRouteRecordRaw[];
|
|
4397
|
+
/** 额外属性 */
|
|
4398
|
+
props?: Record<string, unknown>;
|
|
4399
|
+
}
|
|
4400
|
+
/**
|
|
4401
|
+
* 路由导航结果
|
|
4402
|
+
*/
|
|
4403
|
+
interface RouteNavigateResult {
|
|
4404
|
+
/** 是否成功 */
|
|
4405
|
+
success: boolean;
|
|
4406
|
+
/** 错误信息 */
|
|
4407
|
+
error?: string;
|
|
4408
|
+
/** 导航到的路径 */
|
|
4409
|
+
to?: string;
|
|
4410
|
+
}
|
|
4411
|
+
//#endregion
|
|
4412
|
+
//#region src/router/create-router.d.ts
|
|
4413
|
+
/**
|
|
4414
|
+
* 创建路由实例
|
|
4415
|
+
* @param options 路由选项
|
|
4416
|
+
* @returns Vue Router 实例
|
|
4417
|
+
*/
|
|
4418
|
+
declare function createAppRouter(options?: CreateRouterOptions): Router$1;
|
|
4419
|
+
/**
|
|
4420
|
+
* 获取默认路由配置
|
|
4421
|
+
* @returns 默认路由数组
|
|
4422
|
+
*/
|
|
4423
|
+
declare function getDefaultRoutes(): AppRouteRecordRaw[];
|
|
4424
|
+
/**
|
|
4425
|
+
* 获取 404 路由
|
|
4426
|
+
* @param path 404 页面路径
|
|
4427
|
+
* @returns 404 路由配置
|
|
4428
|
+
*/
|
|
4429
|
+
declare function getNotFoundRoute(path?: string): AppRouteRecordRaw;
|
|
4430
|
+
//#endregion
|
|
4431
|
+
//#region src/router/guards/auth.d.ts
|
|
4432
|
+
/**
|
|
4433
|
+
* 认证状态检查函数
|
|
4434
|
+
*/
|
|
4435
|
+
type AuthChecker = () => boolean | Promise<boolean>;
|
|
4436
|
+
/**
|
|
4437
|
+
* 创建认证守卫
|
|
4438
|
+
* @param options 认证守卫选项
|
|
4439
|
+
* @returns 认证守卫函数
|
|
4440
|
+
*/
|
|
4441
|
+
declare function createAuthGuard(options: {
|
|
4442
|
+
/** 认证检查函数 */checker: AuthChecker; /** 登录页路径 */
|
|
4443
|
+
loginPath?: string; /** 登录页名称 */
|
|
4444
|
+
loginName?: string; /** 是否忽略路由 */
|
|
4445
|
+
ignore?: (to: RouteLocationNormalized) => boolean;
|
|
4446
|
+
}): AsyncRouteGuard;
|
|
4447
|
+
/**
|
|
4448
|
+
* 默认认证守卫选项
|
|
4449
|
+
*/
|
|
4450
|
+
declare const defaultAuthGuardOptions: {
|
|
4451
|
+
loginPath: string;
|
|
4452
|
+
loginName: string;
|
|
4453
|
+
ignore: (to: RouteLocationNormalized) => boolean;
|
|
4454
|
+
};
|
|
4455
|
+
//#endregion
|
|
4456
|
+
//#region src/router/guards/permission.d.ts
|
|
4457
|
+
/**
|
|
4458
|
+
* 权限检查函数
|
|
4459
|
+
*/
|
|
4460
|
+
type PermissionChecker = (required: string | string[], userPermissions?: UserPermissions) => boolean | Promise<boolean>;
|
|
4461
|
+
/**
|
|
4462
|
+
* 角色检查函数
|
|
4463
|
+
*/
|
|
4464
|
+
type RoleChecker = (required: string[], userPermissions?: UserPermissions) => boolean | Promise<boolean>;
|
|
4465
|
+
/**
|
|
4466
|
+
* 创建权限守卫
|
|
4467
|
+
* @param options 权限守卫选项
|
|
4468
|
+
* @returns 权限守卫函数
|
|
4469
|
+
*/
|
|
4470
|
+
declare function createPermissionGuard(options: {
|
|
4471
|
+
/** 权限检查函数 */checker: PermissionChecker; /** 403 页面路径 */
|
|
4472
|
+
forbiddenPath?: string; /** 403 页面名称 */
|
|
4473
|
+
forbiddenName?: string;
|
|
4474
|
+
}): AsyncRouteGuard;
|
|
4475
|
+
/**
|
|
4476
|
+
* 创建角色守卫
|
|
4477
|
+
* @param options 角色守卫选项
|
|
4478
|
+
* @returns 角色守卫函数
|
|
4479
|
+
*/
|
|
4480
|
+
declare function createRoleGuard(options: {
|
|
4481
|
+
/** 角色检查函数 */checker: RoleChecker; /** 403 页面路径 */
|
|
4482
|
+
forbiddenPath?: string;
|
|
4483
|
+
}): AsyncRouteGuard;
|
|
4484
|
+
//#endregion
|
|
4485
|
+
//#region src/router/composables/use-dynamic-route.d.ts
|
|
4486
|
+
/**
|
|
4487
|
+
* 设置路由实例
|
|
4488
|
+
* @param router Vue Router 实例
|
|
4489
|
+
*/
|
|
4490
|
+
declare function setRouter(router: Router): void;
|
|
4491
|
+
/**
|
|
4492
|
+
* 获取当前路由实例
|
|
4493
|
+
*/
|
|
4494
|
+
declare function getRouterInstance(): Router | null;
|
|
4495
|
+
/**
|
|
4496
|
+
* 添加单条路由
|
|
4497
|
+
* @param route 路由配置
|
|
4498
|
+
* @param options 添加选项
|
|
4499
|
+
* @returns 是否成功
|
|
4500
|
+
*/
|
|
4501
|
+
declare function addRoute(route: AppRouteRecordRaw, options?: DynamicRouteOptions): boolean;
|
|
4502
|
+
/**
|
|
4503
|
+
* 批量添加路由
|
|
4504
|
+
* @param routes 路由数组
|
|
4505
|
+
* @param options 添加选项
|
|
4506
|
+
* @returns 成功数量
|
|
4507
|
+
*/
|
|
4508
|
+
declare function addRoutes(routes: AppRouteRecordRaw[], options?: DynamicRouteOptions): number;
|
|
4509
|
+
/**
|
|
4510
|
+
* 移除路由
|
|
4511
|
+
* @param name 路由名称
|
|
4512
|
+
* @returns 是否成功
|
|
4513
|
+
*/
|
|
4514
|
+
declare function removeRoute(name: string): boolean;
|
|
4515
|
+
/**
|
|
4516
|
+
* 获取所有路由
|
|
4517
|
+
*/
|
|
4518
|
+
declare function getRoutes(): any;
|
|
4519
|
+
/**
|
|
4520
|
+
* 获取当前路由信息
|
|
4521
|
+
*/
|
|
4522
|
+
declare function getCurrentRoute(): RouteLocationNormalized | undefined;
|
|
4523
|
+
/**
|
|
4524
|
+
* 获取当前路径
|
|
4525
|
+
*/
|
|
4526
|
+
declare function getCurrentPath(): string | undefined;
|
|
4527
|
+
/**
|
|
4528
|
+
* 获取当前路由名称
|
|
4529
|
+
*/
|
|
4530
|
+
declare function getCurrentName(): string | undefined | null;
|
|
4531
|
+
/**
|
|
4532
|
+
* 导航到指定路径
|
|
4533
|
+
* @param path 路径
|
|
4534
|
+
* @param query 查询参数
|
|
4535
|
+
*/
|
|
4536
|
+
declare function push(path: string, query?: Record<string, string>): any;
|
|
4537
|
+
/**
|
|
4538
|
+
* 替换当前路径
|
|
4539
|
+
* @param path 路径
|
|
4540
|
+
*/
|
|
4541
|
+
declare function replace(path: string): any;
|
|
4542
|
+
//#endregion
|
|
4543
|
+
//#region src/router/utils/route-helpers.d.ts
|
|
4544
|
+
/**
|
|
4545
|
+
* 过滤菜单项(根据权限)
|
|
4546
|
+
* @param items 菜单项数组
|
|
4547
|
+
* @param permissions 用户权限
|
|
4548
|
+
* @returns 过滤后的菜单项
|
|
4549
|
+
*/
|
|
4550
|
+
declare function filterMenuItems$1(items: AppMenuItem[], permissions?: UserPermissions): AppMenuItem[];
|
|
4551
|
+
/**
|
|
4552
|
+
* 将 MenuItem 数组转换为路由记录
|
|
4553
|
+
* @param items 菜单项数组
|
|
4554
|
+
* @param options 选项
|
|
4555
|
+
* @returns 路由记录数组
|
|
4556
|
+
*/
|
|
4557
|
+
declare function menuToRoutes$1(items: AppMenuItem[], options?: {
|
|
4558
|
+
basePath?: string;
|
|
4559
|
+
userPermissions?: UserPermissions;
|
|
4560
|
+
}): AppRouteRecordRaw[];
|
|
4561
|
+
/**
|
|
4562
|
+
* 检查路由是否需要认证
|
|
4563
|
+
* @param route 路由记录
|
|
4564
|
+
* @returns 是否需要认证
|
|
4565
|
+
*/
|
|
4566
|
+
declare function requiresAuth(route: AppRouteRecordRaw): boolean;
|
|
4567
|
+
/**
|
|
4568
|
+
* 检查路由是否有权限
|
|
4569
|
+
* @param route 路由记录
|
|
4570
|
+
* @param permissions 用户权限
|
|
4571
|
+
* @returns 是否有权限
|
|
4572
|
+
*/
|
|
4573
|
+
declare function hasPermission(route: AppRouteRecordRaw, permissions?: UserPermissions): boolean;
|
|
4574
|
+
/**
|
|
4575
|
+
* 生成面包屑
|
|
4576
|
+
* @param routes 路由数组
|
|
4577
|
+
* @param currentPath 当前路径
|
|
4578
|
+
* @returns 面包屑数组
|
|
4579
|
+
*/
|
|
4580
|
+
declare function generateBreadcrumbs(routes: AppRouteRecordRaw[], currentPath: string): Array<{
|
|
4581
|
+
label: string;
|
|
4582
|
+
path: string;
|
|
4583
|
+
}>;
|
|
4584
|
+
declare namespace index_d_exports {
|
|
4585
|
+
export { AppMenuItem, AppRouteRecordRaw, AsyncRouteGuard, AuthChecker, CreateRouterOptions, DynamicRouteOptions, GuardConfig, PermissionChecker, RenderContext, RenderPriority, ResolverConfig, ResolverResult, RoleChecker, RouteContentRenderer, RouteGuard, RouteMeta$1 as RouteMeta, RouteNavigateResult, RouterBuildOptions, RouterHistoryMode, UserPermissions, addRoute, addRoutes, createAppRouter, createAuthGuard, createMemoryHistory, createPermissionGuard, createRoleGuard, createWebHashHistory, createWebHistory, defaultAuthGuardOptions, filterMenuItems$1 as filterMenuItems, generateBreadcrumbs, getCurrentName, getCurrentPath, getCurrentRoute, getDefaultRoutes, getNotFoundRoute, getRouterInstance, getRoutes, hasPermission, menuToRoutes$1 as menuToRoutes, push, removeRoute, replace, requiresAuth, setRouter };
|
|
4586
|
+
}
|
|
2970
4587
|
//#endregion
|
|
2971
|
-
export { ANIMATION_DURATION, Alignment, COMPONENT_PREFIX, CSS_PREFIX, ComponentSize, ComponentVariant, DEBOUNCE_DEFAULTS, DEBOUNCE_DELAY, DEFAULT_LAYOUT_SIZE, DeepPartial, Direction, EventHandler,
|
|
4588
|
+
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, 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$1 as 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 YdIcon, _default$24 as YdImage, _default$25 as YdImagePreviewGroup, _default$26 as YdInput, _default$27 as YdInputNumber, _default$28 as YdLayout, _default$29 as YdLayoutContent, _default$30 as YdLayoutHeader, _default$31 as YdLayoutSidebar, _default$32 as YdList, _default$33 as YdLoadingBar, _default$34 as YdLogin, _default$35 as YdLoginCentered, _default$36 as YdMenu, _default$37 as YdModal, _default$38 as YdPagination, _default$39 as YdPinInput, _default$40 as YdPopconfirm, _default$41 as YdProgress, _default$42 as YdRadio, _default$43 as YdRadioGroup, _default$44 as YdRate, _default$45 as YdResult, index_d_exports as YdRouter, _default$46 as YdSchemaForm, _default$47 as YdSelect, _default$48 as YdSkeleton, _default$49 as YdSlider, _default$50 as YdSpace, _default$51 as YdSpin, _default$52 as YdStatistic, _default$53 as YdSteps, _default$54 as YdSwitch, _default$55 as YdTable, _default$56 as YdTabs, _default$57 as YdTag, _default$58 as YdTextarea, _default$59 as YdTimePicker, _default$60 as YdTimeline, _default$61 as YdTooltip, _default$62 as YdTransfer, _default$63 as YdTree, _default$64 as YdTreeSelect, _default$65 as YdUpload, Z_INDEX, buildBreadcrumb, changeLocale, checkRoutePermission, cn, convertToSimpleRoute, debounce, decrypt, deepClone, dt, dynamicRouter, encrypt, filterMenuItems, findMenuItem, findMenuPath, flattenMenuItems, generateId, generateRouteTitle, generateSessionKey, getBreadcrumbPaths, getCurrentLocale, getIcon, getIconRegistry, i18n, initSecureStorage, isArray, isDate, isEmpty, isEmptyObject, isFunction, isObject, isPathMatch, isPromise, joinPath, loadingBar, menuToRoutes, nf, normalizePath, registerIcon, registerLazyLocale, searchMenuItems, secureLocal, secureSession, secureStoragePlugin, setLocale, setupI18n, supportedLocales, t, tc, themes, throttle, useConfig, useFormSchema, useFormValidate, useLoading, useLoadingBar, useLoginForm, useNamespace };
|