@vtj/designer 0.16.11 → 0.16.13
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/Editor-Ce_uPB1q.js +4 -0
- package/dist/{index-D40kzfbN.js → index-Cm-7k5DS.js} +1397 -1391
- package/dist/index.mjs +1 -1
- package/package.json +7 -7
- package/types/components/hooks/useAI.d.ts +1 -1
- package/types/components/hooks/useOpenApi.d.ts +1 -1
- package/types/components/setters/image.d.ts +42 -267
- package/types/components/setters/index.d.ts +42 -266
- package/types/components/shared/binder.d.ts +56 -304
- package/types/components/shared/panel.d.ts +5 -13
- package/types/components/shared/viewer.d.ts +1231 -199
- package/types/components/widgets/ai/image-input.d.ts +42 -267
- package/types/components/widgets/ai/index.d.ts +4 -10
- package/types/components/widgets/ai/json-input.d.ts +120 -570
- package/types/components/widgets/apis/form.d.ts +32 -163
- package/types/components/widgets/apis/swagger.d.ts +2 -4
- package/types/components/widgets/designer/index.d.ts +2 -4
- package/types/components/widgets/devtools/index.d.ts +4 -10
- package/types/components/widgets/docs/index.d.ts +4 -10
- package/types/components/widgets/env/index.d.ts +2 -4
- package/types/components/widgets/i18n/index.d.ts +2 -4
- package/types/components/widgets/index.d.ts +16 -46
- package/types/components/widgets/market/index.d.ts +4 -10
- package/types/components/widgets/scripts/group.d.ts +38 -220
- package/types/components/widgets/style/spacing-input.d.ts +2 -4
- package/types/framework/openapi.d.ts +1 -1
- package/types/utils.d.ts +20 -16
- package/types/version.d.ts +2 -2
- package/dist/Editor-K7Frwt8a.js +0 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Context } from '@vtj/renderer';
|
|
2
2
|
import { BlockModel } from '@vtj/core';
|
|
3
|
-
import { ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase,
|
|
4
|
-
import { UseTooltipProps,
|
|
3
|
+
import { ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Attrs, Slot, ComponentPublicInstance, ComponentOptionsBase, Reactive, ComponentOptionsMixin, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DebuggerEvent, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, ExtractPropTypes, PropType, Ref, nextTick, DefineComponent, PublicProps } from 'vue';
|
|
4
|
+
import { UseTooltipProps, FormRules, ComponentSize, FormItemProp, FormProps, FormValidateCallback, FormValidationResult, FormItemContext, ElTooltipProps } from 'element-plus';
|
|
5
5
|
import { FormModel } from '@vtj/ui';
|
|
6
6
|
import { Arrayable } from 'element-plus/es/utils/typescript.mjs';
|
|
7
7
|
import { OnCleanup } from '@vue/reactivity';
|
|
@@ -28,7 +28,7 @@ declare function __VLS_template(): {
|
|
|
28
28
|
$props: Partial<{
|
|
29
29
|
footer: boolean;
|
|
30
30
|
inline: boolean;
|
|
31
|
-
footerAlign: "
|
|
31
|
+
footerAlign: "right" | "left" | "center";
|
|
32
32
|
tooltipMessage: boolean | Partial< UseTooltipProps>;
|
|
33
33
|
model: Record<string, any>;
|
|
34
34
|
submitText: string | null;
|
|
@@ -51,45 +51,33 @@ declare function __VLS_template(): {
|
|
|
51
51
|
readonly onReset?: (() => any) | undefined | undefined;
|
|
52
52
|
readonly onSubmit?: ((model: Record<string, any>) => any) | undefined | undefined;
|
|
53
53
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "model" | "footer" | "tooltipMessage" | "inline" | "submitText" | "resetText" | "enterSubmit" | "sticky" | "footerAlign">;
|
|
54
|
-
$attrs:
|
|
55
|
-
[x: string]: unknown;
|
|
56
|
-
};
|
|
54
|
+
$attrs: Attrs;
|
|
57
55
|
$refs: {
|
|
58
56
|
[x: string]: unknown;
|
|
59
57
|
} & {
|
|
60
58
|
formRef: ({
|
|
61
59
|
$: ComponentInternalInstance;
|
|
62
60
|
$data: {};
|
|
63
|
-
$props:
|
|
64
|
-
labelWidth: string | number;
|
|
65
|
-
labelPosition: "left" | "right" | "top";
|
|
66
|
-
showMessage: boolean;
|
|
67
|
-
requireAsteriskPosition: "left" | "right";
|
|
68
|
-
labelSuffix: string;
|
|
69
|
-
validateOnRuleChange: boolean;
|
|
70
|
-
scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
71
|
-
}> & Omit<{
|
|
72
|
-
readonly labelWidth: string | number;
|
|
73
|
-
readonly labelPosition: "left" | "right" | "top";
|
|
74
|
-
readonly showMessage: boolean;
|
|
75
|
-
readonly requireAsteriskPosition: "left" | "right";
|
|
76
|
-
readonly labelSuffix: string;
|
|
77
|
-
readonly validateOnRuleChange: boolean;
|
|
78
|
-
readonly scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
79
|
-
readonly size?: ComponentSize | undefined;
|
|
80
|
-
readonly disabled?: boolean | undefined;
|
|
81
|
-
readonly inline?: boolean | undefined;
|
|
61
|
+
$props: {
|
|
82
62
|
readonly model?: Record<string, any> | undefined;
|
|
83
63
|
readonly rules?: FormRules | undefined;
|
|
64
|
+
readonly labelPosition?: "left" | "right" | "top" | undefined;
|
|
65
|
+
readonly requireAsteriskPosition?: "left" | "right" | undefined;
|
|
66
|
+
readonly labelWidth?: string | number | undefined;
|
|
67
|
+
readonly labelSuffix?: string | undefined;
|
|
68
|
+
readonly inline?: boolean | undefined;
|
|
84
69
|
readonly inlineMessage?: boolean | undefined;
|
|
85
70
|
readonly statusIcon?: boolean | undefined;
|
|
71
|
+
readonly showMessage?: boolean | undefined;
|
|
72
|
+
readonly validateOnRuleChange?: boolean | undefined;
|
|
86
73
|
readonly hideRequiredAsterisk?: boolean | undefined;
|
|
87
74
|
readonly scrollToError?: boolean | undefined;
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
};
|
|
75
|
+
readonly scrollIntoViewOptions?: (ScrollIntoViewOptions | boolean) | undefined;
|
|
76
|
+
readonly size?: ComponentSize | undefined;
|
|
77
|
+
readonly disabled?: boolean | undefined;
|
|
78
|
+
readonly onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
|
|
79
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
80
|
+
$attrs: Attrs;
|
|
93
81
|
$refs: {
|
|
94
82
|
[x: string]: unknown;
|
|
95
83
|
};
|
|
@@ -101,65 +89,9 @@ declare function __VLS_template(): {
|
|
|
101
89
|
$host: Element | null;
|
|
102
90
|
$emit: (event: "validate", prop: FormItemProp, isValid: boolean, message: string) => void;
|
|
103
91
|
$el: any;
|
|
104
|
-
$options: ComponentOptionsBase<Readonly<
|
|
105
|
-
size: {
|
|
106
|
-
type: PropType<"" | "default" | "large" | "small">;
|
|
107
|
-
};
|
|
108
|
-
disabled: {
|
|
109
|
-
type: PropType<boolean>;
|
|
110
|
-
};
|
|
111
|
-
inline: {
|
|
112
|
-
type: PropType<boolean>;
|
|
113
|
-
};
|
|
114
|
-
model: {
|
|
115
|
-
type: PropType<Record<string, any>>;
|
|
116
|
-
};
|
|
117
|
-
labelWidth: {
|
|
118
|
-
type: PropType<string | number>;
|
|
119
|
-
default: string;
|
|
120
|
-
};
|
|
121
|
-
labelPosition: {
|
|
122
|
-
type: PropType<"left" | "right" | "top">;
|
|
123
|
-
default: string;
|
|
124
|
-
};
|
|
125
|
-
rules: {
|
|
126
|
-
type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
127
|
-
};
|
|
128
|
-
inlineMessage: {
|
|
129
|
-
type: PropType<boolean>;
|
|
130
|
-
};
|
|
131
|
-
showMessage: {
|
|
132
|
-
type: PropType<boolean>;
|
|
133
|
-
default: boolean;
|
|
134
|
-
};
|
|
135
|
-
requireAsteriskPosition: {
|
|
136
|
-
type: PropType<"left" | "right">;
|
|
137
|
-
default: string;
|
|
138
|
-
};
|
|
139
|
-
labelSuffix: {
|
|
140
|
-
type: PropType<string>;
|
|
141
|
-
default: string;
|
|
142
|
-
};
|
|
143
|
-
statusIcon: {
|
|
144
|
-
type: PropType<boolean>;
|
|
145
|
-
};
|
|
146
|
-
validateOnRuleChange: {
|
|
147
|
-
type: PropType<boolean>;
|
|
148
|
-
default: boolean;
|
|
149
|
-
};
|
|
150
|
-
hideRequiredAsterisk: {
|
|
151
|
-
type: PropType<boolean>;
|
|
152
|
-
};
|
|
153
|
-
scrollToError: {
|
|
154
|
-
type: PropType<boolean>;
|
|
155
|
-
};
|
|
156
|
-
scrollIntoViewOptions: {
|
|
157
|
-
type: PropType<boolean | ScrollIntoViewOptions>;
|
|
158
|
-
default: boolean;
|
|
159
|
-
};
|
|
160
|
-
}>> & {
|
|
92
|
+
$options: ComponentOptionsBase<Readonly< FormProps> & Readonly<{
|
|
161
93
|
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
162
|
-
}
|
|
94
|
+
}>, {
|
|
163
95
|
validate: (callback?: FormValidateCallback) => FormValidationResult;
|
|
164
96
|
validateField: (props?: Arrayable<FormItemProp>, callback?: FormValidateCallback) => FormValidationResult;
|
|
165
97
|
resetFields: (props?: Arrayable<FormItemProp>) => void;
|
|
@@ -168,16 +100,16 @@ declare function __VLS_template(): {
|
|
|
168
100
|
getField: (prop: FormItemProp) => FormItemContext | undefined;
|
|
169
101
|
fields: Reactive< FormItemContext[]>;
|
|
170
102
|
setInitialValues: (initModel: Record<string, any>) => void;
|
|
171
|
-
},
|
|
103
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
172
104
|
validate: (prop: FormItemProp, isValid: boolean, message: string) => void;
|
|
173
105
|
}, string, {
|
|
106
|
+
scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
174
107
|
labelWidth: string | number;
|
|
175
108
|
labelPosition: "left" | "right" | "top";
|
|
176
|
-
showMessage: boolean;
|
|
177
109
|
requireAsteriskPosition: "left" | "right";
|
|
178
110
|
labelSuffix: string;
|
|
111
|
+
showMessage: boolean;
|
|
179
112
|
validateOnRuleChange: boolean;
|
|
180
|
-
scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
181
113
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
182
114
|
beforeCreate?: (() => void) | (() => void)[];
|
|
183
115
|
created?: (() => void) | (() => void)[];
|
|
@@ -199,72 +131,16 @@ declare function __VLS_template(): {
|
|
|
199
131
|
$nextTick: nextTick;
|
|
200
132
|
$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;
|
|
201
133
|
} & Readonly<{
|
|
134
|
+
scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
202
135
|
labelWidth: string | number;
|
|
203
136
|
labelPosition: "left" | "right" | "top";
|
|
204
|
-
showMessage: boolean;
|
|
205
137
|
requireAsteriskPosition: "left" | "right";
|
|
206
138
|
labelSuffix: string;
|
|
139
|
+
showMessage: boolean;
|
|
207
140
|
validateOnRuleChange: boolean;
|
|
208
|
-
|
|
209
|
-
}> & Omit<Readonly< ExtractPropTypes<{
|
|
210
|
-
size: {
|
|
211
|
-
type: PropType<"" | "default" | "large" | "small">;
|
|
212
|
-
};
|
|
213
|
-
disabled: {
|
|
214
|
-
type: PropType<boolean>;
|
|
215
|
-
};
|
|
216
|
-
inline: {
|
|
217
|
-
type: PropType<boolean>;
|
|
218
|
-
};
|
|
219
|
-
model: {
|
|
220
|
-
type: PropType<Record<string, any>>;
|
|
221
|
-
};
|
|
222
|
-
labelWidth: {
|
|
223
|
-
type: PropType<string | number>;
|
|
224
|
-
default: string;
|
|
225
|
-
};
|
|
226
|
-
labelPosition: {
|
|
227
|
-
type: PropType<"left" | "right" | "top">;
|
|
228
|
-
default: string;
|
|
229
|
-
};
|
|
230
|
-
rules: {
|
|
231
|
-
type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
232
|
-
};
|
|
233
|
-
inlineMessage: {
|
|
234
|
-
type: PropType<boolean>;
|
|
235
|
-
};
|
|
236
|
-
showMessage: {
|
|
237
|
-
type: PropType<boolean>;
|
|
238
|
-
default: boolean;
|
|
239
|
-
};
|
|
240
|
-
requireAsteriskPosition: {
|
|
241
|
-
type: PropType<"left" | "right">;
|
|
242
|
-
default: string;
|
|
243
|
-
};
|
|
244
|
-
labelSuffix: {
|
|
245
|
-
type: PropType<string>;
|
|
246
|
-
default: string;
|
|
247
|
-
};
|
|
248
|
-
statusIcon: {
|
|
249
|
-
type: PropType<boolean>;
|
|
250
|
-
};
|
|
251
|
-
validateOnRuleChange: {
|
|
252
|
-
type: PropType<boolean>;
|
|
253
|
-
default: boolean;
|
|
254
|
-
};
|
|
255
|
-
hideRequiredAsterisk: {
|
|
256
|
-
type: PropType<boolean>;
|
|
257
|
-
};
|
|
258
|
-
scrollToError: {
|
|
259
|
-
type: PropType<boolean>;
|
|
260
|
-
};
|
|
261
|
-
scrollIntoViewOptions: {
|
|
262
|
-
type: PropType<boolean | ScrollIntoViewOptions>;
|
|
263
|
-
default: boolean;
|
|
264
|
-
};
|
|
265
|
-
}>> & {
|
|
141
|
+
}> & Omit<Readonly< FormProps> & Readonly<{
|
|
266
142
|
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
267
|
-
}
|
|
143
|
+
}>, "clearValidate" | "validate" | "fields" | "labelWidth" | "labelPosition" | "showMessage" | "requireAsteriskPosition" | "labelSuffix" | "validateOnRuleChange" | "scrollIntoViewOptions" | "validateField" | "resetFields" | "scrollToField" | "getField" | "setInitialValues"> & ShallowUnwrapRef<{
|
|
268
144
|
validate: (callback?: FormValidateCallback) => FormValidationResult;
|
|
269
145
|
validateField: (props?: Arrayable<FormItemProp>, callback?: FormValidateCallback) => FormValidationResult;
|
|
270
146
|
resetFields: (props?: Arrayable<FormItemProp>) => void;
|
|
@@ -347,7 +223,7 @@ declare function __VLS_template(): {
|
|
|
347
223
|
}, string, {
|
|
348
224
|
footer: boolean;
|
|
349
225
|
inline: boolean;
|
|
350
|
-
footerAlign: "
|
|
226
|
+
footerAlign: "right" | "left" | "center";
|
|
351
227
|
tooltipMessage: boolean | Partial< UseTooltipProps>;
|
|
352
228
|
model: Record<string, any>;
|
|
353
229
|
submitText: string | null;
|
|
@@ -377,7 +253,7 @@ declare function __VLS_template(): {
|
|
|
377
253
|
} & Readonly<{
|
|
378
254
|
footer: boolean;
|
|
379
255
|
inline: boolean;
|
|
380
|
-
footerAlign: "
|
|
256
|
+
footerAlign: "right" | "left" | "center";
|
|
381
257
|
tooltipMessage: boolean | Partial< UseTooltipProps>;
|
|
382
258
|
model: Record<string, any>;
|
|
383
259
|
submitText: string | null;
|
|
@@ -469,7 +345,7 @@ declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentO
|
|
|
469
345
|
$props: Partial<{
|
|
470
346
|
footer: boolean;
|
|
471
347
|
inline: boolean;
|
|
472
|
-
footerAlign: "
|
|
348
|
+
footerAlign: "right" | "left" | "center";
|
|
473
349
|
tooltipMessage: boolean | Partial< UseTooltipProps>;
|
|
474
350
|
model: Record<string, any>;
|
|
475
351
|
submitText: string | null;
|
|
@@ -492,45 +368,33 @@ declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentO
|
|
|
492
368
|
readonly onReset?: (() => any) | undefined | undefined;
|
|
493
369
|
readonly onSubmit?: ((model: Record<string, any>) => any) | undefined | undefined;
|
|
494
370
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "model" | "footer" | "tooltipMessage" | "inline" | "submitText" | "resetText" | "enterSubmit" | "sticky" | "footerAlign">;
|
|
495
|
-
$attrs:
|
|
496
|
-
[x: string]: unknown;
|
|
497
|
-
};
|
|
371
|
+
$attrs: Attrs;
|
|
498
372
|
$refs: {
|
|
499
373
|
[x: string]: unknown;
|
|
500
374
|
} & {
|
|
501
375
|
formRef: ({
|
|
502
376
|
$: ComponentInternalInstance;
|
|
503
377
|
$data: {};
|
|
504
|
-
$props:
|
|
505
|
-
labelWidth: string | number;
|
|
506
|
-
labelPosition: "left" | "right" | "top";
|
|
507
|
-
showMessage: boolean;
|
|
508
|
-
requireAsteriskPosition: "left" | "right";
|
|
509
|
-
labelSuffix: string;
|
|
510
|
-
validateOnRuleChange: boolean;
|
|
511
|
-
scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
512
|
-
}> & Omit<{
|
|
513
|
-
readonly labelWidth: string | number;
|
|
514
|
-
readonly labelPosition: "left" | "right" | "top";
|
|
515
|
-
readonly showMessage: boolean;
|
|
516
|
-
readonly requireAsteriskPosition: "left" | "right";
|
|
517
|
-
readonly labelSuffix: string;
|
|
518
|
-
readonly validateOnRuleChange: boolean;
|
|
519
|
-
readonly scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
520
|
-
readonly size?: ComponentSize | undefined;
|
|
521
|
-
readonly disabled?: boolean | undefined;
|
|
522
|
-
readonly inline?: boolean | undefined;
|
|
378
|
+
$props: {
|
|
523
379
|
readonly model?: Record<string, any> | undefined;
|
|
524
380
|
readonly rules?: FormRules | undefined;
|
|
381
|
+
readonly labelPosition?: "left" | "right" | "top" | undefined;
|
|
382
|
+
readonly requireAsteriskPosition?: "left" | "right" | undefined;
|
|
383
|
+
readonly labelWidth?: string | number | undefined;
|
|
384
|
+
readonly labelSuffix?: string | undefined;
|
|
385
|
+
readonly inline?: boolean | undefined;
|
|
525
386
|
readonly inlineMessage?: boolean | undefined;
|
|
526
387
|
readonly statusIcon?: boolean | undefined;
|
|
388
|
+
readonly showMessage?: boolean | undefined;
|
|
389
|
+
readonly validateOnRuleChange?: boolean | undefined;
|
|
527
390
|
readonly hideRequiredAsterisk?: boolean | undefined;
|
|
528
391
|
readonly scrollToError?: boolean | undefined;
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
};
|
|
392
|
+
readonly scrollIntoViewOptions?: (ScrollIntoViewOptions | boolean) | undefined;
|
|
393
|
+
readonly size?: ComponentSize | undefined;
|
|
394
|
+
readonly disabled?: boolean | undefined;
|
|
395
|
+
readonly onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined | undefined;
|
|
396
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
397
|
+
$attrs: Attrs;
|
|
534
398
|
$refs: {
|
|
535
399
|
[x: string]: unknown;
|
|
536
400
|
};
|
|
@@ -542,65 +406,9 @@ declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentO
|
|
|
542
406
|
$host: Element | null;
|
|
543
407
|
$emit: (event: "validate", prop: FormItemProp, isValid: boolean, message: string) => void;
|
|
544
408
|
$el: any;
|
|
545
|
-
$options: ComponentOptionsBase<Readonly<
|
|
546
|
-
size: {
|
|
547
|
-
type: PropType<"" | "default" | "large" | "small">;
|
|
548
|
-
};
|
|
549
|
-
disabled: {
|
|
550
|
-
type: PropType<boolean>;
|
|
551
|
-
};
|
|
552
|
-
inline: {
|
|
553
|
-
type: PropType<boolean>;
|
|
554
|
-
};
|
|
555
|
-
model: {
|
|
556
|
-
type: PropType<Record<string, any>>;
|
|
557
|
-
};
|
|
558
|
-
labelWidth: {
|
|
559
|
-
type: PropType<string | number>;
|
|
560
|
-
default: string;
|
|
561
|
-
};
|
|
562
|
-
labelPosition: {
|
|
563
|
-
type: PropType<"left" | "right" | "top">;
|
|
564
|
-
default: string;
|
|
565
|
-
};
|
|
566
|
-
rules: {
|
|
567
|
-
type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
568
|
-
};
|
|
569
|
-
inlineMessage: {
|
|
570
|
-
type: PropType<boolean>;
|
|
571
|
-
};
|
|
572
|
-
showMessage: {
|
|
573
|
-
type: PropType<boolean>;
|
|
574
|
-
default: boolean;
|
|
575
|
-
};
|
|
576
|
-
requireAsteriskPosition: {
|
|
577
|
-
type: PropType<"left" | "right">;
|
|
578
|
-
default: string;
|
|
579
|
-
};
|
|
580
|
-
labelSuffix: {
|
|
581
|
-
type: PropType<string>;
|
|
582
|
-
default: string;
|
|
583
|
-
};
|
|
584
|
-
statusIcon: {
|
|
585
|
-
type: PropType<boolean>;
|
|
586
|
-
};
|
|
587
|
-
validateOnRuleChange: {
|
|
588
|
-
type: PropType<boolean>;
|
|
589
|
-
default: boolean;
|
|
590
|
-
};
|
|
591
|
-
hideRequiredAsterisk: {
|
|
592
|
-
type: PropType<boolean>;
|
|
593
|
-
};
|
|
594
|
-
scrollToError: {
|
|
595
|
-
type: PropType<boolean>;
|
|
596
|
-
};
|
|
597
|
-
scrollIntoViewOptions: {
|
|
598
|
-
type: PropType<boolean | ScrollIntoViewOptions>;
|
|
599
|
-
default: boolean;
|
|
600
|
-
};
|
|
601
|
-
}>> & {
|
|
409
|
+
$options: ComponentOptionsBase<Readonly< FormProps> & Readonly<{
|
|
602
410
|
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
603
|
-
}
|
|
411
|
+
}>, {
|
|
604
412
|
validate: (callback?: FormValidateCallback) => FormValidationResult;
|
|
605
413
|
validateField: (props?: Arrayable<FormItemProp>, callback?: FormValidateCallback) => FormValidationResult;
|
|
606
414
|
resetFields: (props?: Arrayable<FormItemProp>) => void;
|
|
@@ -609,16 +417,16 @@ declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentO
|
|
|
609
417
|
getField: (prop: FormItemProp) => FormItemContext | undefined;
|
|
610
418
|
fields: Reactive< FormItemContext[]>;
|
|
611
419
|
setInitialValues: (initModel: Record<string, any>) => void;
|
|
612
|
-
},
|
|
420
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
613
421
|
validate: (prop: FormItemProp, isValid: boolean, message: string) => void;
|
|
614
422
|
}, string, {
|
|
423
|
+
scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
615
424
|
labelWidth: string | number;
|
|
616
425
|
labelPosition: "left" | "right" | "top";
|
|
617
|
-
showMessage: boolean;
|
|
618
426
|
requireAsteriskPosition: "left" | "right";
|
|
619
427
|
labelSuffix: string;
|
|
428
|
+
showMessage: boolean;
|
|
620
429
|
validateOnRuleChange: boolean;
|
|
621
|
-
scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
622
430
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
623
431
|
beforeCreate?: (() => void) | (() => void)[];
|
|
624
432
|
created?: (() => void) | (() => void)[];
|
|
@@ -640,72 +448,16 @@ declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentO
|
|
|
640
448
|
$nextTick: nextTick;
|
|
641
449
|
$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;
|
|
642
450
|
} & Readonly<{
|
|
451
|
+
scrollIntoViewOptions: ScrollIntoViewOptions | boolean;
|
|
643
452
|
labelWidth: string | number;
|
|
644
453
|
labelPosition: "left" | "right" | "top";
|
|
645
|
-
showMessage: boolean;
|
|
646
454
|
requireAsteriskPosition: "left" | "right";
|
|
647
455
|
labelSuffix: string;
|
|
456
|
+
showMessage: boolean;
|
|
648
457
|
validateOnRuleChange: boolean;
|
|
649
|
-
|
|
650
|
-
}> & Omit<Readonly< ExtractPropTypes<{
|
|
651
|
-
size: {
|
|
652
|
-
type: PropType<"" | "default" | "large" | "small">;
|
|
653
|
-
};
|
|
654
|
-
disabled: {
|
|
655
|
-
type: PropType<boolean>;
|
|
656
|
-
};
|
|
657
|
-
inline: {
|
|
658
|
-
type: PropType<boolean>;
|
|
659
|
-
};
|
|
660
|
-
model: {
|
|
661
|
-
type: PropType<Record<string, any>>;
|
|
662
|
-
};
|
|
663
|
-
labelWidth: {
|
|
664
|
-
type: PropType<string | number>;
|
|
665
|
-
default: string;
|
|
666
|
-
};
|
|
667
|
-
labelPosition: {
|
|
668
|
-
type: PropType<"left" | "right" | "top">;
|
|
669
|
-
default: string;
|
|
670
|
-
};
|
|
671
|
-
rules: {
|
|
672
|
-
type: PropType<Partial<Record<string, Arrayable<FormItemRule>>>>;
|
|
673
|
-
};
|
|
674
|
-
inlineMessage: {
|
|
675
|
-
type: PropType<boolean>;
|
|
676
|
-
};
|
|
677
|
-
showMessage: {
|
|
678
|
-
type: PropType<boolean>;
|
|
679
|
-
default: boolean;
|
|
680
|
-
};
|
|
681
|
-
requireAsteriskPosition: {
|
|
682
|
-
type: PropType<"left" | "right">;
|
|
683
|
-
default: string;
|
|
684
|
-
};
|
|
685
|
-
labelSuffix: {
|
|
686
|
-
type: PropType<string>;
|
|
687
|
-
default: string;
|
|
688
|
-
};
|
|
689
|
-
statusIcon: {
|
|
690
|
-
type: PropType<boolean>;
|
|
691
|
-
};
|
|
692
|
-
validateOnRuleChange: {
|
|
693
|
-
type: PropType<boolean>;
|
|
694
|
-
default: boolean;
|
|
695
|
-
};
|
|
696
|
-
hideRequiredAsterisk: {
|
|
697
|
-
type: PropType<boolean>;
|
|
698
|
-
};
|
|
699
|
-
scrollToError: {
|
|
700
|
-
type: PropType<boolean>;
|
|
701
|
-
};
|
|
702
|
-
scrollIntoViewOptions: {
|
|
703
|
-
type: PropType<boolean | ScrollIntoViewOptions>;
|
|
704
|
-
default: boolean;
|
|
705
|
-
};
|
|
706
|
-
}>> & {
|
|
458
|
+
}> & Omit<Readonly< FormProps> & Readonly<{
|
|
707
459
|
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
708
|
-
}
|
|
460
|
+
}>, "clearValidate" | "validate" | "fields" | "labelWidth" | "labelPosition" | "showMessage" | "requireAsteriskPosition" | "labelSuffix" | "validateOnRuleChange" | "scrollIntoViewOptions" | "validateField" | "resetFields" | "scrollToField" | "getField" | "setInitialValues"> & ShallowUnwrapRef<{
|
|
709
461
|
validate: (callback?: FormValidateCallback) => FormValidationResult;
|
|
710
462
|
validateField: (props?: Arrayable<FormItemProp>, callback?: FormValidateCallback) => FormValidationResult;
|
|
711
463
|
resetFields: (props?: Arrayable<FormItemProp>) => void;
|
|
@@ -788,7 +540,7 @@ declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentO
|
|
|
788
540
|
}, string, {
|
|
789
541
|
footer: boolean;
|
|
790
542
|
inline: boolean;
|
|
791
|
-
footerAlign: "
|
|
543
|
+
footerAlign: "right" | "left" | "center";
|
|
792
544
|
tooltipMessage: boolean | Partial< UseTooltipProps>;
|
|
793
545
|
model: Record<string, any>;
|
|
794
546
|
submitText: string | null;
|
|
@@ -818,7 +570,7 @@ declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentO
|
|
|
818
570
|
} & Readonly<{
|
|
819
571
|
footer: boolean;
|
|
820
572
|
inline: boolean;
|
|
821
|
-
footerAlign: "
|
|
573
|
+
footerAlign: "right" | "left" | "center";
|
|
822
574
|
tooltipMessage: boolean | Partial< UseTooltipProps>;
|
|
823
575
|
model: Record<string, any>;
|
|
824
576
|
submitText: string | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ActionMenuItem, BaseSize, ContainerDirection, ContainerWrap, ContainerJustifyContent, ContainerAlignItems, ContainerAlignContent, PanelBadge, IconParam, HeaderProps, ContainerProps } from '@vtj/ui';
|
|
2
|
-
import { ComponentInternalInstance, ExtractPropTypes, PropType, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, ComputedRef, ComponentOptionsMixin, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DebuggerEvent, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, Ref, nextTick, DefineComponent, PublicProps } from 'vue';
|
|
2
|
+
import { ComponentInternalInstance, ExtractPropTypes, PropType, VNodeProps, AllowedComponentProps, ComponentCustomProps, Attrs, Slot, ComponentPublicInstance, ComponentOptionsBase, ComputedRef, ComponentOptionsMixin, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DebuggerEvent, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, Ref, nextTick, DefineComponent, PublicProps } from 'vue';
|
|
3
3
|
import { OnCleanup } from '@vue/reactivity';
|
|
4
4
|
export interface Props {
|
|
5
5
|
title?: string;
|
|
@@ -200,9 +200,7 @@ declare function __VLS_template(): {
|
|
|
200
200
|
}>>> | null | undefined;
|
|
201
201
|
readonly shadow?: "hover" | "none" | "always" | undefined;
|
|
202
202
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "radius" | "fit" | "border" | "card">;
|
|
203
|
-
$attrs:
|
|
204
|
-
[x: string]: unknown;
|
|
205
|
-
};
|
|
203
|
+
$attrs: Attrs;
|
|
206
204
|
$refs: {
|
|
207
205
|
[x: string]: unknown;
|
|
208
206
|
} & {
|
|
@@ -245,9 +243,7 @@ declare function __VLS_template(): {
|
|
|
245
243
|
readonly height?: string | number | undefined;
|
|
246
244
|
readonly overflow?: "hidden" | "auto" | "visible" | undefined;
|
|
247
245
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "padding" | "tag" | "wrap" | "fit" | "flex" | "inline" | "direction" | "justify" | "align" | "alignContent" | "grow" | "shrink" | "alignSelf" | "gap" | "autoPointer">;
|
|
248
|
-
$attrs:
|
|
249
|
-
[x: string]: unknown;
|
|
250
|
-
};
|
|
246
|
+
$attrs: Attrs;
|
|
251
247
|
$refs: {
|
|
252
248
|
[x: string]: unknown;
|
|
253
249
|
} & {
|
|
@@ -794,9 +790,7 @@ declare const __VLS_component: DefineComponent<Props, {
|
|
|
794
790
|
}>>> | null | undefined;
|
|
795
791
|
readonly shadow?: "hover" | "none" | "always" | undefined;
|
|
796
792
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "radius" | "fit" | "border" | "card">;
|
|
797
|
-
$attrs:
|
|
798
|
-
[x: string]: unknown;
|
|
799
|
-
};
|
|
793
|
+
$attrs: Attrs;
|
|
800
794
|
$refs: {
|
|
801
795
|
[x: string]: unknown;
|
|
802
796
|
} & {
|
|
@@ -839,9 +833,7 @@ declare const __VLS_component: DefineComponent<Props, {
|
|
|
839
833
|
readonly height?: string | number | undefined;
|
|
840
834
|
readonly overflow?: "hidden" | "auto" | "visible" | undefined;
|
|
841
835
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "padding" | "tag" | "wrap" | "fit" | "flex" | "inline" | "direction" | "justify" | "align" | "alignContent" | "grow" | "shrink" | "alignSelf" | "gap" | "autoPointer">;
|
|
842
|
-
$attrs:
|
|
843
|
-
[x: string]: unknown;
|
|
844
|
-
};
|
|
836
|
+
$attrs: Attrs;
|
|
845
837
|
$refs: {
|
|
846
838
|
[x: string]: unknown;
|
|
847
839
|
} & {
|