@tmagic/form 1.3.15 → 1.4.0-beta.1
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/style.css +1 -1
- package/dist/tmagic-form.js +17 -15
- package/dist/tmagic-form.umd.cjs +17 -15
- package/package.json +12 -11
- package/src/containers/Container.vue +3 -3
- package/src/fields/Cascader.vue +1 -0
- package/src/fields/Checkbox.vue +2 -2
- package/src/fields/CheckboxGroup.vue +1 -6
- package/src/fields/RadioGroup.vue +3 -7
- package/src/schema.ts +6 -2
- package/src/theme/form-box.scss +1 -1
- package/types/Form.vue.d.ts +12 -12
- package/types/FormBox.vue.d.ts +191 -241
- package/types/FormDialog.vue.d.ts +191 -241
- package/types/FormDrawer.vue.d.ts +192 -242
- package/types/containers/Col.vue.d.ts +3 -3
- package/types/containers/Container.vue.d.ts +12 -12
- package/types/containers/Fieldset.vue.d.ts +11 -11
- package/types/containers/GroupList.vue.d.ts +3 -3
- package/types/containers/GroupListItem.vue.d.ts +3 -3
- package/types/containers/Panel.vue.d.ts +8 -8
- package/types/containers/Row.vue.d.ts +3 -3
- package/types/containers/Step.vue.d.ts +11 -11
- package/types/containers/Table.vue.d.ts +11 -11
- package/types/containers/Tabs.vue.d.ts +11 -11
- package/types/fields/Cascader.vue.d.ts +3 -3
- package/types/fields/Checkbox.vue.d.ts +3 -3
- package/types/fields/CheckboxGroup.vue.d.ts +3 -3
- package/types/fields/ColorPicker.vue.d.ts +3 -3
- package/types/fields/Date.vue.d.ts +3 -3
- package/types/fields/DateTime.vue.d.ts +3 -3
- package/types/fields/Daterange.vue.d.ts +3 -3
- package/types/fields/Display.vue.d.ts +2 -2
- package/types/fields/DynamicField.vue.d.ts +3 -3
- package/types/fields/Hidden.vue.d.ts +2 -2
- package/types/fields/Link.vue.d.ts +3 -3
- package/types/fields/Number.vue.d.ts +3 -3
- package/types/fields/NumberRange.vue.d.ts +3 -3
- package/types/fields/RadioGroup.vue.d.ts +3 -3
- package/types/fields/Select.vue.d.ts +3 -3
- package/types/fields/SelectOptionGroups.vue.d.ts +3 -3
- package/types/fields/SelectOptions.vue.d.ts +3 -3
- package/types/fields/Switch.vue.d.ts +3 -3
- package/types/fields/Text.vue.d.ts +3 -3
- package/types/fields/Textarea.vue.d.ts +3 -3
- package/types/fields/Time.vue.d.ts +3 -3
- package/types/fields/Timerange.vue.d.ts +3 -3
- package/types/schema.d.ts +6 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { FormConfig } from './schema';
|
|
2
|
-
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
3
3
|
config?: FormConfig | undefined;
|
|
4
4
|
values?: Object | undefined;
|
|
5
5
|
parentValues?: Object | undefined;
|
|
@@ -21,233 +21,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
21
21
|
values: () => {};
|
|
22
22
|
confirmText: string;
|
|
23
23
|
}>, {
|
|
24
|
-
form: import("vue").Ref<({
|
|
25
|
-
$: import("vue").ComponentInternalInstance;
|
|
26
|
-
$data: {};
|
|
27
|
-
$props: Partial<{
|
|
28
|
-
config: FormConfig;
|
|
29
|
-
initValues: Record<string, any>;
|
|
30
|
-
lastValues: Record<string, any>;
|
|
31
|
-
isCompare: boolean;
|
|
32
|
-
keyProp: string;
|
|
33
|
-
parentValues: Record<string, any>;
|
|
34
|
-
labelWidth: string;
|
|
35
|
-
disabled: boolean;
|
|
36
|
-
stepActive: string | number;
|
|
37
|
-
height: string;
|
|
38
|
-
inline: boolean;
|
|
39
|
-
labelPosition: string;
|
|
40
|
-
}> & Omit<{
|
|
41
|
-
readonly config: FormConfig;
|
|
42
|
-
readonly initValues: Record<string, any>;
|
|
43
|
-
readonly lastValues: Record<string, any>;
|
|
44
|
-
readonly isCompare: boolean;
|
|
45
|
-
readonly keyProp: string;
|
|
46
|
-
readonly parentValues: Record<string, any>;
|
|
47
|
-
readonly labelWidth: string;
|
|
48
|
-
readonly disabled: boolean;
|
|
49
|
-
readonly stepActive: string | number;
|
|
50
|
-
readonly height: string;
|
|
51
|
-
readonly inline: boolean;
|
|
52
|
-
readonly labelPosition: string;
|
|
53
|
-
readonly popperClass?: string | undefined;
|
|
54
|
-
readonly size?: "large" | "default" | "small" | undefined;
|
|
55
|
-
readonly extendState?: ((state: import("./schema").FormState) => Record<string, any> | Promise<Record<string, any>>) | undefined;
|
|
56
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
57
|
-
onError?: ((...args: any[]) => any) | undefined;
|
|
58
|
-
"onField-input"?: ((...args: any[]) => any) | undefined;
|
|
59
|
-
"onField-change"?: ((...args: any[]) => any) | undefined;
|
|
60
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
61
|
-
config: {
|
|
62
|
-
type: import("vue").PropType<FormConfig>;
|
|
63
|
-
required: true;
|
|
64
|
-
default: () => never[];
|
|
65
|
-
};
|
|
66
|
-
popperClass: {
|
|
67
|
-
type: import("vue").PropType<string>;
|
|
68
|
-
};
|
|
69
|
-
initValues: {
|
|
70
|
-
type: import("vue").PropType<Record<string, any>>;
|
|
71
|
-
required: true;
|
|
72
|
-
default: () => {};
|
|
73
|
-
};
|
|
74
|
-
lastValues: {
|
|
75
|
-
type: import("vue").PropType<Record<string, any>>;
|
|
76
|
-
default: () => {};
|
|
77
|
-
};
|
|
78
|
-
isCompare: {
|
|
79
|
-
type: import("vue").PropType<boolean>;
|
|
80
|
-
default: boolean;
|
|
81
|
-
};
|
|
82
|
-
keyProp: {
|
|
83
|
-
type: import("vue").PropType<string>;
|
|
84
|
-
default: string;
|
|
85
|
-
};
|
|
86
|
-
parentValues: {
|
|
87
|
-
type: import("vue").PropType<Record<string, any>>;
|
|
88
|
-
default: () => {};
|
|
89
|
-
};
|
|
90
|
-
labelWidth: {
|
|
91
|
-
type: import("vue").PropType<string>;
|
|
92
|
-
default: string;
|
|
93
|
-
};
|
|
94
|
-
disabled: {
|
|
95
|
-
type: import("vue").PropType<boolean>;
|
|
96
|
-
default: boolean;
|
|
97
|
-
};
|
|
98
|
-
stepActive: {
|
|
99
|
-
type: import("vue").PropType<string | number>;
|
|
100
|
-
default: number;
|
|
101
|
-
};
|
|
102
|
-
size: {
|
|
103
|
-
type: import("vue").PropType<"large" | "default" | "small">;
|
|
104
|
-
};
|
|
105
|
-
height: {
|
|
106
|
-
type: import("vue").PropType<string>;
|
|
107
|
-
default: string;
|
|
108
|
-
};
|
|
109
|
-
inline: {
|
|
110
|
-
type: import("vue").PropType<boolean>;
|
|
111
|
-
default: boolean;
|
|
112
|
-
};
|
|
113
|
-
labelPosition: {
|
|
114
|
-
type: import("vue").PropType<string>;
|
|
115
|
-
default: string;
|
|
116
|
-
};
|
|
117
|
-
extendState: {
|
|
118
|
-
type: import("vue").PropType<(state: import("./schema").FormState) => Record<string, any> | Promise<Record<string, any>>>;
|
|
119
|
-
};
|
|
120
|
-
}>> & {
|
|
121
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
122
|
-
onError?: ((...args: any[]) => any) | undefined;
|
|
123
|
-
"onField-input"?: ((...args: any[]) => any) | undefined;
|
|
124
|
-
"onField-change"?: ((...args: any[]) => any) | undefined;
|
|
125
|
-
}, "config" | "initValues" | "lastValues" | "isCompare" | "keyProp" | "parentValues" | "labelWidth" | "disabled" | "stepActive" | "height" | "inline" | "labelPosition">;
|
|
126
|
-
$attrs: {
|
|
127
|
-
[x: string]: unknown;
|
|
128
|
-
};
|
|
129
|
-
$refs: {
|
|
130
|
-
[x: string]: unknown;
|
|
131
|
-
};
|
|
132
|
-
$slots: Readonly<{
|
|
133
|
-
[name: string]: import("vue").Slot<any> | undefined;
|
|
134
|
-
}>;
|
|
135
|
-
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
|
|
136
|
-
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
|
|
137
|
-
$emit: ((event: "change", ...args: any[]) => void) & ((event: "error", ...args: any[]) => void) & ((event: "field-input", ...args: any[]) => void) & ((event: "field-change", ...args: any[]) => void);
|
|
138
|
-
$el: any;
|
|
139
|
-
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
140
|
-
config: {
|
|
141
|
-
type: import("vue").PropType<FormConfig>;
|
|
142
|
-
required: true;
|
|
143
|
-
default: () => never[];
|
|
144
|
-
};
|
|
145
|
-
popperClass: {
|
|
146
|
-
type: import("vue").PropType<string>;
|
|
147
|
-
};
|
|
148
|
-
initValues: {
|
|
149
|
-
type: import("vue").PropType<Record<string, any>>;
|
|
150
|
-
required: true;
|
|
151
|
-
default: () => {};
|
|
152
|
-
};
|
|
153
|
-
lastValues: {
|
|
154
|
-
type: import("vue").PropType<Record<string, any>>;
|
|
155
|
-
default: () => {};
|
|
156
|
-
};
|
|
157
|
-
isCompare: {
|
|
158
|
-
type: import("vue").PropType<boolean>;
|
|
159
|
-
default: boolean;
|
|
160
|
-
};
|
|
161
|
-
keyProp: {
|
|
162
|
-
type: import("vue").PropType<string>;
|
|
163
|
-
default: string;
|
|
164
|
-
};
|
|
165
|
-
parentValues: {
|
|
166
|
-
type: import("vue").PropType<Record<string, any>>;
|
|
167
|
-
default: () => {};
|
|
168
|
-
};
|
|
169
|
-
labelWidth: {
|
|
170
|
-
type: import("vue").PropType<string>;
|
|
171
|
-
default: string;
|
|
172
|
-
};
|
|
173
|
-
disabled: {
|
|
174
|
-
type: import("vue").PropType<boolean>;
|
|
175
|
-
default: boolean;
|
|
176
|
-
};
|
|
177
|
-
stepActive: {
|
|
178
|
-
type: import("vue").PropType<string | number>;
|
|
179
|
-
default: number;
|
|
180
|
-
};
|
|
181
|
-
size: {
|
|
182
|
-
type: import("vue").PropType<"large" | "default" | "small">;
|
|
183
|
-
};
|
|
184
|
-
height: {
|
|
185
|
-
type: import("vue").PropType<string>;
|
|
186
|
-
default: string;
|
|
187
|
-
};
|
|
188
|
-
inline: {
|
|
189
|
-
type: import("vue").PropType<boolean>;
|
|
190
|
-
default: boolean;
|
|
191
|
-
};
|
|
192
|
-
labelPosition: {
|
|
193
|
-
type: import("vue").PropType<string>;
|
|
194
|
-
default: string;
|
|
195
|
-
};
|
|
196
|
-
extendState: {
|
|
197
|
-
type: import("vue").PropType<(state: import("./schema").FormState) => Record<string, any> | Promise<Record<string, any>>>;
|
|
198
|
-
};
|
|
199
|
-
}>> & {
|
|
200
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
201
|
-
onError?: ((...args: any[]) => any) | undefined;
|
|
202
|
-
"onField-input"?: ((...args: any[]) => any) | undefined;
|
|
203
|
-
"onField-change"?: ((...args: any[]) => any) | undefined;
|
|
204
|
-
}, {
|
|
205
|
-
values: import("vue").Ref<import("./schema").FormValue>;
|
|
206
|
-
lastValuesProcessed: import("vue").Ref<import("./schema").FormValue>;
|
|
207
|
-
formState: import("./schema").FormState;
|
|
208
|
-
initialized: import("vue").Ref<boolean>;
|
|
209
|
-
changeHandler: () => void;
|
|
210
|
-
resetForm: () => any;
|
|
211
|
-
submitForm: (native?: boolean | undefined) => Promise<any>;
|
|
212
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
213
|
-
change: (...args: any[]) => void;
|
|
214
|
-
error: (...args: any[]) => void;
|
|
215
|
-
"field-input": (...args: any[]) => void;
|
|
216
|
-
"field-change": (...args: any[]) => void;
|
|
217
|
-
}, string, {
|
|
218
|
-
config: FormConfig;
|
|
219
|
-
initValues: Record<string, any>;
|
|
220
|
-
lastValues: Record<string, any>;
|
|
221
|
-
isCompare: boolean;
|
|
222
|
-
keyProp: string;
|
|
223
|
-
parentValues: Record<string, any>;
|
|
224
|
-
labelWidth: string;
|
|
225
|
-
disabled: boolean;
|
|
226
|
-
stepActive: string | number;
|
|
227
|
-
height: string;
|
|
228
|
-
inline: boolean;
|
|
229
|
-
labelPosition: string;
|
|
230
|
-
}, {}, string, {}> & {
|
|
231
|
-
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
232
|
-
created?: ((() => void) | (() => void)[]) | undefined;
|
|
233
|
-
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
234
|
-
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
235
|
-
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
236
|
-
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
237
|
-
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
238
|
-
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
239
|
-
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
240
|
-
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
241
|
-
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
242
|
-
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
243
|
-
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
244
|
-
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
245
|
-
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
246
|
-
};
|
|
247
|
-
$forceUpdate: () => void;
|
|
248
|
-
$nextTick: typeof import("vue").nextTick;
|
|
249
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
250
|
-
} & Readonly<import("vue").ExtractPropTypes<{
|
|
24
|
+
form: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
|
251
25
|
config: {
|
|
252
26
|
type: import("vue").PropType<FormConfig>;
|
|
253
27
|
required: true;
|
|
@@ -285,6 +59,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
285
59
|
type: import("vue").PropType<boolean>;
|
|
286
60
|
default: boolean;
|
|
287
61
|
};
|
|
62
|
+
height: {
|
|
63
|
+
type: import("vue").PropType<string>;
|
|
64
|
+
default: string;
|
|
65
|
+
};
|
|
288
66
|
stepActive: {
|
|
289
67
|
type: import("vue").PropType<string | number>;
|
|
290
68
|
default: number;
|
|
@@ -292,10 +70,84 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
292
70
|
size: {
|
|
293
71
|
type: import("vue").PropType<"large" | "default" | "small">;
|
|
294
72
|
};
|
|
73
|
+
inline: {
|
|
74
|
+
type: import("vue").PropType<boolean>;
|
|
75
|
+
default: boolean;
|
|
76
|
+
};
|
|
77
|
+
labelPosition: {
|
|
78
|
+
type: import("vue").PropType<string>;
|
|
79
|
+
default: string;
|
|
80
|
+
};
|
|
81
|
+
extendState: {
|
|
82
|
+
type: import("vue").PropType<(state: import("./schema").FormState) => Record<string, any> | Promise<Record<string, any>>>;
|
|
83
|
+
};
|
|
84
|
+
}>> & {
|
|
85
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
86
|
+
onError?: ((...args: any[]) => any) | undefined;
|
|
87
|
+
"onField-input"?: ((...args: any[]) => any) | undefined;
|
|
88
|
+
"onField-change"?: ((...args: any[]) => any) | undefined;
|
|
89
|
+
}, {
|
|
90
|
+
values: import("vue").Ref<import("./schema").FormValue>;
|
|
91
|
+
lastValuesProcessed: import("vue").Ref<import("./schema").FormValue>;
|
|
92
|
+
formState: import("./schema").FormState;
|
|
93
|
+
initialized: import("vue").Ref<boolean>;
|
|
94
|
+
changeHandler: () => void;
|
|
95
|
+
resetForm: () => any;
|
|
96
|
+
submitForm: (native?: boolean | undefined) => Promise<any>;
|
|
97
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
98
|
+
change: (...args: any[]) => void;
|
|
99
|
+
error: (...args: any[]) => void;
|
|
100
|
+
"field-input": (...args: any[]) => void;
|
|
101
|
+
"field-change": (...args: any[]) => void;
|
|
102
|
+
}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
103
|
+
config: {
|
|
104
|
+
type: import("vue").PropType<FormConfig>;
|
|
105
|
+
required: true;
|
|
106
|
+
default: () => never[];
|
|
107
|
+
};
|
|
108
|
+
popperClass: {
|
|
109
|
+
type: import("vue").PropType<string>;
|
|
110
|
+
};
|
|
111
|
+
initValues: {
|
|
112
|
+
type: import("vue").PropType<Record<string, any>>;
|
|
113
|
+
required: true;
|
|
114
|
+
default: () => {};
|
|
115
|
+
};
|
|
116
|
+
lastValues: {
|
|
117
|
+
type: import("vue").PropType<Record<string, any>>;
|
|
118
|
+
default: () => {};
|
|
119
|
+
};
|
|
120
|
+
isCompare: {
|
|
121
|
+
type: import("vue").PropType<boolean>;
|
|
122
|
+
default: boolean;
|
|
123
|
+
};
|
|
124
|
+
keyProp: {
|
|
125
|
+
type: import("vue").PropType<string>;
|
|
126
|
+
default: string;
|
|
127
|
+
};
|
|
128
|
+
parentValues: {
|
|
129
|
+
type: import("vue").PropType<Record<string, any>>;
|
|
130
|
+
default: () => {};
|
|
131
|
+
};
|
|
132
|
+
labelWidth: {
|
|
133
|
+
type: import("vue").PropType<string>;
|
|
134
|
+
default: string;
|
|
135
|
+
};
|
|
136
|
+
disabled: {
|
|
137
|
+
type: import("vue").PropType<boolean>;
|
|
138
|
+
default: boolean;
|
|
139
|
+
};
|
|
295
140
|
height: {
|
|
296
141
|
type: import("vue").PropType<string>;
|
|
297
142
|
default: string;
|
|
298
143
|
};
|
|
144
|
+
stepActive: {
|
|
145
|
+
type: import("vue").PropType<string | number>;
|
|
146
|
+
default: number;
|
|
147
|
+
};
|
|
148
|
+
size: {
|
|
149
|
+
type: import("vue").PropType<"large" | "default" | "small">;
|
|
150
|
+
};
|
|
299
151
|
inline: {
|
|
300
152
|
type: import("vue").PropType<boolean>;
|
|
301
153
|
default: boolean;
|
|
@@ -312,7 +164,92 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
312
164
|
onError?: ((...args: any[]) => any) | undefined;
|
|
313
165
|
"onField-input"?: ((...args: any[]) => any) | undefined;
|
|
314
166
|
"onField-change"?: ((...args: any[]) => any) | undefined;
|
|
315
|
-
}
|
|
167
|
+
}, {
|
|
168
|
+
config: FormConfig;
|
|
169
|
+
initValues: Record<string, any>;
|
|
170
|
+
lastValues: Record<string, any>;
|
|
171
|
+
isCompare: boolean;
|
|
172
|
+
keyProp: string;
|
|
173
|
+
parentValues: Record<string, any>;
|
|
174
|
+
labelWidth: string;
|
|
175
|
+
disabled: boolean;
|
|
176
|
+
height: string;
|
|
177
|
+
stepActive: string | number;
|
|
178
|
+
inline: boolean;
|
|
179
|
+
labelPosition: string;
|
|
180
|
+
}, true, {}, {}, {
|
|
181
|
+
P: {};
|
|
182
|
+
B: {};
|
|
183
|
+
D: {};
|
|
184
|
+
C: {};
|
|
185
|
+
M: {};
|
|
186
|
+
Defaults: {};
|
|
187
|
+
}, Readonly<import("vue").ExtractPropTypes<{
|
|
188
|
+
config: {
|
|
189
|
+
type: import("vue").PropType<FormConfig>;
|
|
190
|
+
required: true;
|
|
191
|
+
default: () => never[];
|
|
192
|
+
};
|
|
193
|
+
popperClass: {
|
|
194
|
+
type: import("vue").PropType<string>;
|
|
195
|
+
};
|
|
196
|
+
initValues: {
|
|
197
|
+
type: import("vue").PropType<Record<string, any>>;
|
|
198
|
+
required: true;
|
|
199
|
+
default: () => {};
|
|
200
|
+
};
|
|
201
|
+
lastValues: {
|
|
202
|
+
type: import("vue").PropType<Record<string, any>>;
|
|
203
|
+
default: () => {};
|
|
204
|
+
};
|
|
205
|
+
isCompare: {
|
|
206
|
+
type: import("vue").PropType<boolean>;
|
|
207
|
+
default: boolean;
|
|
208
|
+
};
|
|
209
|
+
keyProp: {
|
|
210
|
+
type: import("vue").PropType<string>;
|
|
211
|
+
default: string;
|
|
212
|
+
};
|
|
213
|
+
parentValues: {
|
|
214
|
+
type: import("vue").PropType<Record<string, any>>;
|
|
215
|
+
default: () => {};
|
|
216
|
+
};
|
|
217
|
+
labelWidth: {
|
|
218
|
+
type: import("vue").PropType<string>;
|
|
219
|
+
default: string;
|
|
220
|
+
};
|
|
221
|
+
disabled: {
|
|
222
|
+
type: import("vue").PropType<boolean>;
|
|
223
|
+
default: boolean;
|
|
224
|
+
};
|
|
225
|
+
height: {
|
|
226
|
+
type: import("vue").PropType<string>;
|
|
227
|
+
default: string;
|
|
228
|
+
};
|
|
229
|
+
stepActive: {
|
|
230
|
+
type: import("vue").PropType<string | number>;
|
|
231
|
+
default: number;
|
|
232
|
+
};
|
|
233
|
+
size: {
|
|
234
|
+
type: import("vue").PropType<"large" | "default" | "small">;
|
|
235
|
+
};
|
|
236
|
+
inline: {
|
|
237
|
+
type: import("vue").PropType<boolean>;
|
|
238
|
+
default: boolean;
|
|
239
|
+
};
|
|
240
|
+
labelPosition: {
|
|
241
|
+
type: import("vue").PropType<string>;
|
|
242
|
+
default: string;
|
|
243
|
+
};
|
|
244
|
+
extendState: {
|
|
245
|
+
type: import("vue").PropType<(state: import("./schema").FormState) => Record<string, any> | Promise<Record<string, any>>>;
|
|
246
|
+
};
|
|
247
|
+
}>> & {
|
|
248
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
249
|
+
onError?: ((...args: any[]) => any) | undefined;
|
|
250
|
+
"onField-input"?: ((...args: any[]) => any) | undefined;
|
|
251
|
+
"onField-change"?: ((...args: any[]) => any) | undefined;
|
|
252
|
+
}, {
|
|
316
253
|
values: import("vue").Ref<import("./schema").FormValue>;
|
|
317
254
|
lastValuesProcessed: import("vue").Ref<import("./schema").FormValue>;
|
|
318
255
|
formState: import("./schema").FormState;
|
|
@@ -320,7 +257,20 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
320
257
|
changeHandler: () => void;
|
|
321
258
|
resetForm: () => any;
|
|
322
259
|
submitForm: (native?: boolean | undefined) => Promise<any>;
|
|
323
|
-
}
|
|
260
|
+
}, {}, {}, {}, {
|
|
261
|
+
config: FormConfig;
|
|
262
|
+
initValues: Record<string, any>;
|
|
263
|
+
lastValues: Record<string, any>;
|
|
264
|
+
isCompare: boolean;
|
|
265
|
+
keyProp: string;
|
|
266
|
+
parentValues: Record<string, any>;
|
|
267
|
+
labelWidth: string;
|
|
268
|
+
disabled: boolean;
|
|
269
|
+
height: string;
|
|
270
|
+
stepActive: string | number;
|
|
271
|
+
inline: boolean;
|
|
272
|
+
labelPosition: string;
|
|
273
|
+
}> | undefined>;
|
|
324
274
|
saveFetch: import("vue").Ref<boolean>;
|
|
325
275
|
bodyHeight: import("vue").Ref<number>;
|
|
326
276
|
show: () => void;
|
|
@@ -334,7 +284,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
334
284
|
closed: (...args: any[]) => void;
|
|
335
285
|
open: (...args: any[]) => void;
|
|
336
286
|
opened: (...args: any[]) => void;
|
|
337
|
-
}, string, import("vue").
|
|
287
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
338
288
|
config?: FormConfig | undefined;
|
|
339
289
|
values?: Object | undefined;
|
|
340
290
|
parentValues?: Object | undefined;
|
|
@@ -357,12 +307,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
357
307
|
confirmText: string;
|
|
358
308
|
}>>> & {
|
|
359
309
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
360
|
-
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
361
310
|
onError?: ((...args: any[]) => any) | undefined;
|
|
311
|
+
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
362
312
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
363
|
-
onClosed?: ((...args: any[]) => any) | undefined;
|
|
364
313
|
onOpen?: ((...args: any[]) => any) | undefined;
|
|
365
314
|
onOpened?: ((...args: any[]) => any) | undefined;
|
|
315
|
+
onClosed?: ((...args: any[]) => any) | undefined;
|
|
366
316
|
}, {
|
|
367
317
|
config: FormConfig;
|
|
368
318
|
values: Object;
|
|
@@ -374,15 +324,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
374
324
|
footer?(_: {}): any;
|
|
375
325
|
}>;
|
|
376
326
|
export default _default;
|
|
377
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
378
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
379
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
380
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
381
|
-
} : {
|
|
382
|
-
type: import('vue').PropType<T[K]>;
|
|
383
|
-
required: true;
|
|
384
|
-
};
|
|
385
|
-
};
|
|
386
327
|
type __VLS_WithDefaults<P, D> = {
|
|
387
328
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
388
329
|
default: D[K];
|
|
@@ -396,3 +337,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
|
|
|
396
337
|
$slots: S;
|
|
397
338
|
};
|
|
398
339
|
};
|
|
340
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
341
|
+
type __VLS_TypePropsToOption<T> = {
|
|
342
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
343
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
344
|
+
} : {
|
|
345
|
+
type: import('vue').PropType<T[K]>;
|
|
346
|
+
required: true;
|
|
347
|
+
};
|
|
348
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChildConfig } from '../schema';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
3
3
|
model: any;
|
|
4
4
|
lastValues?: any;
|
|
5
5
|
isCompare?: boolean | undefined;
|
|
@@ -13,7 +13,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
|
|
|
13
13
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
14
|
change: (...args: any[]) => void;
|
|
15
15
|
addDiffCount: (...args: any[]) => void;
|
|
16
|
-
}, string, import("vue").
|
|
16
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
17
17
|
model: any;
|
|
18
18
|
lastValues?: any;
|
|
19
19
|
isCompare?: boolean | undefined;
|
|
@@ -30,7 +30,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
|
|
|
30
30
|
}, {}, {}>;
|
|
31
31
|
export default _default;
|
|
32
32
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
33
|
-
type
|
|
33
|
+
type __VLS_TypePropsToOption<T> = {
|
|
34
34
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
35
35
|
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
36
36
|
} : {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChildConfig, FormValue } from '../schema';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
3
3
|
/** 表单值 */
|
|
4
4
|
model: FormValue;
|
|
5
5
|
/** 需对比的值(开启对比模式时传入) */
|
|
@@ -22,7 +22,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
22
22
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
23
23
|
change: (...args: any[]) => void;
|
|
24
24
|
addDiffCount: (...args: any[]) => void;
|
|
25
|
-
}, string, import("vue").
|
|
25
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
26
26
|
/** 表单值 */
|
|
27
27
|
model: FormValue;
|
|
28
28
|
/** 需对比的值(开启对比模式时传入) */
|
|
@@ -48,20 +48,11 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
48
48
|
}, {
|
|
49
49
|
lastValues: FormValue;
|
|
50
50
|
isCompare: boolean;
|
|
51
|
+
size: string;
|
|
51
52
|
prop: string;
|
|
52
53
|
expandMore: boolean;
|
|
53
|
-
size: string;
|
|
54
54
|
}, {}>;
|
|
55
55
|
export default _default;
|
|
56
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
57
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
58
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
59
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
60
|
-
} : {
|
|
61
|
-
type: import('vue').PropType<T[K]>;
|
|
62
|
-
required: true;
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
56
|
type __VLS_WithDefaults<P, D> = {
|
|
66
57
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
67
58
|
default: D[K];
|
|
@@ -70,3 +61,12 @@ type __VLS_WithDefaults<P, D> = {
|
|
|
70
61
|
type __VLS_Prettify<T> = {
|
|
71
62
|
[K in keyof T]: T[K];
|
|
72
63
|
} & {};
|
|
64
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
65
|
+
type __VLS_TypePropsToOption<T> = {
|
|
66
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
67
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
68
|
+
} : {
|
|
69
|
+
type: import('vue').PropType<T[K]>;
|
|
70
|
+
required: true;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FieldsetConfig } from '../schema';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
3
3
|
labelWidth?: string | undefined;
|
|
4
4
|
prop: string;
|
|
5
5
|
size?: string | undefined;
|
|
@@ -17,7 +17,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
17
17
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
18
|
change: (...args: any[]) => void;
|
|
19
19
|
addDiffCount: (...args: any[]) => void;
|
|
20
|
-
}, string, import("vue").
|
|
20
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
21
21
|
labelWidth?: string | undefined;
|
|
22
22
|
prop: string;
|
|
23
23
|
size?: string | undefined;
|
|
@@ -42,15 +42,6 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
42
42
|
prop: string;
|
|
43
43
|
}, {}>;
|
|
44
44
|
export default _default;
|
|
45
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
46
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
47
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
48
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
49
|
-
} : {
|
|
50
|
-
type: import('vue').PropType<T[K]>;
|
|
51
|
-
required: true;
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
45
|
type __VLS_WithDefaults<P, D> = {
|
|
55
46
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
56
47
|
default: D[K];
|
|
@@ -59,3 +50,12 @@ type __VLS_WithDefaults<P, D> = {
|
|
|
59
50
|
type __VLS_Prettify<T> = {
|
|
60
51
|
[K in keyof T]: T[K];
|
|
61
52
|
} & {};
|
|
53
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
54
|
+
type __VLS_TypePropsToOption<T> = {
|
|
55
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
56
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
57
|
+
} : {
|
|
58
|
+
type: import('vue').PropType<T[K]>;
|
|
59
|
+
required: true;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GroupListConfig } from '../schema';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
3
3
|
model: any;
|
|
4
4
|
lastValues?: any;
|
|
5
5
|
isCompare?: boolean | undefined;
|
|
@@ -12,7 +12,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
|
|
|
12
12
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
13
|
change: (...args: any[]) => void;
|
|
14
14
|
addDiffCount: (...args: any[]) => void;
|
|
15
|
-
}, string, import("vue").
|
|
15
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
16
16
|
model: any;
|
|
17
17
|
lastValues?: any;
|
|
18
18
|
isCompare?: boolean | undefined;
|
|
@@ -28,7 +28,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
|
|
|
28
28
|
}, {}, {}>;
|
|
29
29
|
export default _default;
|
|
30
30
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
31
|
-
type
|
|
31
|
+
type __VLS_TypePropsToOption<T> = {
|
|
32
32
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
33
33
|
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
34
34
|
} : {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GroupListConfig } from '../schema';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
3
3
|
model: any;
|
|
4
4
|
lastValues: any;
|
|
5
5
|
isCompare?: boolean | undefined;
|
|
@@ -15,7 +15,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
|
|
|
15
15
|
addDiffCount: (...args: any[]) => void;
|
|
16
16
|
"swap-item": (...args: any[]) => void;
|
|
17
17
|
"remove-item": (...args: any[]) => void;
|
|
18
|
-
}, string, import("vue").
|
|
18
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
19
19
|
model: any;
|
|
20
20
|
lastValues: any;
|
|
21
21
|
isCompare?: boolean | undefined;
|
|
@@ -34,7 +34,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
|
|
|
34
34
|
}, {}, {}>;
|
|
35
35
|
export default _default;
|
|
36
36
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
37
|
-
type
|
|
37
|
+
type __VLS_TypePropsToOption<T> = {
|
|
38
38
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
39
39
|
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
40
40
|
} : {
|