@maxtan/ez-ui 0.15.0 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +1026 -822
- package/dist/types/index.d.ts +1933 -0
- package/package.json +4 -3
- package/dist/types/components/checkbox/index.d.ts +0 -45
- package/dist/types/components/checkbox/src/checkbox.d.ts +0 -12
- package/dist/types/components/checkbox/src/checkbox.vue.d.ts +0 -17
- package/dist/types/components/dialog/index.d.ts +0 -58
- package/dist/types/components/dialog/src/dialog.d.ts +0 -17
- package/dist/types/components/dialog/src/dialog.vue.d.ts +0 -33
- package/dist/types/components/dynamic-form/index.d.ts +0 -245
- package/dist/types/components/dynamic-form/src/dynamic-form.d.ts +0 -128
- package/dist/types/components/dynamic-form/src/dynamic-form.vue.d.ts +0 -398
- package/dist/types/components/fast-table/index.d.ts +0 -71
- package/dist/types/components/fast-table/src/column-config.vue.d.ts +0 -21
- package/dist/types/components/fast-table/src/fast-table.d.ts +0 -51
- package/dist/types/components/fast-table/src/fast-table.vue.d.ts +0 -48
- package/dist/types/components/fast-table/src/use-fast-table.d.ts +0 -13
- package/dist/types/components/icon/index.d.ts +0 -30
- package/dist/types/components/icon/src/icon.d.ts +0 -4
- package/dist/types/components/icon/src/icon.vue.d.ts +0 -23
- package/dist/types/components/image-upload/index.d.ts +0 -479
- package/dist/types/components/image-upload/src/image-upload.d.ts +0 -36
- package/dist/types/components/image-upload/src/image-upload.vue.d.ts +0 -432
- package/dist/types/components/index.d.ts +0 -11
- package/dist/types/components/pagination/index.d.ts +0 -49
- package/dist/types/components/pagination/src/pagination.d.ts +0 -2
- package/dist/types/components/pagination/src/pagination.vue.d.ts +0 -16
- package/dist/types/components/radio/index.d.ts +0 -45
- package/dist/types/components/radio/src/radio.d.ts +0 -10
- package/dist/types/components/radio/src/radio.vue.d.ts +0 -16
- package/dist/types/components/search-form/index.d.ts +0 -50
- package/dist/types/components/search-form/src/search-form.d.ts +0 -4
- package/dist/types/components/search-form/src/search-form.vue.d.ts +0 -35
- package/dist/types/components/select/index.d.ts +0 -37
- package/dist/types/components/select/src/select.d.ts +0 -20
- package/dist/types/components/select/src/select.vue.d.ts +0 -13
- package/dist/types/components/table/index.d.ts +0 -49
- package/dist/types/components/table/src/table.d.ts +0 -27
- package/dist/types/components/table/src/table.vue.d.ts +0 -30
- package/dist/types/ez-ui/component.d.ts +0 -1600
- package/dist/types/ez-ui/defaults.d.ts +0 -4
- package/dist/types/ez-ui/index.d.ts +0 -4
- package/dist/types/ez-ui/make-installer.d.ts +0 -4
- package/dist/types/ez-ui/plugin.d.ts +0 -3
- package/dist/types/ez-ui/vite.config.d.ts +0 -2
|
@@ -0,0 +1,1933 @@
|
|
|
1
|
+
import { AllowedComponentProps } from 'vue';
|
|
2
|
+
import { App } from 'vue';
|
|
3
|
+
import { Arrayable } from 'element-plus/es/utils/typescript.mjs';
|
|
4
|
+
import { Awaitable } from 'element-plus/es/utils/typescript.mjs';
|
|
5
|
+
import { CheckboxGroupValueType } from 'element-plus';
|
|
6
|
+
import { CheckboxOption as CheckboxOption_2 } from '.';
|
|
7
|
+
import { CheckboxProps as CheckboxProps_2 } from '.';
|
|
8
|
+
import { CheckboxType as CheckboxType_2 } from '.';
|
|
9
|
+
import { Component as Component_2 } from 'vue';
|
|
10
|
+
import { ComponentCustomProperties } from 'vue';
|
|
11
|
+
import { ComponentCustomProps } from 'vue';
|
|
12
|
+
import { ComponentInternalInstance } from 'vue';
|
|
13
|
+
import { ComponentOptionsBase } from 'vue';
|
|
14
|
+
import { ComponentOptionsMixin } from 'vue';
|
|
15
|
+
import { ComponentProvideOptions } from 'vue';
|
|
16
|
+
import { ComponentPublicInstance as ComponentPublicInstance_2 } from 'vue';
|
|
17
|
+
import { CreateComponentPublicInstanceWithMixins } from 'vue';
|
|
18
|
+
import { DebuggerEvent } from 'vue';
|
|
19
|
+
import { DialogProps as DialogProps_2 } from '.';
|
|
20
|
+
import { DialogSolts as DialogSolts_2 } from '.';
|
|
21
|
+
import { DynamicFormProps as DynamicFormProps_2 } from '.';
|
|
22
|
+
import { DynamicFormSlots as DynamicFormSlots_2 } from '.';
|
|
23
|
+
import { EpPropFinalized } from 'element-plus/es/utils/index.mjs';
|
|
24
|
+
import { EpPropMergeType } from 'element-plus/es/utils/index.mjs';
|
|
25
|
+
import { ExtractPropTypes as ExtractPropTypes_2 } from 'vue';
|
|
26
|
+
import { EzFormItemProps as EzFormItemProps_2 } from '.';
|
|
27
|
+
import { FastTableSolt as FastTableSolt_2 } from '.';
|
|
28
|
+
import { FormData as FormData_3 } from '.';
|
|
29
|
+
import { FormGroupConfig as FormGroupConfig_2 } from '.';
|
|
30
|
+
import { FormItemConfig as FormItemConfig_2 } from '.';
|
|
31
|
+
import { FormItemContext } from 'element-plus';
|
|
32
|
+
import { FormItemProp } from 'element-plus';
|
|
33
|
+
import { FormItemRule } from 'element-plus';
|
|
34
|
+
import { FormProps } from 'element-plus';
|
|
35
|
+
import { FormValidateCallback } from 'element-plus';
|
|
36
|
+
import { FormValidationResult } from 'element-plus';
|
|
37
|
+
import { GlobalComponents } from 'vue';
|
|
38
|
+
import { GlobalDirectives } from 'vue';
|
|
39
|
+
import { IconProps as IconProps_2 } from '.';
|
|
40
|
+
import { ImageUpload as ImageUpload_2 } from '.';
|
|
41
|
+
import { Mutable } from 'element-plus/es/utils/typescript.mjs';
|
|
42
|
+
import { nextTick as nextTick_2 } from 'vue';
|
|
43
|
+
import { OnCleanup } from '@vue/reactivity';
|
|
44
|
+
import { Plugin as Plugin_2 } from 'vue';
|
|
45
|
+
import { PrimitiveValue as PrimitiveValue_2 } from '..';
|
|
46
|
+
import { PropType as PropType_2 } from 'vue';
|
|
47
|
+
import { PublicProps } from 'vue';
|
|
48
|
+
import { RadioOption as RadioOption_2 } from '.';
|
|
49
|
+
import { RadioProps as RadioProps_2 } from '.';
|
|
50
|
+
import { RadioType as RadioType_2 } from '.';
|
|
51
|
+
import { Reactive } from 'vue';
|
|
52
|
+
import { SearchFormProps as SearchFormProps_2 } from '.';
|
|
53
|
+
import { SearchParams as SearchParams_2 } from '.';
|
|
54
|
+
import { SelectOption as SelectOption_2 } from '.';
|
|
55
|
+
import { SelectProps as SelectProps_2 } from '.';
|
|
56
|
+
import { ShallowUnwrapRef } from 'vue';
|
|
57
|
+
import { Slot as Slot_2 } from 'vue';
|
|
58
|
+
import { TableColumn as TableColumn_2 } from '..';
|
|
59
|
+
import { TableColumn as TableColumn_3 } from '.';
|
|
60
|
+
import { TableColumnCtx } from 'element-plus';
|
|
61
|
+
import { TableExpose as TableExpose_2 } from '.';
|
|
62
|
+
import { TableHeaderProps as TableHeaderProps_2 } from '.';
|
|
63
|
+
import { TableSolt as TableSolt_2 } from '.';
|
|
64
|
+
import { UploadData } from 'element-plus';
|
|
65
|
+
import { UploadFile } from 'element-plus';
|
|
66
|
+
import { UploadFiles } from 'element-plus';
|
|
67
|
+
import { UploadProgressEvent } from 'element-plus';
|
|
68
|
+
import { UploadRawFile } from 'element-plus';
|
|
69
|
+
import { UploadRequestHandler } from 'element-plus';
|
|
70
|
+
import { UploadStatus } from 'element-plus';
|
|
71
|
+
import { UploadUserFile } from 'element-plus';
|
|
72
|
+
import { VNode as VNode_2 } from 'vue';
|
|
73
|
+
import { VNodeChild } from 'vue';
|
|
74
|
+
import { VNodeProps } from 'vue';
|
|
75
|
+
import { WatchOptions } from 'vue';
|
|
76
|
+
import { WatchStopHandle } from 'vue';
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* 异步回调函数类型
|
|
80
|
+
*/
|
|
81
|
+
export declare type AsyncCallbackFn<T = any> = (value: T) => Promise<void>;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* 基础组件 Props 接口
|
|
85
|
+
* 可被其他组件继承
|
|
86
|
+
*/
|
|
87
|
+
export declare interface BaseComponentProps {
|
|
88
|
+
/** 是否禁用 */
|
|
89
|
+
disabled?: boolean;
|
|
90
|
+
/** 组件尺寸 */
|
|
91
|
+
size?: ComponentSize;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* 共享类型定义
|
|
96
|
+
* 用于组件库内部通用的类型定义
|
|
97
|
+
*/
|
|
98
|
+
/**
|
|
99
|
+
* 基础选项接口
|
|
100
|
+
* 适用于 select、radio、checkbox 等选择类组件
|
|
101
|
+
*/
|
|
102
|
+
export declare interface BaseOption<T = any> {
|
|
103
|
+
/** 显示标签 */
|
|
104
|
+
label: string;
|
|
105
|
+
/** 选项值 */
|
|
106
|
+
value: T;
|
|
107
|
+
/** 是否禁用 */
|
|
108
|
+
disabled?: boolean;
|
|
109
|
+
/** 扩展属性 */
|
|
110
|
+
[key: string]: any;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
declare interface BasePage {
|
|
114
|
+
current: number;
|
|
115
|
+
size: number;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
declare interface BaseSort {
|
|
119
|
+
desc?: string;
|
|
120
|
+
asc?: string;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* 通用回调函数类型
|
|
125
|
+
*/
|
|
126
|
+
export declare type CallbackFn<T = any> = (value: T) => void;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* 触发方式为 change 的表单项类型
|
|
130
|
+
*/
|
|
131
|
+
export declare const CHANGE_TRIGGER_TYPES: Set<string>;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Checkbox 选项接口(扩展了基础选项)
|
|
135
|
+
*/
|
|
136
|
+
export declare interface CheckboxOption extends BaseOption<string | number | boolean | Record<string, unknown>> {
|
|
137
|
+
/** true 时的标签 */
|
|
138
|
+
trueLabel?: string | number;
|
|
139
|
+
/** false 时的标签 */
|
|
140
|
+
falseLabel?: string | number;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Checkbox 组件 Props
|
|
145
|
+
*/
|
|
146
|
+
export declare interface CheckboxProps {
|
|
147
|
+
/** 样式类型 */
|
|
148
|
+
type?: CheckboxType;
|
|
149
|
+
/** 选项数据 */
|
|
150
|
+
options: CheckboxOption[];
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Checkbox 样式类型
|
|
155
|
+
*/
|
|
156
|
+
export declare type CheckboxType = ComponentType;
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* 组件尺寸类型
|
|
160
|
+
*/
|
|
161
|
+
export declare type ComponentSize = 'large' | 'default' | 'small';
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* 组件类型(按钮、边框等样式)
|
|
165
|
+
*/
|
|
166
|
+
export declare type ComponentType = 'default' | 'button' | 'border';
|
|
167
|
+
|
|
168
|
+
declare const _default: {
|
|
169
|
+
install: (app: App) => void;
|
|
170
|
+
};
|
|
171
|
+
export default _default;
|
|
172
|
+
|
|
173
|
+
export declare enum DialogDefaultText {
|
|
174
|
+
CANCEL = "\u53D6\u6D88",
|
|
175
|
+
CONFIRM = "\u786E\u5B9A"
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
export declare interface DialogProps {
|
|
179
|
+
title?: string;
|
|
180
|
+
loading?: boolean;
|
|
181
|
+
cancelText?: string;
|
|
182
|
+
confirmText?: string;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/** 弹窗插槽类型 */
|
|
186
|
+
export declare type DialogSolts = {
|
|
187
|
+
header?: () => VNodeChild;
|
|
188
|
+
default?: () => VNodeChild;
|
|
189
|
+
footer?: () => VNodeChild;
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* 动态表单暴露的方法
|
|
194
|
+
*/
|
|
195
|
+
export declare interface DynamicFormExpose {
|
|
196
|
+
/** 验证整个表单 */
|
|
197
|
+
validate: () => Promise<boolean>;
|
|
198
|
+
/** 验证指定字段 */
|
|
199
|
+
validateField: (props: string | string[]) => Promise<boolean>;
|
|
200
|
+
/** 清空验证 */
|
|
201
|
+
clearValidate: (props?: string | string[]) => void;
|
|
202
|
+
/** 获取表单数据(深拷贝) */
|
|
203
|
+
getFormData: () => FormData_2;
|
|
204
|
+
/** 设置表单数据 */
|
|
205
|
+
setFormData: (data: FormData_2, merge?: boolean) => void;
|
|
206
|
+
/** 表单实例 */
|
|
207
|
+
formRef: any;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* 分组插槽作用域
|
|
212
|
+
*/
|
|
213
|
+
export declare interface DynamicFormGroupSlotScope {
|
|
214
|
+
/** 分组配置 */
|
|
215
|
+
group: FormGroupConfig;
|
|
216
|
+
/** 分组索引 */
|
|
217
|
+
index: number;
|
|
218
|
+
/** 分组内可见项 */
|
|
219
|
+
items: FormItemConfig[];
|
|
220
|
+
/** 完整表单数据 */
|
|
221
|
+
formData: FormData_2;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* 标签插槽作用域
|
|
226
|
+
*/
|
|
227
|
+
export declare interface DynamicFormLabelSlotScope {
|
|
228
|
+
/** 表单项配置 */
|
|
229
|
+
item: FormItemConfig;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* 动态表单属性
|
|
234
|
+
* 继承 FormProps,排除会干扰内部逻辑的属性,并添加组件特有属性
|
|
235
|
+
*/
|
|
236
|
+
export declare interface DynamicFormProps extends Partial<Omit<FormProps, 'model' | 'rules' | 'showMessage'>> {
|
|
237
|
+
/** 扁平表单配置项(兼容旧版) */
|
|
238
|
+
items?: FormItemConfig[];
|
|
239
|
+
/** 分组表单配置项(新版推荐) */
|
|
240
|
+
groups?: FormGroupConfig[];
|
|
241
|
+
/** 双向绑定的表单数据 */
|
|
242
|
+
modelValue?: FormData_2;
|
|
243
|
+
/** 栅格布局列数(默认 1) */
|
|
244
|
+
cols?: number;
|
|
245
|
+
/** 栅格间距(默认 20px) */
|
|
246
|
+
gutter?: number;
|
|
247
|
+
/** 全局禁用 */
|
|
248
|
+
disabled?: boolean;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* 动态表单插槽
|
|
253
|
+
*/
|
|
254
|
+
export declare interface DynamicFormSlots {
|
|
255
|
+
/**
|
|
256
|
+
* 动态表单支持项级与分组级的动态插槽,
|
|
257
|
+
* 统一放宽为 any 作用域,避免模板静态校验冲突。
|
|
258
|
+
*/
|
|
259
|
+
[key: string]: ((scope: any) => VNode_2 | VNode_2[]) | undefined;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* 动态表单插槽作用域
|
|
264
|
+
*/
|
|
265
|
+
export declare interface DynamicFormSlotScope {
|
|
266
|
+
/** 表单项配置 */
|
|
267
|
+
item: FormItemConfig;
|
|
268
|
+
/** 当前值 */
|
|
269
|
+
value: any;
|
|
270
|
+
/** 完整表单数据 */
|
|
271
|
+
formData: FormData_2;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
export declare const EzCheckbox: ({
|
|
275
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
276
|
+
modelValue?: CheckboxGroupValueType;
|
|
277
|
+
} & CheckboxProps_2> & Readonly<{
|
|
278
|
+
"onUpdate:modelValue"?: (value: CheckboxGroupValueType) => any;
|
|
279
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
280
|
+
"update:modelValue": (value: CheckboxGroupValueType) => any;
|
|
281
|
+
}, PublicProps, {
|
|
282
|
+
type: CheckboxType_2;
|
|
283
|
+
options: CheckboxOption_2[];
|
|
284
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
285
|
+
P: {};
|
|
286
|
+
B: {};
|
|
287
|
+
D: {};
|
|
288
|
+
C: {};
|
|
289
|
+
M: {};
|
|
290
|
+
Defaults: {};
|
|
291
|
+
}, Readonly<{
|
|
292
|
+
modelValue?: CheckboxGroupValueType;
|
|
293
|
+
} & CheckboxProps_2> & Readonly<{
|
|
294
|
+
"onUpdate:modelValue"?: (value: CheckboxGroupValueType) => any;
|
|
295
|
+
}>, {}, {}, {}, {}, {
|
|
296
|
+
type: CheckboxType_2;
|
|
297
|
+
options: CheckboxOption_2[];
|
|
298
|
+
}>;
|
|
299
|
+
__isFragment?: never;
|
|
300
|
+
__isTeleport?: never;
|
|
301
|
+
__isSuspense?: never;
|
|
302
|
+
} & ComponentOptionsBase<Readonly<{
|
|
303
|
+
modelValue?: CheckboxGroupValueType;
|
|
304
|
+
} & CheckboxProps_2> & Readonly<{
|
|
305
|
+
"onUpdate:modelValue"?: (value: CheckboxGroupValueType) => any;
|
|
306
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
307
|
+
"update:modelValue": (value: CheckboxGroupValueType) => any;
|
|
308
|
+
}, string, {
|
|
309
|
+
type: CheckboxType_2;
|
|
310
|
+
options: CheckboxOption_2[];
|
|
311
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin_2) & Record<string, any>;
|
|
312
|
+
|
|
313
|
+
export declare const EzDialog: ({
|
|
314
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
315
|
+
modelValue?: boolean;
|
|
316
|
+
} & DialogProps_2> & Readonly<{
|
|
317
|
+
onConfirm?: (...args: any[]) => any;
|
|
318
|
+
onCancel?: (...args: any[]) => any;
|
|
319
|
+
"onUpdate:modelValue"?: (value: boolean) => any;
|
|
320
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
321
|
+
confirm: (...args: any[]) => void;
|
|
322
|
+
cancel: (...args: any[]) => void;
|
|
323
|
+
"update:modelValue": (value: boolean) => void;
|
|
324
|
+
}, PublicProps, {
|
|
325
|
+
loading: boolean;
|
|
326
|
+
title: string;
|
|
327
|
+
cancelText: string;
|
|
328
|
+
confirmText: string;
|
|
329
|
+
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
330
|
+
P: {};
|
|
331
|
+
B: {};
|
|
332
|
+
D: {};
|
|
333
|
+
C: {};
|
|
334
|
+
M: {};
|
|
335
|
+
Defaults: {};
|
|
336
|
+
}, Readonly<{
|
|
337
|
+
modelValue?: boolean;
|
|
338
|
+
} & DialogProps_2> & Readonly<{
|
|
339
|
+
onConfirm?: (...args: any[]) => any;
|
|
340
|
+
onCancel?: (...args: any[]) => any;
|
|
341
|
+
"onUpdate:modelValue"?: (value: boolean) => any;
|
|
342
|
+
}>, {}, {}, {}, {}, {
|
|
343
|
+
loading: boolean;
|
|
344
|
+
title: string;
|
|
345
|
+
cancelText: string;
|
|
346
|
+
confirmText: string;
|
|
347
|
+
}>;
|
|
348
|
+
__isFragment?: never;
|
|
349
|
+
__isTeleport?: never;
|
|
350
|
+
__isSuspense?: never;
|
|
351
|
+
} & ComponentOptionsBase<Readonly<{
|
|
352
|
+
modelValue?: boolean;
|
|
353
|
+
} & DialogProps_2> & Readonly<{
|
|
354
|
+
onConfirm?: (...args: any[]) => any;
|
|
355
|
+
onCancel?: (...args: any[]) => any;
|
|
356
|
+
"onUpdate:modelValue"?: (value: boolean) => any;
|
|
357
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
358
|
+
confirm: (...args: any[]) => void;
|
|
359
|
+
cancel: (...args: any[]) => void;
|
|
360
|
+
"update:modelValue": (value: boolean) => void;
|
|
361
|
+
}, string, {
|
|
362
|
+
loading: boolean;
|
|
363
|
+
title: string;
|
|
364
|
+
cancelText: string;
|
|
365
|
+
confirmText: string;
|
|
366
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
367
|
+
$slots: Readonly<DialogSolts_2> & DialogSolts_2;
|
|
368
|
+
}) & Plugin_2) & Record<string, any>;
|
|
369
|
+
|
|
370
|
+
export declare const EzDynamicForm: ({
|
|
371
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
372
|
+
modelValue?: FormData_3;
|
|
373
|
+
} & DynamicFormProps_2> & Readonly<{
|
|
374
|
+
"onUpdate:modelValue"?: (value: FormData_3) => any;
|
|
375
|
+
}>, {
|
|
376
|
+
validate: () => Promise<boolean>;
|
|
377
|
+
validateField: (props: string | string[]) => Promise<boolean>;
|
|
378
|
+
clearValidate: (props?: string | string[]) => void;
|
|
379
|
+
getFormData: () => FormData_3;
|
|
380
|
+
setFormData: (data: FormData_3, merge?: boolean) => void;
|
|
381
|
+
formRef: any;
|
|
382
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
383
|
+
"update:modelValue": (value: FormData_3) => any;
|
|
384
|
+
}, PublicProps, {
|
|
385
|
+
items: FormItemConfig_2[];
|
|
386
|
+
groups: FormGroupConfig_2[];
|
|
387
|
+
cols: number;
|
|
388
|
+
gutter: number;
|
|
389
|
+
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
390
|
+
formRef: {
|
|
391
|
+
$: ComponentInternalInstance;
|
|
392
|
+
$data: {};
|
|
393
|
+
$props: Partial<{
|
|
394
|
+
readonly disabled: boolean;
|
|
395
|
+
readonly inline: boolean;
|
|
396
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
397
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "left" | "right" | "top", unknown>;
|
|
398
|
+
readonly inlineMessage: boolean;
|
|
399
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
400
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
|
401
|
+
readonly labelSuffix: string;
|
|
402
|
+
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
403
|
+
readonly scrollIntoViewOptions: EpPropMergeType<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown>;
|
|
404
|
+
readonly statusIcon: boolean;
|
|
405
|
+
readonly hideRequiredAsterisk: boolean;
|
|
406
|
+
readonly scrollToError: boolean;
|
|
407
|
+
}> & Omit<{
|
|
408
|
+
readonly disabled: boolean;
|
|
409
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "top" | "left" | "right", unknown>;
|
|
410
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
|
411
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
412
|
+
readonly labelSuffix: string;
|
|
413
|
+
readonly inline: boolean;
|
|
414
|
+
readonly inlineMessage: boolean;
|
|
415
|
+
readonly statusIcon: boolean;
|
|
416
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
417
|
+
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
418
|
+
readonly hideRequiredAsterisk: boolean;
|
|
419
|
+
readonly scrollToError: boolean;
|
|
420
|
+
readonly scrollIntoViewOptions: true;
|
|
421
|
+
readonly size?: EpPropMergeType<StringConstructor, "" | "small" | "large" | "default", unknown>;
|
|
422
|
+
readonly model?: Record<string, any>;
|
|
423
|
+
readonly rules?: Partial<Record<string, Arrayable<FormItemRule>>>;
|
|
424
|
+
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
425
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "disabled" | "labelPosition" | "requireAsteriskPosition" | "labelWidth" | "labelSuffix" | "inline" | "inlineMessage" | "statusIcon" | "showMessage" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions">;
|
|
426
|
+
$attrs: {
|
|
427
|
+
[x: string]: unknown;
|
|
428
|
+
};
|
|
429
|
+
$refs: {
|
|
430
|
+
[x: string]: unknown;
|
|
431
|
+
};
|
|
432
|
+
$slots: Readonly<{
|
|
433
|
+
[name: string]: Slot_2<any>;
|
|
434
|
+
}>;
|
|
435
|
+
$root: ComponentPublicInstance_2 | null;
|
|
436
|
+
$parent: ComponentPublicInstance_2 | null;
|
|
437
|
+
$host: Element | null;
|
|
438
|
+
$emit: (event: "validate", prop: FormItemProp, isValid: boolean, message: string) => void;
|
|
439
|
+
$el: any;
|
|
440
|
+
$options: ComponentOptionsBase<Readonly<ExtractPropTypes_2< {
|
|
441
|
+
readonly model: ObjectConstructor;
|
|
442
|
+
readonly rules: {
|
|
443
|
+
readonly type: PropType_2<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
444
|
+
readonly required: false;
|
|
445
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
446
|
+
__epPropKey: true;
|
|
447
|
+
};
|
|
448
|
+
readonly labelPosition: EpPropFinalized<StringConstructor, "left" | "right" | "top", unknown, "right", boolean>;
|
|
449
|
+
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
|
450
|
+
readonly labelWidth: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
451
|
+
readonly labelSuffix: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
452
|
+
readonly inline: BooleanConstructor;
|
|
453
|
+
readonly inlineMessage: BooleanConstructor;
|
|
454
|
+
readonly statusIcon: BooleanConstructor;
|
|
455
|
+
readonly showMessage: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
456
|
+
readonly validateOnRuleChange: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
457
|
+
readonly hideRequiredAsterisk: BooleanConstructor;
|
|
458
|
+
readonly scrollToError: BooleanConstructor;
|
|
459
|
+
readonly scrollIntoViewOptions: EpPropFinalized<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown, true, boolean>;
|
|
460
|
+
readonly size: {
|
|
461
|
+
readonly type: PropType_2<EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown>>;
|
|
462
|
+
readonly required: false;
|
|
463
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
464
|
+
__epPropKey: true;
|
|
465
|
+
};
|
|
466
|
+
readonly disabled: BooleanConstructor;
|
|
467
|
+
}>> & {
|
|
468
|
+
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
469
|
+
}, {
|
|
470
|
+
validate: (callback?: FormValidateCallback) => FormValidationResult;
|
|
471
|
+
validateField: (props?: Arrayable<FormItemProp>, callback?: FormValidateCallback) => FormValidationResult;
|
|
472
|
+
resetFields: (props?: Arrayable<FormItemProp>) => void;
|
|
473
|
+
clearValidate: (props?: Arrayable<FormItemProp>) => void;
|
|
474
|
+
scrollToField: (prop: FormItemProp) => void;
|
|
475
|
+
getField: (prop: FormItemProp) => FormItemContext | undefined;
|
|
476
|
+
fields: Reactive<FormItemContext[]>;
|
|
477
|
+
setInitialValues: (initModel: Record<string, any>) => void;
|
|
478
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
479
|
+
validate: (prop: FormItemProp, isValid: boolean, message: string) => void;
|
|
480
|
+
}, string, {
|
|
481
|
+
readonly disabled: boolean;
|
|
482
|
+
readonly inline: boolean;
|
|
483
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
484
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "left" | "right" | "top", unknown>;
|
|
485
|
+
readonly inlineMessage: boolean;
|
|
486
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
487
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
|
488
|
+
readonly labelSuffix: string;
|
|
489
|
+
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
490
|
+
readonly scrollIntoViewOptions: EpPropMergeType<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown>;
|
|
491
|
+
readonly statusIcon: boolean;
|
|
492
|
+
readonly hideRequiredAsterisk: boolean;
|
|
493
|
+
readonly scrollToError: boolean;
|
|
494
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
495
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
496
|
+
created?: (() => void) | (() => void)[];
|
|
497
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
498
|
+
mounted?: (() => void) | (() => void)[];
|
|
499
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
500
|
+
updated?: (() => void) | (() => void)[];
|
|
501
|
+
activated?: (() => void) | (() => void)[];
|
|
502
|
+
deactivated?: (() => void) | (() => void)[];
|
|
503
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
504
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
505
|
+
destroyed?: (() => void) | (() => void)[];
|
|
506
|
+
unmounted?: (() => void) | (() => void)[];
|
|
507
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
508
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
509
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance_2 | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance_2 | null, info: string) => boolean | void)[];
|
|
510
|
+
};
|
|
511
|
+
$forceUpdate: () => void;
|
|
512
|
+
$nextTick: nextTick_2;
|
|
513
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
514
|
+
} & Readonly<{
|
|
515
|
+
readonly disabled: boolean;
|
|
516
|
+
readonly inline: boolean;
|
|
517
|
+
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
518
|
+
readonly labelPosition: EpPropMergeType<StringConstructor, "left" | "right" | "top", unknown>;
|
|
519
|
+
readonly inlineMessage: boolean;
|
|
520
|
+
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
521
|
+
readonly requireAsteriskPosition: EpPropMergeType<StringConstructor, "left" | "right", unknown>;
|
|
522
|
+
readonly labelSuffix: string;
|
|
523
|
+
readonly validateOnRuleChange: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
524
|
+
readonly scrollIntoViewOptions: EpPropMergeType<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown>;
|
|
525
|
+
readonly statusIcon: boolean;
|
|
526
|
+
readonly hideRequiredAsterisk: boolean;
|
|
527
|
+
readonly scrollToError: boolean;
|
|
528
|
+
}> & Omit<Readonly<ExtractPropTypes_2< {
|
|
529
|
+
readonly model: ObjectConstructor;
|
|
530
|
+
readonly rules: {
|
|
531
|
+
readonly type: PropType_2<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
532
|
+
readonly required: false;
|
|
533
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
534
|
+
__epPropKey: true;
|
|
535
|
+
};
|
|
536
|
+
readonly labelPosition: EpPropFinalized<StringConstructor, "left" | "right" | "top", unknown, "right", boolean>;
|
|
537
|
+
readonly requireAsteriskPosition: EpPropFinalized<StringConstructor, "left" | "right", unknown, "left", boolean>;
|
|
538
|
+
readonly labelWidth: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
539
|
+
readonly labelSuffix: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
540
|
+
readonly inline: BooleanConstructor;
|
|
541
|
+
readonly inlineMessage: BooleanConstructor;
|
|
542
|
+
readonly statusIcon: BooleanConstructor;
|
|
543
|
+
readonly showMessage: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
544
|
+
readonly validateOnRuleChange: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
545
|
+
readonly hideRequiredAsterisk: BooleanConstructor;
|
|
546
|
+
readonly scrollToError: BooleanConstructor;
|
|
547
|
+
readonly scrollIntoViewOptions: EpPropFinalized<(new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions) | ((new (...args: any[]) => boolean | ScrollIntoViewOptions) | (() => boolean | ScrollIntoViewOptions))[], unknown, unknown, true, boolean>;
|
|
548
|
+
readonly size: {
|
|
549
|
+
readonly type: PropType_2<EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown>>;
|
|
550
|
+
readonly required: false;
|
|
551
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
552
|
+
__epPropKey: true;
|
|
553
|
+
};
|
|
554
|
+
readonly disabled: BooleanConstructor;
|
|
555
|
+
}>> & {
|
|
556
|
+
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
557
|
+
}, "disabled" | "labelPosition" | "requireAsteriskPosition" | "labelWidth" | "labelSuffix" | "inline" | "inlineMessage" | "statusIcon" | "showMessage" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "fields" | "validate" | "clearValidate" | "validateField" | "resetFields" | "scrollToField" | "getField" | "setInitialValues"> & ShallowUnwrapRef< {
|
|
558
|
+
validate: (callback?: FormValidateCallback) => FormValidationResult;
|
|
559
|
+
validateField: (props?: Arrayable<FormItemProp>, callback?: FormValidateCallback) => FormValidationResult;
|
|
560
|
+
resetFields: (props?: Arrayable<FormItemProp>) => void;
|
|
561
|
+
clearValidate: (props?: Arrayable<FormItemProp>) => void;
|
|
562
|
+
scrollToField: (prop: FormItemProp) => void;
|
|
563
|
+
getField: (prop: FormItemProp) => FormItemContext | undefined;
|
|
564
|
+
fields: Reactive<FormItemContext[]>;
|
|
565
|
+
setInitialValues: (initModel: Record<string, any>) => void;
|
|
566
|
+
}> & {} & ComponentCustomProperties & {} & {
|
|
567
|
+
$slots: {
|
|
568
|
+
default?: (props: {}) => any;
|
|
569
|
+
};
|
|
570
|
+
};
|
|
571
|
+
}, any, ComponentProvideOptions, {
|
|
572
|
+
P: {};
|
|
573
|
+
B: {};
|
|
574
|
+
D: {};
|
|
575
|
+
C: {};
|
|
576
|
+
M: {};
|
|
577
|
+
Defaults: {};
|
|
578
|
+
}, Readonly<{
|
|
579
|
+
modelValue?: FormData_3;
|
|
580
|
+
} & DynamicFormProps_2> & Readonly<{
|
|
581
|
+
"onUpdate:modelValue"?: (value: FormData_3) => any;
|
|
582
|
+
}>, {
|
|
583
|
+
validate: () => Promise<boolean>;
|
|
584
|
+
validateField: (props: string | string[]) => Promise<boolean>;
|
|
585
|
+
clearValidate: (props?: string | string[]) => void;
|
|
586
|
+
getFormData: () => FormData_3;
|
|
587
|
+
setFormData: (data: FormData_3, merge?: boolean) => void;
|
|
588
|
+
formRef: any;
|
|
589
|
+
}, {}, {}, {}, {
|
|
590
|
+
items: FormItemConfig_2[];
|
|
591
|
+
groups: FormGroupConfig_2[];
|
|
592
|
+
cols: number;
|
|
593
|
+
gutter: number;
|
|
594
|
+
}>;
|
|
595
|
+
__isFragment?: never;
|
|
596
|
+
__isTeleport?: never;
|
|
597
|
+
__isSuspense?: never;
|
|
598
|
+
} & ComponentOptionsBase<Readonly<{
|
|
599
|
+
modelValue?: FormData_3;
|
|
600
|
+
} & DynamicFormProps_2> & Readonly<{
|
|
601
|
+
"onUpdate:modelValue"?: (value: FormData_3) => any;
|
|
602
|
+
}>, {
|
|
603
|
+
validate: () => Promise<boolean>;
|
|
604
|
+
validateField: (props: string | string[]) => Promise<boolean>;
|
|
605
|
+
clearValidate: (props?: string | string[]) => void;
|
|
606
|
+
getFormData: () => FormData_3;
|
|
607
|
+
setFormData: (data: FormData_3, merge?: boolean) => void;
|
|
608
|
+
formRef: any;
|
|
609
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
610
|
+
"update:modelValue": (value: FormData_3) => any;
|
|
611
|
+
}, string, {
|
|
612
|
+
items: FormItemConfig_2[];
|
|
613
|
+
groups: FormGroupConfig_2[];
|
|
614
|
+
cols: number;
|
|
615
|
+
gutter: number;
|
|
616
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
617
|
+
$slots: Readonly<DynamicFormSlots_2> & DynamicFormSlots_2;
|
|
618
|
+
}) & Plugin_2) & Record<string, any>;
|
|
619
|
+
|
|
620
|
+
export declare const EzFastTable: ((<T = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
|
|
621
|
+
attrs: any;
|
|
622
|
+
slots: Readonly<NonNullable<FastTableSolt_2<T>>> & {
|
|
623
|
+
form: () => void;
|
|
624
|
+
header: (props: TableHeaderProps_2<T>) => void;
|
|
625
|
+
freeArea: () => void;
|
|
626
|
+
} & {
|
|
627
|
+
[x: string]: (props: {
|
|
628
|
+
row: T;
|
|
629
|
+
column: TableColumn_2<T>;
|
|
630
|
+
$index: number;
|
|
631
|
+
}) => VNodeChild;
|
|
632
|
+
} & {
|
|
633
|
+
append?: () => VNodeChild;
|
|
634
|
+
empty?: () => VNodeChild;
|
|
635
|
+
} & {
|
|
636
|
+
[x: `header-${string}`]: (props: {
|
|
637
|
+
column: TableColumn_2<T>;
|
|
638
|
+
$index: number;
|
|
639
|
+
}) => VNodeChild;
|
|
640
|
+
};
|
|
641
|
+
emit: ((event: "reset" | "changePage" | "query", ...args: any[]) => void) & (((evt: "update:columns", value: TableColumn_2<T>[]) => void) & ((evt: "update:params", value: SearchParams_2) => void) & ((evt: "update:loading", value: boolean) => void));
|
|
642
|
+
}, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
643
|
+
props: {
|
|
644
|
+
readonly onReset?: (...args: any[]) => any;
|
|
645
|
+
readonly "onUpdate:columns"?: (value: TableColumn_2<T>[]) => any;
|
|
646
|
+
readonly "onUpdate:params"?: (value: SearchParams_2) => any;
|
|
647
|
+
readonly "onUpdate:loading"?: (value: boolean) => any;
|
|
648
|
+
readonly onChangePage?: (...args: any[]) => any;
|
|
649
|
+
readonly onQuery?: (...args: any[]) => any;
|
|
650
|
+
params?: SearchParams_2;
|
|
651
|
+
columns?: TableColumn_2<T>[] & TableColumn_2<any>[];
|
|
652
|
+
loading?: boolean;
|
|
653
|
+
api: (params?: any) => Promise<any>;
|
|
654
|
+
beforeSearch?: (params: SearchParams_2) => Promise<void>;
|
|
655
|
+
columnTool?: boolean;
|
|
656
|
+
expanded?: boolean;
|
|
657
|
+
data?: any[];
|
|
658
|
+
rowKey?: string;
|
|
659
|
+
} & PublicProps;
|
|
660
|
+
expose(exposed: ShallowUnwrapRef< {
|
|
661
|
+
search: () => void;
|
|
662
|
+
query: () => Promise<void>;
|
|
663
|
+
getTableRef: () => any;
|
|
664
|
+
}>): void;
|
|
665
|
+
attrs: any;
|
|
666
|
+
slots: Readonly<NonNullable<FastTableSolt_2<T>>> & {
|
|
667
|
+
form: () => void;
|
|
668
|
+
header: (props: TableHeaderProps_2<T>) => void;
|
|
669
|
+
freeArea: () => void;
|
|
670
|
+
} & {
|
|
671
|
+
[x: string]: (props: {
|
|
672
|
+
row: T;
|
|
673
|
+
column: TableColumn_2<T>;
|
|
674
|
+
$index: number;
|
|
675
|
+
}) => VNodeChild;
|
|
676
|
+
} & {
|
|
677
|
+
append?: () => VNodeChild;
|
|
678
|
+
empty?: () => VNodeChild;
|
|
679
|
+
} & {
|
|
680
|
+
[x: `header-${string}`]: (props: {
|
|
681
|
+
column: TableColumn_2<T>;
|
|
682
|
+
$index: number;
|
|
683
|
+
}) => VNodeChild;
|
|
684
|
+
};
|
|
685
|
+
emit: ((event: "reset" | "changePage" | "query", ...args: any[]) => void) & (((evt: "update:columns", value: TableColumn_2<T>[]) => void) & ((evt: "update:params", value: SearchParams_2) => void) & ((evt: "update:loading", value: boolean) => void));
|
|
686
|
+
}>) => VNode_2 & {
|
|
687
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
688
|
+
}) & Plugin_2) & Record<string, any>;
|
|
689
|
+
|
|
690
|
+
export declare const EzFormItem: ({
|
|
691
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
692
|
+
modelValue?: any;
|
|
693
|
+
} & EzFormItemProps_2> & Readonly<{
|
|
694
|
+
"onUpdate:modelValue"?: (value: any) => any;
|
|
695
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
696
|
+
"update:modelValue": (value: any) => any;
|
|
697
|
+
}, PublicProps, {
|
|
698
|
+
formData: FormData_3;
|
|
699
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
700
|
+
P: {};
|
|
701
|
+
B: {};
|
|
702
|
+
D: {};
|
|
703
|
+
C: {};
|
|
704
|
+
M: {};
|
|
705
|
+
Defaults: {};
|
|
706
|
+
}, Readonly<{
|
|
707
|
+
modelValue?: any;
|
|
708
|
+
} & EzFormItemProps_2> & Readonly<{
|
|
709
|
+
"onUpdate:modelValue"?: (value: any) => any;
|
|
710
|
+
}>, {}, {}, {}, {}, {
|
|
711
|
+
formData: FormData_3;
|
|
712
|
+
}>;
|
|
713
|
+
__isFragment?: never;
|
|
714
|
+
__isTeleport?: never;
|
|
715
|
+
__isSuspense?: never;
|
|
716
|
+
} & ComponentOptionsBase<Readonly<{
|
|
717
|
+
modelValue?: any;
|
|
718
|
+
} & EzFormItemProps_2> & Readonly<{
|
|
719
|
+
"onUpdate:modelValue"?: (value: any) => any;
|
|
720
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
721
|
+
"update:modelValue": (value: any) => any;
|
|
722
|
+
}, string, {
|
|
723
|
+
formData: FormData_3;
|
|
724
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
725
|
+
$slots: {
|
|
726
|
+
label?(_: {
|
|
727
|
+
config: FormItemConfig_2<any>;
|
|
728
|
+
}): any;
|
|
729
|
+
default?(_: {
|
|
730
|
+
config: FormItemConfig_2<any>;
|
|
731
|
+
value: any;
|
|
732
|
+
formData: FormData_3;
|
|
733
|
+
}): any;
|
|
734
|
+
};
|
|
735
|
+
}) & Plugin_2) & Record<string, any>;
|
|
736
|
+
|
|
737
|
+
/**
|
|
738
|
+
* EzFormItem 组件属性
|
|
739
|
+
*/
|
|
740
|
+
export declare interface EzFormItemProps {
|
|
741
|
+
/** 表单项配置 */
|
|
742
|
+
config: FormItemConfig;
|
|
743
|
+
/** 表单数据(用于联动判断) */
|
|
744
|
+
formData?: FormData_2;
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
export declare const EzIcon: ({
|
|
748
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<IconProps_2> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
749
|
+
size: number | string;
|
|
750
|
+
color: string;
|
|
751
|
+
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
752
|
+
P: {};
|
|
753
|
+
B: {};
|
|
754
|
+
D: {};
|
|
755
|
+
C: {};
|
|
756
|
+
M: {};
|
|
757
|
+
Defaults: {};
|
|
758
|
+
}, Readonly<IconProps_2> & Readonly<{}>, {}, {}, {}, {}, {
|
|
759
|
+
size: number | string;
|
|
760
|
+
color: string;
|
|
761
|
+
}>;
|
|
762
|
+
__isFragment?: never;
|
|
763
|
+
__isTeleport?: never;
|
|
764
|
+
__isSuspense?: never;
|
|
765
|
+
} & ComponentOptionsBase<Readonly<IconProps_2> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
766
|
+
size: number | string;
|
|
767
|
+
color: string;
|
|
768
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
769
|
+
$slots: {
|
|
770
|
+
default?(_: {
|
|
771
|
+
class: string;
|
|
772
|
+
}): any;
|
|
773
|
+
};
|
|
774
|
+
}) & Plugin_2) & Record<string, any>;
|
|
775
|
+
|
|
776
|
+
export declare const EzImageUpload: ({
|
|
777
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
778
|
+
modelValue?: string;
|
|
779
|
+
} & ImageUpload_2> & Readonly<{
|
|
780
|
+
"onUpdate:modelValue"?: (value: string) => any;
|
|
781
|
+
}>, {
|
|
782
|
+
getUploadRef: () => any;
|
|
783
|
+
getUrlList: () => string[];
|
|
784
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
785
|
+
"update:modelValue": (value: string) => any;
|
|
786
|
+
}, PublicProps, {
|
|
787
|
+
style: Record<string, string>;
|
|
788
|
+
disabled: boolean;
|
|
789
|
+
multiple: boolean;
|
|
790
|
+
api: (file: File) => Promise<{
|
|
791
|
+
url: string;
|
|
792
|
+
}>;
|
|
793
|
+
imageTypes: string[];
|
|
794
|
+
limitSize: number;
|
|
795
|
+
fit: "fill" | "contain" | "cover" | "none" | "scale-down";
|
|
796
|
+
limit: number;
|
|
797
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
798
|
+
uploadRef: {
|
|
799
|
+
$: ComponentInternalInstance;
|
|
800
|
+
$data: {};
|
|
801
|
+
$props: Partial<{
|
|
802
|
+
readonly data: EpPropMergeType<(new (...args: any[]) => Mutable<Record<string, any>> | Promise<Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => Awaitable<UploadData>)) | (() => Awaitable<Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => Awaitable<UploadData>)) | ((new (...args: any[]) => Mutable<Record<string, any>> | Promise<Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => Awaitable<UploadData>)) | (() => Awaitable<Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => Awaitable<UploadData>)))[], unknown, unknown>;
|
|
803
|
+
readonly disabled: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
804
|
+
readonly drag: boolean;
|
|
805
|
+
readonly multiple: boolean;
|
|
806
|
+
readonly name: string;
|
|
807
|
+
readonly onProgress: (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
808
|
+
readonly onChange: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
809
|
+
readonly onError: (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
810
|
+
readonly method: string;
|
|
811
|
+
readonly action: string;
|
|
812
|
+
readonly accept: string;
|
|
813
|
+
readonly withCredentials: boolean;
|
|
814
|
+
readonly showFileList: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
815
|
+
readonly fileList: UploadUserFile[];
|
|
816
|
+
readonly autoUpload: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
817
|
+
readonly listType: EpPropMergeType<StringConstructor, "picture" | "text" | "picture-card", unknown>;
|
|
818
|
+
readonly httpRequest: UploadRequestHandler;
|
|
819
|
+
readonly directory: boolean;
|
|
820
|
+
readonly beforeUpload: (rawFile: UploadRawFile) => Awaitable<void | undefined | null | boolean | File | Blob>;
|
|
821
|
+
readonly onRemove: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
822
|
+
readonly onPreview: (uploadFile: UploadFile) => void;
|
|
823
|
+
readonly onSuccess: (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
824
|
+
readonly onExceed: (files: File[], uploadFiles: UploadUserFile[]) => void;
|
|
825
|
+
}> & Omit<{
|
|
826
|
+
readonly name: string;
|
|
827
|
+
readonly data: Mutable< {}>;
|
|
828
|
+
readonly onChange: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
829
|
+
readonly onError: (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
830
|
+
readonly onProgress: (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
831
|
+
readonly multiple: boolean;
|
|
832
|
+
readonly beforeUpload: (rawFile: UploadRawFile) => Awaitable<void | undefined | null | boolean | File | Blob>;
|
|
833
|
+
readonly onRemove: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
834
|
+
readonly onPreview: (uploadFile: UploadFile) => void;
|
|
835
|
+
readonly onSuccess: (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
836
|
+
readonly onExceed: (files: File[], uploadFiles: UploadUserFile[]) => void;
|
|
837
|
+
readonly action: string;
|
|
838
|
+
readonly method: string;
|
|
839
|
+
readonly drag: boolean;
|
|
840
|
+
readonly withCredentials: boolean;
|
|
841
|
+
readonly showFileList: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
842
|
+
readonly accept: string;
|
|
843
|
+
readonly fileList: UploadUserFile[];
|
|
844
|
+
readonly autoUpload: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
845
|
+
readonly listType: EpPropMergeType<StringConstructor, "text" | "picture" | "picture-card", unknown>;
|
|
846
|
+
readonly httpRequest: UploadRequestHandler;
|
|
847
|
+
readonly directory: boolean;
|
|
848
|
+
readonly disabled?: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
849
|
+
readonly limit?: number;
|
|
850
|
+
readonly beforeRemove?: (uploadFile: UploadFile, uploadFiles: UploadFiles) => Awaitable<boolean>;
|
|
851
|
+
readonly crossorigin?: EpPropMergeType<(new (...args: any[]) => "" | "anonymous" | "use-credentials") | (() => "" | "anonymous" | "use-credentials") | ((new (...args: any[]) => "" | "anonymous" | "use-credentials") | (() => "" | "anonymous" | "use-credentials"))[], unknown, unknown>;
|
|
852
|
+
readonly headers?: EpPropMergeType<(new (...args: any[]) => Record<string, any> | Headers) | (() => Record<string, any> | Headers) | ((new (...args: any[]) => Record<string, any> | Headers) | (() => Record<string, any> | Headers))[], unknown, unknown>;
|
|
853
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "name" | "disabled" | "data" | "onChange" | "onError" | "onProgress" | "multiple" | "beforeUpload" | "onRemove" | "onPreview" | "onSuccess" | "onExceed" | "action" | "method" | "drag" | "withCredentials" | "showFileList" | "accept" | "fileList" | "autoUpload" | "listType" | "httpRequest" | "directory">;
|
|
854
|
+
$attrs: {
|
|
855
|
+
[x: string]: unknown;
|
|
856
|
+
};
|
|
857
|
+
$refs: {
|
|
858
|
+
[x: string]: unknown;
|
|
859
|
+
};
|
|
860
|
+
$slots: Readonly<{
|
|
861
|
+
[name: string]: Slot_2<any>;
|
|
862
|
+
}>;
|
|
863
|
+
$root: ComponentPublicInstance_2 | null;
|
|
864
|
+
$parent: ComponentPublicInstance_2 | null;
|
|
865
|
+
$host: Element | null;
|
|
866
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
867
|
+
$el: any;
|
|
868
|
+
$options: ComponentOptionsBase<Readonly<ExtractPropTypes_2< {
|
|
869
|
+
readonly beforeUpload: EpPropFinalized<(new (...args: any[]) => (rawFile: UploadRawFile) => Awaitable<void | undefined | null | boolean | File | Blob>) | (() => (rawFile: UploadRawFile) => Awaitable<void | undefined | null | boolean | File | Blob>) | {
|
|
870
|
+
(): (rawFile: UploadRawFile) => Awaitable<void | undefined | null | boolean | File | Blob>;
|
|
871
|
+
new (): any;
|
|
872
|
+
readonly prototype: any;
|
|
873
|
+
} | ((new (...args: any[]) => (rawFile: UploadRawFile) => Awaitable<void | undefined | null | boolean | File | Blob>) | (() => (rawFile: UploadRawFile) => Awaitable<void | undefined | null | boolean | File | Blob>) | {
|
|
874
|
+
(): (rawFile: UploadRawFile) => Awaitable<void | undefined | null | boolean | File | Blob>;
|
|
875
|
+
new (): any;
|
|
876
|
+
readonly prototype: any;
|
|
877
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
878
|
+
readonly beforeRemove: {
|
|
879
|
+
readonly type: PropType_2<(uploadFile: UploadFile, uploadFiles: UploadFiles) => Awaitable<boolean>>;
|
|
880
|
+
readonly required: false;
|
|
881
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
882
|
+
__epPropKey: true;
|
|
883
|
+
};
|
|
884
|
+
readonly onRemove: EpPropFinalized<(new (...args: any[]) => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
885
|
+
(): (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
886
|
+
new (): any;
|
|
887
|
+
readonly prototype: any;
|
|
888
|
+
} | ((new (...args: any[]) => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
889
|
+
(): (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
890
|
+
new (): any;
|
|
891
|
+
readonly prototype: any;
|
|
892
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
893
|
+
readonly onChange: EpPropFinalized<(new (...args: any[]) => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
894
|
+
(): (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
895
|
+
new (): any;
|
|
896
|
+
readonly prototype: any;
|
|
897
|
+
} | ((new (...args: any[]) => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
898
|
+
(): (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
899
|
+
new (): any;
|
|
900
|
+
readonly prototype: any;
|
|
901
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
902
|
+
readonly onPreview: EpPropFinalized<(new (...args: any[]) => (uploadFile: UploadFile) => void) | (() => (uploadFile: UploadFile) => void) | {
|
|
903
|
+
(): (uploadFile: UploadFile) => void;
|
|
904
|
+
new (): any;
|
|
905
|
+
readonly prototype: any;
|
|
906
|
+
} | ((new (...args: any[]) => (uploadFile: UploadFile) => void) | (() => (uploadFile: UploadFile) => void) | {
|
|
907
|
+
(): (uploadFile: UploadFile) => void;
|
|
908
|
+
new (): any;
|
|
909
|
+
readonly prototype: any;
|
|
910
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
911
|
+
readonly onSuccess: EpPropFinalized<(new (...args: any[]) => (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
912
|
+
(): (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
913
|
+
new (): any;
|
|
914
|
+
readonly prototype: any;
|
|
915
|
+
} | ((new (...args: any[]) => (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
916
|
+
(): (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
917
|
+
new (): any;
|
|
918
|
+
readonly prototype: any;
|
|
919
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
920
|
+
readonly onProgress: EpPropFinalized<(new (...args: any[]) => (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
921
|
+
(): (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
922
|
+
new (): any;
|
|
923
|
+
readonly prototype: any;
|
|
924
|
+
} | ((new (...args: any[]) => (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
925
|
+
(): (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
926
|
+
new (): any;
|
|
927
|
+
readonly prototype: any;
|
|
928
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
929
|
+
readonly onError: EpPropFinalized<(new (...args: any[]) => (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
930
|
+
(): (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
931
|
+
new (): any;
|
|
932
|
+
readonly prototype: any;
|
|
933
|
+
} | ((new (...args: any[]) => (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
934
|
+
(): (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
935
|
+
new (): any;
|
|
936
|
+
readonly prototype: any;
|
|
937
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
938
|
+
readonly onExceed: EpPropFinalized<(new (...args: any[]) => (files: File[], uploadFiles: UploadUserFile[]) => void) | (() => (files: File[], uploadFiles: UploadUserFile[]) => void) | {
|
|
939
|
+
(): (files: File[], uploadFiles: UploadUserFile[]) => void;
|
|
940
|
+
new (): any;
|
|
941
|
+
readonly prototype: any;
|
|
942
|
+
} | ((new (...args: any[]) => (files: File[], uploadFiles: UploadUserFile[]) => void) | (() => (files: File[], uploadFiles: UploadUserFile[]) => void) | {
|
|
943
|
+
(): (files: File[], uploadFiles: UploadUserFile[]) => void;
|
|
944
|
+
new (): any;
|
|
945
|
+
readonly prototype: any;
|
|
946
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
947
|
+
readonly crossorigin: {
|
|
948
|
+
readonly type: PropType_2<EpPropMergeType<(new (...args: any[]) => "" | "anonymous" | "use-credentials") | (() => "" | "anonymous" | "use-credentials") | ((new (...args: any[]) => "" | "anonymous" | "use-credentials") | (() => "" | "anonymous" | "use-credentials"))[], unknown, unknown>>;
|
|
949
|
+
readonly required: false;
|
|
950
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
951
|
+
__epPropKey: true;
|
|
952
|
+
};
|
|
953
|
+
readonly action: EpPropFinalized<StringConstructor, unknown, unknown, "#", boolean>;
|
|
954
|
+
readonly headers: {
|
|
955
|
+
readonly type: PropType_2<EpPropMergeType<(new (...args: any[]) => Record<string, any> | Headers) | (() => Record<string, any> | Headers) | ((new (...args: any[]) => Record<string, any> | Headers) | (() => Record<string, any> | Headers))[], unknown, unknown>>;
|
|
956
|
+
readonly required: false;
|
|
957
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
958
|
+
__epPropKey: true;
|
|
959
|
+
};
|
|
960
|
+
readonly method: EpPropFinalized<StringConstructor, unknown, unknown, "post", boolean>;
|
|
961
|
+
readonly data: EpPropFinalized<(new (...args: any[]) => Mutable<Record<string, any>> | Promise<Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => Awaitable<UploadData>)) | (() => Awaitable<Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => Awaitable<UploadData>)) | ((new (...args: any[]) => Mutable<Record<string, any>> | Promise<Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => Awaitable<UploadData>)) | (() => Awaitable<Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => Awaitable<UploadData>)))[], unknown, unknown, () => Mutable< {}>, boolean>;
|
|
962
|
+
readonly multiple: BooleanConstructor;
|
|
963
|
+
readonly name: EpPropFinalized<StringConstructor, unknown, unknown, "file", boolean>;
|
|
964
|
+
readonly drag: BooleanConstructor;
|
|
965
|
+
readonly withCredentials: BooleanConstructor;
|
|
966
|
+
readonly showFileList: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
967
|
+
readonly accept: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
968
|
+
readonly fileList: EpPropFinalized<(new (...args: any[]) => UploadUserFile[]) | (() => UploadUserFile[]) | ((new (...args: any[]) => UploadUserFile[]) | (() => UploadUserFile[]))[], unknown, unknown, () => [], boolean>;
|
|
969
|
+
readonly autoUpload: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
970
|
+
readonly listType: EpPropFinalized<StringConstructor, "picture" | "text" | "picture-card", unknown, "text", boolean>;
|
|
971
|
+
readonly httpRequest: EpPropFinalized<(new (...args: any[]) => UploadRequestHandler) | (() => UploadRequestHandler) | {
|
|
972
|
+
(): UploadRequestHandler;
|
|
973
|
+
new (): any;
|
|
974
|
+
readonly prototype: any;
|
|
975
|
+
} | ((new (...args: any[]) => UploadRequestHandler) | (() => UploadRequestHandler) | {
|
|
976
|
+
(): UploadRequestHandler;
|
|
977
|
+
new (): any;
|
|
978
|
+
readonly prototype: any;
|
|
979
|
+
})[], unknown, unknown, UploadRequestHandler, boolean>;
|
|
980
|
+
readonly disabled: EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
981
|
+
readonly limit: NumberConstructor;
|
|
982
|
+
readonly directory: BooleanConstructor;
|
|
983
|
+
}>>, {
|
|
984
|
+
abort: (file: UploadFile) => void;
|
|
985
|
+
submit: () => void;
|
|
986
|
+
clearFiles: (states?: UploadStatus[]) => void;
|
|
987
|
+
handleStart: (rawFile: UploadRawFile) => void;
|
|
988
|
+
handleRemove: (file: UploadFile | UploadRawFile) => void;
|
|
989
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
990
|
+
readonly data: EpPropMergeType<(new (...args: any[]) => Mutable<Record<string, any>> | Promise<Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => Awaitable<UploadData>)) | (() => Awaitable<Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => Awaitable<UploadData>)) | ((new (...args: any[]) => Mutable<Record<string, any>> | Promise<Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => Awaitable<UploadData>)) | (() => Awaitable<Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => Awaitable<UploadData>)))[], unknown, unknown>;
|
|
991
|
+
readonly disabled: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
992
|
+
readonly drag: boolean;
|
|
993
|
+
readonly multiple: boolean;
|
|
994
|
+
readonly name: string;
|
|
995
|
+
readonly onProgress: (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
996
|
+
readonly onChange: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
997
|
+
readonly onError: (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
998
|
+
readonly method: string;
|
|
999
|
+
readonly action: string;
|
|
1000
|
+
readonly accept: string;
|
|
1001
|
+
readonly withCredentials: boolean;
|
|
1002
|
+
readonly showFileList: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
1003
|
+
readonly fileList: UploadUserFile[];
|
|
1004
|
+
readonly autoUpload: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
1005
|
+
readonly listType: EpPropMergeType<StringConstructor, "picture" | "text" | "picture-card", unknown>;
|
|
1006
|
+
readonly httpRequest: UploadRequestHandler;
|
|
1007
|
+
readonly directory: boolean;
|
|
1008
|
+
readonly beforeUpload: (rawFile: UploadRawFile) => Awaitable<void | undefined | null | boolean | File | Blob>;
|
|
1009
|
+
readonly onRemove: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
1010
|
+
readonly onPreview: (uploadFile: UploadFile) => void;
|
|
1011
|
+
readonly onSuccess: (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
1012
|
+
readonly onExceed: (files: File[], uploadFiles: UploadUserFile[]) => void;
|
|
1013
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
1014
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
1015
|
+
created?: (() => void) | (() => void)[];
|
|
1016
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
1017
|
+
mounted?: (() => void) | (() => void)[];
|
|
1018
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
1019
|
+
updated?: (() => void) | (() => void)[];
|
|
1020
|
+
activated?: (() => void) | (() => void)[];
|
|
1021
|
+
deactivated?: (() => void) | (() => void)[];
|
|
1022
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
1023
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
1024
|
+
destroyed?: (() => void) | (() => void)[];
|
|
1025
|
+
unmounted?: (() => void) | (() => void)[];
|
|
1026
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
1027
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
1028
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance_2 | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance_2 | null, info: string) => boolean | void)[];
|
|
1029
|
+
};
|
|
1030
|
+
$forceUpdate: () => void;
|
|
1031
|
+
$nextTick: nextTick_2;
|
|
1032
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
1033
|
+
} & Readonly<{
|
|
1034
|
+
readonly data: EpPropMergeType<(new (...args: any[]) => Mutable<Record<string, any>> | Promise<Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => Awaitable<UploadData>)) | (() => Awaitable<Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => Awaitable<UploadData>)) | ((new (...args: any[]) => Mutable<Record<string, any>> | Promise<Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => Awaitable<UploadData>)) | (() => Awaitable<Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => Awaitable<UploadData>)))[], unknown, unknown>;
|
|
1035
|
+
readonly disabled: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
1036
|
+
readonly drag: boolean;
|
|
1037
|
+
readonly multiple: boolean;
|
|
1038
|
+
readonly name: string;
|
|
1039
|
+
readonly onProgress: (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
1040
|
+
readonly onChange: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
1041
|
+
readonly onError: (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
1042
|
+
readonly method: string;
|
|
1043
|
+
readonly action: string;
|
|
1044
|
+
readonly accept: string;
|
|
1045
|
+
readonly withCredentials: boolean;
|
|
1046
|
+
readonly showFileList: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
1047
|
+
readonly fileList: UploadUserFile[];
|
|
1048
|
+
readonly autoUpload: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
1049
|
+
readonly listType: EpPropMergeType<StringConstructor, "picture" | "text" | "picture-card", unknown>;
|
|
1050
|
+
readonly httpRequest: UploadRequestHandler;
|
|
1051
|
+
readonly directory: boolean;
|
|
1052
|
+
readonly beforeUpload: (rawFile: UploadRawFile) => Awaitable<void | undefined | null | boolean | File | Blob>;
|
|
1053
|
+
readonly onRemove: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
1054
|
+
readonly onPreview: (uploadFile: UploadFile) => void;
|
|
1055
|
+
readonly onSuccess: (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
1056
|
+
readonly onExceed: (files: File[], uploadFiles: UploadUserFile[]) => void;
|
|
1057
|
+
}> & Omit<Readonly<ExtractPropTypes_2< {
|
|
1058
|
+
readonly beforeUpload: EpPropFinalized<(new (...args: any[]) => (rawFile: UploadRawFile) => Awaitable<void | undefined | null | boolean | File | Blob>) | (() => (rawFile: UploadRawFile) => Awaitable<void | undefined | null | boolean | File | Blob>) | {
|
|
1059
|
+
(): (rawFile: UploadRawFile) => Awaitable<void | undefined | null | boolean | File | Blob>;
|
|
1060
|
+
new (): any;
|
|
1061
|
+
readonly prototype: any;
|
|
1062
|
+
} | ((new (...args: any[]) => (rawFile: UploadRawFile) => Awaitable<void | undefined | null | boolean | File | Blob>) | (() => (rawFile: UploadRawFile) => Awaitable<void | undefined | null | boolean | File | Blob>) | {
|
|
1063
|
+
(): (rawFile: UploadRawFile) => Awaitable<void | undefined | null | boolean | File | Blob>;
|
|
1064
|
+
new (): any;
|
|
1065
|
+
readonly prototype: any;
|
|
1066
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
1067
|
+
readonly beforeRemove: {
|
|
1068
|
+
readonly type: PropType_2<(uploadFile: UploadFile, uploadFiles: UploadFiles) => Awaitable<boolean>>;
|
|
1069
|
+
readonly required: false;
|
|
1070
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1071
|
+
__epPropKey: true;
|
|
1072
|
+
};
|
|
1073
|
+
readonly onRemove: EpPropFinalized<(new (...args: any[]) => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
1074
|
+
(): (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
1075
|
+
new (): any;
|
|
1076
|
+
readonly prototype: any;
|
|
1077
|
+
} | ((new (...args: any[]) => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
1078
|
+
(): (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
1079
|
+
new (): any;
|
|
1080
|
+
readonly prototype: any;
|
|
1081
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
1082
|
+
readonly onChange: EpPropFinalized<(new (...args: any[]) => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
1083
|
+
(): (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
1084
|
+
new (): any;
|
|
1085
|
+
readonly prototype: any;
|
|
1086
|
+
} | ((new (...args: any[]) => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
1087
|
+
(): (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
1088
|
+
new (): any;
|
|
1089
|
+
readonly prototype: any;
|
|
1090
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
1091
|
+
readonly onPreview: EpPropFinalized<(new (...args: any[]) => (uploadFile: UploadFile) => void) | (() => (uploadFile: UploadFile) => void) | {
|
|
1092
|
+
(): (uploadFile: UploadFile) => void;
|
|
1093
|
+
new (): any;
|
|
1094
|
+
readonly prototype: any;
|
|
1095
|
+
} | ((new (...args: any[]) => (uploadFile: UploadFile) => void) | (() => (uploadFile: UploadFile) => void) | {
|
|
1096
|
+
(): (uploadFile: UploadFile) => void;
|
|
1097
|
+
new (): any;
|
|
1098
|
+
readonly prototype: any;
|
|
1099
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
1100
|
+
readonly onSuccess: EpPropFinalized<(new (...args: any[]) => (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
1101
|
+
(): (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
1102
|
+
new (): any;
|
|
1103
|
+
readonly prototype: any;
|
|
1104
|
+
} | ((new (...args: any[]) => (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
1105
|
+
(): (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
1106
|
+
new (): any;
|
|
1107
|
+
readonly prototype: any;
|
|
1108
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
1109
|
+
readonly onProgress: EpPropFinalized<(new (...args: any[]) => (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
1110
|
+
(): (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
1111
|
+
new (): any;
|
|
1112
|
+
readonly prototype: any;
|
|
1113
|
+
} | ((new (...args: any[]) => (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
1114
|
+
(): (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
1115
|
+
new (): any;
|
|
1116
|
+
readonly prototype: any;
|
|
1117
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
1118
|
+
readonly onError: EpPropFinalized<(new (...args: any[]) => (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
1119
|
+
(): (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
1120
|
+
new (): any;
|
|
1121
|
+
readonly prototype: any;
|
|
1122
|
+
} | ((new (...args: any[]) => (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
1123
|
+
(): (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
1124
|
+
new (): any;
|
|
1125
|
+
readonly prototype: any;
|
|
1126
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
1127
|
+
readonly onExceed: EpPropFinalized<(new (...args: any[]) => (files: File[], uploadFiles: UploadUserFile[]) => void) | (() => (files: File[], uploadFiles: UploadUserFile[]) => void) | {
|
|
1128
|
+
(): (files: File[], uploadFiles: UploadUserFile[]) => void;
|
|
1129
|
+
new (): any;
|
|
1130
|
+
readonly prototype: any;
|
|
1131
|
+
} | ((new (...args: any[]) => (files: File[], uploadFiles: UploadUserFile[]) => void) | (() => (files: File[], uploadFiles: UploadUserFile[]) => void) | {
|
|
1132
|
+
(): (files: File[], uploadFiles: UploadUserFile[]) => void;
|
|
1133
|
+
new (): any;
|
|
1134
|
+
readonly prototype: any;
|
|
1135
|
+
})[], unknown, unknown, () => void, boolean>;
|
|
1136
|
+
readonly crossorigin: {
|
|
1137
|
+
readonly type: PropType_2<EpPropMergeType<(new (...args: any[]) => "" | "anonymous" | "use-credentials") | (() => "" | "anonymous" | "use-credentials") | ((new (...args: any[]) => "" | "anonymous" | "use-credentials") | (() => "" | "anonymous" | "use-credentials"))[], unknown, unknown>>;
|
|
1138
|
+
readonly required: false;
|
|
1139
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1140
|
+
__epPropKey: true;
|
|
1141
|
+
};
|
|
1142
|
+
readonly action: EpPropFinalized<StringConstructor, unknown, unknown, "#", boolean>;
|
|
1143
|
+
readonly headers: {
|
|
1144
|
+
readonly type: PropType_2<EpPropMergeType<(new (...args: any[]) => Record<string, any> | Headers) | (() => Record<string, any> | Headers) | ((new (...args: any[]) => Record<string, any> | Headers) | (() => Record<string, any> | Headers))[], unknown, unknown>>;
|
|
1145
|
+
readonly required: false;
|
|
1146
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1147
|
+
__epPropKey: true;
|
|
1148
|
+
};
|
|
1149
|
+
readonly method: EpPropFinalized<StringConstructor, unknown, unknown, "post", boolean>;
|
|
1150
|
+
readonly data: EpPropFinalized<(new (...args: any[]) => Mutable<Record<string, any>> | Promise<Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => Awaitable<UploadData>)) | (() => Awaitable<Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => Awaitable<UploadData>)) | ((new (...args: any[]) => Mutable<Record<string, any>> | Promise<Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => Awaitable<UploadData>)) | (() => Awaitable<Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => Awaitable<UploadData>)))[], unknown, unknown, () => Mutable< {}>, boolean>;
|
|
1151
|
+
readonly multiple: BooleanConstructor;
|
|
1152
|
+
readonly name: EpPropFinalized<StringConstructor, unknown, unknown, "file", boolean>;
|
|
1153
|
+
readonly drag: BooleanConstructor;
|
|
1154
|
+
readonly withCredentials: BooleanConstructor;
|
|
1155
|
+
readonly showFileList: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
1156
|
+
readonly accept: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
1157
|
+
readonly fileList: EpPropFinalized<(new (...args: any[]) => UploadUserFile[]) | (() => UploadUserFile[]) | ((new (...args: any[]) => UploadUserFile[]) | (() => UploadUserFile[]))[], unknown, unknown, () => [], boolean>;
|
|
1158
|
+
readonly autoUpload: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
1159
|
+
readonly listType: EpPropFinalized<StringConstructor, "picture" | "text" | "picture-card", unknown, "text", boolean>;
|
|
1160
|
+
readonly httpRequest: EpPropFinalized<(new (...args: any[]) => UploadRequestHandler) | (() => UploadRequestHandler) | {
|
|
1161
|
+
(): UploadRequestHandler;
|
|
1162
|
+
new (): any;
|
|
1163
|
+
readonly prototype: any;
|
|
1164
|
+
} | ((new (...args: any[]) => UploadRequestHandler) | (() => UploadRequestHandler) | {
|
|
1165
|
+
(): UploadRequestHandler;
|
|
1166
|
+
new (): any;
|
|
1167
|
+
readonly prototype: any;
|
|
1168
|
+
})[], unknown, unknown, UploadRequestHandler, boolean>;
|
|
1169
|
+
readonly disabled: EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
1170
|
+
readonly limit: NumberConstructor;
|
|
1171
|
+
readonly directory: BooleanConstructor;
|
|
1172
|
+
}>>, "name" | "disabled" | "data" | "onChange" | "submit" | "onError" | "onProgress" | "multiple" | "beforeUpload" | "onRemove" | "onPreview" | "onSuccess" | "onExceed" | "action" | "method" | "drag" | "withCredentials" | "showFileList" | "accept" | "fileList" | "autoUpload" | "listType" | "httpRequest" | "directory" | "abort" | "clearFiles" | "handleStart" | "handleRemove"> & ShallowUnwrapRef< {
|
|
1173
|
+
abort: (file: UploadFile) => void;
|
|
1174
|
+
submit: () => void;
|
|
1175
|
+
clearFiles: (states?: UploadStatus[]) => void;
|
|
1176
|
+
handleStart: (rawFile: UploadRawFile) => void;
|
|
1177
|
+
handleRemove: (file: UploadFile | UploadRawFile) => void;
|
|
1178
|
+
}> & {} & ComponentCustomProperties & {} & {
|
|
1179
|
+
$slots: {
|
|
1180
|
+
file?: (props: {
|
|
1181
|
+
file: UploadFile;
|
|
1182
|
+
index: number;
|
|
1183
|
+
}) => any;
|
|
1184
|
+
} & {
|
|
1185
|
+
trigger?: (props: {}) => any;
|
|
1186
|
+
} & {
|
|
1187
|
+
default?: (props: {}) => any;
|
|
1188
|
+
} & {
|
|
1189
|
+
trigger?: (props: {}) => any;
|
|
1190
|
+
} & {
|
|
1191
|
+
default?: (props: {}) => any;
|
|
1192
|
+
} & {
|
|
1193
|
+
default?: (props: {}) => any;
|
|
1194
|
+
} & {
|
|
1195
|
+
tip?: (props: {}) => any;
|
|
1196
|
+
} & {
|
|
1197
|
+
file?: (props: {
|
|
1198
|
+
file: UploadFile;
|
|
1199
|
+
index: number;
|
|
1200
|
+
}) => any;
|
|
1201
|
+
};
|
|
1202
|
+
};
|
|
1203
|
+
}, any, ComponentProvideOptions, {
|
|
1204
|
+
P: {};
|
|
1205
|
+
B: {};
|
|
1206
|
+
D: {};
|
|
1207
|
+
C: {};
|
|
1208
|
+
M: {};
|
|
1209
|
+
Defaults: {};
|
|
1210
|
+
}, Readonly<{
|
|
1211
|
+
modelValue?: string;
|
|
1212
|
+
} & ImageUpload_2> & Readonly<{
|
|
1213
|
+
"onUpdate:modelValue"?: (value: string) => any;
|
|
1214
|
+
}>, {
|
|
1215
|
+
getUploadRef: () => any;
|
|
1216
|
+
getUrlList: () => string[];
|
|
1217
|
+
}, {}, {}, {}, {
|
|
1218
|
+
style: Record<string, string>;
|
|
1219
|
+
disabled: boolean;
|
|
1220
|
+
multiple: boolean;
|
|
1221
|
+
api: (file: File) => Promise<{
|
|
1222
|
+
url: string;
|
|
1223
|
+
}>;
|
|
1224
|
+
imageTypes: string[];
|
|
1225
|
+
limitSize: number;
|
|
1226
|
+
fit: "fill" | "contain" | "cover" | "none" | "scale-down";
|
|
1227
|
+
limit: number;
|
|
1228
|
+
}>;
|
|
1229
|
+
__isFragment?: never;
|
|
1230
|
+
__isTeleport?: never;
|
|
1231
|
+
__isSuspense?: never;
|
|
1232
|
+
} & ComponentOptionsBase<Readonly<{
|
|
1233
|
+
modelValue?: string;
|
|
1234
|
+
} & ImageUpload_2> & Readonly<{
|
|
1235
|
+
"onUpdate:modelValue"?: (value: string) => any;
|
|
1236
|
+
}>, {
|
|
1237
|
+
getUploadRef: () => any;
|
|
1238
|
+
getUrlList: () => string[];
|
|
1239
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1240
|
+
"update:modelValue": (value: string) => any;
|
|
1241
|
+
}, string, {
|
|
1242
|
+
style: Record<string, string>;
|
|
1243
|
+
disabled: boolean;
|
|
1244
|
+
multiple: boolean;
|
|
1245
|
+
api: (file: File) => Promise<{
|
|
1246
|
+
url: string;
|
|
1247
|
+
}>;
|
|
1248
|
+
imageTypes: string[];
|
|
1249
|
+
limitSize: number;
|
|
1250
|
+
fit: "fill" | "contain" | "cover" | "none" | "scale-down";
|
|
1251
|
+
limit: number;
|
|
1252
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin_2) & Record<string, any>;
|
|
1253
|
+
|
|
1254
|
+
export declare const EzPagination: ({
|
|
1255
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
1256
|
+
currentPage?: number;
|
|
1257
|
+
pageSize?: number;
|
|
1258
|
+
}> & Readonly<{
|
|
1259
|
+
"onUpdate:currentPage"?: (value: number) => any;
|
|
1260
|
+
"onUpdate:pageSize"?: (value: number) => any;
|
|
1261
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1262
|
+
"update:currentPage": (value: number) => any;
|
|
1263
|
+
"update:pageSize": (value: number) => any;
|
|
1264
|
+
}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
1265
|
+
P: {};
|
|
1266
|
+
B: {};
|
|
1267
|
+
D: {};
|
|
1268
|
+
C: {};
|
|
1269
|
+
M: {};
|
|
1270
|
+
Defaults: {};
|
|
1271
|
+
}, Readonly<{
|
|
1272
|
+
currentPage?: number;
|
|
1273
|
+
pageSize?: number;
|
|
1274
|
+
}> & Readonly<{
|
|
1275
|
+
"onUpdate:currentPage"?: (value: number) => any;
|
|
1276
|
+
"onUpdate:pageSize"?: (value: number) => any;
|
|
1277
|
+
}>, {}, {}, {}, {}, {}>;
|
|
1278
|
+
__isFragment?: never;
|
|
1279
|
+
__isTeleport?: never;
|
|
1280
|
+
__isSuspense?: never;
|
|
1281
|
+
} & ComponentOptionsBase<Readonly<{
|
|
1282
|
+
currentPage?: number;
|
|
1283
|
+
pageSize?: number;
|
|
1284
|
+
}> & Readonly<{
|
|
1285
|
+
"onUpdate:currentPage"?: (value: number) => any;
|
|
1286
|
+
"onUpdate:pageSize"?: (value: number) => any;
|
|
1287
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1288
|
+
"update:currentPage": (value: number) => any;
|
|
1289
|
+
"update:pageSize": (value: number) => any;
|
|
1290
|
+
}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin_2) & Record<string, any>;
|
|
1291
|
+
|
|
1292
|
+
export declare const EzRadio: ({
|
|
1293
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
1294
|
+
modelValue?: PrimitiveValue_2;
|
|
1295
|
+
} & RadioProps_2> & Readonly<{
|
|
1296
|
+
"onUpdate:modelValue"?: (value: PrimitiveValue_2) => any;
|
|
1297
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1298
|
+
"update:modelValue": (value: PrimitiveValue_2) => any;
|
|
1299
|
+
}, PublicProps, {
|
|
1300
|
+
type: RadioType_2;
|
|
1301
|
+
options: RadioOption_2[];
|
|
1302
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
1303
|
+
P: {};
|
|
1304
|
+
B: {};
|
|
1305
|
+
D: {};
|
|
1306
|
+
C: {};
|
|
1307
|
+
M: {};
|
|
1308
|
+
Defaults: {};
|
|
1309
|
+
}, Readonly<{
|
|
1310
|
+
modelValue?: PrimitiveValue_2;
|
|
1311
|
+
} & RadioProps_2> & Readonly<{
|
|
1312
|
+
"onUpdate:modelValue"?: (value: PrimitiveValue_2) => any;
|
|
1313
|
+
}>, {}, {}, {}, {}, {
|
|
1314
|
+
type: RadioType_2;
|
|
1315
|
+
options: RadioOption_2[];
|
|
1316
|
+
}>;
|
|
1317
|
+
__isFragment?: never;
|
|
1318
|
+
__isTeleport?: never;
|
|
1319
|
+
__isSuspense?: never;
|
|
1320
|
+
} & ComponentOptionsBase<Readonly<{
|
|
1321
|
+
modelValue?: PrimitiveValue_2;
|
|
1322
|
+
} & RadioProps_2> & Readonly<{
|
|
1323
|
+
"onUpdate:modelValue"?: (value: PrimitiveValue_2) => any;
|
|
1324
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1325
|
+
"update:modelValue": (value: PrimitiveValue_2) => any;
|
|
1326
|
+
}, string, {
|
|
1327
|
+
type: RadioType_2;
|
|
1328
|
+
options: RadioOption_2[];
|
|
1329
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin_2) & Record<string, any>;
|
|
1330
|
+
|
|
1331
|
+
export declare const EzSearchForm: ({
|
|
1332
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
1333
|
+
expanded?: Boolean;
|
|
1334
|
+
} & SearchFormProps_2> & Readonly<{
|
|
1335
|
+
"onUpdate:expanded"?: (value: Boolean) => any;
|
|
1336
|
+
}>, {
|
|
1337
|
+
countViewHeight: () => void;
|
|
1338
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1339
|
+
"update:expanded": (value: Boolean) => any;
|
|
1340
|
+
}, PublicProps, {
|
|
1341
|
+
collapsedHeight: number;
|
|
1342
|
+
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
1343
|
+
wrapRef: HTMLDivElement;
|
|
1344
|
+
}, any, ComponentProvideOptions, {
|
|
1345
|
+
P: {};
|
|
1346
|
+
B: {};
|
|
1347
|
+
D: {};
|
|
1348
|
+
C: {};
|
|
1349
|
+
M: {};
|
|
1350
|
+
Defaults: {};
|
|
1351
|
+
}, Readonly<{
|
|
1352
|
+
expanded?: Boolean;
|
|
1353
|
+
} & SearchFormProps_2> & Readonly<{
|
|
1354
|
+
"onUpdate:expanded"?: (value: Boolean) => any;
|
|
1355
|
+
}>, {
|
|
1356
|
+
countViewHeight: () => void;
|
|
1357
|
+
}, {}, {}, {}, {
|
|
1358
|
+
collapsedHeight: number;
|
|
1359
|
+
}>;
|
|
1360
|
+
__isFragment?: never;
|
|
1361
|
+
__isTeleport?: never;
|
|
1362
|
+
__isSuspense?: never;
|
|
1363
|
+
} & ComponentOptionsBase<Readonly<{
|
|
1364
|
+
expanded?: Boolean;
|
|
1365
|
+
} & SearchFormProps_2> & Readonly<{
|
|
1366
|
+
"onUpdate:expanded"?: (value: Boolean) => any;
|
|
1367
|
+
}>, {
|
|
1368
|
+
countViewHeight: () => void;
|
|
1369
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1370
|
+
"update:expanded": (value: Boolean) => any;
|
|
1371
|
+
}, string, {
|
|
1372
|
+
collapsedHeight: number;
|
|
1373
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
1374
|
+
$slots: {
|
|
1375
|
+
operate?(_: {}): any;
|
|
1376
|
+
default?(_: {}): any;
|
|
1377
|
+
};
|
|
1378
|
+
}) & Plugin_2) & Record<string, any>;
|
|
1379
|
+
|
|
1380
|
+
export declare const EzSelect: ({
|
|
1381
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
1382
|
+
modelValue?: any;
|
|
1383
|
+
} & SelectProps_2> & Readonly<{
|
|
1384
|
+
"onUpdate:modelValue"?: (value: any) => any;
|
|
1385
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1386
|
+
"update:modelValue": (value: any) => any;
|
|
1387
|
+
}, PublicProps, {
|
|
1388
|
+
options: SelectOption_2[];
|
|
1389
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
1390
|
+
P: {};
|
|
1391
|
+
B: {};
|
|
1392
|
+
D: {};
|
|
1393
|
+
C: {};
|
|
1394
|
+
M: {};
|
|
1395
|
+
Defaults: {};
|
|
1396
|
+
}, Readonly<{
|
|
1397
|
+
modelValue?: any;
|
|
1398
|
+
} & SelectProps_2> & Readonly<{
|
|
1399
|
+
"onUpdate:modelValue"?: (value: any) => any;
|
|
1400
|
+
}>, {}, {}, {}, {}, {
|
|
1401
|
+
options: SelectOption_2[];
|
|
1402
|
+
}>;
|
|
1403
|
+
__isFragment?: never;
|
|
1404
|
+
__isTeleport?: never;
|
|
1405
|
+
__isSuspense?: never;
|
|
1406
|
+
} & ComponentOptionsBase<Readonly<{
|
|
1407
|
+
modelValue?: any;
|
|
1408
|
+
} & SelectProps_2> & Readonly<{
|
|
1409
|
+
"onUpdate:modelValue"?: (value: any) => any;
|
|
1410
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1411
|
+
"update:modelValue": (value: any) => any;
|
|
1412
|
+
}, string, {
|
|
1413
|
+
options: SelectOption_2[];
|
|
1414
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin_2) & Record<string, any>;
|
|
1415
|
+
|
|
1416
|
+
export declare const EzTable: ((<T = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
|
|
1417
|
+
attrs: any;
|
|
1418
|
+
slots: Readonly<NonNullable<TableSolt_2<T>>> & {
|
|
1419
|
+
[x: string]: (props: {
|
|
1420
|
+
row: T;
|
|
1421
|
+
column: TableColumn_3<T>;
|
|
1422
|
+
$index: number;
|
|
1423
|
+
}) => VNodeChild;
|
|
1424
|
+
} & {
|
|
1425
|
+
append?: () => VNodeChild;
|
|
1426
|
+
empty?: () => VNodeChild;
|
|
1427
|
+
} & {
|
|
1428
|
+
[x: `header-${string}`]: (props: {
|
|
1429
|
+
column: TableColumn_3<T>;
|
|
1430
|
+
$index: number;
|
|
1431
|
+
}) => VNodeChild;
|
|
1432
|
+
};
|
|
1433
|
+
emit: {};
|
|
1434
|
+
}, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
1435
|
+
props: {
|
|
1436
|
+
data: T[];
|
|
1437
|
+
columns: TableColumn_3<T>[];
|
|
1438
|
+
rowKey?: string;
|
|
1439
|
+
} & PublicProps;
|
|
1440
|
+
expose(exposed: ShallowUnwrapRef<TableExpose_2>): void;
|
|
1441
|
+
attrs: any;
|
|
1442
|
+
slots: Readonly<NonNullable<TableSolt_2<T>>> & {
|
|
1443
|
+
[x: string]: (props: {
|
|
1444
|
+
row: T;
|
|
1445
|
+
column: TableColumn_3<T>;
|
|
1446
|
+
$index: number;
|
|
1447
|
+
}) => VNodeChild;
|
|
1448
|
+
} & {
|
|
1449
|
+
append?: () => VNodeChild;
|
|
1450
|
+
empty?: () => VNodeChild;
|
|
1451
|
+
} & {
|
|
1452
|
+
[x: `header-${string}`]: (props: {
|
|
1453
|
+
column: TableColumn_3<T>;
|
|
1454
|
+
$index: number;
|
|
1455
|
+
}) => VNodeChild;
|
|
1456
|
+
};
|
|
1457
|
+
emit: {};
|
|
1458
|
+
}>) => VNode_2 & {
|
|
1459
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
1460
|
+
}) & Plugin_2) & Record<string, any>;
|
|
1461
|
+
|
|
1462
|
+
export declare interface FastTableExpose {
|
|
1463
|
+
/** 搜索(重置到第一页) */
|
|
1464
|
+
search: () => void;
|
|
1465
|
+
/** 查询(保持当前页) */
|
|
1466
|
+
query: () => Promise<void>;
|
|
1467
|
+
/** 获取表格引用 */
|
|
1468
|
+
getTableRef: () => any;
|
|
1469
|
+
}
|
|
1470
|
+
|
|
1471
|
+
export declare interface FastTableProps extends Partial<TableProps> {
|
|
1472
|
+
/** 接口方法 */
|
|
1473
|
+
api: (params?: any) => Promise<any>;
|
|
1474
|
+
/** 查询前钩子 */
|
|
1475
|
+
beforeSearch?: (params: SearchParams) => Promise<void>;
|
|
1476
|
+
/** 列管理工具 */
|
|
1477
|
+
columnTool?: boolean;
|
|
1478
|
+
expanded?: boolean;
|
|
1479
|
+
}
|
|
1480
|
+
|
|
1481
|
+
/** 插槽类型 */
|
|
1482
|
+
export declare type FastTableSolt<D> = {
|
|
1483
|
+
form: () => void;
|
|
1484
|
+
header: (props: TableHeaderProps<D>) => void;
|
|
1485
|
+
freeArea: () => void;
|
|
1486
|
+
} & TableSolt<D>;
|
|
1487
|
+
|
|
1488
|
+
/**
|
|
1489
|
+
* 联动条件函数类型
|
|
1490
|
+
*/
|
|
1491
|
+
export declare type FormConditionFn = (formData: FormData_2) => boolean;
|
|
1492
|
+
|
|
1493
|
+
/**
|
|
1494
|
+
* 表单数据类型
|
|
1495
|
+
*/
|
|
1496
|
+
declare type FormData_2 = Record<string, any>;
|
|
1497
|
+
export { FormData_2 as FormData }
|
|
1498
|
+
|
|
1499
|
+
/**
|
|
1500
|
+
* 表单分组配置
|
|
1501
|
+
*/
|
|
1502
|
+
export declare interface FormGroupConfig {
|
|
1503
|
+
/** 分组唯一标识(用于 key、插槽名) */
|
|
1504
|
+
name?: string;
|
|
1505
|
+
/** 分组标题 */
|
|
1506
|
+
title?: string;
|
|
1507
|
+
/** 分组描述 */
|
|
1508
|
+
description?: string;
|
|
1509
|
+
/** 分组下的表单项 */
|
|
1510
|
+
items: FormItemConfig[];
|
|
1511
|
+
/** 分组内栅格列数(不传则继承全局 cols) */
|
|
1512
|
+
cols?: number;
|
|
1513
|
+
/** 分组内栅格间距(不传则继承全局 gutter) */
|
|
1514
|
+
gutter?: number;
|
|
1515
|
+
/** 是否隐藏分组 */
|
|
1516
|
+
hidden?: boolean;
|
|
1517
|
+
/** 分组显示条件 */
|
|
1518
|
+
show?: FormConditionFn;
|
|
1519
|
+
/** 分组容器 class */
|
|
1520
|
+
className?: string;
|
|
1521
|
+
/** 分组容器 style */
|
|
1522
|
+
style?: string | Record<string, any>;
|
|
1523
|
+
/** 分组头部 class */
|
|
1524
|
+
headerClassName?: string;
|
|
1525
|
+
/** 分组头部 style */
|
|
1526
|
+
headerStyle?: string | Record<string, any>;
|
|
1527
|
+
/** 分组主体 class */
|
|
1528
|
+
bodyClassName?: string;
|
|
1529
|
+
/** 分组主体 style */
|
|
1530
|
+
bodyStyle?: string | Record<string, any>;
|
|
1531
|
+
/** 自定义分组头插槽名 */
|
|
1532
|
+
headerSlot?: string;
|
|
1533
|
+
/** 自定义分组内容插槽名 */
|
|
1534
|
+
slot?: string;
|
|
1535
|
+
}
|
|
1536
|
+
|
|
1537
|
+
/**
|
|
1538
|
+
* 表单项配置
|
|
1539
|
+
*/
|
|
1540
|
+
export declare interface FormItemConfig<T = any> {
|
|
1541
|
+
/** 字段名(必填) */
|
|
1542
|
+
prop: string;
|
|
1543
|
+
/** 标签 */
|
|
1544
|
+
label?: string;
|
|
1545
|
+
/** 组件类型 */
|
|
1546
|
+
type?: FormItemType | `${FormItemType}` | string;
|
|
1547
|
+
/** 默认值 */
|
|
1548
|
+
defaultValue?: T;
|
|
1549
|
+
/** 验证规则 */
|
|
1550
|
+
rules?: FormItemRule | FormItemRule[];
|
|
1551
|
+
/** 是否必填(快捷配置,会自动生成 required 规则) */
|
|
1552
|
+
required?: boolean;
|
|
1553
|
+
/** 必填提示信息(不填则自动生成) */
|
|
1554
|
+
requiredMessage?: string;
|
|
1555
|
+
/** 占用栅格列数(1-24,默认根据 cols 计算) */
|
|
1556
|
+
span?: number;
|
|
1557
|
+
/** 是否隐藏 */
|
|
1558
|
+
hidden?: boolean;
|
|
1559
|
+
/** 是否禁用 */
|
|
1560
|
+
disabled?: boolean;
|
|
1561
|
+
/** 占位符(不填则自动生成) */
|
|
1562
|
+
placeholder?: string;
|
|
1563
|
+
/** 选项配置(用于 select、radio、checkbox、cascader 等) */
|
|
1564
|
+
options?: FormItemOption<T>[];
|
|
1565
|
+
/** 组件属性(透传给具体组件) */
|
|
1566
|
+
attrs?: Record<string, any>;
|
|
1567
|
+
/** 自定义组件 */
|
|
1568
|
+
component?: Component_2;
|
|
1569
|
+
/** 额外的 el-form-item 属性 */
|
|
1570
|
+
itemAttrs?: Record<string, any>;
|
|
1571
|
+
/** 联动显示条件(返回 true 显示,false 隐藏) */
|
|
1572
|
+
show?: FormConditionFn;
|
|
1573
|
+
/** 联动禁用条件(返回 true 禁用,false 启用) */
|
|
1574
|
+
disabledWhen?: FormConditionFn;
|
|
1575
|
+
}
|
|
1576
|
+
|
|
1577
|
+
/**
|
|
1578
|
+
* 表单选项配置(继承自共享基础选项)
|
|
1579
|
+
*/
|
|
1580
|
+
export declare type FormItemOption<T = any> = BaseOption<T>;
|
|
1581
|
+
|
|
1582
|
+
/**
|
|
1583
|
+
* 表单项类型枚举
|
|
1584
|
+
* 定义常用的表单组件类型,其他组件可通过 component 属性或字符串字面量指定
|
|
1585
|
+
*/
|
|
1586
|
+
export declare enum FormItemType {
|
|
1587
|
+
/** 输入框 */
|
|
1588
|
+
INPUT = "input",
|
|
1589
|
+
/** 多行文本 */
|
|
1590
|
+
TEXTAREA = "textarea",
|
|
1591
|
+
/** 数字输入 */
|
|
1592
|
+
NUMBER = "number",
|
|
1593
|
+
/** 密码输入 */
|
|
1594
|
+
PASSWORD = "password",
|
|
1595
|
+
/** 下拉选择(封装组件) */
|
|
1596
|
+
SELECT = "select",
|
|
1597
|
+
/** 单选框(封装组件) */
|
|
1598
|
+
RADIO = "radio",
|
|
1599
|
+
/** 多选框(封装组件) */
|
|
1600
|
+
CHECKBOX = "checkbox",
|
|
1601
|
+
/** 日期选择 */
|
|
1602
|
+
DATE = "date",
|
|
1603
|
+
/** 日期时间 */
|
|
1604
|
+
DATETIME = "datetime",
|
|
1605
|
+
/** 日期范围 */
|
|
1606
|
+
DATERANGE = "daterange",
|
|
1607
|
+
/** 日期时间范围 */
|
|
1608
|
+
DATETIMERANGE = "datetimerange",
|
|
1609
|
+
/** 时间选择 */
|
|
1610
|
+
TIME = "time",
|
|
1611
|
+
/** 时间范围 */
|
|
1612
|
+
TIMERANGE = "timerange",
|
|
1613
|
+
/** 图片上传(封装组件) */
|
|
1614
|
+
UPLOAD_IMAGES = "upload-images",
|
|
1615
|
+
/** 开关 */
|
|
1616
|
+
SWITCH = "switch",
|
|
1617
|
+
/** 树形选择 */
|
|
1618
|
+
TREE_SELECT = "tree-select",
|
|
1619
|
+
/** 级联选择 */
|
|
1620
|
+
CASCADER = "cascader",
|
|
1621
|
+
/** 树形控件 */
|
|
1622
|
+
TREE = "tree",
|
|
1623
|
+
/** 滑块 */
|
|
1624
|
+
SLIDER = "slider",
|
|
1625
|
+
/** 评分 */
|
|
1626
|
+
RATE = "rate"
|
|
1627
|
+
}
|
|
1628
|
+
|
|
1629
|
+
/**
|
|
1630
|
+
* 根据类型获取输入动词
|
|
1631
|
+
* @param type 表单项类型
|
|
1632
|
+
* @returns '选择' 或 '输入'
|
|
1633
|
+
*/
|
|
1634
|
+
export declare function getInputVerb(type?: string): string;
|
|
1635
|
+
|
|
1636
|
+
/**
|
|
1637
|
+
* 根据类型获取触发方式
|
|
1638
|
+
* @param type 表单项类型
|
|
1639
|
+
* @returns 'change' 或 'blur'
|
|
1640
|
+
*/
|
|
1641
|
+
export declare function getTrigger(type?: string): string;
|
|
1642
|
+
|
|
1643
|
+
/**
|
|
1644
|
+
* Select 分组选项(重导出以便使用)
|
|
1645
|
+
*/
|
|
1646
|
+
export declare type GroupOption = GroupOption_2<string | number | boolean | Record<string, any>>;
|
|
1647
|
+
|
|
1648
|
+
/**
|
|
1649
|
+
* 分组选项接口
|
|
1650
|
+
* 用于需要分组显示的选择组件
|
|
1651
|
+
*/
|
|
1652
|
+
declare interface GroupOption_2<T = any> {
|
|
1653
|
+
/** 分组标签 */
|
|
1654
|
+
label: string;
|
|
1655
|
+
/** 选项集合 */
|
|
1656
|
+
options: BaseOption<T>[];
|
|
1657
|
+
/** 是否禁用分组下所有选项 */
|
|
1658
|
+
disabled?: boolean;
|
|
1659
|
+
}
|
|
1660
|
+
|
|
1661
|
+
export declare interface IconProps {
|
|
1662
|
+
size?: number | string;
|
|
1663
|
+
color?: string;
|
|
1664
|
+
}
|
|
1665
|
+
|
|
1666
|
+
export declare interface ImageUpload {
|
|
1667
|
+
/**
|
|
1668
|
+
* 上传图片接口
|
|
1669
|
+
*/
|
|
1670
|
+
api: (file: File) => Promise<{
|
|
1671
|
+
url: string;
|
|
1672
|
+
}>;
|
|
1673
|
+
/**
|
|
1674
|
+
* 图片类型限制
|
|
1675
|
+
*/
|
|
1676
|
+
imageTypes?: string[];
|
|
1677
|
+
/**
|
|
1678
|
+
* 图片大小限制(MB)
|
|
1679
|
+
*/
|
|
1680
|
+
limitSize?: number;
|
|
1681
|
+
/**
|
|
1682
|
+
* 样式配置
|
|
1683
|
+
*/
|
|
1684
|
+
style?: Record<string, string>;
|
|
1685
|
+
/**
|
|
1686
|
+
* 图片填充方式
|
|
1687
|
+
*/
|
|
1688
|
+
fit?: 'fill' | 'contain' | 'cover' | 'none' | 'scale-down';
|
|
1689
|
+
/**
|
|
1690
|
+
* 是否支持多图上传
|
|
1691
|
+
*/
|
|
1692
|
+
multiple?: boolean;
|
|
1693
|
+
/**
|
|
1694
|
+
* 多图上传时的最大数量限制
|
|
1695
|
+
*/
|
|
1696
|
+
limit?: number;
|
|
1697
|
+
/**
|
|
1698
|
+
* 是否禁用上传组件
|
|
1699
|
+
*/
|
|
1700
|
+
disabled?: boolean;
|
|
1701
|
+
}
|
|
1702
|
+
|
|
1703
|
+
export declare interface ImageUploadEmits {
|
|
1704
|
+
(e: 'update:modelValue', value: string | string[]): void;
|
|
1705
|
+
(e: 'success', file: File, url: string): void;
|
|
1706
|
+
(e: 'error', file: File, error: any): void;
|
|
1707
|
+
(e: 'delete', url: string): void;
|
|
1708
|
+
}
|
|
1709
|
+
|
|
1710
|
+
export declare interface ImageUploadExpose {
|
|
1711
|
+
/** 清空所有图片 */
|
|
1712
|
+
clearFiles: () => void;
|
|
1713
|
+
/** 手动触发上传 */
|
|
1714
|
+
submit: () => void;
|
|
1715
|
+
}
|
|
1716
|
+
|
|
1717
|
+
export declare const install: (app: App) => void;
|
|
1718
|
+
|
|
1719
|
+
/**
|
|
1720
|
+
* 键值对类型
|
|
1721
|
+
*/
|
|
1722
|
+
export declare type KeyValuePair = Record<string, any>;
|
|
1723
|
+
|
|
1724
|
+
/** 公共分页返回类型 */
|
|
1725
|
+
export declare interface Page<T> extends BasePage {
|
|
1726
|
+
records: T[];
|
|
1727
|
+
size: number;
|
|
1728
|
+
}
|
|
1729
|
+
|
|
1730
|
+
/**
|
|
1731
|
+
* Pagination 组件 Props
|
|
1732
|
+
*/
|
|
1733
|
+
export declare interface PaginationProps {
|
|
1734
|
+
/** 当前页码 */
|
|
1735
|
+
currentPage?: number;
|
|
1736
|
+
/** 每页显示条目个数 */
|
|
1737
|
+
pageSize?: number;
|
|
1738
|
+
/** 总条目数 */
|
|
1739
|
+
total?: number;
|
|
1740
|
+
/** 每页显示个数选择器的选项设置 */
|
|
1741
|
+
pageSizes?: number[];
|
|
1742
|
+
/** 组件布局,子组件名用逗号分隔 */
|
|
1743
|
+
layout?: string;
|
|
1744
|
+
/** 是否为分页按钮添加背景色 */
|
|
1745
|
+
background?: boolean;
|
|
1746
|
+
/** 是否禁用分页 */
|
|
1747
|
+
disabled?: boolean;
|
|
1748
|
+
}
|
|
1749
|
+
|
|
1750
|
+
/**
|
|
1751
|
+
* 判断函数类型
|
|
1752
|
+
*/
|
|
1753
|
+
export declare type PredicateFn<T = any> = (value: T) => boolean;
|
|
1754
|
+
|
|
1755
|
+
/**
|
|
1756
|
+
* 常用值类型
|
|
1757
|
+
*/
|
|
1758
|
+
export declare type PrimitiveValue = string | number | boolean;
|
|
1759
|
+
|
|
1760
|
+
/**
|
|
1761
|
+
* Radio 选项接口
|
|
1762
|
+
*/
|
|
1763
|
+
export declare type RadioOption = BaseOption<PrimitiveValue>;
|
|
1764
|
+
|
|
1765
|
+
/**
|
|
1766
|
+
* Radio 组件 Props
|
|
1767
|
+
*/
|
|
1768
|
+
export declare interface RadioProps {
|
|
1769
|
+
/** 样式类型 */
|
|
1770
|
+
type?: RadioType;
|
|
1771
|
+
/** 选项数据 */
|
|
1772
|
+
options: RadioOption[];
|
|
1773
|
+
}
|
|
1774
|
+
|
|
1775
|
+
/**
|
|
1776
|
+
* Radio 样式类型
|
|
1777
|
+
*/
|
|
1778
|
+
export declare type RadioType = ComponentType;
|
|
1779
|
+
|
|
1780
|
+
/** 公共数据返回类型 */
|
|
1781
|
+
declare type Response_2<T> = {
|
|
1782
|
+
status: number;
|
|
1783
|
+
data: T;
|
|
1784
|
+
message: string;
|
|
1785
|
+
timestamp: number;
|
|
1786
|
+
};
|
|
1787
|
+
export { Response_2 as Response }
|
|
1788
|
+
|
|
1789
|
+
/**
|
|
1790
|
+
* SearchForm 组件 Emits
|
|
1791
|
+
*/
|
|
1792
|
+
export declare interface SearchFormEmits {
|
|
1793
|
+
/** 点击搜索按钮时触发 */
|
|
1794
|
+
search: () => void;
|
|
1795
|
+
/** 点击重置按钮时触发 */
|
|
1796
|
+
reset: () => void;
|
|
1797
|
+
}
|
|
1798
|
+
|
|
1799
|
+
export declare interface SearchFormExpose {
|
|
1800
|
+
/** 重新计算视图高度 */
|
|
1801
|
+
countViewHeight: () => void;
|
|
1802
|
+
}
|
|
1803
|
+
|
|
1804
|
+
/**
|
|
1805
|
+
* SearchForm 组件 Props
|
|
1806
|
+
*/
|
|
1807
|
+
export declare interface SearchFormProps {
|
|
1808
|
+
/** 折叠时的高度(px) */
|
|
1809
|
+
collapsedHeight?: number;
|
|
1810
|
+
/** 是否显示重置按钮 */
|
|
1811
|
+
reset?: boolean;
|
|
1812
|
+
}
|
|
1813
|
+
|
|
1814
|
+
/** 分页参数类型 */
|
|
1815
|
+
export declare type SearchParams<T = any> = BasePage & BaseSort & {
|
|
1816
|
+
[k in keyof T]: any;
|
|
1817
|
+
};
|
|
1818
|
+
|
|
1819
|
+
/**
|
|
1820
|
+
* 表单项类型集合(用于内部判断)
|
|
1821
|
+
*/
|
|
1822
|
+
export declare const SELECT_FORM_TYPES: Set<string>;
|
|
1823
|
+
|
|
1824
|
+
/**
|
|
1825
|
+
* Select 组件 Emits
|
|
1826
|
+
*/
|
|
1827
|
+
export declare interface SelectEmits {
|
|
1828
|
+
/** 选中值发生变化时触发 */
|
|
1829
|
+
(e: 'change', value: any): void;
|
|
1830
|
+
/** 下拉框出现/隐藏时触发 */
|
|
1831
|
+
(e: 'visible-change', visible: boolean): void;
|
|
1832
|
+
/** 多选模式下移除tag时触发 */
|
|
1833
|
+
(e: 'remove-tag', value: any): void;
|
|
1834
|
+
/** 可清空的单选模式下用户点击清空按钮时触发 */
|
|
1835
|
+
(e: 'clear'): void;
|
|
1836
|
+
/** 当 input 失去焦点时触发 */
|
|
1837
|
+
(e: 'blur', event: FocusEvent): void;
|
|
1838
|
+
/** 当 input 获得焦点时触发 */
|
|
1839
|
+
(e: 'focus', event: FocusEvent): void;
|
|
1840
|
+
}
|
|
1841
|
+
|
|
1842
|
+
/**
|
|
1843
|
+
* Select 选项类型(支持单个选项或分组选项)
|
|
1844
|
+
*/
|
|
1845
|
+
export declare type SelectOption = BaseOption<string | number | boolean | Record<string, any>> | GroupOption;
|
|
1846
|
+
|
|
1847
|
+
/** @deprecated 使用 BaseOption 代替 */
|
|
1848
|
+
export declare type SelectOptionItem = BaseOption<string | number | boolean | Record<string, any>>;
|
|
1849
|
+
|
|
1850
|
+
/**
|
|
1851
|
+
* Select 组件 Props
|
|
1852
|
+
*/
|
|
1853
|
+
export declare interface SelectProps {
|
|
1854
|
+
/** 选项数据 */
|
|
1855
|
+
options: SelectOption[];
|
|
1856
|
+
}
|
|
1857
|
+
|
|
1858
|
+
/** @deprecated 使用 SelectProps 代替 */
|
|
1859
|
+
export declare type SelectPropsType = SelectProps;
|
|
1860
|
+
|
|
1861
|
+
export declare enum SortEnum {
|
|
1862
|
+
ASC = "ascending",
|
|
1863
|
+
DESC = "descending",
|
|
1864
|
+
EMPTY
|
|
1865
|
+
}
|
|
1866
|
+
|
|
1867
|
+
export declare interface TableColumn<T = any> extends Partial<TableColumnCtx<T>> {
|
|
1868
|
+
hidden?: 0 | 1;
|
|
1869
|
+
transform?: (item: T) => string;
|
|
1870
|
+
}
|
|
1871
|
+
|
|
1872
|
+
export declare interface TableEmits {
|
|
1873
|
+
(e: 'selection-change', selection: any[]): void;
|
|
1874
|
+
(e: 'sort-change', params: {
|
|
1875
|
+
column: any;
|
|
1876
|
+
prop: string;
|
|
1877
|
+
order: string;
|
|
1878
|
+
}): void;
|
|
1879
|
+
}
|
|
1880
|
+
|
|
1881
|
+
export declare interface TableExpose {
|
|
1882
|
+
/** 获取表格引用 */
|
|
1883
|
+
getTableRef: () => any;
|
|
1884
|
+
/** 清空选择 */
|
|
1885
|
+
clearSelection: () => void;
|
|
1886
|
+
/** 切换行选择状态 */
|
|
1887
|
+
toggleRowSelection: (row: any, selected?: boolean) => void;
|
|
1888
|
+
/** 切换所有行选择状态 */
|
|
1889
|
+
toggleAllSelection: () => void;
|
|
1890
|
+
/** 切换行展开状态 */
|
|
1891
|
+
toggleRowExpansion: (row: any, expanded?: boolean) => void;
|
|
1892
|
+
/** 设置当前行 */
|
|
1893
|
+
setCurrentRow: (row: any) => void;
|
|
1894
|
+
/** 清空排序 */
|
|
1895
|
+
clearSort: () => void;
|
|
1896
|
+
/** 清空过滤器 */
|
|
1897
|
+
clearFilter: (columnKey?: string | string[]) => void;
|
|
1898
|
+
/** 重新布局 */
|
|
1899
|
+
doLayout: () => void;
|
|
1900
|
+
/** 排序 */
|
|
1901
|
+
sort: (prop: string, order: string) => void;
|
|
1902
|
+
}
|
|
1903
|
+
|
|
1904
|
+
/** 表格上方插槽类型 */
|
|
1905
|
+
export declare type TableHeaderProps<T> = {
|
|
1906
|
+
selectList: T[];
|
|
1907
|
+
selectIds: string[];
|
|
1908
|
+
};
|
|
1909
|
+
|
|
1910
|
+
export declare interface TableProps<T = any> {
|
|
1911
|
+
data: T[];
|
|
1912
|
+
columns: TableColumn<T>[];
|
|
1913
|
+
rowKey?: string;
|
|
1914
|
+
}
|
|
1915
|
+
|
|
1916
|
+
/** 表格插槽类型 */
|
|
1917
|
+
export declare type TableSolt<D> = {
|
|
1918
|
+
[key in string]?: (props: {
|
|
1919
|
+
row: D;
|
|
1920
|
+
column: TableColumn<D>;
|
|
1921
|
+
$index: number;
|
|
1922
|
+
}) => VNodeChild;
|
|
1923
|
+
} & {
|
|
1924
|
+
append?: () => VNodeChild;
|
|
1925
|
+
empty?: () => VNodeChild;
|
|
1926
|
+
} & {
|
|
1927
|
+
[key in `header-${string}`]?: (props: {
|
|
1928
|
+
column: TableColumn<D>;
|
|
1929
|
+
$index: number;
|
|
1930
|
+
}) => VNodeChild;
|
|
1931
|
+
};
|
|
1932
|
+
|
|
1933
|
+
export { }
|