yd-admin 0.1.7 → 0.1.9
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 +379 -327
- package/dist/index.js +3112 -645
- package/dist/style.css +2799 -1122
- package/package.json +81 -81
- package/dist/chunk-pbuEa-1d.js +0 -13
- package/dist/index.d.ts +0 -4588
package/dist/index.d.ts
DELETED
|
@@ -1,4588 +0,0 @@
|
|
|
1
|
-
import * as _$vue from "vue";
|
|
2
|
-
import { App, ComputedRef, Ref, VNode } from "vue";
|
|
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";
|
|
5
|
-
import { PiniaPluginContext } from "pinia";
|
|
6
|
-
|
|
7
|
-
//#region src/types/index.d.ts
|
|
8
|
-
/**
|
|
9
|
-
* Global type definitions
|
|
10
|
-
* 全局 TypeScript 类型
|
|
11
|
-
*/
|
|
12
|
-
/** 组件尺寸 */
|
|
13
|
-
type ComponentSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
14
|
-
/** 组件变体 */
|
|
15
|
-
type ComponentVariant = "default" | "primary" | "success" | "warning" | "error" | "info";
|
|
16
|
-
/** 对齐方式 */
|
|
17
|
-
type Alignment = "start" | "center" | "end" | "stretch";
|
|
18
|
-
/** 方向 */
|
|
19
|
-
type Direction = "horizontal" | "vertical";
|
|
20
|
-
/** 事件处理函数 */
|
|
21
|
-
type EventHandler<T = Event> = (event: T) => void | Promise<void>;
|
|
22
|
-
/** 可选的 Promise */
|
|
23
|
-
type MaybePromise<T> = T | Promise<T>;
|
|
24
|
-
/** 深度部分可选 */
|
|
25
|
-
type DeepPartial<T> = { [P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P] };
|
|
26
|
-
/** 字符串字面量工具类型 */
|
|
27
|
-
type StringLiteral<T> = T extends string ? (string extends T ? never : T) : never;
|
|
28
|
-
/** 深度 Required */
|
|
29
|
-
type DeepRequired<T> = { [P in keyof T]-?: T[P] extends object ? DeepRequired<T[P]> : T[P] };
|
|
30
|
-
/** 深度 Readonly */
|
|
31
|
-
type DeepReadonly<T> = { readonly [P in keyof T]: T[P] extends object ? DeepReadonly<T[P]> : T[P] };
|
|
32
|
-
/** 深度冻结 */
|
|
33
|
-
type DeepFrozen<T> = { readonly [P in keyof T]: T[P] extends object ? DeepFrozen<T[P]> : Readonly<T[P]> };
|
|
34
|
-
/** 键值对 */
|
|
35
|
-
type KeyValuePair<K extends string | number = string, V = unknown> = {
|
|
36
|
-
key: K;
|
|
37
|
-
value: V;
|
|
38
|
-
};
|
|
39
|
-
/** 记录类型简化 */
|
|
40
|
-
type Recordable<T = unknown> = Record<string, T>;
|
|
41
|
-
/** 深度只读数组 */
|
|
42
|
-
type DeepReadonlyArray<T> = ReadonlyArray<DeepReadonlyArray<T> extends infer R ? R : never>;
|
|
43
|
-
/** 无参数函数 */
|
|
44
|
-
type Noop = () => void;
|
|
45
|
-
/** 构造函数 */
|
|
46
|
-
type Constructor<T = unknown> = new (...args: any[]) => T;
|
|
47
|
-
/** 类实例 */
|
|
48
|
-
type Instanceof<T> = T extends Constructor<infer I> ? I : never;
|
|
49
|
-
/** 参数类型 */
|
|
50
|
-
type Parameters$1<T extends (...args: any[]) => unknown> = T extends ((...args: infer P) => unknown) ? P : never;
|
|
51
|
-
/** 返回类型 */
|
|
52
|
-
type ReturnType<T extends (...args: any[]) => unknown> = T extends ((...args: any[]) => infer R) ? R : never;
|
|
53
|
-
/** this 类型 */
|
|
54
|
-
type ThisParameterType<T> = T extends ((this: infer This, ...args: any[]) => unknown) ? This : never;
|
|
55
|
-
/** 箭头函数参数推断 */
|
|
56
|
-
type ArrowFunction<P extends any[] = unknown[], R = unknown> = (...args: P) => R;
|
|
57
|
-
/** 数组项类型 */
|
|
58
|
-
type ArrayElement<T> = T extends (infer U)[] ? U : T extends readonly (infer U)[] ? U : never;
|
|
59
|
-
/** 非空数组 */
|
|
60
|
-
type NonEmptyArray<T> = [T, ...T[]];
|
|
61
|
-
/** 稀疏数组转密集 */
|
|
62
|
-
type DenseArray<T> = { [K in keyof T]: T[K] } & unknown[];
|
|
63
|
-
/** 表单值类型 */
|
|
64
|
-
type FormValue = string | number | boolean | unknown[] | Record<string, unknown> | null | undefined;
|
|
65
|
-
/** 表单模型 */
|
|
66
|
-
type FormModel = Record<string, FormValue>;
|
|
67
|
-
/** 表单规则 (参考 async-validator) - extended version for components */
|
|
68
|
-
interface FormRuleExtra {
|
|
69
|
-
/** 必填验证 */
|
|
70
|
-
required?: boolean;
|
|
71
|
-
/** 消息 */
|
|
72
|
-
message?: string;
|
|
73
|
-
/** 触发事件 */
|
|
74
|
-
trigger?: string | string[];
|
|
75
|
-
/** 类型验证 */
|
|
76
|
-
type?: "string" | "number" | "boolean" | "method" | "regexp" | "integer" | "float" | "array" | "object" | "enum" | "date" | "url" | "hex" | "email";
|
|
77
|
-
/** 最小值 */
|
|
78
|
-
min?: number;
|
|
79
|
-
/** 最大值 */
|
|
80
|
-
max?: number;
|
|
81
|
-
/** 长度 */
|
|
82
|
-
len?: number;
|
|
83
|
-
/** 正则 */
|
|
84
|
-
pattern?: RegExp;
|
|
85
|
-
/** 自定义验证器 */
|
|
86
|
-
validator?: (rule: FormRuleExtra, value: unknown) => Promise<void | string> | ((rule: FormRuleExtra, value: unknown) => void | string);
|
|
87
|
-
/** 异步自定义验证器 */
|
|
88
|
-
transform?: (value: unknown) => unknown;
|
|
89
|
-
/** 枚举值 */
|
|
90
|
-
enum?: unknown[];
|
|
91
|
-
/** whitespace 处理 */
|
|
92
|
-
whitespace?: boolean;
|
|
93
|
-
}
|
|
94
|
-
/** 表单错误 (basic version - use form/types for full version) */
|
|
95
|
-
interface FormError {
|
|
96
|
-
/** 字段名 */
|
|
97
|
-
field: string;
|
|
98
|
-
/** 错误消息 */
|
|
99
|
-
message: string;
|
|
100
|
-
/** 错误规则 */
|
|
101
|
-
rule?: FormRuleExtra;
|
|
102
|
-
}
|
|
103
|
-
/** 表单验证结果 */
|
|
104
|
-
interface FormValidateResult {
|
|
105
|
-
/** 是否有效 */
|
|
106
|
-
valid: boolean;
|
|
107
|
-
/** 错误列表 */
|
|
108
|
-
errors?: FormError[];
|
|
109
|
-
/** 未通过字段 */
|
|
110
|
-
failedFields?: string[];
|
|
111
|
-
}
|
|
112
|
-
/** 表单状态 */
|
|
113
|
-
type FormStatus = "idle" | "validating" | "success" | "error";
|
|
114
|
-
/** 表单尺寸映射 */
|
|
115
|
-
type SizeKeys<T extends ComponentSize> = {
|
|
116
|
-
xs: "xs";
|
|
117
|
-
sm: "sm";
|
|
118
|
-
md: "md";
|
|
119
|
-
lg: "lg";
|
|
120
|
-
xl: "xl";
|
|
121
|
-
}[T];
|
|
122
|
-
/** 树节点 */
|
|
123
|
-
interface TreeNode<T = unknown> {
|
|
124
|
-
/** 唯一键 */
|
|
125
|
-
key: string | number;
|
|
126
|
-
/** 显示标题 */
|
|
127
|
-
title: string;
|
|
128
|
-
/** 子节点 */
|
|
129
|
-
children?: TreeNode<T>[];
|
|
130
|
-
/** 数据 */
|
|
131
|
-
data?: T;
|
|
132
|
-
/** 是否禁用 */
|
|
133
|
-
disabled?: boolean;
|
|
134
|
-
/** 是否叶子 */
|
|
135
|
-
isLeaf?: boolean;
|
|
136
|
-
/** 是否加载中 */
|
|
137
|
-
loading?: boolean;
|
|
138
|
-
/** 展开 */
|
|
139
|
-
expanded?: boolean;
|
|
140
|
-
/** 选择 */
|
|
141
|
-
selected?: boolean;
|
|
142
|
-
/** 勾选 */
|
|
143
|
-
checked?: boolean;
|
|
144
|
-
}
|
|
145
|
-
/** 级联节点 */
|
|
146
|
-
interface CascaderNode<T = unknown> {
|
|
147
|
-
/** 值 */
|
|
148
|
-
value: string | number;
|
|
149
|
-
/** 标签 */
|
|
150
|
-
label: string;
|
|
151
|
-
/** 子节点 */
|
|
152
|
-
children?: CascaderNode<T>[];
|
|
153
|
-
/** 数据 */
|
|
154
|
-
data?: T;
|
|
155
|
-
/** 是否禁用 */
|
|
156
|
-
disabled?: boolean;
|
|
157
|
-
/** 是否叶子 */
|
|
158
|
-
isLeaf?: boolean;
|
|
159
|
-
}
|
|
160
|
-
/** 级联路径 */
|
|
161
|
-
type CascaderOption<T = unknown> = CascaderNode<T> | CascaderNode<T>[];
|
|
162
|
-
/** 表格列 */
|
|
163
|
-
interface TableColumn<T = Record<string, unknown>> {
|
|
164
|
-
/** 列键 */
|
|
165
|
-
key?: string;
|
|
166
|
-
/** 标题 */
|
|
167
|
-
title: string;
|
|
168
|
-
/** 宽度 */
|
|
169
|
-
width?: number | string;
|
|
170
|
-
/** 最小宽度 */
|
|
171
|
-
minWidth?: number | string;
|
|
172
|
-
/** 对齐 */
|
|
173
|
-
align?: Alignment;
|
|
174
|
-
/** 固定列 */
|
|
175
|
-
fixed?: "left" | "right";
|
|
176
|
-
/** 排序 */
|
|
177
|
-
sortable?: boolean;
|
|
178
|
-
/** 筛选 */
|
|
179
|
-
filterable?: boolean;
|
|
180
|
-
/** 自定义渲染 */
|
|
181
|
-
render?: (value: unknown, row: T, index: number) => unknown;
|
|
182
|
-
/** 插槽 */
|
|
183
|
-
slot?: string;
|
|
184
|
-
}
|
|
185
|
-
/** 表格行 */
|
|
186
|
-
interface TableRow<T = Record<string, unknown>> extends Record<string, unknown> {
|
|
187
|
-
/** 唯一键 */
|
|
188
|
-
__key?: string | number;
|
|
189
|
-
/** 展开 */
|
|
190
|
-
__expanded?: boolean;
|
|
191
|
-
/** 层级 */
|
|
192
|
-
__level?: number;
|
|
193
|
-
/** 子行 */
|
|
194
|
-
__children?: TableRow<T>[];
|
|
195
|
-
/** 虚拟索引 (内部使用) */
|
|
196
|
-
__virtualIndex?: number;
|
|
197
|
-
}
|
|
198
|
-
/** 分页参数 */
|
|
199
|
-
interface PaginationParams {
|
|
200
|
-
/** 当前页 */
|
|
201
|
-
page: number;
|
|
202
|
-
/** 每页条数 */
|
|
203
|
-
pageSize: number;
|
|
204
|
-
}
|
|
205
|
-
/** 分页结果 */
|
|
206
|
-
interface PaginationResult<T> {
|
|
207
|
-
/** 数据 */
|
|
208
|
-
list: T[];
|
|
209
|
-
/** 总数 */
|
|
210
|
-
total: number;
|
|
211
|
-
/** 当前页 */
|
|
212
|
-
page: number;
|
|
213
|
-
/** 每页条数 */
|
|
214
|
-
pageSize: number;
|
|
215
|
-
}
|
|
216
|
-
/** 分页配置 */
|
|
217
|
-
interface PaginationConfig extends PaginationParams {
|
|
218
|
-
/** 总数 */
|
|
219
|
-
total: number;
|
|
220
|
-
/** 快速跳转 */
|
|
221
|
-
showQuickJumper?: boolean;
|
|
222
|
-
/** 选择器 */
|
|
223
|
-
showSizeChanger?: boolean;
|
|
224
|
-
/** 页面大小选项 */
|
|
225
|
-
pageSizeOptions?: number[];
|
|
226
|
-
/** 渲染器 */
|
|
227
|
-
pageSizeRender?: (total: number, range: [number, number]) => string;
|
|
228
|
-
}
|
|
229
|
-
/** 选项 */
|
|
230
|
-
interface SelectOption<T = unknown> {
|
|
231
|
-
/** 标签 */
|
|
232
|
-
label: string;
|
|
233
|
-
/** 值 */
|
|
234
|
-
value: string | number;
|
|
235
|
-
/** 是否禁用 */
|
|
236
|
-
disabled?: boolean;
|
|
237
|
-
/** 额外数据 */
|
|
238
|
-
data?: T;
|
|
239
|
-
}
|
|
240
|
-
/** 选项组 */
|
|
241
|
-
interface SelectGroup<T = unknown> {
|
|
242
|
-
/** 组标签 */
|
|
243
|
-
label: string;
|
|
244
|
-
/** 选项 */
|
|
245
|
-
options: SelectOption<T>[];
|
|
246
|
-
}
|
|
247
|
-
/** 选项联合类型 */
|
|
248
|
-
type SelectValue = SelectOption | SelectGroup;
|
|
249
|
-
/** 选中值 */
|
|
250
|
-
type SelectedValue<T = string | number> = T | T[];
|
|
251
|
-
/** 模态框配置 */
|
|
252
|
-
interface ModalConfig {
|
|
253
|
-
/** 标题 */
|
|
254
|
-
title?: string;
|
|
255
|
-
/** 内容 */
|
|
256
|
-
content?: string;
|
|
257
|
-
/** 确认文字 */
|
|
258
|
-
okText?: string;
|
|
259
|
-
/** 取消文字 */
|
|
260
|
-
cancelText?: string;
|
|
261
|
-
/** 确认加载 */
|
|
262
|
-
okLoading?: boolean;
|
|
263
|
-
/** 显示取消 */
|
|
264
|
-
showCancel?: boolean;
|
|
265
|
-
/** 密闭关闭 */
|
|
266
|
-
closable?: boolean;
|
|
267
|
-
/** 遮罩关闭 */
|
|
268
|
-
maskClosable?: boolean;
|
|
269
|
-
/** 宽度 */
|
|
270
|
-
width?: number | string;
|
|
271
|
-
/** 自定义class */
|
|
272
|
-
class?: string;
|
|
273
|
-
}
|
|
274
|
-
/** 抽屉配置 */
|
|
275
|
-
interface DrawerConfig extends ModalConfig {
|
|
276
|
-
/** 位置 */
|
|
277
|
-
placement?: "top" | "right" | "bottom" | "left";
|
|
278
|
-
/** 尺寸 */
|
|
279
|
-
size?: number | string;
|
|
280
|
-
/** 嵌套样式 */
|
|
281
|
-
nested?: boolean;
|
|
282
|
-
}
|
|
283
|
-
/** 消息配置 */
|
|
284
|
-
interface MessageConfig {
|
|
285
|
-
/** 内容 */
|
|
286
|
-
content: string;
|
|
287
|
-
/** 持续时间 */
|
|
288
|
-
duration?: number;
|
|
289
|
-
/** 关闭 */
|
|
290
|
-
closable?: boolean;
|
|
291
|
-
}
|
|
292
|
-
/** 通知配置 */
|
|
293
|
-
interface NotificationConfig extends MessageConfig {
|
|
294
|
-
/** 标题 */
|
|
295
|
-
title?: string;
|
|
296
|
-
/** 图标 */
|
|
297
|
-
icon?: string;
|
|
298
|
-
}
|
|
299
|
-
/** 日期格式 */
|
|
300
|
-
type DateFormat = "date" | "datetime" | "time" | "week" | "month" | "quarter" | "year";
|
|
301
|
-
/** 日期范围 */
|
|
302
|
-
type DateRange = [Date, Date] | [string, string];
|
|
303
|
-
/** 快捷日期选项 */
|
|
304
|
-
interface DateShortcut {
|
|
305
|
-
/** 文本 */
|
|
306
|
-
text: string;
|
|
307
|
-
/** 值 */
|
|
308
|
-
value: Date | DateRange | (() => Date | DateRange);
|
|
309
|
-
}
|
|
310
|
-
/** 文件 */
|
|
311
|
-
interface UploadFile {
|
|
312
|
-
/** 名字 */
|
|
313
|
-
name: string;
|
|
314
|
-
/** 大小 */
|
|
315
|
-
size: number;
|
|
316
|
-
/** 类型 */
|
|
317
|
-
type: string;
|
|
318
|
-
/** 原始文件 */
|
|
319
|
-
raw?: File;
|
|
320
|
-
/** URL */
|
|
321
|
-
url?: string;
|
|
322
|
-
/** 状态 */
|
|
323
|
-
status?: "pending" | "uploading" | "done" | "error";
|
|
324
|
-
/** 百分比 */
|
|
325
|
-
percent?: number;
|
|
326
|
-
/** 错误消息 */
|
|
327
|
-
message?: string;
|
|
328
|
-
}
|
|
329
|
-
/** 上传请求参数 */
|
|
330
|
-
interface UploadRequest {
|
|
331
|
-
/** URL */
|
|
332
|
-
url: string;
|
|
333
|
-
/** 方法 */
|
|
334
|
-
method?: "post" | "put";
|
|
335
|
-
/** 字段名 */
|
|
336
|
-
name?: string;
|
|
337
|
-
/** 请求头 */
|
|
338
|
-
headers?: Record<string, string>;
|
|
339
|
-
/** 数据 */
|
|
340
|
-
data?: Record<string, unknown>;
|
|
341
|
-
/** 凭据 */
|
|
342
|
-
withCredentials?: boolean;
|
|
343
|
-
}
|
|
344
|
-
/** 上传请求结果 */
|
|
345
|
-
interface UploadResponse {
|
|
346
|
-
/** 链接 */
|
|
347
|
-
url?: string;
|
|
348
|
-
/** 文件名 */
|
|
349
|
-
filename?: string;
|
|
350
|
-
/** 自定义数据 */
|
|
351
|
-
data?: unknown;
|
|
352
|
-
}
|
|
353
|
-
/** API 响应 */
|
|
354
|
-
interface ApiResponse<T = unknown> {
|
|
355
|
-
/** 状态码 */
|
|
356
|
-
code: number;
|
|
357
|
-
/** 消息 */
|
|
358
|
-
message: string;
|
|
359
|
-
/** 数据 */
|
|
360
|
-
data: T;
|
|
361
|
-
}
|
|
362
|
-
/** 分页 API 响应 */
|
|
363
|
-
interface PaginatedApiResponse<T> extends ApiResponse<T[]> {
|
|
364
|
-
/** 总数 */
|
|
365
|
-
total: number;
|
|
366
|
-
}
|
|
367
|
-
/** 确保类型 */
|
|
368
|
-
type Known<T, Fallback = never> = T extends unknown ? unknown extends T ? Fallback : T : Fallback;
|
|
369
|
-
/** 延迟类型 (用于递归) */
|
|
370
|
-
type Deferred<T> = T | {
|
|
371
|
-
then(callback: (value: T) => void): void;
|
|
372
|
-
};
|
|
373
|
-
/** 互斥属性 */
|
|
374
|
-
type Exclusive<T, U extends keyof T = keyof T> = T & { [K in U]?: never };
|
|
375
|
-
/** 可转换类型 */
|
|
376
|
-
type Promisable<T> = T | Promise<T>;
|
|
377
|
-
/** 回调类型 */
|
|
378
|
-
type Callback<T, Args extends any[] = unknown[]> = (...args: Args) => T;
|
|
379
|
-
/** 监听器 */
|
|
380
|
-
type Listener<T> = (value: T) => void;
|
|
381
|
-
/** 发布者 */
|
|
382
|
-
interface Emitter<T = unknown> {
|
|
383
|
-
emit(event: string, payload?: T): void;
|
|
384
|
-
on(event: string, listener: Listener<T>): void;
|
|
385
|
-
off(event: string, listener?: Listener<T>): void;
|
|
386
|
-
}
|
|
387
|
-
/** 是否为数组 */
|
|
388
|
-
declare const isArray: (arg: any) => arg is any[];
|
|
389
|
-
/** 是否为对象 */
|
|
390
|
-
declare const isObject: (val: unknown) => val is Record<string, unknown>;
|
|
391
|
-
/** 是否为日期 */
|
|
392
|
-
declare const isDate: (val: unknown) => val is Date;
|
|
393
|
-
/** 是否为函数 */
|
|
394
|
-
declare const isFunction: (val: unknown) => val is (...args: any[]) => unknown;
|
|
395
|
-
/** 是否为空 */
|
|
396
|
-
declare const isEmpty: (val: unknown) => boolean;
|
|
397
|
-
/** 是否为 Promise */
|
|
398
|
-
declare const isPromise: (val: unknown) => val is Promise<unknown>;
|
|
399
|
-
/** 获取属性类型 */
|
|
400
|
-
type GetProp<T, K extends keyof T> = T[K];
|
|
401
|
-
/** 获取属性键 */
|
|
402
|
-
type GetKeys<T> = keyof T;
|
|
403
|
-
/** 属性过滤 */
|
|
404
|
-
type FilterKeys<T, U> = { [K in keyof T as T[K] extends U ? K : never]: T[K] };
|
|
405
|
-
/**omit 简化 */
|
|
406
|
-
type Omit$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
|
-
}
|
|
443
|
-
//#endregion
|
|
444
|
-
//#region src/components/base/button/button.vue.d.ts
|
|
445
|
-
interface Props$65 {
|
|
446
|
-
/** 按钮类型 */
|
|
447
|
-
variant?: ComponentVariant;
|
|
448
|
-
/** 按钮尺寸 */
|
|
449
|
-
size?: ComponentSize;
|
|
450
|
-
/** 是否为朴素按钮 */
|
|
451
|
-
plain?: boolean;
|
|
452
|
-
/** 是否为圆角按钮 */
|
|
453
|
-
round?: boolean;
|
|
454
|
-
/** 是否为圆形按钮 */
|
|
455
|
-
circle?: boolean;
|
|
456
|
-
/** 是否禁用 */
|
|
457
|
-
disabled?: boolean;
|
|
458
|
-
/** 是否加载中 */
|
|
459
|
-
loading?: boolean;
|
|
460
|
-
/** 原生 type 属性 */
|
|
461
|
-
nativeType?: "button" | "submit" | "reset";
|
|
462
|
-
}
|
|
463
|
-
declare var __VLS_1$30: {};
|
|
464
|
-
type __VLS_Slots$42 = {} & {
|
|
465
|
-
default?: (props: typeof __VLS_1$30) => any;
|
|
466
|
-
};
|
|
467
|
-
declare const __VLS_base$42: _$vue.DefineComponent<Props$65, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
468
|
-
click: (event: MouseEvent) => any;
|
|
469
|
-
}, string, _$vue.PublicProps, Readonly<Props$65> & Readonly<{
|
|
470
|
-
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
471
|
-
}>, {
|
|
472
|
-
size: ComponentSize;
|
|
473
|
-
variant: ComponentVariant;
|
|
474
|
-
loading: boolean;
|
|
475
|
-
circle: boolean;
|
|
476
|
-
plain: boolean;
|
|
477
|
-
round: boolean;
|
|
478
|
-
disabled: boolean;
|
|
479
|
-
nativeType: "button" | "submit" | "reset";
|
|
480
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
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 & {
|
|
520
|
-
new (): {
|
|
521
|
-
$slots: S;
|
|
522
|
-
};
|
|
523
|
-
};
|
|
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
|
|
530
|
-
//#region src/components/base/input/input.vue.d.ts
|
|
531
|
-
interface Props$63 {
|
|
532
|
-
modelValue?: string | number;
|
|
533
|
-
placeholder?: string;
|
|
534
|
-
disabled?: boolean;
|
|
535
|
-
readonly?: boolean;
|
|
536
|
-
clearable?: boolean;
|
|
537
|
-
size?: ComponentSize;
|
|
538
|
-
variant?: "default" | "bordered" | "filled" | "underlined";
|
|
539
|
-
type?: "text" | "password" | "number" | "email" | "tel" | "url";
|
|
540
|
-
prefixIcon?: object;
|
|
541
|
-
suffixIcon?: object;
|
|
542
|
-
maxlength?: number;
|
|
543
|
-
showWordLimit?: boolean;
|
|
544
|
-
autocomplete?: string;
|
|
545
|
-
}
|
|
546
|
-
declare var __VLS_1$28: {}, __VLS_8$4: {};
|
|
547
|
-
type __VLS_Slots$40 = {} & {
|
|
548
|
-
prefix?: (props: typeof __VLS_1$28) => any;
|
|
549
|
-
} & {
|
|
550
|
-
suffix?: (props: typeof __VLS_8$4) => any;
|
|
551
|
-
};
|
|
552
|
-
declare const __VLS_base$40: _$vue.DefineComponent<Props$63, {
|
|
553
|
-
focus: () => void | undefined;
|
|
554
|
-
blur: () => void | undefined;
|
|
555
|
-
select: () => void | undefined;
|
|
556
|
-
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
557
|
-
"update:modelValue": (value: string | number) => any;
|
|
558
|
-
change: (value: string | number) => any;
|
|
559
|
-
clear: () => any;
|
|
560
|
-
input: (value: string | number) => any;
|
|
561
|
-
focus: (event: FocusEvent) => any;
|
|
562
|
-
blur: (event: FocusEvent) => any;
|
|
563
|
-
keydown: (event: KeyboardEvent) => any;
|
|
564
|
-
}, string, _$vue.PublicProps, Readonly<Props$63> & Readonly<{
|
|
565
|
-
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
566
|
-
onChange?: ((value: string | number) => any) | undefined;
|
|
567
|
-
onClear?: (() => any) | undefined;
|
|
568
|
-
onInput?: ((value: string | number) => any) | undefined;
|
|
569
|
-
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
570
|
-
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
571
|
-
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
572
|
-
}>, {
|
|
573
|
-
size: ComponentSize;
|
|
574
|
-
type: "text" | "password" | "number" | "email" | "tel" | "url";
|
|
575
|
-
variant: "default" | "bordered" | "filled" | "underlined";
|
|
576
|
-
modelValue: string | number;
|
|
577
|
-
disabled: boolean;
|
|
578
|
-
placeholder: string;
|
|
579
|
-
clearable: boolean;
|
|
580
|
-
readonly: boolean;
|
|
581
|
-
prefixIcon: object;
|
|
582
|
-
suffixIcon: object;
|
|
583
|
-
maxlength: number;
|
|
584
|
-
showWordLimit: boolean;
|
|
585
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
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 & {
|
|
589
|
-
new (): {
|
|
590
|
-
$slots: S;
|
|
591
|
-
};
|
|
592
|
-
};
|
|
593
|
-
//#endregion
|
|
594
|
-
//#region src/components/base/textarea/textarea.vue.d.ts
|
|
595
|
-
interface Props$62 {
|
|
596
|
-
modelValue?: string;
|
|
597
|
-
placeholder?: string;
|
|
598
|
-
disabled?: boolean;
|
|
599
|
-
readonly?: boolean;
|
|
600
|
-
rows?: number;
|
|
601
|
-
autosize?: boolean | {
|
|
602
|
-
minRows?: number;
|
|
603
|
-
maxRows?: number;
|
|
604
|
-
};
|
|
605
|
-
size?: ComponentSize;
|
|
606
|
-
variant?: "default" | "bordered" | "filled" | "underlined";
|
|
607
|
-
maxlength?: number;
|
|
608
|
-
showWordLimit?: boolean;
|
|
609
|
-
}
|
|
610
|
-
declare const __VLS_export$62: _$vue.DefineComponent<Props$62, {
|
|
611
|
-
focus: () => void | undefined;
|
|
612
|
-
blur: () => void | undefined;
|
|
613
|
-
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
614
|
-
"update:modelValue": (value: string) => any;
|
|
615
|
-
change: (value: string) => any;
|
|
616
|
-
input: (value: string) => any;
|
|
617
|
-
focus: (event: FocusEvent) => any;
|
|
618
|
-
blur: (event: FocusEvent) => any;
|
|
619
|
-
}, string, _$vue.PublicProps, Readonly<Props$62> & Readonly<{
|
|
620
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
621
|
-
onChange?: ((value: string) => any) | undefined;
|
|
622
|
-
onInput?: ((value: string) => any) | undefined;
|
|
623
|
-
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
624
|
-
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
625
|
-
}>, {
|
|
626
|
-
size: ComponentSize;
|
|
627
|
-
variant: "default" | "bordered" | "filled" | "underlined";
|
|
628
|
-
modelValue: string;
|
|
629
|
-
rows: number;
|
|
630
|
-
disabled: boolean;
|
|
631
|
-
placeholder: string;
|
|
632
|
-
readonly: boolean;
|
|
633
|
-
maxlength: number;
|
|
634
|
-
showWordLimit: boolean;
|
|
635
|
-
autosize: boolean | {
|
|
636
|
-
minRows?: number;
|
|
637
|
-
maxRows?: number;
|
|
638
|
-
};
|
|
639
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
640
|
-
declare const _default$58: typeof __VLS_export$62;
|
|
641
|
-
//#endregion
|
|
642
|
-
//#region src/components/base/input-number/input-number.vue.d.ts
|
|
643
|
-
interface Props$61 {
|
|
644
|
-
modelValue?: number;
|
|
645
|
-
min?: number;
|
|
646
|
-
max?: number;
|
|
647
|
-
step?: number;
|
|
648
|
-
disabled?: boolean;
|
|
649
|
-
size?: ComponentSize;
|
|
650
|
-
precision?: number;
|
|
651
|
-
prefix?: string;
|
|
652
|
-
suffix?: string;
|
|
653
|
-
}
|
|
654
|
-
declare const __VLS_export$61: _$vue.DefineComponent<Props$61, {
|
|
655
|
-
focus: () => void | undefined;
|
|
656
|
-
blur: () => void | undefined;
|
|
657
|
-
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
658
|
-
"update:modelValue": (value: number) => any;
|
|
659
|
-
change: (value: number, oldValue: number) => any;
|
|
660
|
-
input: (value: string) => any;
|
|
661
|
-
}, string, _$vue.PublicProps, Readonly<Props$61> & Readonly<{
|
|
662
|
-
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
663
|
-
onChange?: ((value: number, oldValue: number) => any) | undefined;
|
|
664
|
-
onInput?: ((value: string) => any) | undefined;
|
|
665
|
-
}>, {
|
|
666
|
-
size: ComponentSize;
|
|
667
|
-
modelValue: number;
|
|
668
|
-
prefix: string;
|
|
669
|
-
suffix: string;
|
|
670
|
-
precision: number;
|
|
671
|
-
disabled: boolean;
|
|
672
|
-
min: number;
|
|
673
|
-
max: number;
|
|
674
|
-
step: number;
|
|
675
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
676
|
-
declare const _default$27: typeof __VLS_export$61;
|
|
677
|
-
//#endregion
|
|
678
|
-
//#region src/components/base/select/select.vue.d.ts
|
|
679
|
-
interface SelectOption$2 {
|
|
680
|
-
label: string;
|
|
681
|
-
value: string | number;
|
|
682
|
-
disabled?: boolean;
|
|
683
|
-
}
|
|
684
|
-
interface SelectGroup$1 {
|
|
685
|
-
label: string;
|
|
686
|
-
options: SelectOption$2[];
|
|
687
|
-
}
|
|
688
|
-
interface Props$60 {
|
|
689
|
-
modelValue?: string | number | (string | number)[];
|
|
690
|
-
placeholder?: string;
|
|
691
|
-
disabled?: boolean;
|
|
692
|
-
multiple?: boolean;
|
|
693
|
-
size?: ComponentSize;
|
|
694
|
-
variant?: "default" | "bordered" | "filled";
|
|
695
|
-
label?: string;
|
|
696
|
-
required?: boolean;
|
|
697
|
-
error?: string;
|
|
698
|
-
hint?: string;
|
|
699
|
-
options?: (SelectOption$2 | SelectGroup$1)[];
|
|
700
|
-
filterable?: boolean;
|
|
701
|
-
remote?: boolean;
|
|
702
|
-
remoteMethod?: (query: string) => void;
|
|
703
|
-
clearable?: boolean;
|
|
704
|
-
dropdownHeight?: number;
|
|
705
|
-
}
|
|
706
|
-
declare const __VLS_export$60: _$vue.DefineComponent<Props$60, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
707
|
-
"update:modelValue": (value: string | number | (string | number)[]) => any;
|
|
708
|
-
change: (value: string | number | (string | number)[]) => any;
|
|
709
|
-
search: (query: string) => any;
|
|
710
|
-
focus: (event: FocusEvent) => any;
|
|
711
|
-
blur: (event: FocusEvent) => any;
|
|
712
|
-
}, string, _$vue.PublicProps, Readonly<Props$60> & Readonly<{
|
|
713
|
-
"onUpdate:modelValue"?: ((value: string | number | (string | number)[]) => any) | undefined;
|
|
714
|
-
onChange?: ((value: string | number | (string | number)[]) => any) | undefined;
|
|
715
|
-
onSearch?: ((query: string) => any) | undefined;
|
|
716
|
-
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
717
|
-
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
718
|
-
}>, {
|
|
719
|
-
size: ComponentSize;
|
|
720
|
-
variant: "default" | "bordered" | "filled";
|
|
721
|
-
error: string;
|
|
722
|
-
modelValue: string | number | (string | number)[];
|
|
723
|
-
remote: boolean;
|
|
724
|
-
disabled: boolean;
|
|
725
|
-
label: string;
|
|
726
|
-
placeholder: string;
|
|
727
|
-
multiple: boolean;
|
|
728
|
-
required: boolean;
|
|
729
|
-
hint: string;
|
|
730
|
-
options: (SelectOption$2 | SelectGroup$1)[];
|
|
731
|
-
filterable: boolean;
|
|
732
|
-
remoteMethod: (query: string) => void;
|
|
733
|
-
clearable: boolean;
|
|
734
|
-
dropdownHeight: number;
|
|
735
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
736
|
-
declare const _default$47: typeof __VLS_export$60;
|
|
737
|
-
//#endregion
|
|
738
|
-
//#region src/components/base/switch/switch.vue.d.ts
|
|
739
|
-
interface Props$59 {
|
|
740
|
-
modelValue?: boolean;
|
|
741
|
-
disabled?: boolean;
|
|
742
|
-
size?: ComponentSize;
|
|
743
|
-
}
|
|
744
|
-
declare const __VLS_export$59: _$vue.DefineComponent<Props$59, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
745
|
-
"update:modelValue": (value: boolean) => any;
|
|
746
|
-
change: (value: boolean) => any;
|
|
747
|
-
}, string, _$vue.PublicProps, Readonly<Props$59> & Readonly<{
|
|
748
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
749
|
-
onChange?: ((value: boolean) => any) | undefined;
|
|
750
|
-
}>, {
|
|
751
|
-
size: ComponentSize;
|
|
752
|
-
modelValue: boolean;
|
|
753
|
-
disabled: boolean;
|
|
754
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
755
|
-
declare const _default$54: typeof __VLS_export$59;
|
|
756
|
-
//#endregion
|
|
757
|
-
//#region src/components/base/checkbox/checkbox.vue.d.ts
|
|
758
|
-
interface Props$58 {
|
|
759
|
-
modelValue?: boolean;
|
|
760
|
-
label?: string;
|
|
761
|
-
value?: string | number | boolean;
|
|
762
|
-
disabled?: boolean;
|
|
763
|
-
indeterminate?: boolean;
|
|
764
|
-
}
|
|
765
|
-
declare var __VLS_1$27: {};
|
|
766
|
-
type __VLS_Slots$39 = {} & {
|
|
767
|
-
default?: (props: typeof __VLS_1$27) => any;
|
|
768
|
-
};
|
|
769
|
-
declare const __VLS_base$39: _$vue.DefineComponent<Props$58, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
770
|
-
"update:modelValue": (value: boolean) => any;
|
|
771
|
-
change: (value: boolean) => any;
|
|
772
|
-
}, string, _$vue.PublicProps, Readonly<Props$58> & Readonly<{
|
|
773
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
774
|
-
onChange?: ((value: boolean) => any) | undefined;
|
|
775
|
-
}>, {
|
|
776
|
-
modelValue: boolean;
|
|
777
|
-
value: string | number | boolean;
|
|
778
|
-
disabled: boolean;
|
|
779
|
-
label: string;
|
|
780
|
-
indeterminate: boolean;
|
|
781
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
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 & {
|
|
785
|
-
new (): {
|
|
786
|
-
$slots: S;
|
|
787
|
-
};
|
|
788
|
-
};
|
|
789
|
-
//#endregion
|
|
790
|
-
//#region src/components/base/checkbox/checkbox-group.vue.d.ts
|
|
791
|
-
interface CheckboxOption$1 {
|
|
792
|
-
label: string;
|
|
793
|
-
value: string | number | boolean;
|
|
794
|
-
disabled?: boolean;
|
|
795
|
-
}
|
|
796
|
-
interface Props$57 {
|
|
797
|
-
modelValue?: (string | number | boolean)[];
|
|
798
|
-
options?: CheckboxOption$1[];
|
|
799
|
-
disabled?: boolean;
|
|
800
|
-
}
|
|
801
|
-
declare var __VLS_8$3: {};
|
|
802
|
-
type __VLS_Slots$38 = {} & {
|
|
803
|
-
default?: (props: typeof __VLS_8$3) => any;
|
|
804
|
-
};
|
|
805
|
-
declare const __VLS_base$38: _$vue.DefineComponent<Props$57, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
806
|
-
"update:modelValue": (value: (string | number | boolean)[]) => any;
|
|
807
|
-
change: (value: (string | number | boolean)[]) => any;
|
|
808
|
-
}, string, _$vue.PublicProps, Readonly<Props$57> & Readonly<{
|
|
809
|
-
"onUpdate:modelValue"?: ((value: (string | number | boolean)[]) => any) | undefined;
|
|
810
|
-
onChange?: ((value: (string | number | boolean)[]) => any) | undefined;
|
|
811
|
-
}>, {
|
|
812
|
-
modelValue: (string | number | boolean)[];
|
|
813
|
-
disabled: boolean;
|
|
814
|
-
options: CheckboxOption$1[];
|
|
815
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
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 & {
|
|
819
|
-
new (): {
|
|
820
|
-
$slots: S;
|
|
821
|
-
};
|
|
822
|
-
};
|
|
823
|
-
//#endregion
|
|
824
|
-
//#region src/components/base/radio/radio.vue.d.ts
|
|
825
|
-
interface Props$56 {
|
|
826
|
-
modelValue?: string | number | boolean;
|
|
827
|
-
value?: string | number | boolean;
|
|
828
|
-
label?: string;
|
|
829
|
-
disabled?: boolean;
|
|
830
|
-
name?: string;
|
|
831
|
-
}
|
|
832
|
-
declare var __VLS_1$26: {};
|
|
833
|
-
type __VLS_Slots$37 = {} & {
|
|
834
|
-
default?: (props: typeof __VLS_1$26) => any;
|
|
835
|
-
};
|
|
836
|
-
declare const __VLS_base$37: _$vue.DefineComponent<Props$56, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
837
|
-
"update:modelValue": (value: string | number | boolean) => any;
|
|
838
|
-
change: (value: string | number | boolean) => any;
|
|
839
|
-
}, string, _$vue.PublicProps, Readonly<Props$56> & Readonly<{
|
|
840
|
-
"onUpdate:modelValue"?: ((value: string | number | boolean) => any) | undefined;
|
|
841
|
-
onChange?: ((value: string | number | boolean) => any) | undefined;
|
|
842
|
-
}>, {
|
|
843
|
-
name: string;
|
|
844
|
-
modelValue: string | number | boolean;
|
|
845
|
-
value: string | number | boolean;
|
|
846
|
-
disabled: boolean;
|
|
847
|
-
label: string;
|
|
848
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
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 & {
|
|
852
|
-
new (): {
|
|
853
|
-
$slots: S;
|
|
854
|
-
};
|
|
855
|
-
};
|
|
856
|
-
//#endregion
|
|
857
|
-
//#region src/components/base/radio/radio-group.vue.d.ts
|
|
858
|
-
interface RadioOption$1 {
|
|
859
|
-
label: string;
|
|
860
|
-
value: string | number | boolean;
|
|
861
|
-
disabled?: boolean;
|
|
862
|
-
}
|
|
863
|
-
interface Props$55 {
|
|
864
|
-
modelValue?: string | number | boolean;
|
|
865
|
-
options?: RadioOption$1[];
|
|
866
|
-
disabled?: boolean;
|
|
867
|
-
name?: string;
|
|
868
|
-
}
|
|
869
|
-
declare var __VLS_8$2: {};
|
|
870
|
-
type __VLS_Slots$36 = {} & {
|
|
871
|
-
default?: (props: typeof __VLS_8$2) => any;
|
|
872
|
-
};
|
|
873
|
-
declare const __VLS_base$36: _$vue.DefineComponent<Props$55, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
874
|
-
"update:modelValue": (value: string | number | boolean) => any;
|
|
875
|
-
change: (value: string | number | boolean) => any;
|
|
876
|
-
}, string, _$vue.PublicProps, Readonly<Props$55> & Readonly<{
|
|
877
|
-
"onUpdate:modelValue"?: ((value: string | number | boolean) => any) | undefined;
|
|
878
|
-
onChange?: ((value: string | number | boolean) => any) | undefined;
|
|
879
|
-
}>, {
|
|
880
|
-
name: string;
|
|
881
|
-
modelValue: string | number | boolean;
|
|
882
|
-
disabled: boolean;
|
|
883
|
-
options: RadioOption$1[];
|
|
884
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
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 & {
|
|
888
|
-
new (): {
|
|
889
|
-
$slots: S;
|
|
890
|
-
};
|
|
891
|
-
};
|
|
892
|
-
//#endregion
|
|
893
|
-
//#region src/components/base/tag/tag.vue.d.ts
|
|
894
|
-
interface Props$54 {
|
|
895
|
-
variant?: "default" | "primary" | "success" | "warning" | "error" | "info";
|
|
896
|
-
size?: ComponentSize;
|
|
897
|
-
plain?: boolean;
|
|
898
|
-
round?: boolean;
|
|
899
|
-
closable?: boolean;
|
|
900
|
-
}
|
|
901
|
-
declare var __VLS_1$25: {};
|
|
902
|
-
type __VLS_Slots$35 = {} & {
|
|
903
|
-
default?: (props: typeof __VLS_1$25) => any;
|
|
904
|
-
};
|
|
905
|
-
declare const __VLS_base$35: _$vue.DefineComponent<Props$54, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
906
|
-
close: () => any;
|
|
907
|
-
}, string, _$vue.PublicProps, Readonly<Props$54> & Readonly<{
|
|
908
|
-
onClose?: (() => any) | undefined;
|
|
909
|
-
}>, {
|
|
910
|
-
size: ComponentSize;
|
|
911
|
-
variant: "default" | "primary" | "success" | "warning" | "error" | "info";
|
|
912
|
-
closable: boolean;
|
|
913
|
-
plain: boolean;
|
|
914
|
-
round: boolean;
|
|
915
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
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 & {
|
|
919
|
-
new (): {
|
|
920
|
-
$slots: S;
|
|
921
|
-
};
|
|
922
|
-
};
|
|
923
|
-
//#endregion
|
|
924
|
-
//#region src/components/base/avatar/avatar.vue.d.ts
|
|
925
|
-
interface Props$53 {
|
|
926
|
-
src?: string;
|
|
927
|
-
alt?: string;
|
|
928
|
-
text?: string;
|
|
929
|
-
size?: ComponentSize;
|
|
930
|
-
shape?: "circle" | "square";
|
|
931
|
-
color?: string;
|
|
932
|
-
}
|
|
933
|
-
declare var __VLS_1$24: {};
|
|
934
|
-
type __VLS_Slots$34 = {} & {
|
|
935
|
-
default?: (props: typeof __VLS_1$24) => any;
|
|
936
|
-
};
|
|
937
|
-
declare const __VLS_base$34: _$vue.DefineComponent<Props$53, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<Props$53> & Readonly<{}>, {
|
|
938
|
-
size: ComponentSize;
|
|
939
|
-
color: string;
|
|
940
|
-
src: string;
|
|
941
|
-
alt: string;
|
|
942
|
-
text: string;
|
|
943
|
-
shape: "circle" | "square";
|
|
944
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
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 & {
|
|
948
|
-
new (): {
|
|
949
|
-
$slots: S;
|
|
950
|
-
};
|
|
951
|
-
};
|
|
952
|
-
//#endregion
|
|
953
|
-
//#region src/components/base/badge/badge.vue.d.ts
|
|
954
|
-
interface Props$52 {
|
|
955
|
-
value?: number | string;
|
|
956
|
-
max?: number;
|
|
957
|
-
dot?: boolean;
|
|
958
|
-
show?: boolean;
|
|
959
|
-
variant?: ComponentVariant;
|
|
960
|
-
offset?: [number, number];
|
|
961
|
-
standalone?: boolean;
|
|
962
|
-
}
|
|
963
|
-
declare var __VLS_1$23: {};
|
|
964
|
-
type __VLS_Slots$33 = {} & {
|
|
965
|
-
default?: (props: typeof __VLS_1$23) => any;
|
|
966
|
-
};
|
|
967
|
-
declare const __VLS_base$33: _$vue.DefineComponent<Props$52, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<Props$52> & Readonly<{}>, {
|
|
968
|
-
variant: ComponentVariant;
|
|
969
|
-
value: number | string;
|
|
970
|
-
max: number;
|
|
971
|
-
dot: boolean;
|
|
972
|
-
show: boolean;
|
|
973
|
-
offset: [number, number];
|
|
974
|
-
standalone: boolean;
|
|
975
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
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 & {
|
|
979
|
-
new (): {
|
|
980
|
-
$slots: S;
|
|
981
|
-
};
|
|
982
|
-
};
|
|
983
|
-
//#endregion
|
|
984
|
-
//#region src/components/base/rate/rate.vue.d.ts
|
|
985
|
-
interface Props$51 {
|
|
986
|
-
modelValue?: number;
|
|
987
|
-
count?: number;
|
|
988
|
-
disabled?: boolean;
|
|
989
|
-
allowHalf?: boolean;
|
|
990
|
-
showText?: boolean;
|
|
991
|
-
texts?: string[];
|
|
992
|
-
size?: "xs" | "sm" | "md" | "lg";
|
|
993
|
-
}
|
|
994
|
-
declare const __VLS_export$51: _$vue.DefineComponent<Props$51, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
995
|
-
"update:modelValue": (value: number) => any;
|
|
996
|
-
change: (value: number) => any;
|
|
997
|
-
}, string, _$vue.PublicProps, Readonly<Props$51> & Readonly<{
|
|
998
|
-
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
999
|
-
onChange?: ((value: number) => any) | undefined;
|
|
1000
|
-
}>, {
|
|
1001
|
-
size: "xs" | "sm" | "md" | "lg";
|
|
1002
|
-
modelValue: number;
|
|
1003
|
-
disabled: boolean;
|
|
1004
|
-
count: number;
|
|
1005
|
-
allowHalf: boolean;
|
|
1006
|
-
showText: boolean;
|
|
1007
|
-
texts: string[];
|
|
1008
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
1009
|
-
declare const _default$44: typeof __VLS_export$51;
|
|
1010
|
-
//#endregion
|
|
1011
|
-
//#region src/components/base/slider/slider.vue.d.ts
|
|
1012
|
-
interface Props$50 {
|
|
1013
|
-
modelValue?: number;
|
|
1014
|
-
min?: number;
|
|
1015
|
-
max?: number;
|
|
1016
|
-
step?: number;
|
|
1017
|
-
disabled?: boolean;
|
|
1018
|
-
showTooltip?: boolean;
|
|
1019
|
-
size?: "xs" | "sm" | "md" | "lg";
|
|
1020
|
-
}
|
|
1021
|
-
declare const __VLS_export$50: _$vue.DefineComponent<Props$50, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
1022
|
-
"update:modelValue": (value: number) => any;
|
|
1023
|
-
change: (value: number) => any;
|
|
1024
|
-
}, string, _$vue.PublicProps, Readonly<Props$50> & Readonly<{
|
|
1025
|
-
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
1026
|
-
onChange?: ((value: number) => any) | undefined;
|
|
1027
|
-
}>, {
|
|
1028
|
-
size: "xs" | "sm" | "md" | "lg";
|
|
1029
|
-
modelValue: number;
|
|
1030
|
-
disabled: boolean;
|
|
1031
|
-
min: number;
|
|
1032
|
-
max: number;
|
|
1033
|
-
step: number;
|
|
1034
|
-
showTooltip: boolean;
|
|
1035
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
1036
|
-
declare const _default$49: typeof __VLS_export$50;
|
|
1037
|
-
//#endregion
|
|
1038
|
-
//#region src/components/base/date-picker/date-picker.vue.d.ts
|
|
1039
|
-
interface Props$49 {
|
|
1040
|
-
modelValue?: string;
|
|
1041
|
-
placeholder?: string;
|
|
1042
|
-
disabled?: boolean;
|
|
1043
|
-
type?: "date" | "month" | "year";
|
|
1044
|
-
}
|
|
1045
|
-
declare const __VLS_export$49: _$vue.DefineComponent<Props$49, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
1046
|
-
"update:modelValue": (value: string) => any;
|
|
1047
|
-
change: (value: string) => any;
|
|
1048
|
-
}, string, _$vue.PublicProps, Readonly<Props$49> & Readonly<{
|
|
1049
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
1050
|
-
onChange?: ((value: string) => any) | undefined;
|
|
1051
|
-
}>, {
|
|
1052
|
-
type: "date" | "month" | "year";
|
|
1053
|
-
modelValue: string;
|
|
1054
|
-
disabled: boolean;
|
|
1055
|
-
placeholder: string;
|
|
1056
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
1057
|
-
declare const _default$15: typeof __VLS_export$49;
|
|
1058
|
-
//#endregion
|
|
1059
|
-
//#region src/components/base/date-picker/date-range-picker.vue.d.ts
|
|
1060
|
-
interface Props$48 {
|
|
1061
|
-
modelValue?: [string, string];
|
|
1062
|
-
placeholder?: string;
|
|
1063
|
-
disabled?: boolean;
|
|
1064
|
-
}
|
|
1065
|
-
declare const __VLS_export$48: _$vue.DefineComponent<Props$48, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
1066
|
-
"update:modelValue": (value: [string, string]) => any;
|
|
1067
|
-
change: (value: [string, string]) => any;
|
|
1068
|
-
}, string, _$vue.PublicProps, Readonly<Props$48> & Readonly<{
|
|
1069
|
-
"onUpdate:modelValue"?: ((value: [string, string]) => any) | undefined;
|
|
1070
|
-
onChange?: ((value: [string, string]) => any) | undefined;
|
|
1071
|
-
}>, {
|
|
1072
|
-
modelValue: [string, string];
|
|
1073
|
-
disabled: boolean;
|
|
1074
|
-
placeholder: string;
|
|
1075
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
1076
|
-
declare const _default$16: typeof __VLS_export$48;
|
|
1077
|
-
//#endregion
|
|
1078
|
-
//#region src/components/base/time-picker/time-picker.vue.d.ts
|
|
1079
|
-
interface Props$47 {
|
|
1080
|
-
modelValue?: string;
|
|
1081
|
-
placeholder?: string;
|
|
1082
|
-
disabled?: boolean;
|
|
1083
|
-
showSeconds?: boolean;
|
|
1084
|
-
format?: string;
|
|
1085
|
-
}
|
|
1086
|
-
declare const __VLS_export$47: _$vue.DefineComponent<Props$47, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
1087
|
-
"update:modelValue": (value: string) => any;
|
|
1088
|
-
change: (value: string) => any;
|
|
1089
|
-
}, string, _$vue.PublicProps, Readonly<Props$47> & Readonly<{
|
|
1090
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
1091
|
-
onChange?: ((value: string) => any) | undefined;
|
|
1092
|
-
}>, {
|
|
1093
|
-
modelValue: string;
|
|
1094
|
-
disabled: boolean;
|
|
1095
|
-
placeholder: string;
|
|
1096
|
-
showSeconds: boolean;
|
|
1097
|
-
format: string;
|
|
1098
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
1099
|
-
declare const _default$59: typeof __VLS_export$47;
|
|
1100
|
-
//#endregion
|
|
1101
|
-
//#region src/components/base/cascader/cascader.vue.d.ts
|
|
1102
|
-
interface CascaderOption$1 {
|
|
1103
|
-
label: string;
|
|
1104
|
-
value: string;
|
|
1105
|
-
children?: CascaderOption$1[];
|
|
1106
|
-
disabled?: boolean;
|
|
1107
|
-
}
|
|
1108
|
-
interface Props$46 {
|
|
1109
|
-
modelValue?: string[] | string[][];
|
|
1110
|
-
options?: CascaderOption$1[];
|
|
1111
|
-
placeholder?: string;
|
|
1112
|
-
disabled?: boolean;
|
|
1113
|
-
filterable?: boolean;
|
|
1114
|
-
multiple?: boolean;
|
|
1115
|
-
}
|
|
1116
|
-
declare const __VLS_export$46: _$vue.DefineComponent<Props$46, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
1117
|
-
"update:modelValue": (value: string[] | string[][]) => any;
|
|
1118
|
-
change: (value: string[] | string[][]) => any;
|
|
1119
|
-
}, string, _$vue.PublicProps, Readonly<Props$46> & Readonly<{
|
|
1120
|
-
"onUpdate:modelValue"?: ((value: string[] | string[][]) => any) | undefined;
|
|
1121
|
-
onChange?: ((value: string[] | string[][]) => any) | undefined;
|
|
1122
|
-
}>, {
|
|
1123
|
-
modelValue: string[] | string[][];
|
|
1124
|
-
disabled: boolean;
|
|
1125
|
-
placeholder: string;
|
|
1126
|
-
multiple: boolean;
|
|
1127
|
-
options: CascaderOption$1[];
|
|
1128
|
-
filterable: boolean;
|
|
1129
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
1130
|
-
declare const _default$8: typeof __VLS_export$46;
|
|
1131
|
-
//#endregion
|
|
1132
|
-
//#region src/components/base/auto-complete/auto-complete.vue.d.ts
|
|
1133
|
-
interface Option {
|
|
1134
|
-
label: string;
|
|
1135
|
-
value: string;
|
|
1136
|
-
}
|
|
1137
|
-
interface Props$45 {
|
|
1138
|
-
modelValue?: string;
|
|
1139
|
-
options?: Option[];
|
|
1140
|
-
placeholder?: string;
|
|
1141
|
-
disabled?: boolean;
|
|
1142
|
-
}
|
|
1143
|
-
declare const __VLS_export$45: _$vue.DefineComponent<Props$45, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
1144
|
-
"update:modelValue": (value: string) => any;
|
|
1145
|
-
select: (option: Option) => any;
|
|
1146
|
-
}, string, _$vue.PublicProps, Readonly<Props$45> & Readonly<{
|
|
1147
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
1148
|
-
onSelect?: ((option: Option) => any) | undefined;
|
|
1149
|
-
}>, {
|
|
1150
|
-
modelValue: string;
|
|
1151
|
-
disabled: boolean;
|
|
1152
|
-
placeholder: string;
|
|
1153
|
-
options: Option[];
|
|
1154
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
1155
|
-
declare const _default$1: typeof __VLS_export$45;
|
|
1156
|
-
//#endregion
|
|
1157
|
-
//#region src/components/base/transfer/transfer.vue.d.ts
|
|
1158
|
-
interface TransferOption {
|
|
1159
|
-
label: string;
|
|
1160
|
-
value: string | number;
|
|
1161
|
-
disabled?: boolean;
|
|
1162
|
-
}
|
|
1163
|
-
interface Props$44 {
|
|
1164
|
-
modelValue?: (string | number)[];
|
|
1165
|
-
data?: TransferOption[];
|
|
1166
|
-
titles?: [string, string];
|
|
1167
|
-
height?: string | number;
|
|
1168
|
-
}
|
|
1169
|
-
declare const __VLS_export$44: _$vue.DefineComponent<Props$44, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
1170
|
-
"update:modelValue": (value: (string | number)[]) => any;
|
|
1171
|
-
change: (value: (string | number)[]) => any;
|
|
1172
|
-
}, string, _$vue.PublicProps, Readonly<Props$44> & Readonly<{
|
|
1173
|
-
"onUpdate:modelValue"?: ((value: (string | number)[]) => any) | undefined;
|
|
1174
|
-
onChange?: ((value: (string | number)[]) => any) | undefined;
|
|
1175
|
-
}>, {
|
|
1176
|
-
modelValue: (string | number)[];
|
|
1177
|
-
height: string | number;
|
|
1178
|
-
data: TransferOption[];
|
|
1179
|
-
titles: [string, string];
|
|
1180
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
1181
|
-
declare const _default$62: typeof __VLS_export$44;
|
|
1182
|
-
//#endregion
|
|
1183
|
-
//#region src/components/base/upload/upload.vue.d.ts
|
|
1184
|
-
interface UploadFile$1 {
|
|
1185
|
-
uid: string;
|
|
1186
|
-
name: string;
|
|
1187
|
-
size: number;
|
|
1188
|
-
status: "uploading" | "success" | "error";
|
|
1189
|
-
raw?: File;
|
|
1190
|
-
url?: string;
|
|
1191
|
-
}
|
|
1192
|
-
interface Props$43 {
|
|
1193
|
-
fileList?: UploadFile$1[];
|
|
1194
|
-
multiple?: boolean;
|
|
1195
|
-
accept?: string;
|
|
1196
|
-
disabled?: boolean;
|
|
1197
|
-
maxSize?: number;
|
|
1198
|
-
maxCount?: number;
|
|
1199
|
-
tip?: string;
|
|
1200
|
-
action?: string;
|
|
1201
|
-
}
|
|
1202
|
-
declare var __VLS_6$2: {};
|
|
1203
|
-
type __VLS_Slots$32 = {} & {
|
|
1204
|
-
default?: (props: typeof __VLS_6$2) => any;
|
|
1205
|
-
};
|
|
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;
|
|
1210
|
-
exceed: (file: File) => any;
|
|
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;
|
|
1215
|
-
onExceed?: ((file: File) => any) | undefined;
|
|
1216
|
-
}>, {
|
|
1217
|
-
tip: string;
|
|
1218
|
-
disabled: boolean;
|
|
1219
|
-
multiple: boolean;
|
|
1220
|
-
fileList: UploadFile$1[];
|
|
1221
|
-
accept: string;
|
|
1222
|
-
maxSize: number;
|
|
1223
|
-
maxCount: number;
|
|
1224
|
-
action: string;
|
|
1225
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
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 & {
|
|
1229
|
-
new (): {
|
|
1230
|
-
$slots: S;
|
|
1231
|
-
};
|
|
1232
|
-
};
|
|
1233
|
-
//#endregion
|
|
1234
|
-
//#region src/components/base/login/login.vue.d.ts
|
|
1235
|
-
interface LoginFormData$2 {
|
|
1236
|
-
username: string;
|
|
1237
|
-
password: string;
|
|
1238
|
-
phone: string;
|
|
1239
|
-
code: string;
|
|
1240
|
-
captchaCode: string;
|
|
1241
|
-
remember: boolean;
|
|
1242
|
-
}
|
|
1243
|
-
interface Feature {
|
|
1244
|
-
icon: string;
|
|
1245
|
-
text: string;
|
|
1246
|
-
}
|
|
1247
|
-
interface SocialOption$1 {
|
|
1248
|
-
key: string;
|
|
1249
|
-
label: string;
|
|
1250
|
-
icon: string;
|
|
1251
|
-
}
|
|
1252
|
-
interface TabOption$1 {
|
|
1253
|
-
key: string;
|
|
1254
|
-
label: string;
|
|
1255
|
-
}
|
|
1256
|
-
interface Props$42 {
|
|
1257
|
-
title?: string;
|
|
1258
|
-
subtitle?: string;
|
|
1259
|
-
formTitle?: string;
|
|
1260
|
-
usernamePlaceholder?: string;
|
|
1261
|
-
passwordPlaceholder?: string;
|
|
1262
|
-
phonePlaceholder?: string;
|
|
1263
|
-
codePlaceholder?: string;
|
|
1264
|
-
sendCodeText?: string;
|
|
1265
|
-
rememberText?: string;
|
|
1266
|
-
forgotText?: string;
|
|
1267
|
-
submitText?: string;
|
|
1268
|
-
loadingText?: string;
|
|
1269
|
-
socialText?: string;
|
|
1270
|
-
footerText?: string;
|
|
1271
|
-
features?: Feature[];
|
|
1272
|
-
socials?: SocialOption$1[];
|
|
1273
|
-
tabs?: TabOption$1[];
|
|
1274
|
-
loading?: boolean;
|
|
1275
|
-
error?: string;
|
|
1276
|
-
showTabs?: boolean;
|
|
1277
|
-
showSocial?: boolean;
|
|
1278
|
-
showCaptcha?: boolean;
|
|
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";
|
|
1296
|
-
}
|
|
1297
|
-
declare var __VLS_1$22: {}, __VLS_17: {};
|
|
1298
|
-
type __VLS_Slots$31 = {} & {
|
|
1299
|
-
logo?: (props: typeof __VLS_1$22) => any;
|
|
1300
|
-
} & {
|
|
1301
|
-
footer?: (props: typeof __VLS_17) => any;
|
|
1302
|
-
};
|
|
1303
|
-
declare const __VLS_base$31: _$vue.DefineComponent<Props$42, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
1304
|
-
"tab-change": (tab: string) => any;
|
|
1305
|
-
submit: (data: LoginFormData$2) => any;
|
|
1306
|
-
"send-code": (phone: string) => any;
|
|
1307
|
-
"forgot-password": () => any;
|
|
1308
|
-
"social-login": (provider: string) => any;
|
|
1309
|
-
}, string, _$vue.PublicProps, Readonly<Props$42> & Readonly<{
|
|
1310
|
-
"onTab-change"?: ((tab: string) => any) | undefined;
|
|
1311
|
-
onSubmit?: ((data: LoginFormData$2) => any) | undefined;
|
|
1312
|
-
"onSend-code"?: ((phone: string) => any) | undefined;
|
|
1313
|
-
"onForgot-password"?: (() => any) | undefined;
|
|
1314
|
-
"onSocial-login"?: ((provider: string) => any) | undefined;
|
|
1315
|
-
}>, {
|
|
1316
|
-
title: string;
|
|
1317
|
-
tabs: TabOption$1[];
|
|
1318
|
-
footerText: string;
|
|
1319
|
-
error: string;
|
|
1320
|
-
loading: boolean;
|
|
1321
|
-
loadingText: string;
|
|
1322
|
-
subtitle: string;
|
|
1323
|
-
formTitle: string;
|
|
1324
|
-
usernamePlaceholder: string;
|
|
1325
|
-
passwordPlaceholder: string;
|
|
1326
|
-
phonePlaceholder: string;
|
|
1327
|
-
codePlaceholder: string;
|
|
1328
|
-
sendCodeText: string;
|
|
1329
|
-
rememberText: string;
|
|
1330
|
-
forgotText: string;
|
|
1331
|
-
submitText: string;
|
|
1332
|
-
socialText: string;
|
|
1333
|
-
features: Feature[];
|
|
1334
|
-
socials: SocialOption$1[];
|
|
1335
|
-
showTabs: boolean;
|
|
1336
|
-
showSocial: boolean;
|
|
1337
|
-
showCaptcha: boolean;
|
|
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";
|
|
1347
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
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 & {
|
|
1351
|
-
new (): {
|
|
1352
|
-
$slots: S;
|
|
1353
|
-
};
|
|
1354
|
-
};
|
|
1355
|
-
//#endregion
|
|
1356
|
-
//#region src/components/base/login/login-centered.vue.d.ts
|
|
1357
|
-
interface SocialOption {
|
|
1358
|
-
key: string;
|
|
1359
|
-
label: string;
|
|
1360
|
-
icon: any;
|
|
1361
|
-
}
|
|
1362
|
-
interface TabOption {
|
|
1363
|
-
key: string;
|
|
1364
|
-
label: string;
|
|
1365
|
-
}
|
|
1366
|
-
interface LoginFormData$1 {
|
|
1367
|
-
username: string;
|
|
1368
|
-
password: string;
|
|
1369
|
-
phone: string;
|
|
1370
|
-
code: string;
|
|
1371
|
-
captchaCode: string;
|
|
1372
|
-
remember: boolean;
|
|
1373
|
-
}
|
|
1374
|
-
interface Props$41 {
|
|
1375
|
-
title?: string;
|
|
1376
|
-
subtitle?: string;
|
|
1377
|
-
usernameLabel?: string;
|
|
1378
|
-
passwordLabel?: string;
|
|
1379
|
-
phoneLabel?: string;
|
|
1380
|
-
codeLabel?: string;
|
|
1381
|
-
captchaLabel?: string;
|
|
1382
|
-
usernamePlaceholder?: string;
|
|
1383
|
-
passwordPlaceholder?: string;
|
|
1384
|
-
phonePlaceholder?: string;
|
|
1385
|
-
codePlaceholder?: string;
|
|
1386
|
-
captchaPlaceholder?: string;
|
|
1387
|
-
sendCodeText?: string;
|
|
1388
|
-
rememberText?: string;
|
|
1389
|
-
forgotText?: string;
|
|
1390
|
-
submitText?: string;
|
|
1391
|
-
loadingText?: string;
|
|
1392
|
-
socialText?: string;
|
|
1393
|
-
footerText?: string;
|
|
1394
|
-
socials?: SocialOption[];
|
|
1395
|
-
tabs?: TabOption[];
|
|
1396
|
-
loading?: boolean;
|
|
1397
|
-
error?: string;
|
|
1398
|
-
showTabs?: boolean;
|
|
1399
|
-
showSocial?: boolean;
|
|
1400
|
-
showCaptcha?: boolean;
|
|
1401
|
-
theme?: "default" | "gradient" | "minimal";
|
|
1402
|
-
}
|
|
1403
|
-
declare var __VLS_1$21: {}, __VLS_15$2: {};
|
|
1404
|
-
type __VLS_Slots$30 = {} & {
|
|
1405
|
-
logo?: (props: typeof __VLS_1$21) => any;
|
|
1406
|
-
} & {
|
|
1407
|
-
footer?: (props: typeof __VLS_15$2) => any;
|
|
1408
|
-
};
|
|
1409
|
-
declare const __VLS_base$30: _$vue.DefineComponent<Props$41, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
1410
|
-
submit: (data: LoginFormData$1) => any;
|
|
1411
|
-
"send-code": (phone: string) => any;
|
|
1412
|
-
"forgot-password": () => any;
|
|
1413
|
-
"social-login": (provider: string) => any;
|
|
1414
|
-
}, string, _$vue.PublicProps, Readonly<Props$41> & Readonly<{
|
|
1415
|
-
onSubmit?: ((data: LoginFormData$1) => any) | undefined;
|
|
1416
|
-
"onSend-code"?: ((phone: string) => any) | undefined;
|
|
1417
|
-
"onForgot-password"?: (() => any) | undefined;
|
|
1418
|
-
"onSocial-login"?: ((provider: string) => any) | undefined;
|
|
1419
|
-
}>, {
|
|
1420
|
-
theme: "default" | "gradient" | "minimal";
|
|
1421
|
-
title: string;
|
|
1422
|
-
tabs: TabOption[];
|
|
1423
|
-
footerText: string;
|
|
1424
|
-
error: string;
|
|
1425
|
-
loading: boolean;
|
|
1426
|
-
loadingText: string;
|
|
1427
|
-
subtitle: string;
|
|
1428
|
-
usernamePlaceholder: string;
|
|
1429
|
-
passwordPlaceholder: string;
|
|
1430
|
-
phonePlaceholder: string;
|
|
1431
|
-
codePlaceholder: string;
|
|
1432
|
-
sendCodeText: string;
|
|
1433
|
-
rememberText: string;
|
|
1434
|
-
forgotText: string;
|
|
1435
|
-
submitText: string;
|
|
1436
|
-
socialText: string;
|
|
1437
|
-
socials: SocialOption[];
|
|
1438
|
-
showTabs: boolean;
|
|
1439
|
-
showSocial: boolean;
|
|
1440
|
-
showCaptcha: boolean;
|
|
1441
|
-
captchaPlaceholder: string;
|
|
1442
|
-
usernameLabel: string;
|
|
1443
|
-
passwordLabel: string;
|
|
1444
|
-
phoneLabel: string;
|
|
1445
|
-
codeLabel: string;
|
|
1446
|
-
captchaLabel: string;
|
|
1447
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
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 & {
|
|
1451
|
-
new (): {
|
|
1452
|
-
$slots: S;
|
|
1453
|
-
};
|
|
1454
|
-
};
|
|
1455
|
-
//#endregion
|
|
1456
|
-
//#region src/components/base/captcha/captcha.vue.d.ts
|
|
1457
|
-
interface Props$40 {
|
|
1458
|
-
/** 验证码长度(客户端生成时有效) */
|
|
1459
|
-
length?: number;
|
|
1460
|
-
/** 宽度 */
|
|
1461
|
-
width?: number;
|
|
1462
|
-
/** 高度 */
|
|
1463
|
-
height?: number;
|
|
1464
|
-
/** 字体大小(客户端生成时有效) */
|
|
1465
|
-
fontSize?: number;
|
|
1466
|
-
/** 背景颜色(客户端生成时有效) */
|
|
1467
|
-
bgColor?: string;
|
|
1468
|
-
/** 后端提供的验证码图片地址 */
|
|
1469
|
-
src?: string;
|
|
1470
|
-
/** 后端提供的验证码答案(用于校验) */
|
|
1471
|
-
code?: string;
|
|
1472
|
-
/** 验证码模式:客户端生成并校验,或后端提供图片由后端校验 */
|
|
1473
|
-
mode?: "client" | "server";
|
|
1474
|
-
}
|
|
1475
|
-
declare function refresh(): void;
|
|
1476
|
-
declare const __VLS_export$40: _$vue.DefineComponent<Props$40, {
|
|
1477
|
-
code: _$vue.Ref<string, string>;
|
|
1478
|
-
refresh: typeof refresh;
|
|
1479
|
-
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
1480
|
-
change: (code: string) => any;
|
|
1481
|
-
}, string, _$vue.PublicProps, Readonly<Props$40> & Readonly<{
|
|
1482
|
-
onChange?: ((code: string) => any) | undefined;
|
|
1483
|
-
}>, {
|
|
1484
|
-
length: number;
|
|
1485
|
-
width: number;
|
|
1486
|
-
mode: "client" | "server";
|
|
1487
|
-
height: number;
|
|
1488
|
-
src: string;
|
|
1489
|
-
fontSize: number;
|
|
1490
|
-
bgColor: string;
|
|
1491
|
-
code: string;
|
|
1492
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
1493
|
-
declare const _default$6: typeof __VLS_export$40;
|
|
1494
|
-
//#endregion
|
|
1495
|
-
//#region src/components/base/pin-input/pin-input.vue.d.ts
|
|
1496
|
-
interface Props$39 {
|
|
1497
|
-
modelValue?: string;
|
|
1498
|
-
length?: number;
|
|
1499
|
-
disabled?: boolean;
|
|
1500
|
-
error?: boolean;
|
|
1501
|
-
errorMessage?: string;
|
|
1502
|
-
mask?: boolean;
|
|
1503
|
-
}
|
|
1504
|
-
declare const __VLS_export$39: _$vue.DefineComponent<Props$39, {
|
|
1505
|
-
focus: (index?: number) => void;
|
|
1506
|
-
clear: () => void;
|
|
1507
|
-
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
1508
|
-
"update:modelValue": (value: string) => any;
|
|
1509
|
-
complete: (value: string) => any;
|
|
1510
|
-
}, string, _$vue.PublicProps, Readonly<Props$39> & Readonly<{
|
|
1511
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
1512
|
-
onComplete?: ((value: string) => any) | undefined;
|
|
1513
|
-
}>, {
|
|
1514
|
-
length: number;
|
|
1515
|
-
error: boolean;
|
|
1516
|
-
modelValue: string;
|
|
1517
|
-
disabled: boolean;
|
|
1518
|
-
errorMessage: string;
|
|
1519
|
-
mask: boolean;
|
|
1520
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
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;
|
|
1636
|
-
//#endregion
|
|
1637
|
-
//#region src/components/form/types.d.ts
|
|
1638
|
-
/**
|
|
1639
|
-
* 表单校验规则类型
|
|
1640
|
-
*/
|
|
1641
|
-
interface FormRule {
|
|
1642
|
-
required?: boolean;
|
|
1643
|
-
type?: string;
|
|
1644
|
-
min?: number;
|
|
1645
|
-
max?: number;
|
|
1646
|
-
pattern?: RegExp;
|
|
1647
|
-
message?: string;
|
|
1648
|
-
trigger?: string | string[];
|
|
1649
|
-
validator?: (rule: FormRule, value: unknown, callback: (error?: string) => void) => void;
|
|
1650
|
-
}
|
|
1651
|
-
type FormRules = Record<string, FormRule | FormRule[]>;
|
|
1652
|
-
/**
|
|
1653
|
-
* 校验错误信息
|
|
1654
|
-
*/
|
|
1655
|
-
interface ValidateError {
|
|
1656
|
-
message: string;
|
|
1657
|
-
field: string;
|
|
1658
|
-
}
|
|
1659
|
-
/**
|
|
1660
|
-
* 校验结果
|
|
1661
|
-
*/
|
|
1662
|
-
interface ValidateResult {
|
|
1663
|
-
valid: boolean;
|
|
1664
|
-
errors: ValidateError[];
|
|
1665
|
-
}
|
|
1666
|
-
/**
|
|
1667
|
-
* 表单实例接口
|
|
1668
|
-
*/
|
|
1669
|
-
interface FormInstance {
|
|
1670
|
-
validate: () => Promise<ValidateResult>;
|
|
1671
|
-
resetFields: () => void;
|
|
1672
|
-
clearValidate: (fields?: string[]) => void;
|
|
1673
|
-
}
|
|
1674
|
-
/**
|
|
1675
|
-
* 表单项实例接口
|
|
1676
|
-
*/
|
|
1677
|
-
interface FormItemInstance {
|
|
1678
|
-
validate: (value: unknown) => Promise<ValidateError | null>;
|
|
1679
|
-
resetField: () => void;
|
|
1680
|
-
clearValidate: () => void;
|
|
1681
|
-
prop: string;
|
|
1682
|
-
modelValue: unknown;
|
|
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
|
-
}
|
|
1825
|
-
//#endregion
|
|
1826
|
-
//#region src/components/form/form/form.vue.d.ts
|
|
1827
|
-
interface Props$36 {
|
|
1828
|
-
modelValue?: Record<string, unknown>;
|
|
1829
|
-
rules?: FormRules;
|
|
1830
|
-
layout?: "horizontal" | "vertical" | "inline";
|
|
1831
|
-
labelWidth?: string;
|
|
1832
|
-
labelPosition?: "left" | "right" | "top";
|
|
1833
|
-
disabled?: boolean;
|
|
1834
|
-
}
|
|
1835
|
-
declare var __VLS_1$20: {};
|
|
1836
|
-
type __VLS_Slots$29 = {} & {
|
|
1837
|
-
default?: (props: typeof __VLS_1$20) => any;
|
|
1838
|
-
};
|
|
1839
|
-
declare const __VLS_base$29: _$vue.DefineComponent<Props$36, FormInstance, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
1840
|
-
submit: (values: Record<string, unknown>) => any;
|
|
1841
|
-
validate: (result: {
|
|
1842
|
-
valid: boolean;
|
|
1843
|
-
errors: unknown[];
|
|
1844
|
-
}) => any;
|
|
1845
|
-
}, string, _$vue.PublicProps, Readonly<Props$36> & Readonly<{
|
|
1846
|
-
onSubmit?: ((values: Record<string, unknown>) => any) | undefined;
|
|
1847
|
-
onValidate?: ((result: {
|
|
1848
|
-
valid: boolean;
|
|
1849
|
-
errors: unknown[];
|
|
1850
|
-
}) => any) | undefined;
|
|
1851
|
-
}>, {
|
|
1852
|
-
modelValue: Record<string, unknown>;
|
|
1853
|
-
disabled: boolean;
|
|
1854
|
-
rules: FormRules;
|
|
1855
|
-
layout: "horizontal" | "vertical" | "inline";
|
|
1856
|
-
labelWidth: string;
|
|
1857
|
-
labelPosition: "left" | "right" | "top";
|
|
1858
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
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 & {
|
|
1862
|
-
new (): {
|
|
1863
|
-
$slots: S;
|
|
1864
|
-
};
|
|
1865
|
-
};
|
|
1866
|
-
//#endregion
|
|
1867
|
-
//#region src/components/form/form-item/form-item.vue.d.ts
|
|
1868
|
-
interface Props$35 {
|
|
1869
|
-
prop?: string;
|
|
1870
|
-
label?: string;
|
|
1871
|
-
required?: boolean;
|
|
1872
|
-
extra?: string;
|
|
1873
|
-
}
|
|
1874
|
-
declare var __VLS_1$19: {};
|
|
1875
|
-
type __VLS_Slots$28 = {} & {
|
|
1876
|
-
default?: (props: typeof __VLS_1$19) => any;
|
|
1877
|
-
};
|
|
1878
|
-
declare const __VLS_base$28: _$vue.DefineComponent<Props$35, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<Props$35> & Readonly<{}>, {
|
|
1879
|
-
label: string;
|
|
1880
|
-
required: boolean;
|
|
1881
|
-
prop: string;
|
|
1882
|
-
extra: string;
|
|
1883
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
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;
|
|
1928
|
-
type __VLS_WithSlots$27<T, S> = T & {
|
|
1929
|
-
new (): {
|
|
1930
|
-
$slots: S;
|
|
1931
|
-
};
|
|
1932
|
-
};
|
|
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
|
|
1940
|
-
//#region src/components/layout/space/space.vue.d.ts
|
|
1941
|
-
interface Props$33 {
|
|
1942
|
-
size?: number | string | [number | string, number | string];
|
|
1943
|
-
direction?: Direction;
|
|
1944
|
-
wrap?: boolean;
|
|
1945
|
-
align?: "start" | "end" | "center" | "baseline";
|
|
1946
|
-
}
|
|
1947
|
-
declare var __VLS_1$18: {};
|
|
1948
|
-
type __VLS_Slots$26 = {} & {
|
|
1949
|
-
default?: (props: typeof __VLS_1$18) => any;
|
|
1950
|
-
};
|
|
1951
|
-
declare const __VLS_base$26: _$vue.DefineComponent<Props$33, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<Props$33> & Readonly<{}>, {
|
|
1952
|
-
size: number | string | [number | string, number | string];
|
|
1953
|
-
direction: Direction;
|
|
1954
|
-
wrap: boolean;
|
|
1955
|
-
align: "start" | "end" | "center" | "baseline";
|
|
1956
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
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;
|
|
1959
|
-
type __VLS_WithSlots$26<T, S> = T & {
|
|
1960
|
-
new (): {
|
|
1961
|
-
$slots: S;
|
|
1962
|
-
};
|
|
1963
|
-
};
|
|
1964
|
-
//#endregion
|
|
1965
|
-
//#region src/components/layout/divider/divider.vue.d.ts
|
|
1966
|
-
interface Props$32 {
|
|
1967
|
-
direction?: Direction;
|
|
1968
|
-
type?: "default" | "dashed" | "dotted";
|
|
1969
|
-
orientation?: "left" | "center" | "right";
|
|
1970
|
-
dashed?: boolean;
|
|
1971
|
-
variant?: "default" | "primary" | "success" | "warning" | "error";
|
|
1972
|
-
}
|
|
1973
|
-
declare var __VLS_1$17: {};
|
|
1974
|
-
type __VLS_Slots$25 = {} & {
|
|
1975
|
-
default?: (props: typeof __VLS_1$17) => any;
|
|
1976
|
-
};
|
|
1977
|
-
declare const __VLS_base$25: _$vue.DefineComponent<Props$32, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<Props$32> & Readonly<{}>, {
|
|
1978
|
-
type: "default" | "dashed" | "dotted";
|
|
1979
|
-
direction: Direction;
|
|
1980
|
-
orientation: "left" | "center" | "right";
|
|
1981
|
-
dashed: boolean;
|
|
1982
|
-
variant: "default" | "primary" | "success" | "warning" | "error";
|
|
1983
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
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;
|
|
1986
|
-
type __VLS_WithSlots$25<T, S> = T & {
|
|
1987
|
-
new (): {
|
|
1988
|
-
$slots: S;
|
|
1989
|
-
};
|
|
1990
|
-
};
|
|
1991
|
-
//#endregion
|
|
1992
|
-
//#region src/components/layout/layout/layout-types.d.ts
|
|
1993
|
-
/**
|
|
1994
|
-
* Layout Component Types
|
|
1995
|
-
* 布局组件类型定义
|
|
1996
|
-
*/
|
|
1997
|
-
/** 布局主题 */
|
|
1998
|
-
type LayoutTheme = "light" | "dark" | "corporate";
|
|
1999
|
-
/** 布局尺寸 */
|
|
2000
|
-
interface LayoutSize {
|
|
2001
|
-
siderWidth: number;
|
|
2002
|
-
siderCollapsedWidth: number;
|
|
2003
|
-
headerHeight: number;
|
|
2004
|
-
}
|
|
2005
|
-
/** 默认尺寸 */
|
|
2006
|
-
declare const DEFAULT_LAYOUT_SIZE: LayoutSize;
|
|
2007
|
-
/** 标签页项 */
|
|
2008
|
-
interface TabItem {
|
|
2009
|
-
/** 唯一标识 */
|
|
2010
|
-
key: string;
|
|
2011
|
-
/** 显示标题 */
|
|
2012
|
-
title: string;
|
|
2013
|
-
/** 是否可关闭 */
|
|
2014
|
-
closable?: boolean;
|
|
2015
|
-
/** 图标/favicon */
|
|
2016
|
-
icon?: string;
|
|
2017
|
-
/** 描述(鼠标悬停提示) */
|
|
2018
|
-
description?: string;
|
|
2019
|
-
}
|
|
2020
|
-
/** 菜单项 */
|
|
2021
|
-
interface MenuItem {
|
|
2022
|
-
/** 唯一标识 */
|
|
2023
|
-
key: string;
|
|
2024
|
-
/** 显示标题 */
|
|
2025
|
-
label: string;
|
|
2026
|
-
/** 图标 - 支持字符串、组件名或图标对象 */
|
|
2027
|
-
icon?: string | {
|
|
2028
|
-
component: string;
|
|
2029
|
-
props?: Record<string, unknown>;
|
|
2030
|
-
};
|
|
2031
|
-
/** 子菜单 */
|
|
2032
|
-
children?: MenuItem[];
|
|
2033
|
-
/** 是否禁用 */
|
|
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[];
|
|
2062
|
-
}
|
|
2063
|
-
/** 用户信息 */
|
|
2064
|
-
interface UserInfo {
|
|
2065
|
-
/** 用户名 */
|
|
2066
|
-
name: string;
|
|
2067
|
-
/** 头像 */
|
|
2068
|
-
avatar?: string;
|
|
2069
|
-
/** 角色 */
|
|
2070
|
-
role?: string;
|
|
2071
|
-
}
|
|
2072
|
-
/** 布局上下文 */
|
|
2073
|
-
interface LayoutContext {
|
|
2074
|
-
/** 是否折叠 */
|
|
2075
|
-
collapsed: boolean;
|
|
2076
|
-
/** 主题 */
|
|
2077
|
-
theme: LayoutTheme;
|
|
2078
|
-
/** 切换折叠 */
|
|
2079
|
-
toggleCollapsed: () => void;
|
|
2080
|
-
/** 设置折叠 */
|
|
2081
|
-
setCollapsed: (collapsed: boolean) => void;
|
|
2082
|
-
}
|
|
2083
|
-
//#endregion
|
|
2084
|
-
//#region src/components/layout/layout/layout.vue.d.ts
|
|
2085
|
-
interface Props$31 {
|
|
2086
|
-
/** 是否折叠侧边栏 */
|
|
2087
|
-
collapsed?: boolean;
|
|
2088
|
-
/** 侧边栏宽度 */
|
|
2089
|
-
siderWidth?: number;
|
|
2090
|
-
/** 折叠时侧边栏宽度 */
|
|
2091
|
-
siderCollapsedWidth?: number;
|
|
2092
|
-
/** 头部高度 */
|
|
2093
|
-
headerHeight?: number;
|
|
2094
|
-
/** 主题 */
|
|
2095
|
-
theme?: LayoutTheme;
|
|
2096
|
-
/** Logo */
|
|
2097
|
-
logo?: string;
|
|
2098
|
-
/** 系统标题 */
|
|
2099
|
-
title?: string;
|
|
2100
|
-
/** 菜单数据 */
|
|
2101
|
-
menuItems?: MenuItem[];
|
|
2102
|
-
/** 当前激活菜单 */
|
|
2103
|
-
activeKey?: string;
|
|
2104
|
-
/** 标签页数据 */
|
|
2105
|
-
tabs?: TabItem[];
|
|
2106
|
-
/** 标签页双向绑定(支持拖拽排序) */
|
|
2107
|
-
modelTabs?: TabItem[];
|
|
2108
|
-
/** 当前激活标签 */
|
|
2109
|
-
activeTab?: string;
|
|
2110
|
-
/** 用户信息 */
|
|
2111
|
-
userInfo?: UserInfo;
|
|
2112
|
-
/** 内容区内边距 */
|
|
2113
|
-
contentPadding?: number | string;
|
|
2114
|
-
/** 是否显示侧边栏 */
|
|
2115
|
-
hasSider?: boolean;
|
|
2116
|
-
/** 是否显示头部 */
|
|
2117
|
-
hasHeader?: boolean;
|
|
2118
|
-
/** 是否显示内容区 */
|
|
2119
|
-
hasContent?: boolean;
|
|
2120
|
-
/** 是否移动端模式(可选,不传则自动检测) */
|
|
2121
|
-
isMobile?: boolean;
|
|
2122
|
-
/** 菜单瀑布流模式 - 子菜单横向展开为网格 */
|
|
2123
|
-
waterfall?: boolean;
|
|
2124
|
-
/** 弹窗对齐方式: 'trigger' 对齐触发项, 'container' 对齐整个菜单容器 */
|
|
2125
|
-
popupAlign?: "trigger" | "container";
|
|
2126
|
-
/** 侧边栏底部支持文字 */
|
|
2127
|
-
footerText?: string;
|
|
2128
|
-
/** Header 是否固定定位 */
|
|
2129
|
-
headerFixed?: boolean;
|
|
2130
|
-
/** 是否允许侧边栏拖拽调整宽度 */
|
|
2131
|
-
siderResizable?: boolean;
|
|
2132
|
-
}
|
|
2133
|
-
declare var __VLS_12$1: {}, __VLS_15$1: {}, __VLS_34: {}, __VLS_42: {};
|
|
2134
|
-
type __VLS_Slots$24 = {} & {
|
|
2135
|
-
logo?: (props: typeof __VLS_12$1) => any;
|
|
2136
|
-
} & {
|
|
2137
|
-
sider?: (props: typeof __VLS_15$1) => any;
|
|
2138
|
-
} & {
|
|
2139
|
-
header?: (props: typeof __VLS_34) => any;
|
|
2140
|
-
} & {
|
|
2141
|
-
default?: (props: typeof __VLS_42) => any;
|
|
2142
|
-
};
|
|
2143
|
-
declare const __VLS_base$24: _$vue.DefineComponent<Props$31, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
2144
|
-
"update:collapsed": (value: boolean) => any;
|
|
2145
|
-
collapse: (collapsed: boolean) => any;
|
|
2146
|
-
"menu-click": (key: string) => any;
|
|
2147
|
-
"tab-change": (key: string) => any;
|
|
2148
|
-
"tab-close": (key: string) => any;
|
|
2149
|
-
"tab-add": () => any;
|
|
2150
|
-
"tab-reorder": (payload: {
|
|
2151
|
-
from: number;
|
|
2152
|
-
to: number;
|
|
2153
|
-
}) => any;
|
|
2154
|
-
"update:modelTabs": (value: TabItem[]) => any;
|
|
2155
|
-
"language-change": (lang: string) => any;
|
|
2156
|
-
"user-command": (command: string) => any;
|
|
2157
|
-
"settings-click": () => any;
|
|
2158
|
-
"update:theme": (value: LayoutTheme) => any;
|
|
2159
|
-
"theme-change": (theme: LayoutTheme) => any;
|
|
2160
|
-
"update:siderWidth": (value: number) => any;
|
|
2161
|
-
"sider-width-change": (width: number) => any;
|
|
2162
|
-
"update:headerHeight": (value: number) => any;
|
|
2163
|
-
"header-height-change": (height: number) => any;
|
|
2164
|
-
}, string, _$vue.PublicProps, Readonly<Props$31> & Readonly<{
|
|
2165
|
-
"onUpdate:collapsed"?: ((value: boolean) => any) | undefined;
|
|
2166
|
-
onCollapse?: ((collapsed: boolean) => any) | undefined;
|
|
2167
|
-
"onMenu-click"?: ((key: string) => any) | undefined;
|
|
2168
|
-
"onTab-change"?: ((key: string) => any) | undefined;
|
|
2169
|
-
"onTab-close"?: ((key: string) => any) | undefined;
|
|
2170
|
-
"onTab-add"?: (() => any) | undefined;
|
|
2171
|
-
"onTab-reorder"?: ((payload: {
|
|
2172
|
-
from: number;
|
|
2173
|
-
to: number;
|
|
2174
|
-
}) => any) | undefined;
|
|
2175
|
-
"onUpdate:modelTabs"?: ((value: TabItem[]) => any) | undefined;
|
|
2176
|
-
"onLanguage-change"?: ((lang: string) => any) | undefined;
|
|
2177
|
-
"onUser-command"?: ((command: string) => any) | undefined;
|
|
2178
|
-
"onSettings-click"?: (() => any) | undefined;
|
|
2179
|
-
"onUpdate:theme"?: ((value: LayoutTheme) => any) | undefined;
|
|
2180
|
-
"onTheme-change"?: ((theme: LayoutTheme) => any) | undefined;
|
|
2181
|
-
"onUpdate:siderWidth"?: ((value: number) => any) | undefined;
|
|
2182
|
-
"onSider-width-change"?: ((width: number) => any) | undefined;
|
|
2183
|
-
"onUpdate:headerHeight"?: ((value: number) => any) | undefined;
|
|
2184
|
-
"onHeader-height-change"?: ((height: number) => any) | undefined;
|
|
2185
|
-
}>, {
|
|
2186
|
-
theme: LayoutTheme;
|
|
2187
|
-
collapsed: boolean;
|
|
2188
|
-
siderWidth: number;
|
|
2189
|
-
siderCollapsedWidth: number;
|
|
2190
|
-
headerHeight: number;
|
|
2191
|
-
logo: string;
|
|
2192
|
-
title: string;
|
|
2193
|
-
menuItems: MenuItem[];
|
|
2194
|
-
activeKey: string;
|
|
2195
|
-
tabs: TabItem[];
|
|
2196
|
-
modelTabs: TabItem[];
|
|
2197
|
-
activeTab: string;
|
|
2198
|
-
contentPadding: number | string;
|
|
2199
|
-
hasSider: boolean;
|
|
2200
|
-
hasHeader: boolean;
|
|
2201
|
-
hasContent: boolean;
|
|
2202
|
-
waterfall: boolean;
|
|
2203
|
-
popupAlign: "trigger" | "container";
|
|
2204
|
-
footerText: string;
|
|
2205
|
-
headerFixed: boolean;
|
|
2206
|
-
siderResizable: boolean;
|
|
2207
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
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;
|
|
2210
|
-
type __VLS_WithSlots$24<T, S> = T & {
|
|
2211
|
-
new (): {
|
|
2212
|
-
$slots: S;
|
|
2213
|
-
};
|
|
2214
|
-
};
|
|
2215
|
-
//#endregion
|
|
2216
|
-
//#region src/components/layout/layout/layout-sidebar.vue.d.ts
|
|
2217
|
-
interface Props$30 {
|
|
2218
|
-
/** Logo 图片 */
|
|
2219
|
-
logo?: string;
|
|
2220
|
-
/** 标题 */
|
|
2221
|
-
title?: string;
|
|
2222
|
-
/** 是否折叠 */
|
|
2223
|
-
collapsed?: boolean;
|
|
2224
|
-
/** 主题 */
|
|
2225
|
-
theme?: LayoutTheme;
|
|
2226
|
-
/** 菜单数据 */
|
|
2227
|
-
menuItems?: MenuItem[];
|
|
2228
|
-
/** 当前激活菜单 */
|
|
2229
|
-
activeKey?: string;
|
|
2230
|
-
/** 折叠时的宽度 */
|
|
2231
|
-
collapsedWidth?: number;
|
|
2232
|
-
/** 展开时的宽度 */
|
|
2233
|
-
expandedWidth?: number;
|
|
2234
|
-
/** 最小宽度 */
|
|
2235
|
-
minWidth?: number;
|
|
2236
|
-
/** 最大宽度 */
|
|
2237
|
-
maxWidth?: number;
|
|
2238
|
-
/** 是否允许拖拽调整宽度 */
|
|
2239
|
-
resizable?: boolean;
|
|
2240
|
-
/** 是否移动端模式 */
|
|
2241
|
-
isMobile?: boolean;
|
|
2242
|
-
/** 菜单瀑布流模式 - 子菜单横向展开为网格 */
|
|
2243
|
-
waterfall?: boolean;
|
|
2244
|
-
/** 弹窗对齐方式: 'trigger' 对齐触发项, 'container' 对齐整个菜单容器 */
|
|
2245
|
-
popupAlign?: "trigger" | "container";
|
|
2246
|
-
/** 底部支持文字 */
|
|
2247
|
-
footerText?: string;
|
|
2248
|
-
/** 是否显示搜索框 */
|
|
2249
|
-
searchable?: boolean;
|
|
2250
|
-
/** 当前用户角色 - 用于权限过滤 */
|
|
2251
|
-
roles?: string | string[];
|
|
2252
|
-
}
|
|
2253
|
-
declare var __VLS_1$16: {}, __VLS_9$2: {};
|
|
2254
|
-
type __VLS_Slots$23 = {} & {
|
|
2255
|
-
logo?: (props: typeof __VLS_1$16) => any;
|
|
2256
|
-
} & {
|
|
2257
|
-
sider?: (props: typeof __VLS_9$2) => any;
|
|
2258
|
-
};
|
|
2259
|
-
declare const __VLS_base$23: _$vue.DefineComponent<Props$30, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
2260
|
-
collapse: (collapsed: boolean) => any;
|
|
2261
|
-
"menu-click": (key: string, item: MenuItem) => any;
|
|
2262
|
-
"width-change": (width: number) => any;
|
|
2263
|
-
"path-change": (path: string[]) => any;
|
|
2264
|
-
}, string, _$vue.PublicProps, Readonly<Props$30> & Readonly<{
|
|
2265
|
-
onCollapse?: ((collapsed: boolean) => any) | undefined;
|
|
2266
|
-
"onMenu-click"?: ((key: string, item: MenuItem) => any) | undefined;
|
|
2267
|
-
"onWidth-change"?: ((width: number) => any) | undefined;
|
|
2268
|
-
"onPath-change"?: ((path: string[]) => any) | undefined;
|
|
2269
|
-
}>, {
|
|
2270
|
-
theme: LayoutTheme;
|
|
2271
|
-
collapsed: boolean;
|
|
2272
|
-
logo: string;
|
|
2273
|
-
title: string;
|
|
2274
|
-
menuItems: MenuItem[];
|
|
2275
|
-
activeKey: string;
|
|
2276
|
-
waterfall: boolean;
|
|
2277
|
-
popupAlign: "trigger" | "container";
|
|
2278
|
-
footerText: string;
|
|
2279
|
-
collapsedWidth: number;
|
|
2280
|
-
expandedWidth: number;
|
|
2281
|
-
minWidth: number;
|
|
2282
|
-
maxWidth: number;
|
|
2283
|
-
resizable: boolean;
|
|
2284
|
-
searchable: boolean;
|
|
2285
|
-
roles: string | string[];
|
|
2286
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
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;
|
|
2289
|
-
type __VLS_WithSlots$23<T, S> = T & {
|
|
2290
|
-
new (): {
|
|
2291
|
-
$slots: S;
|
|
2292
|
-
};
|
|
2293
|
-
};
|
|
2294
|
-
//#endregion
|
|
2295
|
-
//#region src/components/layout/layout/layout-header.vue.d.ts
|
|
2296
|
-
interface Props$29 {
|
|
2297
|
-
/** 主题 */
|
|
2298
|
-
theme?: LayoutTheme;
|
|
2299
|
-
/** 标签页数据 */
|
|
2300
|
-
tabs?: TabItem[];
|
|
2301
|
-
/** 标签页双向绑定(支持拖拽排序) */
|
|
2302
|
-
modelTabs?: TabItem[];
|
|
2303
|
-
/** 当前激活标签 */
|
|
2304
|
-
activeTab?: string;
|
|
2305
|
-
/** 用户信息 */
|
|
2306
|
-
userInfo?: UserInfo;
|
|
2307
|
-
/** 侧边栏宽度(用于计算 margin) */
|
|
2308
|
-
siderWidth?: number;
|
|
2309
|
-
/** 通知数量 */
|
|
2310
|
-
notificationCount?: number;
|
|
2311
|
-
/** 当前语言 */
|
|
2312
|
-
currentLanguage?: string;
|
|
2313
|
-
/** Header 是否固定定位 */
|
|
2314
|
-
fixed?: boolean;
|
|
2315
|
-
/** 头部高度 */
|
|
2316
|
-
headerHeight?: number;
|
|
2317
|
-
}
|
|
2318
|
-
declare var __VLS_1$15: {}, __VLS_13: {}, __VLS_23$1: {}, __VLS_31: {}, __VLS_47: {};
|
|
2319
|
-
type __VLS_Slots$22 = {} & {
|
|
2320
|
-
tabs?: (props: typeof __VLS_1$15) => any;
|
|
2321
|
-
} & {
|
|
2322
|
-
language?: (props: typeof __VLS_13) => any;
|
|
2323
|
-
} & {
|
|
2324
|
-
notification?: (props: typeof __VLS_23$1) => any;
|
|
2325
|
-
} & {
|
|
2326
|
-
user?: (props: typeof __VLS_31) => any;
|
|
2327
|
-
} & {
|
|
2328
|
-
settings?: (props: typeof __VLS_47) => any;
|
|
2329
|
-
};
|
|
2330
|
-
declare const __VLS_base$22: _$vue.DefineComponent<Props$29, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
2331
|
-
"tab-change": (key: string) => any;
|
|
2332
|
-
"tab-close": (key: string) => any;
|
|
2333
|
-
"tab-add": () => any;
|
|
2334
|
-
"tab-reorder": (payload: {
|
|
2335
|
-
from: number;
|
|
2336
|
-
to: number;
|
|
2337
|
-
}) => any;
|
|
2338
|
-
"update:modelTabs": (value: TabItem[]) => any;
|
|
2339
|
-
"language-change": (lang: string) => any;
|
|
2340
|
-
"user-command": (command: string) => any;
|
|
2341
|
-
"settings-click": () => any;
|
|
2342
|
-
"notification-click": () => any;
|
|
2343
|
-
"toggle-sider": () => any;
|
|
2344
|
-
}, string, _$vue.PublicProps, Readonly<Props$29> & Readonly<{
|
|
2345
|
-
"onTab-change"?: ((key: string) => any) | undefined;
|
|
2346
|
-
"onTab-close"?: ((key: string) => any) | undefined;
|
|
2347
|
-
"onTab-add"?: (() => any) | undefined;
|
|
2348
|
-
"onTab-reorder"?: ((payload: {
|
|
2349
|
-
from: number;
|
|
2350
|
-
to: number;
|
|
2351
|
-
}) => any) | undefined;
|
|
2352
|
-
"onUpdate:modelTabs"?: ((value: TabItem[]) => any) | undefined;
|
|
2353
|
-
"onLanguage-change"?: ((lang: string) => any) | undefined;
|
|
2354
|
-
"onUser-command"?: ((command: string) => any) | undefined;
|
|
2355
|
-
"onSettings-click"?: (() => any) | undefined;
|
|
2356
|
-
"onNotification-click"?: (() => any) | undefined;
|
|
2357
|
-
"onToggle-sider"?: (() => any) | undefined;
|
|
2358
|
-
}>, {
|
|
2359
|
-
theme: LayoutTheme;
|
|
2360
|
-
siderWidth: number;
|
|
2361
|
-
headerHeight: number;
|
|
2362
|
-
tabs: TabItem[];
|
|
2363
|
-
modelTabs: TabItem[];
|
|
2364
|
-
activeTab: string;
|
|
2365
|
-
notificationCount: number;
|
|
2366
|
-
currentLanguage: string;
|
|
2367
|
-
fixed: boolean;
|
|
2368
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
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;
|
|
2371
|
-
type __VLS_WithSlots$22<T, S> = T & {
|
|
2372
|
-
new (): {
|
|
2373
|
-
$slots: S;
|
|
2374
|
-
};
|
|
2375
|
-
};
|
|
2376
|
-
//#endregion
|
|
2377
|
-
//#region src/components/layout/layout/layout-content.vue.d.ts
|
|
2378
|
-
interface Props$28 {
|
|
2379
|
-
/** 自定义样式 */
|
|
2380
|
-
style?: Record<string, string | number>;
|
|
2381
|
-
}
|
|
2382
|
-
declare var __VLS_1$14: {};
|
|
2383
|
-
type __VLS_Slots$21 = {} & {
|
|
2384
|
-
default?: (props: typeof __VLS_1$14) => any;
|
|
2385
|
-
};
|
|
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;
|
|
2389
|
-
type __VLS_WithSlots$21<T, S> = T & {
|
|
2390
|
-
new (): {
|
|
2391
|
-
$slots: S;
|
|
2392
|
-
};
|
|
2393
|
-
};
|
|
2394
|
-
//#endregion
|
|
2395
|
-
//#region src/components/data-display/card/card.vue.d.ts
|
|
2396
|
-
interface Props$27 {
|
|
2397
|
-
title?: string;
|
|
2398
|
-
bordered?: boolean;
|
|
2399
|
-
shadow?: "always" | "hover" | "never";
|
|
2400
|
-
padding?: "xs" | "sm" | "md" | "lg" | "none";
|
|
2401
|
-
}
|
|
2402
|
-
declare var __VLS_1$13: {}, __VLS_3$7: {}, __VLS_5$1: {};
|
|
2403
|
-
type __VLS_Slots$20 = {} & {
|
|
2404
|
-
header?: (props: typeof __VLS_1$13) => any;
|
|
2405
|
-
} & {
|
|
2406
|
-
default?: (props: typeof __VLS_3$7) => any;
|
|
2407
|
-
} & {
|
|
2408
|
-
footer?: (props: typeof __VLS_5$1) => any;
|
|
2409
|
-
};
|
|
2410
|
-
declare const __VLS_base$20: _$vue.DefineComponent<Props$27, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<Props$27> & Readonly<{}>, {
|
|
2411
|
-
title: string;
|
|
2412
|
-
bordered: boolean;
|
|
2413
|
-
shadow: "always" | "hover" | "never";
|
|
2414
|
-
padding: "xs" | "sm" | "md" | "lg" | "none";
|
|
2415
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
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;
|
|
2418
|
-
type __VLS_WithSlots$20<T, S> = T & {
|
|
2419
|
-
new (): {
|
|
2420
|
-
$slots: S;
|
|
2421
|
-
};
|
|
2422
|
-
};
|
|
2423
|
-
//#endregion
|
|
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
|
-
}
|
|
2430
|
-
interface Column {
|
|
2431
|
-
title: string;
|
|
2432
|
-
key: string;
|
|
2433
|
-
width?: string;
|
|
2434
|
-
minWidth?: string;
|
|
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;
|
|
2442
|
-
align?: "left" | "center" | "right";
|
|
2443
|
-
fixed?: "left" | "right";
|
|
2444
|
-
/** Show ellipsis with tooltip when content overflows */
|
|
2445
|
-
showOverflowTooltip?: boolean;
|
|
2446
|
-
}
|
|
2447
|
-
interface Props$26 {
|
|
2448
|
-
dataSource?: Record<string, unknown>[];
|
|
2449
|
-
columns?: Column[];
|
|
2450
|
-
loading?: boolean;
|
|
2451
|
-
loadingText?: string;
|
|
2452
|
-
/** Show skeleton placeholder while loading */
|
|
2453
|
-
skeleton?: boolean;
|
|
2454
|
-
/** Number of skeleton rows to display */
|
|
2455
|
-
skeletonRows?: number;
|
|
2456
|
-
pagination?: boolean;
|
|
2457
|
-
pageSize?: number;
|
|
2458
|
-
hover?: boolean;
|
|
2459
|
-
stripe?: boolean;
|
|
2460
|
-
bordered?: boolean;
|
|
2461
|
-
emptyText?: string;
|
|
2462
|
-
height?: string | number;
|
|
2463
|
-
stickyHeader?: boolean;
|
|
2464
|
-
expandable?: boolean;
|
|
2465
|
-
virtualScroll?: boolean;
|
|
2466
|
-
rowHeight?: number;
|
|
2467
|
-
overscan?: number;
|
|
2468
|
-
/** Global: show ellipsis with tooltip for all cells */
|
|
2469
|
-
showOverflowTooltip?: boolean;
|
|
2470
|
-
/** Enable export toolbar */
|
|
2471
|
-
exportable?: boolean;
|
|
2472
|
-
/** Export filename prefix */
|
|
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;
|
|
2480
|
-
}
|
|
2481
|
-
declare function exportToCSV(filename?: string): void;
|
|
2482
|
-
declare function exportToExcel(filename?: string): void;
|
|
2483
|
-
declare function exportToJSON(filename?: string): void;
|
|
2484
|
-
declare var __VLS_7$1: string, __VLS_8$1: {
|
|
2485
|
-
row: Record<string, unknown> | {
|
|
2486
|
-
__virtualIndex: number;
|
|
2487
|
-
};
|
|
2488
|
-
column: Column;
|
|
2489
|
-
index: number;
|
|
2490
|
-
}, __VLS_10$1: {
|
|
2491
|
-
row: Record<string, unknown> | {
|
|
2492
|
-
__virtualIndex: number;
|
|
2493
|
-
};
|
|
2494
|
-
index: number;
|
|
2495
|
-
}, __VLS_12: {}, __VLS_20: string, __VLS_21: {
|
|
2496
|
-
row: Record<string, unknown>;
|
|
2497
|
-
column: Column;
|
|
2498
|
-
index: number;
|
|
2499
|
-
}, __VLS_23: {
|
|
2500
|
-
row: Record<string, unknown>;
|
|
2501
|
-
index: number;
|
|
2502
|
-
}, __VLS_25: {};
|
|
2503
|
-
type __VLS_Slots$19 = {} & { [K in NonNullable<typeof __VLS_7$1>]?: (props: typeof __VLS_8$1) => any } & { [K in NonNullable<typeof __VLS_20>]?: (props: typeof __VLS_21) => any } & {
|
|
2504
|
-
expand?: (props: typeof __VLS_10$1) => any;
|
|
2505
|
-
} & {
|
|
2506
|
-
empty?: (props: typeof __VLS_12) => any;
|
|
2507
|
-
} & {
|
|
2508
|
-
expand?: (props: typeof __VLS_23) => any;
|
|
2509
|
-
} & {
|
|
2510
|
-
empty?: (props: typeof __VLS_25) => any;
|
|
2511
|
-
};
|
|
2512
|
-
declare const __VLS_base$19: _$vue.DefineComponent<Props$26, {
|
|
2513
|
-
exportToCSV: typeof exportToCSV;
|
|
2514
|
-
exportToExcel: typeof exportToExcel;
|
|
2515
|
-
exportToJSON: typeof exportToJSON;
|
|
2516
|
-
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
2517
|
-
sort: (key: string, order: string) => any;
|
|
2518
|
-
"page-change": (page: number) => any;
|
|
2519
|
-
"sort-change": (sortStates: SortState[]) => any;
|
|
2520
|
-
"row-click": (row: Record<string, unknown>) => any;
|
|
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<{
|
|
2526
|
-
onSort?: ((key: string, order: string) => any) | undefined;
|
|
2527
|
-
"onPage-change"?: ((page: number) => any) | undefined;
|
|
2528
|
-
"onSort-change"?: ((sortStates: SortState[]) => any) | undefined;
|
|
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;
|
|
2534
|
-
}>, {
|
|
2535
|
-
hover: boolean;
|
|
2536
|
-
loading: boolean;
|
|
2537
|
-
pageSize: number;
|
|
2538
|
-
total: number;
|
|
2539
|
-
dataSource: Record<string, unknown>[];
|
|
2540
|
-
columns: Column[];
|
|
2541
|
-
loadingText: string;
|
|
2542
|
-
skeleton: boolean;
|
|
2543
|
-
skeletonRows: number;
|
|
2544
|
-
pagination: boolean;
|
|
2545
|
-
stripe: boolean;
|
|
2546
|
-
bordered: boolean;
|
|
2547
|
-
emptyText: string;
|
|
2548
|
-
height: string | number;
|
|
2549
|
-
stickyHeader: boolean;
|
|
2550
|
-
expandable: boolean;
|
|
2551
|
-
virtualScroll: boolean;
|
|
2552
|
-
rowHeight: number;
|
|
2553
|
-
overscan: number;
|
|
2554
|
-
showOverflowTooltip: boolean;
|
|
2555
|
-
exportable: boolean;
|
|
2556
|
-
exportFilename: string;
|
|
2557
|
-
remote: boolean;
|
|
2558
|
-
loadMore: boolean;
|
|
2559
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
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;
|
|
2562
|
-
type __VLS_WithSlots$19<T, S> = T & {
|
|
2563
|
-
new (): {
|
|
2564
|
-
$slots: S;
|
|
2565
|
-
};
|
|
2566
|
-
};
|
|
2567
|
-
//#endregion
|
|
2568
|
-
//#region src/components/data-display/progress/progress.vue.d.ts
|
|
2569
|
-
interface Props$25 {
|
|
2570
|
-
percent?: number;
|
|
2571
|
-
type?: "line" | "circle" | "dashboard";
|
|
2572
|
-
size?: ComponentSize;
|
|
2573
|
-
status?: "normal" | "success" | "exception";
|
|
2574
|
-
showInfo?: boolean;
|
|
2575
|
-
strokeWidth?: number;
|
|
2576
|
-
strokeColor?: string;
|
|
2577
|
-
}
|
|
2578
|
-
declare var __VLS_1$12: {
|
|
2579
|
-
percent: number;
|
|
2580
|
-
}, __VLS_3$6: {
|
|
2581
|
-
percent: number;
|
|
2582
|
-
};
|
|
2583
|
-
type __VLS_Slots$18 = {} & {
|
|
2584
|
-
format?: (props: typeof __VLS_1$12) => any;
|
|
2585
|
-
} & {
|
|
2586
|
-
format?: (props: typeof __VLS_3$6) => any;
|
|
2587
|
-
};
|
|
2588
|
-
declare const __VLS_base$18: _$vue.DefineComponent<Props$25, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<Props$25> & Readonly<{}>, {
|
|
2589
|
-
size: ComponentSize;
|
|
2590
|
-
type: "line" | "circle" | "dashboard";
|
|
2591
|
-
percent: number;
|
|
2592
|
-
status: "normal" | "success" | "exception";
|
|
2593
|
-
showInfo: boolean;
|
|
2594
|
-
strokeWidth: number;
|
|
2595
|
-
strokeColor: string;
|
|
2596
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
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;
|
|
2599
|
-
type __VLS_WithSlots$18<T, S> = T & {
|
|
2600
|
-
new (): {
|
|
2601
|
-
$slots: S;
|
|
2602
|
-
};
|
|
2603
|
-
};
|
|
2604
|
-
//#endregion
|
|
2605
|
-
//#region src/components/data-display/statistic/statistic.vue.d.ts
|
|
2606
|
-
interface Props$24 {
|
|
2607
|
-
value?: string | number;
|
|
2608
|
-
title?: string;
|
|
2609
|
-
prefix?: string;
|
|
2610
|
-
suffix?: string;
|
|
2611
|
-
precision?: number;
|
|
2612
|
-
decimalSeparator?: string;
|
|
2613
|
-
groupSeparator?: string;
|
|
2614
|
-
valueStyle?: string;
|
|
2615
|
-
animation?: boolean;
|
|
2616
|
-
animationDuration?: number;
|
|
2617
|
-
}
|
|
2618
|
-
declare var __VLS_1$11: {}, __VLS_3$5: {};
|
|
2619
|
-
type __VLS_Slots$17 = {} & {
|
|
2620
|
-
prefix?: (props: typeof __VLS_1$11) => any;
|
|
2621
|
-
} & {
|
|
2622
|
-
suffix?: (props: typeof __VLS_3$5) => any;
|
|
2623
|
-
};
|
|
2624
|
-
declare const __VLS_base$17: _$vue.DefineComponent<Props$24, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<Props$24> & Readonly<{}>, {
|
|
2625
|
-
title: string;
|
|
2626
|
-
value: string | number;
|
|
2627
|
-
prefix: string;
|
|
2628
|
-
suffix: string;
|
|
2629
|
-
precision: number;
|
|
2630
|
-
decimalSeparator: string;
|
|
2631
|
-
groupSeparator: string;
|
|
2632
|
-
valueStyle: string;
|
|
2633
|
-
animation: boolean;
|
|
2634
|
-
animationDuration: number;
|
|
2635
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
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;
|
|
2638
|
-
type __VLS_WithSlots$17<T, S> = T & {
|
|
2639
|
-
new (): {
|
|
2640
|
-
$slots: S;
|
|
2641
|
-
};
|
|
2642
|
-
};
|
|
2643
|
-
//#endregion
|
|
2644
|
-
//#region src/components/data-display/collapse/collapse.vue.d.ts
|
|
2645
|
-
interface CollapseItem {
|
|
2646
|
-
key: string;
|
|
2647
|
-
title: string;
|
|
2648
|
-
content?: string;
|
|
2649
|
-
disabled?: boolean;
|
|
2650
|
-
}
|
|
2651
|
-
interface Props$23 {
|
|
2652
|
-
items?: CollapseItem[];
|
|
2653
|
-
accordion?: boolean;
|
|
2654
|
-
modelValue?: string[];
|
|
2655
|
-
}
|
|
2656
|
-
declare var __VLS_8: string, __VLS_9$1: {};
|
|
2657
|
-
type __VLS_Slots$16 = {} & { [K in NonNullable<typeof __VLS_8>]?: (props: typeof __VLS_9$1) => any };
|
|
2658
|
-
declare const __VLS_base$16: _$vue.DefineComponent<Props$23, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
2659
|
-
"update:modelValue": (value: string[]) => any;
|
|
2660
|
-
change: (value: string[]) => any;
|
|
2661
|
-
}, string, _$vue.PublicProps, Readonly<Props$23> & Readonly<{
|
|
2662
|
-
"onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
|
|
2663
|
-
onChange?: ((value: string[]) => any) | undefined;
|
|
2664
|
-
}>, {
|
|
2665
|
-
modelValue: string[];
|
|
2666
|
-
items: CollapseItem[];
|
|
2667
|
-
accordion: boolean;
|
|
2668
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
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;
|
|
2671
|
-
type __VLS_WithSlots$16<T, S> = T & {
|
|
2672
|
-
new (): {
|
|
2673
|
-
$slots: S;
|
|
2674
|
-
};
|
|
2675
|
-
};
|
|
2676
|
-
//#endregion
|
|
2677
|
-
//#region src/components/data-display/timeline/timeline.vue.d.ts
|
|
2678
|
-
interface TimelineItem {
|
|
2679
|
-
label?: string;
|
|
2680
|
-
description?: string;
|
|
2681
|
-
content?: string;
|
|
2682
|
-
dot?: string;
|
|
2683
|
-
color?: string;
|
|
2684
|
-
}
|
|
2685
|
-
interface Props$22 {
|
|
2686
|
-
items?: TimelineItem[];
|
|
2687
|
-
type?: "default" | "alternate";
|
|
2688
|
-
mode?: "left" | "alternate";
|
|
2689
|
-
color?: string;
|
|
2690
|
-
}
|
|
2691
|
-
declare var __VLS_2: `dot-${number}`, __VLS_3$4: {}, __VLS_6$1: `content-${number}`, __VLS_7: {};
|
|
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 };
|
|
2693
|
-
declare const __VLS_base$15: _$vue.DefineComponent<Props$22, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<Props$22> & Readonly<{}>, {
|
|
2694
|
-
type: "default" | "alternate";
|
|
2695
|
-
color: string;
|
|
2696
|
-
items: TimelineItem[];
|
|
2697
|
-
mode: "left" | "alternate";
|
|
2698
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
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;
|
|
2701
|
-
type __VLS_WithSlots$15<T, S> = T & {
|
|
2702
|
-
new (): {
|
|
2703
|
-
$slots: S;
|
|
2704
|
-
};
|
|
2705
|
-
};
|
|
2706
|
-
//#endregion
|
|
2707
|
-
//#region src/components/data-display/tree/tree.vue.d.ts
|
|
2708
|
-
interface TreeNodeType {
|
|
2709
|
-
key: string;
|
|
2710
|
-
title: string;
|
|
2711
|
-
children?: TreeNodeType[];
|
|
2712
|
-
disabled?: boolean;
|
|
2713
|
-
isLeaf?: boolean;
|
|
2714
|
-
loading?: boolean;
|
|
2715
|
-
}
|
|
2716
|
-
interface Props$21 {
|
|
2717
|
-
nodes?: TreeNodeType[];
|
|
2718
|
-
showLine?: boolean;
|
|
2719
|
-
selectable?: boolean;
|
|
2720
|
-
showCheckbox?: boolean;
|
|
2721
|
-
defaultExpandedKeys?: string[];
|
|
2722
|
-
defaultCheckedKeys?: string[];
|
|
2723
|
-
loadFunction?: (node: TreeNodeType) => Promise<TreeNodeType[]>;
|
|
2724
|
-
draggable?: boolean;
|
|
2725
|
-
/** Enable virtual scroll */
|
|
2726
|
-
virtualScroll?: boolean;
|
|
2727
|
-
/** Container height for virtual scroll */
|
|
2728
|
-
height?: string | number;
|
|
2729
|
-
/** Row height in pixels */
|
|
2730
|
-
rowHeight?: number;
|
|
2731
|
-
/** Overscan row count */
|
|
2732
|
-
overscan?: number;
|
|
2733
|
-
}
|
|
2734
|
-
declare const __VLS_export$21: _$vue.DefineComponent<Props$21, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
2735
|
-
select: (node: TreeNodeType) => any;
|
|
2736
|
-
expand: (node: TreeNodeType) => any;
|
|
2737
|
-
check: (checkedKeys: string[]) => any;
|
|
2738
|
-
"node-drop": (draggedNode: TreeNodeType, targetNode: TreeNodeType) => any;
|
|
2739
|
-
}, string, _$vue.PublicProps, Readonly<Props$21> & Readonly<{
|
|
2740
|
-
onSelect?: ((node: TreeNodeType) => any) | undefined;
|
|
2741
|
-
onExpand?: ((node: TreeNodeType) => any) | undefined;
|
|
2742
|
-
onCheck?: ((checkedKeys: string[]) => any) | undefined;
|
|
2743
|
-
"onNode-drop"?: ((draggedNode: TreeNodeType, targetNode: TreeNodeType) => any) | undefined;
|
|
2744
|
-
}>, {
|
|
2745
|
-
height: string | number;
|
|
2746
|
-
virtualScroll: boolean;
|
|
2747
|
-
rowHeight: number;
|
|
2748
|
-
overscan: number;
|
|
2749
|
-
nodes: TreeNodeType[];
|
|
2750
|
-
showLine: boolean;
|
|
2751
|
-
selectable: boolean;
|
|
2752
|
-
showCheckbox: boolean;
|
|
2753
|
-
defaultExpandedKeys: string[];
|
|
2754
|
-
defaultCheckedKeys: string[];
|
|
2755
|
-
loadFunction: (node: TreeNodeType) => Promise<TreeNodeType[]>;
|
|
2756
|
-
draggable: boolean;
|
|
2757
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
2758
|
-
declare const _default$63: typeof __VLS_export$21;
|
|
2759
|
-
//#endregion
|
|
2760
|
-
//#region src/components/data-display/list/list.vue.d.ts
|
|
2761
|
-
interface Props$20 {
|
|
2762
|
-
dataSource?: Record<string, unknown>[];
|
|
2763
|
-
header?: string;
|
|
2764
|
-
footer?: string;
|
|
2765
|
-
bordered?: boolean;
|
|
2766
|
-
split?: boolean;
|
|
2767
|
-
emptyText?: string;
|
|
2768
|
-
/** Show skeleton placeholder while loading */
|
|
2769
|
-
skeleton?: boolean;
|
|
2770
|
-
/** Number of skeleton rows */
|
|
2771
|
-
skeletonRows?: number;
|
|
2772
|
-
}
|
|
2773
|
-
declare var __VLS_1$10: {}, __VLS_3$3: {
|
|
2774
|
-
item: Record<string, unknown>;
|
|
2775
|
-
index: number;
|
|
2776
|
-
}, __VLS_10: {};
|
|
2777
|
-
type __VLS_Slots$14 = {} & {
|
|
2778
|
-
header?: (props: typeof __VLS_1$10) => any;
|
|
2779
|
-
} & {
|
|
2780
|
-
default?: (props: typeof __VLS_3$3) => any;
|
|
2781
|
-
} & {
|
|
2782
|
-
footer?: (props: typeof __VLS_10) => any;
|
|
2783
|
-
};
|
|
2784
|
-
declare const __VLS_base$14: _$vue.DefineComponent<Props$20, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
2785
|
-
"item-click": (item: Record<string, unknown>, index: number) => any;
|
|
2786
|
-
}, string, _$vue.PublicProps, Readonly<Props$20> & Readonly<{
|
|
2787
|
-
"onItem-click"?: ((item: Record<string, unknown>, index: number) => any) | undefined;
|
|
2788
|
-
}>, {
|
|
2789
|
-
dataSource: Record<string, unknown>[];
|
|
2790
|
-
skeleton: boolean;
|
|
2791
|
-
skeletonRows: number;
|
|
2792
|
-
bordered: boolean;
|
|
2793
|
-
emptyText: string;
|
|
2794
|
-
split: boolean;
|
|
2795
|
-
header: string;
|
|
2796
|
-
footer: string;
|
|
2797
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
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;
|
|
2800
|
-
type __VLS_WithSlots$14<T, S> = T & {
|
|
2801
|
-
new (): {
|
|
2802
|
-
$slots: S;
|
|
2803
|
-
};
|
|
2804
|
-
};
|
|
2805
|
-
//#endregion
|
|
2806
|
-
//#region src/components/data-display/empty/empty.vue.d.ts
|
|
2807
|
-
interface Props$19 {
|
|
2808
|
-
description?: string;
|
|
2809
|
-
imageStyle?: string;
|
|
2810
|
-
}
|
|
2811
|
-
declare var __VLS_1$9: {}, __VLS_3$2: {};
|
|
2812
|
-
type __VLS_Slots$13 = {} & {
|
|
2813
|
-
image?: (props: typeof __VLS_1$9) => any;
|
|
2814
|
-
} & {
|
|
2815
|
-
default?: (props: typeof __VLS_3$2) => any;
|
|
2816
|
-
};
|
|
2817
|
-
declare const __VLS_base$13: _$vue.DefineComponent<Props$19, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<Props$19> & Readonly<{}>, {
|
|
2818
|
-
imageStyle: string;
|
|
2819
|
-
description: string;
|
|
2820
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
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;
|
|
2823
|
-
type __VLS_WithSlots$13<T, S> = T & {
|
|
2824
|
-
new (): {
|
|
2825
|
-
$slots: S;
|
|
2826
|
-
};
|
|
2827
|
-
};
|
|
2828
|
-
//#endregion
|
|
2829
|
-
//#region src/components/data-display/image/image.vue.d.ts
|
|
2830
|
-
interface Props$18 {
|
|
2831
|
-
src?: string;
|
|
2832
|
-
alt?: string;
|
|
2833
|
-
width?: string | number;
|
|
2834
|
-
height?: string | number;
|
|
2835
|
-
fit?: "contain" | "cover" | "fill" | "none" | "scale-down";
|
|
2836
|
-
rounded?: boolean;
|
|
2837
|
-
preview?: boolean;
|
|
2838
|
-
loading?: boolean;
|
|
2839
|
-
}
|
|
2840
|
-
declare var __VLS_6: {};
|
|
2841
|
-
type __VLS_Slots$12 = {} & {
|
|
2842
|
-
fallback?: (props: typeof __VLS_6) => any;
|
|
2843
|
-
};
|
|
2844
|
-
declare const __VLS_base$12: _$vue.DefineComponent<Props$18, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
2845
|
-
error: (event: Event) => any;
|
|
2846
|
-
click: (event: MouseEvent) => any;
|
|
2847
|
-
load: (event: Event) => any;
|
|
2848
|
-
}, string, _$vue.PublicProps, Readonly<Props$18> & Readonly<{
|
|
2849
|
-
onError?: ((event: Event) => any) | undefined;
|
|
2850
|
-
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
2851
|
-
onLoad?: ((event: Event) => any) | undefined;
|
|
2852
|
-
}>, {
|
|
2853
|
-
width: string | number;
|
|
2854
|
-
loading: boolean;
|
|
2855
|
-
rounded: boolean;
|
|
2856
|
-
height: string | number;
|
|
2857
|
-
src: string;
|
|
2858
|
-
alt: string;
|
|
2859
|
-
fit: "contain" | "cover" | "fill" | "none" | "scale-down";
|
|
2860
|
-
preview: boolean;
|
|
2861
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
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;
|
|
2864
|
-
type __VLS_WithSlots$12<T, S> = T & {
|
|
2865
|
-
new (): {
|
|
2866
|
-
$slots: S;
|
|
2867
|
-
};
|
|
2868
|
-
};
|
|
2869
|
-
//#endregion
|
|
2870
|
-
//#region src/components/data-display/image/image-preview-group.vue.d.ts
|
|
2871
|
-
interface Props$17 {
|
|
2872
|
-
images?: string[];
|
|
2873
|
-
}
|
|
2874
|
-
declare var __VLS_1$8: {};
|
|
2875
|
-
type __VLS_Slots$11 = {} & {
|
|
2876
|
-
default?: (props: typeof __VLS_1$8) => any;
|
|
2877
|
-
};
|
|
2878
|
-
declare const __VLS_base$11: _$vue.DefineComponent<Props$17, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<Props$17> & Readonly<{}>, {
|
|
2879
|
-
images: string[];
|
|
2880
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
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;
|
|
2883
|
-
type __VLS_WithSlots$11<T, S> = T & {
|
|
2884
|
-
new (): {
|
|
2885
|
-
$slots: S;
|
|
2886
|
-
};
|
|
2887
|
-
};
|
|
2888
|
-
//#endregion
|
|
2889
|
-
//#region src/components/navigation/menu/menu.vue.d.ts
|
|
2890
|
-
interface MenuItem$1 {
|
|
2891
|
-
label: string;
|
|
2892
|
-
key: string;
|
|
2893
|
-
/** 图标 - 支持字符串、组件名或图标对象 */
|
|
2894
|
-
icon?: string | {
|
|
2895
|
-
component: string;
|
|
2896
|
-
props?: Record<string, unknown>;
|
|
2897
|
-
};
|
|
2898
|
-
disabled?: boolean;
|
|
2899
|
-
route?: string;
|
|
2900
|
-
badge?: string | number;
|
|
2901
|
-
badgeType?: "primary" | "success" | "warning" | "danger" | "info";
|
|
2902
|
-
image?: string;
|
|
2903
|
-
children?: MenuItem$1[];
|
|
2904
|
-
/** 权限标识 */
|
|
2905
|
-
permission?: string | string[];
|
|
2906
|
-
/** 是否隐藏 */
|
|
2907
|
-
hidden?: boolean;
|
|
2908
|
-
}
|
|
2909
|
-
/**
|
|
2910
|
-
* YdMenu Props
|
|
2911
|
-
* @description 导航菜单组件
|
|
2912
|
-
*/
|
|
2913
|
-
interface Props$16 {
|
|
2914
|
-
/** 当前选中的菜单项 key */
|
|
2915
|
-
modelValue?: string;
|
|
2916
|
-
/** 菜单项列表 */
|
|
2917
|
-
items?: MenuItem$1[];
|
|
2918
|
-
/** 菜单模式 */
|
|
2919
|
-
mode?: "vertical" | "horizontal";
|
|
2920
|
-
/** 是否折叠 */
|
|
2921
|
-
collapsed?: boolean;
|
|
2922
|
-
/** 是否使用瀑布式下拉 */
|
|
2923
|
-
waterfall?: boolean;
|
|
2924
|
-
/** 瀑布式网格布局风格: auto-自动列数(新), classic-列布局(旧) */
|
|
2925
|
-
gridStyle?: "auto" | "classic";
|
|
2926
|
-
/** 图片风格瀑布式布局: 以图片为主的卡片式展示 */
|
|
2927
|
-
imageStyle?: "default" | "cover" | "contain" | "fill" | "elegant";
|
|
2928
|
-
/** 是否启用路由 */
|
|
2929
|
-
router?: boolean;
|
|
2930
|
-
/** 瀑布式下拉对齐方式 */
|
|
2931
|
-
popupAlign?: "trigger" | "container";
|
|
2932
|
-
/** 下拉主题 */
|
|
2933
|
-
dropdownTheme?: "default" | "glass" | "dark";
|
|
2934
|
-
}
|
|
2935
|
-
declare const __VLS_export$16: _$vue.DefineComponent<Props$16, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
2936
|
-
"update:modelValue": (value: string) => any;
|
|
2937
|
-
select: (item: MenuItem$1) => any;
|
|
2938
|
-
}, string, _$vue.PublicProps, Readonly<Props$16> & Readonly<{
|
|
2939
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
2940
|
-
onSelect?: ((item: MenuItem$1) => any) | undefined;
|
|
2941
|
-
}>, {
|
|
2942
|
-
collapsed: boolean;
|
|
2943
|
-
waterfall: boolean;
|
|
2944
|
-
popupAlign: "trigger" | "container";
|
|
2945
|
-
modelValue: string;
|
|
2946
|
-
items: MenuItem$1[];
|
|
2947
|
-
mode: "vertical" | "horizontal";
|
|
2948
|
-
gridStyle: "auto" | "classic";
|
|
2949
|
-
router: boolean;
|
|
2950
|
-
dropdownTheme: "default" | "glass" | "dark";
|
|
2951
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
2952
|
-
declare const _default$36: typeof __VLS_export$16;
|
|
2953
|
-
//#endregion
|
|
2954
|
-
//#region src/components/navigation/tabs/tabs.vue.d.ts
|
|
2955
|
-
/**
|
|
2956
|
-
* Tab item interface
|
|
2957
|
-
*/
|
|
2958
|
-
interface TabItem$1 {
|
|
2959
|
-
/** Tab 显示文本 */
|
|
2960
|
-
label: string;
|
|
2961
|
-
/** Tab 唯一标识 */
|
|
2962
|
-
key: string;
|
|
2963
|
-
/** 是否可关闭 */
|
|
2964
|
-
closable?: boolean;
|
|
2965
|
-
/** 是否禁用 */
|
|
2966
|
-
disabled?: boolean;
|
|
2967
|
-
/** 图标(用于 chrome 风格) */
|
|
2968
|
-
icon?: string;
|
|
2969
|
-
/** 悬停提示内容 */
|
|
2970
|
-
description?: string;
|
|
2971
|
-
}
|
|
2972
|
-
/**
|
|
2973
|
-
* YdTabs Props
|
|
2974
|
-
* @description 标签页组件,支持多种样式和拖拽排序
|
|
2975
|
-
*/
|
|
2976
|
-
interface Props$15 {
|
|
2977
|
-
/** 当前激活的 tab key */
|
|
2978
|
-
modelValue?: string;
|
|
2979
|
-
/** 受控的 tabs 数据(双向绑定) */
|
|
2980
|
-
modelTabs?: TabItem$1[];
|
|
2981
|
-
/** 非受控的 tabs 数据 */
|
|
2982
|
-
items?: TabItem$1[];
|
|
2983
|
-
/** Tabs 样式类型 */
|
|
2984
|
-
type?: "line" | "card" | "segment" | "border-card" | "chrome" | "rounded" | "minimal" | "envelope" | "glass";
|
|
2985
|
-
editable?: boolean;
|
|
2986
|
-
theme?: "light" | "dark" | "corporate";
|
|
2987
|
-
/** localStorage key for persisting tab order */
|
|
2988
|
-
storageKey?: string;
|
|
2989
|
-
}
|
|
2990
|
-
declare var __VLS_1$7: {};
|
|
2991
|
-
type __VLS_Slots$10 = {} & {
|
|
2992
|
-
default?: (props: typeof __VLS_1$7) => any;
|
|
2993
|
-
};
|
|
2994
|
-
declare const __VLS_base$10: _$vue.DefineComponent<Props$15, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
2995
|
-
"update:modelTabs": (value: TabItem$1[]) => any;
|
|
2996
|
-
"update:modelValue": (value: string) => any;
|
|
2997
|
-
reorder: (payload: {
|
|
2998
|
-
from: number;
|
|
2999
|
-
to: number;
|
|
3000
|
-
}) => any;
|
|
3001
|
-
"context-menu": (action: string, item: TabItem$1) => any;
|
|
3002
|
-
"drag-start": (index: number, item: TabItem$1) => any;
|
|
3003
|
-
"drag-end": (payload: {
|
|
3004
|
-
from: number;
|
|
3005
|
-
to: number;
|
|
3006
|
-
success: boolean;
|
|
3007
|
-
}) => any;
|
|
3008
|
-
edit: (action: "add" | "remove", item?: TabItem$1 | undefined) => any;
|
|
3009
|
-
}, string, _$vue.PublicProps, Readonly<Props$15> & Readonly<{
|
|
3010
|
-
"onUpdate:modelTabs"?: ((value: TabItem$1[]) => any) | undefined;
|
|
3011
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
3012
|
-
onReorder?: ((payload: {
|
|
3013
|
-
from: number;
|
|
3014
|
-
to: number;
|
|
3015
|
-
}) => any) | undefined;
|
|
3016
|
-
"onContext-menu"?: ((action: string, item: TabItem$1) => any) | undefined;
|
|
3017
|
-
"onDrag-start"?: ((index: number, item: TabItem$1) => any) | undefined;
|
|
3018
|
-
"onDrag-end"?: ((payload: {
|
|
3019
|
-
from: number;
|
|
3020
|
-
to: number;
|
|
3021
|
-
success: boolean;
|
|
3022
|
-
}) => any) | undefined;
|
|
3023
|
-
onEdit?: ((action: "add" | "remove", item?: TabItem$1 | undefined) => any) | undefined;
|
|
3024
|
-
}>, {
|
|
3025
|
-
theme: "light" | "dark" | "corporate";
|
|
3026
|
-
type: "line" | "card" | "segment" | "border-card" | "chrome" | "rounded" | "minimal" | "envelope" | "glass";
|
|
3027
|
-
modelTabs: TabItem$1[];
|
|
3028
|
-
modelValue: string;
|
|
3029
|
-
items: TabItem$1[];
|
|
3030
|
-
editable: boolean;
|
|
3031
|
-
storageKey: string;
|
|
3032
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
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;
|
|
3035
|
-
type __VLS_WithSlots$10<T, S> = T & {
|
|
3036
|
-
new (): {
|
|
3037
|
-
$slots: S;
|
|
3038
|
-
};
|
|
3039
|
-
};
|
|
3040
|
-
//#endregion
|
|
3041
|
-
//#region src/components/navigation/breadcrumb/breadcrumb.vue.d.ts
|
|
3042
|
-
interface BreadcrumbItem {
|
|
3043
|
-
label: string;
|
|
3044
|
-
to?: string;
|
|
3045
|
-
disabled?: boolean;
|
|
3046
|
-
}
|
|
3047
|
-
interface Props$14 {
|
|
3048
|
-
items?: BreadcrumbItem[];
|
|
3049
|
-
separator?: string;
|
|
3050
|
-
}
|
|
3051
|
-
declare var __VLS_9: {};
|
|
3052
|
-
type __VLS_Slots$9 = {} & {
|
|
3053
|
-
separator?: (props: typeof __VLS_9) => any;
|
|
3054
|
-
};
|
|
3055
|
-
declare const __VLS_base$9: _$vue.DefineComponent<Props$14, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
3056
|
-
navigate: (item: BreadcrumbItem) => any;
|
|
3057
|
-
}, string, _$vue.PublicProps, Readonly<Props$14> & Readonly<{
|
|
3058
|
-
onNavigate?: ((item: BreadcrumbItem) => any) | undefined;
|
|
3059
|
-
}>, {
|
|
3060
|
-
items: BreadcrumbItem[];
|
|
3061
|
-
separator: string;
|
|
3062
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
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;
|
|
3065
|
-
type __VLS_WithSlots$9<T, S> = T & {
|
|
3066
|
-
new (): {
|
|
3067
|
-
$slots: S;
|
|
3068
|
-
};
|
|
3069
|
-
};
|
|
3070
|
-
//#endregion
|
|
3071
|
-
//#region src/components/navigation/pagination/pagination.vue.d.ts
|
|
3072
|
-
interface Props$13 {
|
|
3073
|
-
currentPage?: number;
|
|
3074
|
-
pageSize?: number;
|
|
3075
|
-
total?: number;
|
|
3076
|
-
pageSizes?: number[];
|
|
3077
|
-
showTotal?: boolean;
|
|
3078
|
-
showSizeChanger?: boolean;
|
|
3079
|
-
showQuickJumper?: boolean;
|
|
3080
|
-
simple?: boolean;
|
|
3081
|
-
}
|
|
3082
|
-
declare const __VLS_export$13: _$vue.DefineComponent<Props$13, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
3083
|
-
"update:currentPage": (value: number) => any;
|
|
3084
|
-
"update:pageSize": (value: number) => any;
|
|
3085
|
-
"page-change": (page: number) => any;
|
|
3086
|
-
"size-change": (size: number) => any;
|
|
3087
|
-
}, string, _$vue.PublicProps, Readonly<Props$13> & Readonly<{
|
|
3088
|
-
"onUpdate:currentPage"?: ((value: number) => any) | undefined;
|
|
3089
|
-
"onUpdate:pageSize"?: ((value: number) => any) | undefined;
|
|
3090
|
-
"onPage-change"?: ((page: number) => any) | undefined;
|
|
3091
|
-
"onSize-change"?: ((size: number) => any) | undefined;
|
|
3092
|
-
}>, {
|
|
3093
|
-
currentPage: number;
|
|
3094
|
-
pageSize: number;
|
|
3095
|
-
total: number;
|
|
3096
|
-
pageSizes: number[];
|
|
3097
|
-
showTotal: boolean;
|
|
3098
|
-
showSizeChanger: boolean;
|
|
3099
|
-
showQuickJumper: boolean;
|
|
3100
|
-
simple: boolean;
|
|
3101
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
3102
|
-
declare const _default$38: typeof __VLS_export$13;
|
|
3103
|
-
//#endregion
|
|
3104
|
-
//#region src/components/navigation/dropdown/dropdown.vue.d.ts
|
|
3105
|
-
interface DropdownItem {
|
|
3106
|
-
label: string;
|
|
3107
|
-
key: string;
|
|
3108
|
-
disabled?: boolean;
|
|
3109
|
-
}
|
|
3110
|
-
/**
|
|
3111
|
-
* YdDropdown Props
|
|
3112
|
-
* @description 下拉菜单组件
|
|
3113
|
-
*/
|
|
3114
|
-
interface Props$12 {
|
|
3115
|
-
/** 菜单项列表 */
|
|
3116
|
-
items?: DropdownItem[];
|
|
3117
|
-
/** 触发方式 */
|
|
3118
|
-
trigger?: "hover" | "click";
|
|
3119
|
-
/** 菜单位置 */
|
|
3120
|
-
placement?: "bottom-start" | "bottom" | "bottom-end" | "top-start" | "top" | "top-end";
|
|
3121
|
-
/** 触发器 aria-label */
|
|
3122
|
-
triggerLabel?: string;
|
|
3123
|
-
}
|
|
3124
|
-
declare var __VLS_1$6: {};
|
|
3125
|
-
type __VLS_Slots$8 = {} & {
|
|
3126
|
-
default?: (props: typeof __VLS_1$6) => any;
|
|
3127
|
-
};
|
|
3128
|
-
declare const __VLS_base$8: _$vue.DefineComponent<Props$12, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
3129
|
-
select: (item: DropdownItem) => any;
|
|
3130
|
-
}, string, _$vue.PublicProps, Readonly<Props$12> & Readonly<{
|
|
3131
|
-
onSelect?: ((item: DropdownItem) => any) | undefined;
|
|
3132
|
-
}>, {
|
|
3133
|
-
trigger: "hover" | "click";
|
|
3134
|
-
placement: "bottom-start" | "bottom" | "bottom-end" | "top-start" | "top" | "top-end";
|
|
3135
|
-
items: DropdownItem[];
|
|
3136
|
-
triggerLabel: string;
|
|
3137
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
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;
|
|
3140
|
-
type __VLS_WithSlots$8<T, S> = T & {
|
|
3141
|
-
new (): {
|
|
3142
|
-
$slots: S;
|
|
3143
|
-
};
|
|
3144
|
-
};
|
|
3145
|
-
//#endregion
|
|
3146
|
-
//#region src/components/navigation/steps/steps.vue.d.ts
|
|
3147
|
-
interface StepItem {
|
|
3148
|
-
title: string;
|
|
3149
|
-
description?: string;
|
|
3150
|
-
status?: "wait" | "process" | "finish" | "error";
|
|
3151
|
-
}
|
|
3152
|
-
interface Props$11 {
|
|
3153
|
-
items?: StepItem[];
|
|
3154
|
-
current?: number;
|
|
3155
|
-
direction?: "horizontal" | "vertical";
|
|
3156
|
-
size?: "default" | "small";
|
|
3157
|
-
}
|
|
3158
|
-
declare const __VLS_export$11: _$vue.DefineComponent<Props$11, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<Props$11> & Readonly<{}>, {
|
|
3159
|
-
size: "default" | "small";
|
|
3160
|
-
direction: "horizontal" | "vertical";
|
|
3161
|
-
items: StepItem[];
|
|
3162
|
-
current: number;
|
|
3163
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
3164
|
-
declare const _default$53: typeof __VLS_export$11;
|
|
3165
|
-
//#endregion
|
|
3166
|
-
//#region src/components/navigation/anchor/anchor.vue.d.ts
|
|
3167
|
-
interface AnchorItem {
|
|
3168
|
-
title: string;
|
|
3169
|
-
href: string;
|
|
3170
|
-
children?: AnchorItem[];
|
|
3171
|
-
}
|
|
3172
|
-
interface Props$10 {
|
|
3173
|
-
items?: AnchorItem[];
|
|
3174
|
-
}
|
|
3175
|
-
declare const __VLS_export$10: _$vue.DefineComponent<Props$10, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
3176
|
-
change: (href: string) => any;
|
|
3177
|
-
}, string, _$vue.PublicProps, Readonly<Props$10> & Readonly<{
|
|
3178
|
-
onChange?: ((href: string) => any) | undefined;
|
|
3179
|
-
}>, {
|
|
3180
|
-
items: AnchorItem[];
|
|
3181
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
3182
|
-
declare const _default: typeof __VLS_export$10;
|
|
3183
|
-
//#endregion
|
|
3184
|
-
//#region src/components/feedback/modal/modal.vue.d.ts
|
|
3185
|
-
/**
|
|
3186
|
-
* YdModal Props
|
|
3187
|
-
* @description 模态对话框组件,支持聚焦管理、ARIA 属性和键盘导航
|
|
3188
|
-
*/
|
|
3189
|
-
interface Props$9 {
|
|
3190
|
-
/** 绑定值,控制对话框显示 */
|
|
3191
|
-
modelValue?: boolean;
|
|
3192
|
-
/** 对话框标题 */
|
|
3193
|
-
title?: string;
|
|
3194
|
-
/** 对话框宽度 */
|
|
3195
|
-
width?: string | number;
|
|
3196
|
-
/** 是否显示头部 */
|
|
3197
|
-
showHeader?: boolean;
|
|
3198
|
-
/** 是否显示底部按钮区 */
|
|
3199
|
-
showFooter?: boolean;
|
|
3200
|
-
/** 是否显示关闭按钮 */
|
|
3201
|
-
closable?: boolean;
|
|
3202
|
-
/** 点击遮罩是否可关闭 */
|
|
3203
|
-
maskClosable?: boolean;
|
|
3204
|
-
/** 关闭时是否销毁内容 */
|
|
3205
|
-
destroyOnClose?: boolean;
|
|
3206
|
-
/** 是否使用 Teleport 渲染到 body */
|
|
3207
|
-
teleport?: boolean;
|
|
3208
|
-
/** 取消按钮文本 */
|
|
3209
|
-
cancelText?: string;
|
|
3210
|
-
/** 确认按钮文本 */
|
|
3211
|
-
confirmText?: string;
|
|
3212
|
-
/** 确认按钮加载状态 */
|
|
3213
|
-
confirmLoading?: boolean;
|
|
3214
|
-
}
|
|
3215
|
-
declare var __VLS_16$1: {}, __VLS_18$1: {};
|
|
3216
|
-
type __VLS_Slots$7 = {} & {
|
|
3217
|
-
default?: (props: typeof __VLS_16$1) => any;
|
|
3218
|
-
} & {
|
|
3219
|
-
footer?: (props: typeof __VLS_18$1) => any;
|
|
3220
|
-
};
|
|
3221
|
-
declare const __VLS_base$7: _$vue.DefineComponent<Props$9, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
3222
|
-
open: () => any;
|
|
3223
|
-
close: () => any;
|
|
3224
|
-
confirm: () => any;
|
|
3225
|
-
cancel: () => any;
|
|
3226
|
-
"update:modelValue": (value: boolean) => any;
|
|
3227
|
-
}, string, _$vue.PublicProps, Readonly<Props$9> & Readonly<{
|
|
3228
|
-
onOpen?: (() => any) | undefined;
|
|
3229
|
-
onClose?: (() => any) | undefined;
|
|
3230
|
-
onConfirm?: (() => any) | undefined;
|
|
3231
|
-
onCancel?: (() => any) | undefined;
|
|
3232
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
3233
|
-
}>, {
|
|
3234
|
-
title: string;
|
|
3235
|
-
modelValue: boolean;
|
|
3236
|
-
width: string | number;
|
|
3237
|
-
showHeader: boolean;
|
|
3238
|
-
showFooter: boolean;
|
|
3239
|
-
closable: boolean;
|
|
3240
|
-
maskClosable: boolean;
|
|
3241
|
-
destroyOnClose: boolean;
|
|
3242
|
-
teleport: boolean;
|
|
3243
|
-
cancelText: string;
|
|
3244
|
-
confirmText: string;
|
|
3245
|
-
confirmLoading: boolean;
|
|
3246
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
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;
|
|
3249
|
-
type __VLS_WithSlots$7<T, S> = T & {
|
|
3250
|
-
new (): {
|
|
3251
|
-
$slots: S;
|
|
3252
|
-
};
|
|
3253
|
-
};
|
|
3254
|
-
//#endregion
|
|
3255
|
-
//#region src/components/feedback/drawer/drawer.vue.d.ts
|
|
3256
|
-
/**
|
|
3257
|
-
* YdDrawer Props
|
|
3258
|
-
* @description 抽屉组件,从一侧滑入的对话框
|
|
3259
|
-
*/
|
|
3260
|
-
interface Props$8 {
|
|
3261
|
-
/** 绑定值,控制抽屉显示 */
|
|
3262
|
-
modelValue?: boolean;
|
|
3263
|
-
/** 抽屉标题 */
|
|
3264
|
-
title?: string;
|
|
3265
|
-
/** 抽屉位置 */
|
|
3266
|
-
placement?: "left" | "right" | "top" | "bottom";
|
|
3267
|
-
/** 抽屉宽度/高度 */
|
|
3268
|
-
width?: string | number;
|
|
3269
|
-
/** 是否显示头部 */
|
|
3270
|
-
showHeader?: boolean;
|
|
3271
|
-
/** 是否显示关闭按钮 */
|
|
3272
|
-
closable?: boolean;
|
|
3273
|
-
/** 点击遮罩是否可关闭 */
|
|
3274
|
-
maskClosable?: boolean;
|
|
3275
|
-
/** 关闭时是否销毁内容 */
|
|
3276
|
-
destroyOnClose?: boolean;
|
|
3277
|
-
/** 是否使用 Teleport */
|
|
3278
|
-
teleport?: boolean;
|
|
3279
|
-
}
|
|
3280
|
-
declare var __VLS_16: {}, __VLS_18: {};
|
|
3281
|
-
type __VLS_Slots$6 = {} & {
|
|
3282
|
-
default?: (props: typeof __VLS_16) => any;
|
|
3283
|
-
} & {
|
|
3284
|
-
footer?: (props: typeof __VLS_18) => any;
|
|
3285
|
-
};
|
|
3286
|
-
declare const __VLS_base$6: _$vue.DefineComponent<Props$8, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
3287
|
-
open: () => any;
|
|
3288
|
-
close: () => any;
|
|
3289
|
-
"update:modelValue": (value: boolean) => any;
|
|
3290
|
-
}, string, _$vue.PublicProps, Readonly<Props$8> & Readonly<{
|
|
3291
|
-
onOpen?: (() => any) | undefined;
|
|
3292
|
-
onClose?: (() => any) | undefined;
|
|
3293
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
3294
|
-
}>, {
|
|
3295
|
-
title: string;
|
|
3296
|
-
modelValue: boolean;
|
|
3297
|
-
width: string | number;
|
|
3298
|
-
showHeader: boolean;
|
|
3299
|
-
closable: boolean;
|
|
3300
|
-
maskClosable: boolean;
|
|
3301
|
-
destroyOnClose: boolean;
|
|
3302
|
-
teleport: boolean;
|
|
3303
|
-
placement: "left" | "right" | "top" | "bottom";
|
|
3304
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
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;
|
|
3307
|
-
type __VLS_WithSlots$6<T, S> = T & {
|
|
3308
|
-
new (): {
|
|
3309
|
-
$slots: S;
|
|
3310
|
-
};
|
|
3311
|
-
};
|
|
3312
|
-
//#endregion
|
|
3313
|
-
//#region src/components/feedback/message/index.d.ts
|
|
3314
|
-
interface MessageOptions {
|
|
3315
|
-
content: string;
|
|
3316
|
-
duration?: number;
|
|
3317
|
-
closable?: boolean;
|
|
3318
|
-
}
|
|
3319
|
-
declare const Message: {
|
|
3320
|
-
info: (options: string | MessageOptions) => {
|
|
3321
|
-
id: string;
|
|
3322
|
-
};
|
|
3323
|
-
success: (options: string | MessageOptions) => {
|
|
3324
|
-
id: string;
|
|
3325
|
-
};
|
|
3326
|
-
warning: (options: string | MessageOptions) => {
|
|
3327
|
-
id: string;
|
|
3328
|
-
};
|
|
3329
|
-
error: (options: string | MessageOptions) => {
|
|
3330
|
-
id: string;
|
|
3331
|
-
};
|
|
3332
|
-
};
|
|
3333
|
-
//#endregion
|
|
3334
|
-
//#region src/components/feedback/notification/index.d.ts
|
|
3335
|
-
interface NotificationOptions {
|
|
3336
|
-
title?: string;
|
|
3337
|
-
message?: string;
|
|
3338
|
-
duration?: number;
|
|
3339
|
-
closable?: boolean;
|
|
3340
|
-
}
|
|
3341
|
-
declare const Notification: {
|
|
3342
|
-
info: (options: string | NotificationOptions) => {
|
|
3343
|
-
id: string;
|
|
3344
|
-
};
|
|
3345
|
-
success: (options: string | NotificationOptions) => {
|
|
3346
|
-
id: string;
|
|
3347
|
-
};
|
|
3348
|
-
warning: (options: string | NotificationOptions) => {
|
|
3349
|
-
id: string;
|
|
3350
|
-
};
|
|
3351
|
-
error: (options: string | NotificationOptions) => {
|
|
3352
|
-
id: string;
|
|
3353
|
-
};
|
|
3354
|
-
};
|
|
3355
|
-
//#endregion
|
|
3356
|
-
//#region src/components/feedback/tooltip/tooltip.vue.d.ts
|
|
3357
|
-
interface Props$7 {
|
|
3358
|
-
content?: string;
|
|
3359
|
-
placement?: "top" | "bottom" | "left" | "right";
|
|
3360
|
-
trigger?: "hover" | "click";
|
|
3361
|
-
delay?: number;
|
|
3362
|
-
}
|
|
3363
|
-
declare var __VLS_1$5: {}, __VLS_15: {};
|
|
3364
|
-
type __VLS_Slots$5 = {} & {
|
|
3365
|
-
default?: (props: typeof __VLS_1$5) => any;
|
|
3366
|
-
} & {
|
|
3367
|
-
content?: (props: typeof __VLS_15) => any;
|
|
3368
|
-
};
|
|
3369
|
-
declare const __VLS_base$5: _$vue.DefineComponent<Props$7, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<Props$7> & Readonly<{}>, {
|
|
3370
|
-
trigger: "hover" | "click";
|
|
3371
|
-
placement: "top" | "bottom" | "left" | "right";
|
|
3372
|
-
content: string;
|
|
3373
|
-
delay: number;
|
|
3374
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
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;
|
|
3377
|
-
type __VLS_WithSlots$5<T, S> = T & {
|
|
3378
|
-
new (): {
|
|
3379
|
-
$slots: S;
|
|
3380
|
-
};
|
|
3381
|
-
};
|
|
3382
|
-
//#endregion
|
|
3383
|
-
//#region src/components/feedback/spin/spin.vue.d.ts
|
|
3384
|
-
interface Props$6 {
|
|
3385
|
-
spinning?: boolean;
|
|
3386
|
-
size?: number;
|
|
3387
|
-
tip?: string;
|
|
3388
|
-
delay?: number;
|
|
3389
|
-
}
|
|
3390
|
-
declare var __VLS_1$4: {}, __VLS_3$1: {};
|
|
3391
|
-
type __VLS_Slots$4 = {} & {
|
|
3392
|
-
indicator?: (props: typeof __VLS_1$4) => any;
|
|
3393
|
-
} & {
|
|
3394
|
-
default?: (props: typeof __VLS_3$1) => any;
|
|
3395
|
-
};
|
|
3396
|
-
declare const __VLS_base$4: _$vue.DefineComponent<Props$6, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<Props$6> & Readonly<{}>, {
|
|
3397
|
-
size: number;
|
|
3398
|
-
delay: number;
|
|
3399
|
-
spinning: boolean;
|
|
3400
|
-
tip: string;
|
|
3401
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
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;
|
|
3404
|
-
type __VLS_WithSlots$4<T, S> = T & {
|
|
3405
|
-
new (): {
|
|
3406
|
-
$slots: S;
|
|
3407
|
-
};
|
|
3408
|
-
};
|
|
3409
|
-
//#endregion
|
|
3410
|
-
//#region src/components/feedback/skeleton/skeleton.vue.d.ts
|
|
3411
|
-
interface Props$5 {
|
|
3412
|
-
loading?: boolean;
|
|
3413
|
-
avatar?: boolean | number | string;
|
|
3414
|
-
title?: boolean;
|
|
3415
|
-
titleWidth?: string;
|
|
3416
|
-
titleHeight?: string;
|
|
3417
|
-
rows?: number;
|
|
3418
|
-
lastRowWidth?: string;
|
|
3419
|
-
animated?: boolean;
|
|
3420
|
-
}
|
|
3421
|
-
declare var __VLS_1$3: {};
|
|
3422
|
-
type __VLS_Slots$3 = {} & {
|
|
3423
|
-
default?: (props: typeof __VLS_1$3) => any;
|
|
3424
|
-
};
|
|
3425
|
-
declare const __VLS_base$3: _$vue.DefineComponent<Props$5, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<Props$5> & Readonly<{}>, {
|
|
3426
|
-
title: boolean;
|
|
3427
|
-
loading: boolean;
|
|
3428
|
-
avatar: boolean | number | string;
|
|
3429
|
-
titleWidth: string;
|
|
3430
|
-
titleHeight: string;
|
|
3431
|
-
rows: number;
|
|
3432
|
-
lastRowWidth: string;
|
|
3433
|
-
animated: boolean;
|
|
3434
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
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;
|
|
3437
|
-
type __VLS_WithSlots$3<T, S> = T & {
|
|
3438
|
-
new (): {
|
|
3439
|
-
$slots: S;
|
|
3440
|
-
};
|
|
3441
|
-
};
|
|
3442
|
-
//#endregion
|
|
3443
|
-
//#region src/components/feedback/popconfirm/popconfirm.vue.d.ts
|
|
3444
|
-
interface Props$4 {
|
|
3445
|
-
title?: string;
|
|
3446
|
-
confirmText?: string;
|
|
3447
|
-
cancelText?: string;
|
|
3448
|
-
}
|
|
3449
|
-
declare var __VLS_1$2: {};
|
|
3450
|
-
type __VLS_Slots$2 = {} & {
|
|
3451
|
-
default?: (props: typeof __VLS_1$2) => any;
|
|
3452
|
-
};
|
|
3453
|
-
declare const __VLS_base$2: _$vue.DefineComponent<Props$4, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
3454
|
-
confirm: () => any;
|
|
3455
|
-
cancel: () => any;
|
|
3456
|
-
}, string, _$vue.PublicProps, Readonly<Props$4> & Readonly<{
|
|
3457
|
-
onConfirm?: (() => any) | undefined;
|
|
3458
|
-
onCancel?: (() => any) | undefined;
|
|
3459
|
-
}>, {
|
|
3460
|
-
title: string;
|
|
3461
|
-
cancelText: string;
|
|
3462
|
-
confirmText: string;
|
|
3463
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
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;
|
|
3466
|
-
type __VLS_WithSlots$2<T, S> = T & {
|
|
3467
|
-
new (): {
|
|
3468
|
-
$slots: S;
|
|
3469
|
-
};
|
|
3470
|
-
};
|
|
3471
|
-
//#endregion
|
|
3472
|
-
//#region src/components/feedback/result/result.vue.d.ts
|
|
3473
|
-
interface Props$3 {
|
|
3474
|
-
status?: "success" | "error" | "warning" | "info" | "404" | "403" | "500";
|
|
3475
|
-
title?: string;
|
|
3476
|
-
subTitle?: string;
|
|
3477
|
-
}
|
|
3478
|
-
declare var __VLS_1$1: {}, __VLS_3: {}, __VLS_5: {};
|
|
3479
|
-
type __VLS_Slots$1 = {} & {
|
|
3480
|
-
icon?: (props: typeof __VLS_1$1) => any;
|
|
3481
|
-
} & {
|
|
3482
|
-
default?: (props: typeof __VLS_3) => any;
|
|
3483
|
-
} & {
|
|
3484
|
-
extra?: (props: typeof __VLS_5) => any;
|
|
3485
|
-
};
|
|
3486
|
-
declare const __VLS_base$1: _$vue.DefineComponent<Props$3, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<Props$3> & Readonly<{}>, {
|
|
3487
|
-
title: string;
|
|
3488
|
-
status: "success" | "error" | "warning" | "info" | "404" | "403" | "500";
|
|
3489
|
-
subTitle: string;
|
|
3490
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
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;
|
|
3493
|
-
type __VLS_WithSlots$1<T, S> = T & {
|
|
3494
|
-
new (): {
|
|
3495
|
-
$slots: S;
|
|
3496
|
-
};
|
|
3497
|
-
};
|
|
3498
|
-
//#endregion
|
|
3499
|
-
//#region src/components/feedback/context-menu/context-menu.vue.d.ts
|
|
3500
|
-
interface ContextMenuItem {
|
|
3501
|
-
key?: string;
|
|
3502
|
-
label: string;
|
|
3503
|
-
icon?: string;
|
|
3504
|
-
shortcut?: string;
|
|
3505
|
-
disabled?: boolean;
|
|
3506
|
-
active?: boolean;
|
|
3507
|
-
separator?: boolean;
|
|
3508
|
-
children?: ContextMenuItem[];
|
|
3509
|
-
}
|
|
3510
|
-
interface Props$2 {
|
|
3511
|
-
items?: ContextMenuItem[];
|
|
3512
|
-
visible?: boolean;
|
|
3513
|
-
x?: number;
|
|
3514
|
-
y?: number;
|
|
3515
|
-
}
|
|
3516
|
-
declare const __VLS_export$2: _$vue.DefineComponent<Props$2, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
3517
|
-
select: (item: ContextMenuItem) => any;
|
|
3518
|
-
"update:visible": (value: boolean) => any;
|
|
3519
|
-
}, string, _$vue.PublicProps, Readonly<Props$2> & Readonly<{
|
|
3520
|
-
onSelect?: ((item: ContextMenuItem) => any) | undefined;
|
|
3521
|
-
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
3522
|
-
}>, {
|
|
3523
|
-
items: ContextMenuItem[];
|
|
3524
|
-
visible: boolean;
|
|
3525
|
-
x: number;
|
|
3526
|
-
y: number;
|
|
3527
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
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;
|
|
3555
|
-
//#endregion
|
|
3556
|
-
//#region src/components/config-provider/config-provider.vue.d.ts
|
|
3557
|
-
interface Props {
|
|
3558
|
-
theme?: "light" | "dark" | "auto";
|
|
3559
|
-
locale?: string;
|
|
3560
|
-
size?: "xs" | "sm" | "md" | "lg";
|
|
3561
|
-
zIndex?: number;
|
|
3562
|
-
}
|
|
3563
|
-
declare var __VLS_1: {};
|
|
3564
|
-
type __VLS_Slots = {} & {
|
|
3565
|
-
default?: (props: typeof __VLS_1) => any;
|
|
3566
|
-
};
|
|
3567
|
-
declare const __VLS_base: _$vue.DefineComponent<Props, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
3568
|
-
locale: string;
|
|
3569
|
-
size: "xs" | "sm" | "md" | "lg";
|
|
3570
|
-
theme: "light" | "dark" | "auto";
|
|
3571
|
-
zIndex: number;
|
|
3572
|
-
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
3573
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
3574
|
-
declare const _default$13: typeof __VLS_export;
|
|
3575
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
3576
|
-
new (): {
|
|
3577
|
-
$slots: S;
|
|
3578
|
-
};
|
|
3579
|
-
};
|
|
3580
|
-
//#endregion
|
|
3581
|
-
//#region src/composables/use-namespace.d.ts
|
|
3582
|
-
/**
|
|
3583
|
-
* 创建命名空间,用于生成 BEM 风格的 class 名称
|
|
3584
|
-
* @param namespace - 命名空间前缀
|
|
3585
|
-
* @returns 命名空间工具对象
|
|
3586
|
-
*/
|
|
3587
|
-
declare function useNamespace(namespace: string): {
|
|
3588
|
-
b: (element?: string) => string;
|
|
3589
|
-
e: (element: string) => string;
|
|
3590
|
-
m: (modifier: string) => string;
|
|
3591
|
-
bem: (element?: string, modifier?: string) => string;
|
|
3592
|
-
};
|
|
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
|
|
3603
|
-
//#region src/composables/use-form-validate.d.ts
|
|
3604
|
-
/**
|
|
3605
|
-
* 表单校验 composable
|
|
3606
|
-
*/
|
|
3607
|
-
declare function useFormValidate(rules: Ref<FormRules> | FormRules, model: Ref<Record<string, unknown>> | Record<string, unknown>): {
|
|
3608
|
-
errors: Record<string, ValidateError[]>;
|
|
3609
|
-
items: Ref<FormItemInstance[]>;
|
|
3610
|
-
validate: () => Promise<ValidateResult>;
|
|
3611
|
-
validateField: (prop: string) => Promise<ValidateError | null>;
|
|
3612
|
-
resetFields: () => void;
|
|
3613
|
-
clearValidate: (fields?: string[]) => void;
|
|
3614
|
-
registerItem: (item: FormItemInstance) => void;
|
|
3615
|
-
unregisterItem: (item: FormItemInstance) => void;
|
|
3616
|
-
};
|
|
3617
|
-
//#endregion
|
|
3618
|
-
//#region src/composables/use-login-form.d.ts
|
|
3619
|
-
interface LoginFormData {
|
|
3620
|
-
username: string;
|
|
3621
|
-
password: string;
|
|
3622
|
-
phone: string;
|
|
3623
|
-
code: string;
|
|
3624
|
-
captchaCode: string;
|
|
3625
|
-
remember: boolean;
|
|
3626
|
-
}
|
|
3627
|
-
interface UseLoginFormOptions {
|
|
3628
|
-
/** 是否显示验证码 */
|
|
3629
|
-
showCaptcha?: boolean;
|
|
3630
|
-
/** 验证码实例 */
|
|
3631
|
-
captchaCode?: Ref<string>;
|
|
3632
|
-
/** 验证码 key (用于刷新) */
|
|
3633
|
-
captchaKey?: Ref<number>;
|
|
3634
|
-
/** 表单类型: account | phone */
|
|
3635
|
-
defaultTab?: string;
|
|
3636
|
-
/** 发送验证码回调 */
|
|
3637
|
-
onSendCode?: (phone: string) => void;
|
|
3638
|
-
/** 后端提供的验证码图片地址 */
|
|
3639
|
-
captchaSrc?: Ref<string>;
|
|
3640
|
-
/** 后端提供的验证码答案 */
|
|
3641
|
-
captchaAnswer?: Ref<string>;
|
|
3642
|
-
/** 验证码模式:客户端生成并校验,或后端提供由后端校验 */
|
|
3643
|
-
captchaMode?: "client" | "server";
|
|
3644
|
-
}
|
|
3645
|
-
interface UseLoginFormReturn {
|
|
3646
|
-
/** 表单数据 */
|
|
3647
|
-
formData: LoginFormData;
|
|
3648
|
-
/** 当前 tab */
|
|
3649
|
-
activeTab: Ref<string>;
|
|
3650
|
-
/** 错误消息 */
|
|
3651
|
-
errorMsg: Ref<string>;
|
|
3652
|
-
/** 密码可见性 */
|
|
3653
|
-
showPassword: Ref<boolean>;
|
|
3654
|
-
/** 验证码倒计时 */
|
|
3655
|
-
countdown: Ref<number>;
|
|
3656
|
-
/** 提交中 */
|
|
3657
|
-
loading: Ref<boolean>;
|
|
3658
|
-
/** 验证并提交 */
|
|
3659
|
-
handleSubmit: () => boolean;
|
|
3660
|
-
/** 刷新验证码 */
|
|
3661
|
-
refreshCaptcha: () => void;
|
|
3662
|
-
/** 发送验证码 */
|
|
3663
|
-
handleSendCode: () => void;
|
|
3664
|
-
/** 重置表单 */
|
|
3665
|
-
resetForm: () => void;
|
|
3666
|
-
/** 设置加载状态 */
|
|
3667
|
-
setLoading: (loading: boolean) => void;
|
|
3668
|
-
/** 设置错误消息 */
|
|
3669
|
-
setError: (error: string) => void;
|
|
3670
|
-
}
|
|
3671
|
-
/**
|
|
3672
|
-
* 登录表单逻辑
|
|
3673
|
-
*/
|
|
3674
|
-
declare function useLoginForm(options?: UseLoginFormOptions): UseLoginFormReturn;
|
|
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
|
|
3735
|
-
//#region src/hooks/use-loading.d.ts
|
|
3736
|
-
/**
|
|
3737
|
-
* Loading 状态管理 hook
|
|
3738
|
-
* @param initialValue - 初始加载状态
|
|
3739
|
-
* @returns 响应式 loading 状态和控制方法
|
|
3740
|
-
*/
|
|
3741
|
-
declare function useLoading(initialValue?: boolean): {
|
|
3742
|
-
loading: _$vue.Ref<boolean, boolean>;
|
|
3743
|
-
isLoading: _$vue.ComputedRef<boolean>;
|
|
3744
|
-
startLoading: () => void;
|
|
3745
|
-
stopLoading: () => void;
|
|
3746
|
-
withLoading: <T>(fn: () => Promise<T>) => Promise<T>;
|
|
3747
|
-
};
|
|
3748
|
-
//#endregion
|
|
3749
|
-
//#region src/utils/crypto.d.ts
|
|
3750
|
-
/**
|
|
3751
|
-
* Web Crypto API 加密工具
|
|
3752
|
-
* 使用 AES-GCM 算法进行对称加密
|
|
3753
|
-
*/
|
|
3754
|
-
/**
|
|
3755
|
-
* 生成随机会话密钥 (AES-GCM 256位)
|
|
3756
|
-
*/
|
|
3757
|
-
declare function generateSessionKey(): Promise<CryptoKey>;
|
|
3758
|
-
/**
|
|
3759
|
-
* 加密数据
|
|
3760
|
-
* @param data 要加密的字符串
|
|
3761
|
-
* @param key 加密密钥 (CryptoKey 或 字符串)
|
|
3762
|
-
* @returns Base64 编码的密文 (包含 IV)
|
|
3763
|
-
*/
|
|
3764
|
-
declare function encrypt(data: string, key: CryptoKey | string): Promise<string>;
|
|
3765
|
-
/**
|
|
3766
|
-
* 解密数据
|
|
3767
|
-
* @param base64Data Base64 编码的密文
|
|
3768
|
-
* @param key 解密密钥
|
|
3769
|
-
* @returns 解密后的字符串,失败返回 null
|
|
3770
|
-
*/
|
|
3771
|
-
declare function decrypt(base64Data: string, key: CryptoKey | string): Promise<string | null>;
|
|
3772
|
-
//#endregion
|
|
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
|
-
}
|
|
3791
|
-
/**
|
|
3792
|
-
* 初始化安全存储
|
|
3793
|
-
* 必须在应用启动时调用
|
|
3794
|
-
* @param config 可选的初始化配置
|
|
3795
|
-
*/
|
|
3796
|
-
declare function initSecureStorage(config?: SecureStorageConfig): Promise<void>;
|
|
3797
|
-
/**
|
|
3798
|
-
* 混合加密存储类
|
|
3799
|
-
*/
|
|
3800
|
-
declare class SecureStorage {
|
|
3801
|
-
private storage;
|
|
3802
|
-
private storageType;
|
|
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;
|
|
3816
|
-
/**
|
|
3817
|
-
* 异步写入
|
|
3818
|
-
* @param key 存储键名
|
|
3819
|
-
* @param value 存储值
|
|
3820
|
-
* @param options 写入选项(可选)
|
|
3821
|
-
*/
|
|
3822
|
-
setItem<T = unknown>(key: string, value: T, options?: {
|
|
3823
|
-
expiresIn?: number;
|
|
3824
|
-
compress?: boolean;
|
|
3825
|
-
}): Promise<void>;
|
|
3826
|
-
/**
|
|
3827
|
-
* 异步读取
|
|
3828
|
-
*/
|
|
3829
|
-
getItem<T>(key: string): Promise<T | null>;
|
|
3830
|
-
/**
|
|
3831
|
-
* 同步删除
|
|
3832
|
-
*/
|
|
3833
|
-
removeItem(key: string): void;
|
|
3834
|
-
/**
|
|
3835
|
-
* 同步清空
|
|
3836
|
-
*/
|
|
3837
|
-
clear(): void;
|
|
3838
|
-
}
|
|
3839
|
-
/**
|
|
3840
|
-
* 创建独立的 SecureStorage 实例
|
|
3841
|
-
* @param type 存储类型
|
|
3842
|
-
* @param key 可选的独立密钥
|
|
3843
|
-
* @returns SecureStorage 实例
|
|
3844
|
-
*/
|
|
3845
|
-
declare const secureLocal: SecureStorage;
|
|
3846
|
-
declare const secureSession: SecureStorage;
|
|
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
|
|
3988
|
-
//#region src/utils/index.d.ts
|
|
3989
|
-
/**
|
|
3990
|
-
* Utility functions
|
|
3991
|
-
* 工具函数集合
|
|
3992
|
-
*/
|
|
3993
|
-
declare const THROTTLE_DEFAULTS: {
|
|
3994
|
-
default: number;
|
|
3995
|
-
tooltip: number;
|
|
3996
|
-
scroll: number;
|
|
3997
|
-
resize: number;
|
|
3998
|
-
input: number;
|
|
3999
|
-
};
|
|
4000
|
-
declare const DEBOUNCE_DEFAULTS: {
|
|
4001
|
-
default: number;
|
|
4002
|
-
search: number;
|
|
4003
|
-
resize: number;
|
|
4004
|
-
form: number;
|
|
4005
|
-
};
|
|
4006
|
-
/**
|
|
4007
|
-
* 合并 class 名称
|
|
4008
|
-
*/
|
|
4009
|
-
declare function cn(...classes: (string | undefined | null | false)[]): string;
|
|
4010
|
-
/**
|
|
4011
|
-
* 生成唯一 ID
|
|
4012
|
-
*/
|
|
4013
|
-
declare function generateId(prefix?: string): string;
|
|
4014
|
-
/**
|
|
4015
|
-
* 防抖函数
|
|
4016
|
-
*/
|
|
4017
|
-
declare function debounce<T extends (...args: unknown[]) => unknown>(fn: T, delay?: number): (...args: Parameters<T>) => void;
|
|
4018
|
-
/**
|
|
4019
|
-
* 节流函数
|
|
4020
|
-
*/
|
|
4021
|
-
declare function throttle<T extends (...args: unknown[]) => unknown>(fn: T, limit?: number): (...args: Parameters<T>) => void;
|
|
4022
|
-
/**
|
|
4023
|
-
* 深拷贝
|
|
4024
|
-
*/
|
|
4025
|
-
declare function deepClone<T>(obj: T): T;
|
|
4026
|
-
/**
|
|
4027
|
-
* 判断是否为空对象
|
|
4028
|
-
*/
|
|
4029
|
-
declare function isEmptyObject(obj: Record<string, unknown>): boolean;
|
|
4030
|
-
//#endregion
|
|
4031
|
-
//#region src/styles/themes/index.d.ts
|
|
4032
|
-
/**
|
|
4033
|
-
* Theme definitions
|
|
4034
|
-
* 主题变体:light/dark 等
|
|
4035
|
-
*/
|
|
4036
|
-
declare const themes: {
|
|
4037
|
-
readonly light: {
|
|
4038
|
-
readonly colors: {
|
|
4039
|
-
readonly background: "#ffffff";
|
|
4040
|
-
readonly foreground: "#111827";
|
|
4041
|
-
readonly muted: "#f3f4f6";
|
|
4042
|
-
readonly "muted-foreground": "#6b7280";
|
|
4043
|
-
readonly border: "#e5e7eb";
|
|
4044
|
-
readonly input: "#e5e7eb";
|
|
4045
|
-
readonly ring: "#3b82f6";
|
|
4046
|
-
};
|
|
4047
|
-
};
|
|
4048
|
-
readonly dark: {
|
|
4049
|
-
readonly colors: {
|
|
4050
|
-
readonly background: "#111827";
|
|
4051
|
-
readonly foreground: "#f9fafb";
|
|
4052
|
-
readonly muted: "#1f2937";
|
|
4053
|
-
readonly "muted-foreground": "#9ca3af";
|
|
4054
|
-
readonly border: "#374151";
|
|
4055
|
-
readonly input: "#374151";
|
|
4056
|
-
readonly ring: "#60a5fa";
|
|
4057
|
-
};
|
|
4058
|
-
};
|
|
4059
|
-
};
|
|
4060
|
-
type ThemeName = keyof typeof themes;
|
|
4061
|
-
type Theme = (typeof themes)[ThemeName];
|
|
4062
|
-
//#endregion
|
|
4063
|
-
//#region src/constants/index.d.ts
|
|
4064
|
-
/**
|
|
4065
|
-
* Application constants
|
|
4066
|
-
* 常量定义
|
|
4067
|
-
*/
|
|
4068
|
-
/** 组件库前缀 */
|
|
4069
|
-
declare const COMPONENT_PREFIX: "Yd";
|
|
4070
|
-
/** CSS 类名前缀 */
|
|
4071
|
-
declare const CSS_PREFIX: "yd";
|
|
4072
|
-
/** 默认动画时长 (ms) */
|
|
4073
|
-
declare const ANIMATION_DURATION: 200;
|
|
4074
|
-
/** 默认防抖延迟 (ms) */
|
|
4075
|
-
declare const DEBOUNCE_DELAY: 300;
|
|
4076
|
-
/** 默认节流间隔 (ms) */
|
|
4077
|
-
declare const THROTTLE_DELAY: 300;
|
|
4078
|
-
/** z-index 层级 */
|
|
4079
|
-
declare const Z_INDEX: {
|
|
4080
|
-
readonly DROPDOWN: 1000;
|
|
4081
|
-
readonly STICKY: 1020;
|
|
4082
|
-
readonly FIXED: 1030;
|
|
4083
|
-
readonly MODAL_BACKDROP: 1040;
|
|
4084
|
-
readonly MODAL: 1050;
|
|
4085
|
-
readonly POPOVER: 1060;
|
|
4086
|
-
readonly TOOLTIP: 1070;
|
|
4087
|
-
};
|
|
4088
|
-
//#endregion
|
|
4089
|
-
//#region src/stores/plugins/secure-storage.d.ts
|
|
4090
|
-
/**
|
|
4091
|
-
* 安全存储 Pinia 插件
|
|
4092
|
-
*/
|
|
4093
|
-
declare function secureStoragePlugin({
|
|
4094
|
-
store
|
|
4095
|
-
}: PiniaPluginContext): void;
|
|
4096
|
-
//#endregion
|
|
4097
|
-
//#region src/locales/index.d.ts
|
|
4098
|
-
type Locale = string;
|
|
4099
|
-
declare const i18n: _$vue_i18n0.I18n<{}, {}, {}, string, false>;
|
|
4100
|
-
/**
|
|
4101
|
-
* 支持的语言
|
|
4102
|
-
*/
|
|
4103
|
-
declare const supportedLocales: readonly [{
|
|
4104
|
-
readonly label: "简体中文";
|
|
4105
|
-
readonly value: "zh-CN";
|
|
4106
|
-
}, {
|
|
4107
|
-
readonly label: "English";
|
|
4108
|
-
readonly value: "en-US";
|
|
4109
|
-
}];
|
|
4110
|
-
type SupportedLocale = (typeof supportedLocales)[number]["value"];
|
|
4111
|
-
/**
|
|
4112
|
-
* 注册懒加载的 locale 文件
|
|
4113
|
-
*/
|
|
4114
|
-
declare function registerLazyLocale(locale: Locale, loader: () => Promise<Record<string, unknown>>): void;
|
|
4115
|
-
/**
|
|
4116
|
-
* 设置语言
|
|
4117
|
-
*/
|
|
4118
|
-
declare function setLocale(locale: Locale): void;
|
|
4119
|
-
/**
|
|
4120
|
-
* 获取当前语言
|
|
4121
|
-
*/
|
|
4122
|
-
declare function getCurrentLocale(): Locale;
|
|
4123
|
-
/**
|
|
4124
|
-
* 初始化 i18n
|
|
4125
|
-
*/
|
|
4126
|
-
declare function setupI18n(app: App, options?: {
|
|
4127
|
-
defaultLocale?: Locale;
|
|
4128
|
-
lazy?: boolean;
|
|
4129
|
-
}): Promise<void>;
|
|
4130
|
-
/**
|
|
4131
|
-
* 切换语言
|
|
4132
|
-
*/
|
|
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
|
-
}
|
|
4587
|
-
//#endregion
|
|
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 };
|