@vtj/designer 0.10.4 → 0.10.6
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.mjs +4 -4
- package/package.json +7 -7
- package/types/components/binders/event.d.ts +2 -46
- package/types/components/binders/variable.d.ts +2 -46
- package/types/components/editor/Editor.d.ts +1 -3
- package/types/components/editor/index.d.ts +1 -3
- package/types/components/regions/actions.d.ts +2 -33
- package/types/components/regions/apps.d.ts +2 -33
- package/types/components/regions/brand.d.ts +2 -33
- package/types/components/regions/empty.d.ts +1 -1
- package/types/components/regions/index.d.ts +11 -259
- package/types/components/regions/preview.d.ts +2 -33
- package/types/components/regions/settings.d.ts +2 -33
- package/types/components/regions/status.d.ts +2 -33
- package/types/components/regions/toolbar.d.ts +2 -33
- package/types/components/regions/workspace.d.ts +2 -33
- package/types/components/setters/css.d.ts +2 -46
- package/types/components/setters/file.d.ts +1 -1
- package/types/components/setters/function.d.ts +2 -46
- package/types/components/setters/icon.d.ts +1 -1
- package/types/components/setters/index.d.ts +10 -140
- package/types/components/setters/json.d.ts +2 -46
- package/types/components/setters/section.d.ts +1 -1
- package/types/components/setters/slider.d.ts +1 -1
- package/types/components/setters/tag.d.ts +1 -1
- package/types/components/setters/vanIcon/index.d.ts +1 -1
- package/types/components/shared/binder.d.ts +70 -742
- package/types/components/shared/box.d.ts +45 -13
- package/types/components/shared/item.d.ts +143 -13
- package/types/components/shared/panel.d.ts +72 -15
- package/types/components/shared/tabs.d.ts +37 -13
- package/types/components/shared/viewer.d.ts +2 -766
- package/types/components/shared/viewport.d.ts +29 -13
- package/types/components/skeleton.d.ts +2 -180
- package/types/components/widgets/about/index.d.ts +1 -1
- package/types/components/widgets/actions/coder.d.ts +1 -1
- package/types/components/widgets/actions/index.d.ts +1 -1
- package/types/components/widgets/apis/base-info.d.ts +1 -1
- package/types/components/widgets/apis/form.d.ts +2 -1520
- package/types/components/widgets/apis/jsonp-options.d.ts +1 -1
- package/types/components/widgets/apis/mock-template.d.ts +1 -1
- package/types/components/widgets/apis/request-settings.d.ts +1 -1
- package/types/components/widgets/css/index.d.ts +2 -46
- package/types/components/widgets/designer/actions.d.ts +1 -1
- package/types/components/widgets/designer/index.d.ts +1 -4
- package/types/components/widgets/docs/index.d.ts +2 -101
- package/types/components/widgets/empty/index.d.ts +1 -1
- package/types/components/widgets/index.d.ts +11 -342
- package/types/components/widgets/market/index.d.ts +2 -101
- package/types/components/widgets/previewer/index.d.ts +1 -4
- package/types/components/widgets/raw/index.d.ts +2 -46
- package/types/components/widgets/schema/index.d.ts +2 -46
- package/types/components/widgets/scripts/group.d.ts +51 -983
- package/types/components/widgets/scripts/lifeCycles.d.ts +2 -46
- package/types/components/widgets/style/JsonMode.d.ts +2 -46
- package/types/components/widgets/style/positioning.d.ts +1 -3
- package/types/components/widgets/style/spacing-input.d.ts +2 -255
- package/types/components/widgets/style/spacing.d.ts +1 -4
- package/types/version.d.ts +2 -2
@@ -1,12 +1,10 @@
|
|
1
|
+
import { XField } from '@vtj/ui';
|
1
2
|
import { BlockModel } from '@vtj/core';
|
2
3
|
import { Context } from '@vtj/renderer';
|
3
|
-
import {
|
4
|
-
import {
|
5
|
-
import {
|
6
|
-
import {
|
7
|
-
import { Arrayable } from 'element-plus/es/utils/typescript.mjs';
|
8
|
-
import { OnCleanup } from '@vue/reactivity';
|
9
|
-
import { Props } from '../../editor/Editor';
|
4
|
+
import { ElEmpty } from 'element-plus';
|
5
|
+
import { Panel, Item, Binder } from '../../shared';
|
6
|
+
import { default as Editor } from '../../editor';
|
7
|
+
import { Ref, ComputedRef, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
10
8
|
export interface Props {
|
11
9
|
context: Context | null;
|
12
10
|
current: BlockModel | null;
|
@@ -19,986 +17,56 @@ export interface Props {
|
|
19
17
|
submit: (data: any, edit: boolean) => Promise<boolean>;
|
20
18
|
itemTitle?: (data: any) => string;
|
21
19
|
}
|
22
|
-
declare
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
modelValue: any;
|
41
|
-
defaultValue: string | number | boolean | Record<string, any> | unknown[];
|
42
|
-
editor: Record<string, any> | VNode<RendererNode, RendererElement, {
|
43
|
-
[key: string]: any;
|
44
|
-
}> | BuiltinFieldEditorType;
|
45
|
-
tooltipMessage: boolean | Partial< ElTooltipProps>;
|
46
|
-
tooltipPosition: number | "outer" | "inner";
|
47
|
-
}> & Omit<{
|
48
|
-
readonly visible: boolean | Function | Record<string, any>;
|
49
|
-
readonly hidden: boolean;
|
50
|
-
readonly modelValue: any;
|
51
|
-
readonly editor: Record<string, any> | VNode<RendererNode, RendererElement, {
|
52
|
-
[key: string]: any;
|
53
|
-
}> | BuiltinFieldEditorType;
|
54
|
-
readonly tooltipMessage: boolean | Partial< ElTooltipProps>;
|
55
|
-
readonly tooltipPosition: number | "inner" | "outer";
|
56
|
-
readonly inline: boolean;
|
57
|
-
readonly size?: BaseSize | undefined;
|
58
|
-
readonly name?: string | undefined;
|
59
|
-
readonly props?: Record<string, any> | undefined;
|
60
|
-
readonly width?: string | number | undefined;
|
61
|
-
readonly label?: string | undefined;
|
62
|
-
readonly error?: string | undefined;
|
63
|
-
readonly disabled?: boolean | undefined;
|
64
|
-
readonly placeholder?: string | null | undefined;
|
65
|
-
readonly readonly?: boolean | undefined;
|
66
|
-
readonly options?: FieldOption[] | FieldOptionsLoader | undefined;
|
67
|
-
readonly cascader?: string | string[] | undefined;
|
68
|
-
readonly tip?: string | undefined;
|
69
|
-
readonly defaultValue?: string | number | boolean | Record<string, any> | unknown[] | undefined;
|
70
|
-
readonly onFocus?: (() => any) | undefined | undefined;
|
71
|
-
readonly onBlur?: (() => any) | undefined | undefined;
|
72
|
-
readonly onChange?: ((value: any, data?: any) => any) | undefined | undefined;
|
73
|
-
readonly "onUpdate:modelValue"?: ((value: any) => any) | undefined | undefined;
|
74
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "visible" | "hidden" | "modelValue" | "editor" | "tooltipMessage" | "tooltipPosition" | "inline" | "defaultValue">;
|
75
|
-
$attrs: {
|
76
|
-
[x: string]: unknown;
|
77
|
-
};
|
78
|
-
$refs: {
|
79
|
-
[x: string]: unknown;
|
80
|
-
} & {
|
81
|
-
itemRef: ({
|
82
|
-
$: ComponentInternalInstance;
|
83
|
-
$data: {};
|
84
|
-
$props: Partial<{
|
85
|
-
readonly required: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
86
|
-
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
87
|
-
readonly labelPosition: EpPropMergeType<StringConstructor, "" | "top" | "left" | "right", unknown>;
|
88
|
-
readonly inlineMessage: EpPropMergeType<readonly [StringConstructor, BooleanConstructor], unknown, unknown>;
|
89
|
-
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
90
|
-
}> & Omit<{
|
91
|
-
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
92
|
-
readonly labelPosition: EpPropMergeType<StringConstructor, "" | "top" | "left" | "right", unknown>;
|
93
|
-
readonly inlineMessage: EpPropMergeType<readonly [StringConstructor, BooleanConstructor], unknown, unknown>;
|
94
|
-
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
95
|
-
readonly size?: EpPropMergeType<StringConstructor, "" | "large" | "default" | "small", unknown> | undefined;
|
96
|
-
readonly required?: EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
97
|
-
readonly label?: string | undefined;
|
98
|
-
readonly error?: string | undefined;
|
99
|
-
readonly prop?: EpPropMergeType<(new (...args: any[]) => string | string[]) | (() => FormItemProp) | ((new (...args: any[]) => string | string[]) | (() => FormItemProp))[], unknown, unknown> | undefined;
|
100
|
-
readonly rules?: EpPropMergeType<(new (...args: any[]) => FormItemRule | FormItemRule[]) | (() => Arrayable<FormItemRule>) | ((new (...args: any[]) => FormItemRule | FormItemRule[]) | (() => Arrayable<FormItemRule>))[], unknown, unknown> | undefined;
|
101
|
-
readonly validateStatus?: EpPropMergeType<StringConstructor, "" | "success" | "error" | "validating", unknown> | undefined;
|
102
|
-
readonly for?: string | undefined;
|
103
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "required" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage">;
|
104
|
-
$attrs: {
|
105
|
-
[x: string]: unknown;
|
106
|
-
};
|
107
|
-
$refs: {
|
108
|
-
[x: string]: unknown;
|
109
|
-
};
|
110
|
-
$slots: Readonly<{
|
111
|
-
[name: string]: Slot<any> | undefined;
|
112
|
-
}>;
|
113
|
-
$root: ComponentPublicInstance | null;
|
114
|
-
$parent: ComponentPublicInstance | null;
|
115
|
-
$host: Element | null;
|
116
|
-
$emit: (event: string, ...args: any[]) => void;
|
117
|
-
$el: any;
|
118
|
-
$options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
119
|
-
readonly label: StringConstructor;
|
120
|
-
readonly labelWidth: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
121
|
-
readonly labelPosition: EpPropFinalized<StringConstructor, "" | "top" | "left" | "right", unknown, "", boolean>;
|
122
|
-
readonly prop: {
|
123
|
-
readonly type: PropType<EpPropMergeType<(new (...args: any[]) => string | string[]) | (() => FormItemProp) | ((new (...args: any[]) => string | string[]) | (() => FormItemProp))[], unknown, unknown>>;
|
124
|
-
readonly required: false;
|
125
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
126
|
-
__epPropKey: true;
|
127
|
-
};
|
128
|
-
readonly required: EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
129
|
-
readonly rules: {
|
130
|
-
readonly type: PropType<EpPropMergeType<(new (...args: any[]) => FormItemRule | FormItemRule[]) | (() => Arrayable<FormItemRule>) | ((new (...args: any[]) => FormItemRule | FormItemRule[]) | (() => Arrayable<FormItemRule>))[], unknown, unknown>>;
|
131
|
-
readonly required: false;
|
132
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
133
|
-
__epPropKey: true;
|
134
|
-
};
|
135
|
-
readonly error: StringConstructor;
|
136
|
-
readonly validateStatus: {
|
137
|
-
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown>>;
|
138
|
-
readonly required: false;
|
139
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
140
|
-
__epPropKey: true;
|
141
|
-
};
|
142
|
-
readonly for: StringConstructor;
|
143
|
-
readonly inlineMessage: EpPropFinalized<readonly [StringConstructor, BooleanConstructor], unknown, unknown, "", boolean>;
|
144
|
-
readonly showMessage: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
145
|
-
readonly size: {
|
146
|
-
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown>>;
|
147
|
-
readonly required: false;
|
148
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
149
|
-
__epPropKey: true;
|
150
|
-
};
|
151
|
-
}>>, {
|
152
|
-
size: ComputedRef<"" | "small" | "default" | "large">;
|
153
|
-
validateMessage: Ref<string>;
|
154
|
-
validateState: Ref<"" | "error" | "success" | "validating">;
|
155
|
-
validate: (trigger: string, callback?: FormValidateCallback) => FormValidationResult;
|
156
|
-
clearValidate: () => void;
|
157
|
-
resetField: () => void;
|
158
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record<string, any>, string, {
|
159
|
-
readonly required: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
160
|
-
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
161
|
-
readonly labelPosition: EpPropMergeType<StringConstructor, "" | "top" | "left" | "right", unknown>;
|
162
|
-
readonly inlineMessage: EpPropMergeType<readonly [StringConstructor, BooleanConstructor], unknown, unknown>;
|
163
|
-
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
164
|
-
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
165
|
-
beforeCreate?: (() => void) | (() => void)[];
|
166
|
-
created?: (() => void) | (() => void)[];
|
167
|
-
beforeMount?: (() => void) | (() => void)[];
|
168
|
-
mounted?: (() => void) | (() => void)[];
|
169
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
170
|
-
updated?: (() => void) | (() => void)[];
|
171
|
-
activated?: (() => void) | (() => void)[];
|
172
|
-
deactivated?: (() => void) | (() => void)[];
|
173
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
174
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
175
|
-
destroyed?: (() => void) | (() => void)[];
|
176
|
-
unmounted?: (() => void) | (() => void)[];
|
177
|
-
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
178
|
-
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
179
|
-
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
180
|
-
};
|
181
|
-
$forceUpdate: () => void;
|
182
|
-
$nextTick: nextTick;
|
183
|
-
$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;
|
184
|
-
} & Readonly<{
|
185
|
-
readonly required: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
186
|
-
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
187
|
-
readonly labelPosition: EpPropMergeType<StringConstructor, "" | "top" | "left" | "right", unknown>;
|
188
|
-
readonly inlineMessage: EpPropMergeType<readonly [StringConstructor, BooleanConstructor], unknown, unknown>;
|
189
|
-
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
190
|
-
}> & Omit<Readonly< ExtractPropTypes<{
|
191
|
-
readonly label: StringConstructor;
|
192
|
-
readonly labelWidth: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
193
|
-
readonly labelPosition: EpPropFinalized<StringConstructor, "" | "top" | "left" | "right", unknown, "", boolean>;
|
194
|
-
readonly prop: {
|
195
|
-
readonly type: PropType<EpPropMergeType<(new (...args: any[]) => string | string[]) | (() => FormItemProp) | ((new (...args: any[]) => string | string[]) | (() => FormItemProp))[], unknown, unknown>>;
|
196
|
-
readonly required: false;
|
197
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
198
|
-
__epPropKey: true;
|
199
|
-
};
|
200
|
-
readonly required: EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
201
|
-
readonly rules: {
|
202
|
-
readonly type: PropType<EpPropMergeType<(new (...args: any[]) => FormItemRule | FormItemRule[]) | (() => Arrayable<FormItemRule>) | ((new (...args: any[]) => FormItemRule | FormItemRule[]) | (() => Arrayable<FormItemRule>))[], unknown, unknown>>;
|
203
|
-
readonly required: false;
|
204
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
205
|
-
__epPropKey: true;
|
206
|
-
};
|
207
|
-
readonly error: StringConstructor;
|
208
|
-
readonly validateStatus: {
|
209
|
-
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown>>;
|
210
|
-
readonly required: false;
|
211
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
212
|
-
__epPropKey: true;
|
213
|
-
};
|
214
|
-
readonly for: StringConstructor;
|
215
|
-
readonly inlineMessage: EpPropFinalized<readonly [StringConstructor, BooleanConstructor], unknown, unknown, "", boolean>;
|
216
|
-
readonly showMessage: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
217
|
-
readonly size: {
|
218
|
-
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown>>;
|
219
|
-
readonly required: false;
|
220
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
221
|
-
__epPropKey: true;
|
222
|
-
};
|
223
|
-
}>>, "size" | "required" | "validateState" | "clearValidate" | "validate" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "validateMessage" | "resetField"> & ShallowUnwrapRef<{
|
224
|
-
size: ComputedRef<"" | "small" | "default" | "large">;
|
225
|
-
validateMessage: Ref<string>;
|
226
|
-
validateState: Ref<"" | "error" | "success" | "validating">;
|
227
|
-
validate: (trigger: string, callback?: FormValidateCallback) => FormValidationResult;
|
228
|
-
clearValidate: () => void;
|
229
|
-
resetField: () => void;
|
230
|
-
}> & {} & ComponentCustomProperties & {} & {
|
231
|
-
$slots: {
|
232
|
-
label?(_: {
|
233
|
-
label: string;
|
234
|
-
}): any;
|
235
|
-
default?(_: {}): any;
|
236
|
-
error?(_: {
|
237
|
-
error: string;
|
238
|
-
}): any;
|
239
|
-
};
|
240
|
-
}) | null;
|
241
|
-
editorRef: unknown;
|
242
|
-
};
|
243
|
-
$slots: Readonly<{
|
244
|
-
[name: string]: Slot<any> | undefined;
|
245
|
-
}>;
|
246
|
-
$root: ComponentPublicInstance | null;
|
247
|
-
$parent: ComponentPublicInstance | null;
|
248
|
-
$host: Element | null;
|
249
|
-
$emit: ((event: "focus") => void) & ((event: "blur") => void) & ((event: "change", value: any, data?: any) => void) & ((event: "update:modelValue", value: any) => void);
|
250
|
-
$el: any;
|
251
|
-
$options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
252
|
-
name: {
|
253
|
-
type: StringConstructor;
|
254
|
-
};
|
255
|
-
label: {
|
256
|
-
type: StringConstructor;
|
257
|
-
};
|
258
|
-
editor: {
|
259
|
-
type: PropType< BuiltinFieldEditorType | VNode | Record<string, any>>;
|
260
|
-
default: string;
|
261
|
-
};
|
262
|
-
props: {
|
263
|
-
type: PropType<Record<string, any>>;
|
264
|
-
};
|
265
|
-
modelValue: {
|
266
|
-
type: PropType<any>;
|
267
|
-
default(context: any): any;
|
268
|
-
};
|
269
|
-
size: {
|
270
|
-
type: PropType<BaseSize>;
|
271
|
-
};
|
272
|
-
width: {
|
273
|
-
type: PropType<string | number>;
|
274
|
-
};
|
275
|
-
tooltipMessage: {
|
276
|
-
type: PropType<boolean | Partial< ElTooltipProps>>;
|
277
|
-
default: boolean;
|
278
|
-
};
|
279
|
-
tooltipPosition: {
|
280
|
-
type: PropType<"inner" | "outer" | number>;
|
281
|
-
default: string;
|
282
|
-
};
|
283
|
-
placeholder: {
|
284
|
-
type: PropType<string | null>;
|
285
|
-
};
|
286
|
-
disabled: {
|
287
|
-
type: PropType<boolean>;
|
288
|
-
};
|
289
|
-
readonly: {
|
290
|
-
type: PropType<boolean>;
|
291
|
-
};
|
292
|
-
options: {
|
293
|
-
type: PropType< FieldOption[] | FieldOptionsLoader>;
|
294
|
-
};
|
295
|
-
visible: {
|
296
|
-
type: (BooleanConstructor | ObjectConstructor | FunctionConstructor)[];
|
297
|
-
default: boolean;
|
298
|
-
};
|
299
|
-
cascader: {
|
300
|
-
type: PropType<string | string[]>;
|
301
|
-
};
|
302
|
-
error: {
|
303
|
-
type: StringConstructor;
|
304
|
-
};
|
305
|
-
tip: {
|
306
|
-
type: StringConstructor;
|
307
|
-
};
|
308
|
-
inline: {
|
309
|
-
type: BooleanConstructor;
|
310
|
-
};
|
311
|
-
hidden: {
|
312
|
-
type: BooleanConstructor;
|
313
|
-
};
|
314
|
-
defaultValue: {
|
315
|
-
type: (BooleanConstructor | ObjectConstructor | StringConstructor | NumberConstructor | ArrayConstructor)[];
|
316
|
-
default: undefined;
|
317
|
-
};
|
318
|
-
}>> & Readonly<{
|
319
|
-
onFocus?: (() => any) | undefined;
|
320
|
-
onBlur?: (() => any) | undefined;
|
321
|
-
onChange?: ((value: any, data?: any) => any) | undefined;
|
322
|
-
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
323
|
-
}>, {
|
324
|
-
fieldValue: Ref<any, any>;
|
325
|
-
itemRef: Ref<any, any>;
|
326
|
-
editorRef: Ref<any, any>;
|
327
|
-
focus: () => void;
|
328
|
-
blur: () => void;
|
329
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
330
|
-
focus: () => any;
|
331
|
-
blur: () => any;
|
332
|
-
change: (value: any, data?: any) => any;
|
333
|
-
"update:modelValue": (value: any) => any;
|
334
|
-
}, string, {
|
335
|
-
hidden: boolean;
|
336
|
-
visible: boolean | Function | Record<string, any>;
|
337
|
-
inline: boolean;
|
338
|
-
modelValue: any;
|
339
|
-
defaultValue: string | number | boolean | Record<string, any> | unknown[];
|
340
|
-
editor: Record<string, any> | VNode<RendererNode, RendererElement, {
|
341
|
-
[key: string]: any;
|
342
|
-
}> | BuiltinFieldEditorType;
|
343
|
-
tooltipMessage: boolean | Partial< ElTooltipProps>;
|
344
|
-
tooltipPosition: number | "outer" | "inner";
|
345
|
-
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
346
|
-
beforeCreate?: (() => void) | (() => void)[];
|
347
|
-
created?: (() => void) | (() => void)[];
|
348
|
-
beforeMount?: (() => void) | (() => void)[];
|
349
|
-
mounted?: (() => void) | (() => void)[];
|
350
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
351
|
-
updated?: (() => void) | (() => void)[];
|
352
|
-
activated?: (() => void) | (() => void)[];
|
353
|
-
deactivated?: (() => void) | (() => void)[];
|
354
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
355
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
356
|
-
destroyed?: (() => void) | (() => void)[];
|
357
|
-
unmounted?: (() => void) | (() => void)[];
|
358
|
-
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
359
|
-
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
360
|
-
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
361
|
-
};
|
362
|
-
$forceUpdate: () => void;
|
363
|
-
$nextTick: nextTick;
|
364
|
-
$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;
|
365
|
-
} & Readonly<{
|
366
|
-
hidden: boolean;
|
367
|
-
visible: boolean | Function | Record<string, any>;
|
368
|
-
inline: boolean;
|
369
|
-
modelValue: any;
|
370
|
-
defaultValue: string | number | boolean | Record<string, any> | unknown[];
|
371
|
-
editor: Record<string, any> | VNode<RendererNode, RendererElement, {
|
372
|
-
[key: string]: any;
|
373
|
-
}> | BuiltinFieldEditorType;
|
374
|
-
tooltipMessage: boolean | Partial< ElTooltipProps>;
|
375
|
-
tooltipPosition: number | "outer" | "inner";
|
376
|
-
}> & Omit<Readonly< ExtractPropTypes<{
|
377
|
-
name: {
|
378
|
-
type: StringConstructor;
|
379
|
-
};
|
380
|
-
label: {
|
381
|
-
type: StringConstructor;
|
382
|
-
};
|
383
|
-
editor: {
|
384
|
-
type: PropType< BuiltinFieldEditorType | VNode | Record<string, any>>;
|
385
|
-
default: string;
|
386
|
-
};
|
387
|
-
props: {
|
388
|
-
type: PropType<Record<string, any>>;
|
389
|
-
};
|
390
|
-
modelValue: {
|
391
|
-
type: PropType<any>;
|
392
|
-
default(context: any): any;
|
393
|
-
};
|
394
|
-
size: {
|
395
|
-
type: PropType<BaseSize>;
|
396
|
-
};
|
397
|
-
width: {
|
398
|
-
type: PropType<string | number>;
|
399
|
-
};
|
400
|
-
tooltipMessage: {
|
401
|
-
type: PropType<boolean | Partial< ElTooltipProps>>;
|
402
|
-
default: boolean;
|
403
|
-
};
|
404
|
-
tooltipPosition: {
|
405
|
-
type: PropType<"inner" | "outer" | number>;
|
406
|
-
default: string;
|
407
|
-
};
|
408
|
-
placeholder: {
|
409
|
-
type: PropType<string | null>;
|
410
|
-
};
|
411
|
-
disabled: {
|
412
|
-
type: PropType<boolean>;
|
413
|
-
};
|
414
|
-
readonly: {
|
415
|
-
type: PropType<boolean>;
|
416
|
-
};
|
417
|
-
options: {
|
418
|
-
type: PropType< FieldOption[] | FieldOptionsLoader>;
|
419
|
-
};
|
420
|
-
visible: {
|
421
|
-
type: (BooleanConstructor | ObjectConstructor | FunctionConstructor)[];
|
422
|
-
default: boolean;
|
423
|
-
};
|
424
|
-
cascader: {
|
425
|
-
type: PropType<string | string[]>;
|
426
|
-
};
|
427
|
-
error: {
|
428
|
-
type: StringConstructor;
|
429
|
-
};
|
430
|
-
tip: {
|
431
|
-
type: StringConstructor;
|
432
|
-
};
|
433
|
-
inline: {
|
434
|
-
type: BooleanConstructor;
|
435
|
-
};
|
436
|
-
hidden: {
|
437
|
-
type: BooleanConstructor;
|
438
|
-
};
|
439
|
-
defaultValue: {
|
440
|
-
type: (BooleanConstructor | ObjectConstructor | StringConstructor | NumberConstructor | ArrayConstructor)[];
|
441
|
-
default: undefined;
|
442
|
-
};
|
443
|
-
}>> & Readonly<{
|
444
|
-
onFocus?: (() => any) | undefined;
|
445
|
-
onBlur?: (() => any) | undefined;
|
446
|
-
onChange?: ((value: any, data?: any) => any) | undefined;
|
447
|
-
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
448
|
-
}>, "visible" | "hidden" | "modelValue" | "focus" | "blur" | "editor" | "tooltipMessage" | "tooltipPosition" | "inline" | "defaultValue" | "fieldValue" | "itemRef" | "editorRef"> & ShallowUnwrapRef<{
|
449
|
-
fieldValue: Ref<any, any>;
|
450
|
-
itemRef: Ref<any, any>;
|
451
|
-
editorRef: Ref<any, any>;
|
452
|
-
focus: () => void;
|
453
|
-
blur: () => void;
|
454
|
-
}> & {} & ComponentCustomProperties & {} & {
|
455
|
-
$slots: {
|
456
|
-
label?(_: {}): any;
|
457
|
-
error?(_: {
|
458
|
-
error: string;
|
459
|
-
}): any;
|
460
|
-
editor?(_: {
|
461
|
-
editor: FieldEditorProps;
|
462
|
-
}): any;
|
463
|
-
option?(_: {
|
464
|
-
option: any;
|
465
|
-
}): any;
|
466
|
-
tip?(_: {}): any;
|
467
|
-
default?(_: {}): any;
|
468
|
-
};
|
469
|
-
}) | null;
|
470
|
-
editorRef: CreateComponentPublicInstanceWithMixins<Readonly< Props> & Readonly<{
|
471
|
-
onBlur?: ((...args: any[]) => any) | undefined;
|
472
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
473
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
474
|
-
}>, {
|
475
|
-
getEditor: () => import("monaco-editor").editor.IStandaloneCodeEditor | null;
|
476
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
477
|
-
blur: (...args: any[]) => void;
|
478
|
-
change: (...args: any[]) => void;
|
479
|
-
"update:modelValue": (...args: any[]) => void;
|
480
|
-
}, PublicProps, {
|
481
|
-
height: string;
|
482
|
-
modelValue: string;
|
483
|
-
dark: boolean;
|
484
|
-
readonly: boolean;
|
485
|
-
options: import("monaco-editor").editor.IEditorConstructionOptions;
|
486
|
-
lang: string;
|
487
|
-
minimap: boolean;
|
488
|
-
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
489
|
-
container: HTMLDivElement;
|
490
|
-
}, HTMLDivElement, ComponentProvideOptions, {
|
491
|
-
P: {};
|
492
|
-
B: {};
|
493
|
-
D: {};
|
494
|
-
C: {};
|
495
|
-
M: {};
|
496
|
-
Defaults: {};
|
497
|
-
}, Readonly< Props> & Readonly<{
|
498
|
-
onBlur?: ((...args: any[]) => any) | undefined;
|
499
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
500
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
501
|
-
}>, {
|
502
|
-
getEditor: () => import("monaco-editor").editor.IStandaloneCodeEditor | null;
|
503
|
-
}, {}, {}, {}, {
|
504
|
-
height: string;
|
505
|
-
modelValue: string;
|
506
|
-
dark: boolean;
|
507
|
-
readonly: boolean;
|
508
|
-
options: import("monaco-editor").editor.IEditorConstructionOptions;
|
509
|
-
lang: string;
|
510
|
-
minimap: boolean;
|
511
|
-
}> | null;
|
512
|
-
};
|
513
|
-
rootEl: any;
|
20
|
+
declare const editorRef: Ref<any, any>;
|
21
|
+
declare const codeFieldRef: Ref<any, any>;
|
22
|
+
declare const visible: Ref<boolean, boolean>;
|
23
|
+
declare const model: Ref<any, any>;
|
24
|
+
declare const isEdit: Ref<boolean, boolean>;
|
25
|
+
declare const title: ComputedRef<string>;
|
26
|
+
declare const onPlus: () => void;
|
27
|
+
declare const onItemAction: (data: any, action: any) => void;
|
28
|
+
declare const onPick: (name: string) => void;
|
29
|
+
declare const onItemClick: (data: any) => void;
|
30
|
+
declare const submit: (form: any) => Promise<boolean>;
|
31
|
+
declare const onEditorBlur: () => void;
|
32
|
+
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
33
|
+
declare var __VLS_31: {
|
34
|
+
model: any;
|
35
|
+
isEdit: boolean;
|
36
|
+
nameLabel: string;
|
37
|
+
valueLabel: string;
|
514
38
|
};
|
515
|
-
type
|
39
|
+
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
40
|
+
fields?: (props: typeof __VLS_31) => any;
|
41
|
+
}>;
|
42
|
+
declare const __VLS_self: DefineComponent<Props, {
|
43
|
+
XField: typeof XField;
|
44
|
+
ElEmpty: typeof ElEmpty;
|
45
|
+
Panel: typeof Panel;
|
46
|
+
Item: typeof Item;
|
47
|
+
Binder: typeof Binder;
|
48
|
+
Editor: typeof Editor;
|
49
|
+
editorRef: typeof editorRef;
|
50
|
+
codeFieldRef: typeof codeFieldRef;
|
51
|
+
visible: typeof visible;
|
52
|
+
model: typeof model;
|
53
|
+
isEdit: typeof isEdit;
|
54
|
+
title: typeof title;
|
55
|
+
onPlus: typeof onPlus;
|
56
|
+
onItemAction: typeof onItemAction;
|
57
|
+
onPick: typeof onPick;
|
58
|
+
onItemClick: typeof onItemClick;
|
59
|
+
submit: typeof submit;
|
60
|
+
onEditorBlur: typeof onEditorBlur;
|
61
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {
|
62
|
+
itemTitle: (data: any) => string;
|
63
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
516
64
|
declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {
|
517
65
|
itemTitle: (data: any) => string;
|
518
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
519
|
-
|
520
|
-
$: ComponentInternalInstance;
|
521
|
-
$data: {};
|
522
|
-
$props: Partial<{
|
523
|
-
hidden: boolean;
|
524
|
-
visible: boolean | Function | Record<string, any>;
|
525
|
-
inline: boolean;
|
526
|
-
modelValue: any;
|
527
|
-
defaultValue: string | number | boolean | Record<string, any> | unknown[];
|
528
|
-
editor: Record<string, any> | VNode<RendererNode, RendererElement, {
|
529
|
-
[key: string]: any;
|
530
|
-
}> | BuiltinFieldEditorType;
|
531
|
-
tooltipMessage: boolean | Partial< ElTooltipProps>;
|
532
|
-
tooltipPosition: number | "outer" | "inner";
|
533
|
-
}> & Omit<{
|
534
|
-
readonly visible: boolean | Function | Record<string, any>;
|
535
|
-
readonly hidden: boolean;
|
536
|
-
readonly modelValue: any;
|
537
|
-
readonly editor: Record<string, any> | VNode<RendererNode, RendererElement, {
|
538
|
-
[key: string]: any;
|
539
|
-
}> | BuiltinFieldEditorType;
|
540
|
-
readonly tooltipMessage: boolean | Partial< ElTooltipProps>;
|
541
|
-
readonly tooltipPosition: number | "inner" | "outer";
|
542
|
-
readonly inline: boolean;
|
543
|
-
readonly size?: BaseSize | undefined;
|
544
|
-
readonly name?: string | undefined;
|
545
|
-
readonly props?: Record<string, any> | undefined;
|
546
|
-
readonly width?: string | number | undefined;
|
547
|
-
readonly label?: string | undefined;
|
548
|
-
readonly error?: string | undefined;
|
549
|
-
readonly disabled?: boolean | undefined;
|
550
|
-
readonly placeholder?: string | null | undefined;
|
551
|
-
readonly readonly?: boolean | undefined;
|
552
|
-
readonly options?: FieldOption[] | FieldOptionsLoader | undefined;
|
553
|
-
readonly cascader?: string | string[] | undefined;
|
554
|
-
readonly tip?: string | undefined;
|
555
|
-
readonly defaultValue?: string | number | boolean | Record<string, any> | unknown[] | undefined;
|
556
|
-
readonly onFocus?: (() => any) | undefined | undefined;
|
557
|
-
readonly onBlur?: (() => any) | undefined | undefined;
|
558
|
-
readonly onChange?: ((value: any, data?: any) => any) | undefined | undefined;
|
559
|
-
readonly "onUpdate:modelValue"?: ((value: any) => any) | undefined | undefined;
|
560
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "visible" | "hidden" | "modelValue" | "editor" | "tooltipMessage" | "tooltipPosition" | "inline" | "defaultValue">;
|
561
|
-
$attrs: {
|
562
|
-
[x: string]: unknown;
|
563
|
-
};
|
564
|
-
$refs: {
|
565
|
-
[x: string]: unknown;
|
566
|
-
} & {
|
567
|
-
itemRef: ({
|
568
|
-
$: ComponentInternalInstance;
|
569
|
-
$data: {};
|
570
|
-
$props: Partial<{
|
571
|
-
readonly required: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
572
|
-
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
573
|
-
readonly labelPosition: EpPropMergeType<StringConstructor, "" | "top" | "left" | "right", unknown>;
|
574
|
-
readonly inlineMessage: EpPropMergeType<readonly [StringConstructor, BooleanConstructor], unknown, unknown>;
|
575
|
-
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
576
|
-
}> & Omit<{
|
577
|
-
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
578
|
-
readonly labelPosition: EpPropMergeType<StringConstructor, "" | "top" | "left" | "right", unknown>;
|
579
|
-
readonly inlineMessage: EpPropMergeType<readonly [StringConstructor, BooleanConstructor], unknown, unknown>;
|
580
|
-
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
581
|
-
readonly size?: EpPropMergeType<StringConstructor, "" | "large" | "default" | "small", unknown> | undefined;
|
582
|
-
readonly required?: EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
583
|
-
readonly label?: string | undefined;
|
584
|
-
readonly error?: string | undefined;
|
585
|
-
readonly prop?: EpPropMergeType<(new (...args: any[]) => string | string[]) | (() => FormItemProp) | ((new (...args: any[]) => string | string[]) | (() => FormItemProp))[], unknown, unknown> | undefined;
|
586
|
-
readonly rules?: EpPropMergeType<(new (...args: any[]) => FormItemRule | FormItemRule[]) | (() => Arrayable<FormItemRule>) | ((new (...args: any[]) => FormItemRule | FormItemRule[]) | (() => Arrayable<FormItemRule>))[], unknown, unknown> | undefined;
|
587
|
-
readonly validateStatus?: EpPropMergeType<StringConstructor, "" | "success" | "error" | "validating", unknown> | undefined;
|
588
|
-
readonly for?: string | undefined;
|
589
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "required" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage">;
|
590
|
-
$attrs: {
|
591
|
-
[x: string]: unknown;
|
592
|
-
};
|
593
|
-
$refs: {
|
594
|
-
[x: string]: unknown;
|
595
|
-
};
|
596
|
-
$slots: Readonly<{
|
597
|
-
[name: string]: Slot<any> | undefined;
|
598
|
-
}>;
|
599
|
-
$root: ComponentPublicInstance | null;
|
600
|
-
$parent: ComponentPublicInstance | null;
|
601
|
-
$host: Element | null;
|
602
|
-
$emit: (event: string, ...args: any[]) => void;
|
603
|
-
$el: any;
|
604
|
-
$options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
605
|
-
readonly label: StringConstructor;
|
606
|
-
readonly labelWidth: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
607
|
-
readonly labelPosition: EpPropFinalized<StringConstructor, "" | "top" | "left" | "right", unknown, "", boolean>;
|
608
|
-
readonly prop: {
|
609
|
-
readonly type: PropType<EpPropMergeType<(new (...args: any[]) => string | string[]) | (() => FormItemProp) | ((new (...args: any[]) => string | string[]) | (() => FormItemProp))[], unknown, unknown>>;
|
610
|
-
readonly required: false;
|
611
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
612
|
-
__epPropKey: true;
|
613
|
-
};
|
614
|
-
readonly required: EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
615
|
-
readonly rules: {
|
616
|
-
readonly type: PropType<EpPropMergeType<(new (...args: any[]) => FormItemRule | FormItemRule[]) | (() => Arrayable<FormItemRule>) | ((new (...args: any[]) => FormItemRule | FormItemRule[]) | (() => Arrayable<FormItemRule>))[], unknown, unknown>>;
|
617
|
-
readonly required: false;
|
618
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
619
|
-
__epPropKey: true;
|
620
|
-
};
|
621
|
-
readonly error: StringConstructor;
|
622
|
-
readonly validateStatus: {
|
623
|
-
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown>>;
|
624
|
-
readonly required: false;
|
625
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
626
|
-
__epPropKey: true;
|
627
|
-
};
|
628
|
-
readonly for: StringConstructor;
|
629
|
-
readonly inlineMessage: EpPropFinalized<readonly [StringConstructor, BooleanConstructor], unknown, unknown, "", boolean>;
|
630
|
-
readonly showMessage: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
631
|
-
readonly size: {
|
632
|
-
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown>>;
|
633
|
-
readonly required: false;
|
634
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
635
|
-
__epPropKey: true;
|
636
|
-
};
|
637
|
-
}>>, {
|
638
|
-
size: ComputedRef<"" | "small" | "default" | "large">;
|
639
|
-
validateMessage: Ref<string>;
|
640
|
-
validateState: Ref<"" | "error" | "success" | "validating">;
|
641
|
-
validate: (trigger: string, callback?: FormValidateCallback) => FormValidationResult;
|
642
|
-
clearValidate: () => void;
|
643
|
-
resetField: () => void;
|
644
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record<string, any>, string, {
|
645
|
-
readonly required: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
646
|
-
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
647
|
-
readonly labelPosition: EpPropMergeType<StringConstructor, "" | "top" | "left" | "right", unknown>;
|
648
|
-
readonly inlineMessage: EpPropMergeType<readonly [StringConstructor, BooleanConstructor], unknown, unknown>;
|
649
|
-
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
650
|
-
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
651
|
-
beforeCreate?: (() => void) | (() => void)[];
|
652
|
-
created?: (() => void) | (() => void)[];
|
653
|
-
beforeMount?: (() => void) | (() => void)[];
|
654
|
-
mounted?: (() => void) | (() => void)[];
|
655
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
656
|
-
updated?: (() => void) | (() => void)[];
|
657
|
-
activated?: (() => void) | (() => void)[];
|
658
|
-
deactivated?: (() => void) | (() => void)[];
|
659
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
660
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
661
|
-
destroyed?: (() => void) | (() => void)[];
|
662
|
-
unmounted?: (() => void) | (() => void)[];
|
663
|
-
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
664
|
-
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
665
|
-
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
666
|
-
};
|
667
|
-
$forceUpdate: () => void;
|
668
|
-
$nextTick: nextTick;
|
669
|
-
$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;
|
670
|
-
} & Readonly<{
|
671
|
-
readonly required: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
672
|
-
readonly labelWidth: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
673
|
-
readonly labelPosition: EpPropMergeType<StringConstructor, "" | "top" | "left" | "right", unknown>;
|
674
|
-
readonly inlineMessage: EpPropMergeType<readonly [StringConstructor, BooleanConstructor], unknown, unknown>;
|
675
|
-
readonly showMessage: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
676
|
-
}> & Omit<Readonly< ExtractPropTypes<{
|
677
|
-
readonly label: StringConstructor;
|
678
|
-
readonly labelWidth: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
679
|
-
readonly labelPosition: EpPropFinalized<StringConstructor, "" | "top" | "left" | "right", unknown, "", boolean>;
|
680
|
-
readonly prop: {
|
681
|
-
readonly type: PropType<EpPropMergeType<(new (...args: any[]) => string | string[]) | (() => FormItemProp) | ((new (...args: any[]) => string | string[]) | (() => FormItemProp))[], unknown, unknown>>;
|
682
|
-
readonly required: false;
|
683
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
684
|
-
__epPropKey: true;
|
685
|
-
};
|
686
|
-
readonly required: EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
687
|
-
readonly rules: {
|
688
|
-
readonly type: PropType<EpPropMergeType<(new (...args: any[]) => FormItemRule | FormItemRule[]) | (() => Arrayable<FormItemRule>) | ((new (...args: any[]) => FormItemRule | FormItemRule[]) | (() => Arrayable<FormItemRule>))[], unknown, unknown>>;
|
689
|
-
readonly required: false;
|
690
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
691
|
-
__epPropKey: true;
|
692
|
-
};
|
693
|
-
readonly error: StringConstructor;
|
694
|
-
readonly validateStatus: {
|
695
|
-
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown>>;
|
696
|
-
readonly required: false;
|
697
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
698
|
-
__epPropKey: true;
|
699
|
-
};
|
700
|
-
readonly for: StringConstructor;
|
701
|
-
readonly inlineMessage: EpPropFinalized<readonly [StringConstructor, BooleanConstructor], unknown, unknown, "", boolean>;
|
702
|
-
readonly showMessage: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
703
|
-
readonly size: {
|
704
|
-
readonly type: PropType<EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown>>;
|
705
|
-
readonly required: false;
|
706
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
707
|
-
__epPropKey: true;
|
708
|
-
};
|
709
|
-
}>>, "size" | "required" | "validateState" | "clearValidate" | "validate" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "validateMessage" | "resetField"> & ShallowUnwrapRef<{
|
710
|
-
size: ComputedRef<"" | "small" | "default" | "large">;
|
711
|
-
validateMessage: Ref<string>;
|
712
|
-
validateState: Ref<"" | "error" | "success" | "validating">;
|
713
|
-
validate: (trigger: string, callback?: FormValidateCallback) => FormValidationResult;
|
714
|
-
clearValidate: () => void;
|
715
|
-
resetField: () => void;
|
716
|
-
}> & {} & ComponentCustomProperties & {} & {
|
717
|
-
$slots: {
|
718
|
-
label?(_: {
|
719
|
-
label: string;
|
720
|
-
}): any;
|
721
|
-
default?(_: {}): any;
|
722
|
-
error?(_: {
|
723
|
-
error: string;
|
724
|
-
}): any;
|
725
|
-
};
|
726
|
-
}) | null;
|
727
|
-
editorRef: unknown;
|
728
|
-
};
|
729
|
-
$slots: Readonly<{
|
730
|
-
[name: string]: Slot<any> | undefined;
|
731
|
-
}>;
|
732
|
-
$root: ComponentPublicInstance | null;
|
733
|
-
$parent: ComponentPublicInstance | null;
|
734
|
-
$host: Element | null;
|
735
|
-
$emit: ((event: "focus") => void) & ((event: "blur") => void) & ((event: "change", value: any, data?: any) => void) & ((event: "update:modelValue", value: any) => void);
|
736
|
-
$el: any;
|
737
|
-
$options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
738
|
-
name: {
|
739
|
-
type: StringConstructor;
|
740
|
-
};
|
741
|
-
label: {
|
742
|
-
type: StringConstructor;
|
743
|
-
};
|
744
|
-
editor: {
|
745
|
-
type: PropType< BuiltinFieldEditorType | VNode | Record<string, any>>;
|
746
|
-
default: string;
|
747
|
-
};
|
748
|
-
props: {
|
749
|
-
type: PropType<Record<string, any>>;
|
750
|
-
};
|
751
|
-
modelValue: {
|
752
|
-
type: PropType<any>;
|
753
|
-
default(context: any): any;
|
754
|
-
};
|
755
|
-
size: {
|
756
|
-
type: PropType<BaseSize>;
|
757
|
-
};
|
758
|
-
width: {
|
759
|
-
type: PropType<string | number>;
|
760
|
-
};
|
761
|
-
tooltipMessage: {
|
762
|
-
type: PropType<boolean | Partial< ElTooltipProps>>;
|
763
|
-
default: boolean;
|
764
|
-
};
|
765
|
-
tooltipPosition: {
|
766
|
-
type: PropType<"inner" | "outer" | number>;
|
767
|
-
default: string;
|
768
|
-
};
|
769
|
-
placeholder: {
|
770
|
-
type: PropType<string | null>;
|
771
|
-
};
|
772
|
-
disabled: {
|
773
|
-
type: PropType<boolean>;
|
774
|
-
};
|
775
|
-
readonly: {
|
776
|
-
type: PropType<boolean>;
|
777
|
-
};
|
778
|
-
options: {
|
779
|
-
type: PropType< FieldOption[] | FieldOptionsLoader>;
|
780
|
-
};
|
781
|
-
visible: {
|
782
|
-
type: (BooleanConstructor | ObjectConstructor | FunctionConstructor)[];
|
783
|
-
default: boolean;
|
784
|
-
};
|
785
|
-
cascader: {
|
786
|
-
type: PropType<string | string[]>;
|
787
|
-
};
|
788
|
-
error: {
|
789
|
-
type: StringConstructor;
|
790
|
-
};
|
791
|
-
tip: {
|
792
|
-
type: StringConstructor;
|
793
|
-
};
|
794
|
-
inline: {
|
795
|
-
type: BooleanConstructor;
|
796
|
-
};
|
797
|
-
hidden: {
|
798
|
-
type: BooleanConstructor;
|
799
|
-
};
|
800
|
-
defaultValue: {
|
801
|
-
type: (BooleanConstructor | ObjectConstructor | StringConstructor | NumberConstructor | ArrayConstructor)[];
|
802
|
-
default: undefined;
|
803
|
-
};
|
804
|
-
}>> & Readonly<{
|
805
|
-
onFocus?: (() => any) | undefined;
|
806
|
-
onBlur?: (() => any) | undefined;
|
807
|
-
onChange?: ((value: any, data?: any) => any) | undefined;
|
808
|
-
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
809
|
-
}>, {
|
810
|
-
fieldValue: Ref<any, any>;
|
811
|
-
itemRef: Ref<any, any>;
|
812
|
-
editorRef: Ref<any, any>;
|
813
|
-
focus: () => void;
|
814
|
-
blur: () => void;
|
815
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
816
|
-
focus: () => any;
|
817
|
-
blur: () => any;
|
818
|
-
change: (value: any, data?: any) => any;
|
819
|
-
"update:modelValue": (value: any) => any;
|
820
|
-
}, string, {
|
821
|
-
hidden: boolean;
|
822
|
-
visible: boolean | Function | Record<string, any>;
|
823
|
-
inline: boolean;
|
824
|
-
modelValue: any;
|
825
|
-
defaultValue: string | number | boolean | Record<string, any> | unknown[];
|
826
|
-
editor: Record<string, any> | VNode<RendererNode, RendererElement, {
|
827
|
-
[key: string]: any;
|
828
|
-
}> | BuiltinFieldEditorType;
|
829
|
-
tooltipMessage: boolean | Partial< ElTooltipProps>;
|
830
|
-
tooltipPosition: number | "outer" | "inner";
|
831
|
-
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
832
|
-
beforeCreate?: (() => void) | (() => void)[];
|
833
|
-
created?: (() => void) | (() => void)[];
|
834
|
-
beforeMount?: (() => void) | (() => void)[];
|
835
|
-
mounted?: (() => void) | (() => void)[];
|
836
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
837
|
-
updated?: (() => void) | (() => void)[];
|
838
|
-
activated?: (() => void) | (() => void)[];
|
839
|
-
deactivated?: (() => void) | (() => void)[];
|
840
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
841
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
842
|
-
destroyed?: (() => void) | (() => void)[];
|
843
|
-
unmounted?: (() => void) | (() => void)[];
|
844
|
-
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
845
|
-
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
846
|
-
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
847
|
-
};
|
848
|
-
$forceUpdate: () => void;
|
849
|
-
$nextTick: nextTick;
|
850
|
-
$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;
|
851
|
-
} & Readonly<{
|
852
|
-
hidden: boolean;
|
853
|
-
visible: boolean | Function | Record<string, any>;
|
854
|
-
inline: boolean;
|
855
|
-
modelValue: any;
|
856
|
-
defaultValue: string | number | boolean | Record<string, any> | unknown[];
|
857
|
-
editor: Record<string, any> | VNode<RendererNode, RendererElement, {
|
858
|
-
[key: string]: any;
|
859
|
-
}> | BuiltinFieldEditorType;
|
860
|
-
tooltipMessage: boolean | Partial< ElTooltipProps>;
|
861
|
-
tooltipPosition: number | "outer" | "inner";
|
862
|
-
}> & Omit<Readonly< ExtractPropTypes<{
|
863
|
-
name: {
|
864
|
-
type: StringConstructor;
|
865
|
-
};
|
866
|
-
label: {
|
867
|
-
type: StringConstructor;
|
868
|
-
};
|
869
|
-
editor: {
|
870
|
-
type: PropType< BuiltinFieldEditorType | VNode | Record<string, any>>;
|
871
|
-
default: string;
|
872
|
-
};
|
873
|
-
props: {
|
874
|
-
type: PropType<Record<string, any>>;
|
875
|
-
};
|
876
|
-
modelValue: {
|
877
|
-
type: PropType<any>;
|
878
|
-
default(context: any): any;
|
879
|
-
};
|
880
|
-
size: {
|
881
|
-
type: PropType<BaseSize>;
|
882
|
-
};
|
883
|
-
width: {
|
884
|
-
type: PropType<string | number>;
|
885
|
-
};
|
886
|
-
tooltipMessage: {
|
887
|
-
type: PropType<boolean | Partial< ElTooltipProps>>;
|
888
|
-
default: boolean;
|
889
|
-
};
|
890
|
-
tooltipPosition: {
|
891
|
-
type: PropType<"inner" | "outer" | number>;
|
892
|
-
default: string;
|
893
|
-
};
|
894
|
-
placeholder: {
|
895
|
-
type: PropType<string | null>;
|
896
|
-
};
|
897
|
-
disabled: {
|
898
|
-
type: PropType<boolean>;
|
899
|
-
};
|
900
|
-
readonly: {
|
901
|
-
type: PropType<boolean>;
|
902
|
-
};
|
903
|
-
options: {
|
904
|
-
type: PropType< FieldOption[] | FieldOptionsLoader>;
|
905
|
-
};
|
906
|
-
visible: {
|
907
|
-
type: (BooleanConstructor | ObjectConstructor | FunctionConstructor)[];
|
908
|
-
default: boolean;
|
909
|
-
};
|
910
|
-
cascader: {
|
911
|
-
type: PropType<string | string[]>;
|
912
|
-
};
|
913
|
-
error: {
|
914
|
-
type: StringConstructor;
|
915
|
-
};
|
916
|
-
tip: {
|
917
|
-
type: StringConstructor;
|
918
|
-
};
|
919
|
-
inline: {
|
920
|
-
type: BooleanConstructor;
|
921
|
-
};
|
922
|
-
hidden: {
|
923
|
-
type: BooleanConstructor;
|
924
|
-
};
|
925
|
-
defaultValue: {
|
926
|
-
type: (BooleanConstructor | ObjectConstructor | StringConstructor | NumberConstructor | ArrayConstructor)[];
|
927
|
-
default: undefined;
|
928
|
-
};
|
929
|
-
}>> & Readonly<{
|
930
|
-
onFocus?: (() => any) | undefined;
|
931
|
-
onBlur?: (() => any) | undefined;
|
932
|
-
onChange?: ((value: any, data?: any) => any) | undefined;
|
933
|
-
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
934
|
-
}>, "visible" | "hidden" | "modelValue" | "focus" | "blur" | "editor" | "tooltipMessage" | "tooltipPosition" | "inline" | "defaultValue" | "fieldValue" | "itemRef" | "editorRef"> & ShallowUnwrapRef<{
|
935
|
-
fieldValue: Ref<any, any>;
|
936
|
-
itemRef: Ref<any, any>;
|
937
|
-
editorRef: Ref<any, any>;
|
938
|
-
focus: () => void;
|
939
|
-
blur: () => void;
|
940
|
-
}> & {} & ComponentCustomProperties & {} & {
|
941
|
-
$slots: {
|
942
|
-
label?(_: {}): any;
|
943
|
-
error?(_: {
|
944
|
-
error: string;
|
945
|
-
}): any;
|
946
|
-
editor?(_: {
|
947
|
-
editor: FieldEditorProps;
|
948
|
-
}): any;
|
949
|
-
option?(_: {
|
950
|
-
option: any;
|
951
|
-
}): any;
|
952
|
-
tip?(_: {}): any;
|
953
|
-
default?(_: {}): any;
|
954
|
-
};
|
955
|
-
}) | null;
|
956
|
-
editorRef: CreateComponentPublicInstanceWithMixins<Readonly< Props> & Readonly<{
|
957
|
-
onBlur?: ((...args: any[]) => any) | undefined;
|
958
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
959
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
960
|
-
}>, {
|
961
|
-
getEditor: () => import("monaco-editor").editor.IStandaloneCodeEditor | null;
|
962
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
963
|
-
blur: (...args: any[]) => void;
|
964
|
-
change: (...args: any[]) => void;
|
965
|
-
"update:modelValue": (...args: any[]) => void;
|
966
|
-
}, PublicProps, {
|
967
|
-
height: string;
|
968
|
-
modelValue: string;
|
969
|
-
dark: boolean;
|
970
|
-
readonly: boolean;
|
971
|
-
options: import("monaco-editor").editor.IEditorConstructionOptions;
|
972
|
-
lang: string;
|
973
|
-
minimap: boolean;
|
974
|
-
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
975
|
-
container: HTMLDivElement;
|
976
|
-
}, HTMLDivElement, ComponentProvideOptions, {
|
977
|
-
P: {};
|
978
|
-
B: {};
|
979
|
-
D: {};
|
980
|
-
C: {};
|
981
|
-
M: {};
|
982
|
-
Defaults: {};
|
983
|
-
}, Readonly< Props> & Readonly<{
|
984
|
-
onBlur?: ((...args: any[]) => any) | undefined;
|
985
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
986
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
987
|
-
}>, {
|
988
|
-
getEditor: () => import("monaco-editor").editor.IStandaloneCodeEditor | null;
|
989
|
-
}, {}, {}, {}, {
|
990
|
-
height: string;
|
991
|
-
modelValue: string;
|
992
|
-
dark: boolean;
|
993
|
-
readonly: boolean;
|
994
|
-
options: import("monaco-editor").editor.IEditorConstructionOptions;
|
995
|
-
lang: string;
|
996
|
-
minimap: boolean;
|
997
|
-
}> | null;
|
998
|
-
}, any>;
|
999
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
66
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
67
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
1000
68
|
export default _default;
|
1001
|
-
type
|
69
|
+
type __VLS_WithSlots<T, S> = T & {
|
1002
70
|
new (): {
|
1003
71
|
$slots: S;
|
1004
72
|
};
|