@tmagic/form 1.0.6 → 1.1.0-beta.10
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/{tmagic-form.es.js → tmagic-form.mjs} +225 -190
- package/dist/tmagic-form.mjs.map +1 -0
- package/dist/tmagic-form.umd.js +239 -204
- package/dist/tmagic-form.umd.js.map +1 -1
- package/package.json +17 -16
- package/src/Form.vue +3 -7
- package/src/containers/Container.vue +1 -1
- package/src/containers/GroupListItem.vue +4 -4
- package/src/containers/Panel.vue +1 -1
- package/src/containers/Table.vue +1 -1
- package/src/fields/Cascader.vue +3 -5
- package/src/fields/ColorPicker.vue +19 -26
- package/src/fields/Daterange.vue +73 -52
- package/src/fields/Display.vue +13 -23
- package/src/fields/Hidden.vue +10 -20
- package/src/fields/Select.vue +1 -2
- package/src/fields/Text.vue +6 -4
- package/src/index.ts +4 -4
- package/tsconfig.build.json +13 -0
- package/types/Form.vue.d.ts +125 -0
- package/types/FormDialog.vue.d.ts +300 -0
- package/{dist/types/src → types}/containers/Col.vue.d.ts +4 -4
- package/types/containers/Container.vue.d.ts +70 -0
- package/types/containers/Fieldset.vue.d.ts +118 -0
- package/{dist/types/src → types}/containers/GroupList.vue.d.ts +6 -6
- package/{dist/types/src → types}/containers/GroupListItem.vue.d.ts +15 -15
- package/{dist/types/src → types}/containers/Panel.vue.d.ts +6 -6
- package/{dist/types/src → types}/containers/Row.vue.d.ts +3 -3
- package/{dist/types/src → types}/containers/Step.vue.d.ts +4 -4
- package/types/containers/Table.vue.d.ts +128 -0
- package/{dist/types/src → types}/containers/Tabs.vue.d.ts +11 -7
- package/types/fields/Cascader.vue.d.ts +74 -0
- package/{dist/types/src → types}/fields/Checkbox.vue.d.ts +5 -5
- package/{dist/types/src → types}/fields/CheckboxGroup.vue.d.ts +3 -3
- package/types/fields/ColorPicker.vue.d.ts +100 -0
- package/{dist/types/src → types}/fields/Date.vue.d.ts +3 -3
- package/{dist/types/src → types}/fields/DateTime.vue.d.ts +3 -3
- package/types/fields/Daterange.vue.d.ts +100 -0
- package/types/fields/Display.vue.d.ts +84 -0
- package/{dist/types/src → types}/fields/DynamicField.vue.d.ts +4 -4
- package/types/fields/Hidden.vue.d.ts +84 -0
- package/types/fields/Link.vue.d.ts +686 -0
- package/{dist/types/src → types}/fields/Number.vue.d.ts +3 -3
- package/{dist/types/src → types}/fields/RadioGroup.vue.d.ts +4 -5
- package/types/fields/Select.vue.d.ts +67 -0
- package/types/fields/SelectOptionGroups.vue.d.ts +64 -0
- package/types/fields/SelectOptions.vue.d.ts +68 -0
- package/{dist/types/src → types}/fields/Switch.vue.d.ts +6 -6
- package/{dist/types/src → types}/fields/Text.vue.d.ts +4 -4
- package/{dist/types/src → types}/fields/Textarea.vue.d.ts +10 -4
- package/{dist/types/src → types}/fields/Time.vue.d.ts +8 -4
- package/{dist/types/src → types}/index.d.ts +1 -0
- package/{dist/types/src → types}/schema.d.ts +0 -0
- package/{dist/types/src → types}/utils/config.d.ts +0 -0
- package/types/utils/containerProps.d.ts +26 -0
- package/types/utils/createForm.d.ts +3 -0
- package/{dist/types/src → types}/utils/fieldProps.d.ts +0 -0
- package/{dist/types/src → types}/utils/form.d.ts +0 -0
- package/types/utils/useAddField.d.ts +1 -0
- package/dist/tmagic-form.es.js.map +0 -1
- package/dist/types/src/containers/Container.vue.d.ts +0 -70
- package/dist/types/src/containers/Fieldset.vue.d.ts +0 -79
- package/dist/types/src/containers/Table.vue.d.ts +0 -128
- package/dist/types/src/fields/Daterange.vue.d.ts +0 -57
- package/dist/types/src/fields/Display.vue.d.ts +0 -3
- package/dist/types/src/fields/Hidden.vue.d.ts +0 -3
- package/dist/types/src/fields/SelectOptionGroups.vue.d.ts +0 -13
- package/dist/types/src/fields/SelectOptions.vue.d.ts +0 -21
- package/dist/types/src/shims-vue.d.ts +0 -6
- package/dist/types/src/utils/useAddField.d.ts +0 -1
- package/dist/types/src/vite-env.d.ts +0 -1
- package/src/vite-env.d.ts +0 -1
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { FormConfig, FormState, FormValue } from './schema';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
initValues: {
|
|
5
|
+
type: ObjectConstructor;
|
|
6
|
+
required: true;
|
|
7
|
+
default: () => {};
|
|
8
|
+
};
|
|
9
|
+
parentValues: {
|
|
10
|
+
type: ObjectConstructor;
|
|
11
|
+
default: () => {};
|
|
12
|
+
};
|
|
13
|
+
config: {
|
|
14
|
+
type: PropType<FormConfig>;
|
|
15
|
+
required: true;
|
|
16
|
+
default: () => never[];
|
|
17
|
+
};
|
|
18
|
+
labelWidth: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
default: () => string;
|
|
21
|
+
};
|
|
22
|
+
disabled: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: () => boolean;
|
|
25
|
+
};
|
|
26
|
+
height: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
default: () => string;
|
|
29
|
+
};
|
|
30
|
+
stepActive: {
|
|
31
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
32
|
+
default: () => number;
|
|
33
|
+
};
|
|
34
|
+
size: {
|
|
35
|
+
type: PropType<"small" | "default" | "large">;
|
|
36
|
+
};
|
|
37
|
+
inline: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
labelPosition: {
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
default: string;
|
|
44
|
+
};
|
|
45
|
+
keyProp: {
|
|
46
|
+
type: StringConstructor;
|
|
47
|
+
default: string;
|
|
48
|
+
};
|
|
49
|
+
popperClass: {
|
|
50
|
+
type: StringConstructor;
|
|
51
|
+
};
|
|
52
|
+
}, {
|
|
53
|
+
initialized: import("vue").Ref<boolean>;
|
|
54
|
+
values: import("vue").Ref<FormValue>;
|
|
55
|
+
elForm: import("vue").Ref<any>;
|
|
56
|
+
formState: FormState;
|
|
57
|
+
changeHandler: () => void;
|
|
58
|
+
resetForm: () => any;
|
|
59
|
+
submitForm: (native?: boolean) => Promise<any>;
|
|
60
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "field-input" | "field-change")[], "change" | "field-input" | "field-change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
61
|
+
initValues: {
|
|
62
|
+
type: ObjectConstructor;
|
|
63
|
+
required: true;
|
|
64
|
+
default: () => {};
|
|
65
|
+
};
|
|
66
|
+
parentValues: {
|
|
67
|
+
type: ObjectConstructor;
|
|
68
|
+
default: () => {};
|
|
69
|
+
};
|
|
70
|
+
config: {
|
|
71
|
+
type: PropType<FormConfig>;
|
|
72
|
+
required: true;
|
|
73
|
+
default: () => never[];
|
|
74
|
+
};
|
|
75
|
+
labelWidth: {
|
|
76
|
+
type: StringConstructor;
|
|
77
|
+
default: () => string;
|
|
78
|
+
};
|
|
79
|
+
disabled: {
|
|
80
|
+
type: BooleanConstructor;
|
|
81
|
+
default: () => boolean;
|
|
82
|
+
};
|
|
83
|
+
height: {
|
|
84
|
+
type: StringConstructor;
|
|
85
|
+
default: () => string;
|
|
86
|
+
};
|
|
87
|
+
stepActive: {
|
|
88
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
89
|
+
default: () => number;
|
|
90
|
+
};
|
|
91
|
+
size: {
|
|
92
|
+
type: PropType<"small" | "default" | "large">;
|
|
93
|
+
};
|
|
94
|
+
inline: {
|
|
95
|
+
type: BooleanConstructor;
|
|
96
|
+
default: boolean;
|
|
97
|
+
};
|
|
98
|
+
labelPosition: {
|
|
99
|
+
type: StringConstructor;
|
|
100
|
+
default: string;
|
|
101
|
+
};
|
|
102
|
+
keyProp: {
|
|
103
|
+
type: StringConstructor;
|
|
104
|
+
default: string;
|
|
105
|
+
};
|
|
106
|
+
popperClass: {
|
|
107
|
+
type: StringConstructor;
|
|
108
|
+
};
|
|
109
|
+
}>> & {
|
|
110
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
111
|
+
"onField-input"?: ((...args: any[]) => any) | undefined;
|
|
112
|
+
"onField-change"?: ((...args: any[]) => any) | undefined;
|
|
113
|
+
}, {
|
|
114
|
+
config: FormConfig;
|
|
115
|
+
initValues: Record<string, any>;
|
|
116
|
+
keyProp: string;
|
|
117
|
+
parentValues: Record<string, any>;
|
|
118
|
+
labelWidth: string;
|
|
119
|
+
disabled: boolean;
|
|
120
|
+
height: string;
|
|
121
|
+
stepActive: string | number;
|
|
122
|
+
inline: boolean;
|
|
123
|
+
labelPosition: string;
|
|
124
|
+
}>;
|
|
125
|
+
export default _default;
|
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { FormConfig } from './schema';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
values: {
|
|
5
|
+
type: ObjectConstructor;
|
|
6
|
+
default: () => {};
|
|
7
|
+
};
|
|
8
|
+
width: (NumberConstructor | StringConstructor)[];
|
|
9
|
+
fullscreen: BooleanConstructor;
|
|
10
|
+
title: StringConstructor;
|
|
11
|
+
config: {
|
|
12
|
+
type: PropType<FormConfig>;
|
|
13
|
+
required: true;
|
|
14
|
+
default: () => never[];
|
|
15
|
+
};
|
|
16
|
+
labelWidth: (NumberConstructor | StringConstructor)[];
|
|
17
|
+
size: PropType<"small" | "default" | "large">;
|
|
18
|
+
confirmText: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
}, {
|
|
23
|
+
form: import("vue").Ref<({
|
|
24
|
+
$: import("vue").ComponentInternalInstance;
|
|
25
|
+
$data: {};
|
|
26
|
+
$props: Partial<{
|
|
27
|
+
config: FormConfig;
|
|
28
|
+
initValues: Record<string, any>;
|
|
29
|
+
keyProp: string;
|
|
30
|
+
parentValues: Record<string, any>;
|
|
31
|
+
labelWidth: string;
|
|
32
|
+
disabled: boolean;
|
|
33
|
+
height: string;
|
|
34
|
+
stepActive: string | number;
|
|
35
|
+
inline: boolean;
|
|
36
|
+
labelPosition: string;
|
|
37
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
38
|
+
initValues: {
|
|
39
|
+
type: ObjectConstructor;
|
|
40
|
+
required: true;
|
|
41
|
+
default: () => {};
|
|
42
|
+
};
|
|
43
|
+
parentValues: {
|
|
44
|
+
type: ObjectConstructor;
|
|
45
|
+
default: () => {};
|
|
46
|
+
};
|
|
47
|
+
config: {
|
|
48
|
+
type: PropType<FormConfig>;
|
|
49
|
+
required: true;
|
|
50
|
+
default: () => never[];
|
|
51
|
+
};
|
|
52
|
+
labelWidth: {
|
|
53
|
+
type: StringConstructor;
|
|
54
|
+
default: () => string;
|
|
55
|
+
};
|
|
56
|
+
disabled: {
|
|
57
|
+
type: BooleanConstructor;
|
|
58
|
+
default: () => boolean;
|
|
59
|
+
};
|
|
60
|
+
height: {
|
|
61
|
+
type: StringConstructor;
|
|
62
|
+
default: () => string;
|
|
63
|
+
};
|
|
64
|
+
stepActive: {
|
|
65
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
66
|
+
default: () => number;
|
|
67
|
+
};
|
|
68
|
+
size: {
|
|
69
|
+
type: PropType<"small" | "default" | "large">;
|
|
70
|
+
};
|
|
71
|
+
inline: {
|
|
72
|
+
type: BooleanConstructor;
|
|
73
|
+
default: boolean;
|
|
74
|
+
};
|
|
75
|
+
labelPosition: {
|
|
76
|
+
type: StringConstructor;
|
|
77
|
+
default: string;
|
|
78
|
+
};
|
|
79
|
+
keyProp: {
|
|
80
|
+
type: StringConstructor;
|
|
81
|
+
default: string;
|
|
82
|
+
};
|
|
83
|
+
popperClass: {
|
|
84
|
+
type: StringConstructor;
|
|
85
|
+
};
|
|
86
|
+
}>> & {
|
|
87
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
88
|
+
"onField-input"?: ((...args: any[]) => any) | undefined;
|
|
89
|
+
"onField-change"?: ((...args: any[]) => any) | undefined;
|
|
90
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "config" | "initValues" | "keyProp" | "parentValues" | "labelWidth" | "disabled" | "height" | "stepActive" | "inline" | "labelPosition">;
|
|
91
|
+
$attrs: {
|
|
92
|
+
[x: string]: unknown;
|
|
93
|
+
};
|
|
94
|
+
$refs: {
|
|
95
|
+
[x: string]: unknown;
|
|
96
|
+
};
|
|
97
|
+
$slots: Readonly<{
|
|
98
|
+
[name: string]: import("vue").Slot | undefined;
|
|
99
|
+
}>;
|
|
100
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
101
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
102
|
+
$emit: (event: "change" | "field-input" | "field-change", ...args: any[]) => void;
|
|
103
|
+
$el: any;
|
|
104
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
105
|
+
initValues: {
|
|
106
|
+
type: ObjectConstructor;
|
|
107
|
+
required: true;
|
|
108
|
+
default: () => {};
|
|
109
|
+
};
|
|
110
|
+
parentValues: {
|
|
111
|
+
type: ObjectConstructor;
|
|
112
|
+
default: () => {};
|
|
113
|
+
};
|
|
114
|
+
config: {
|
|
115
|
+
type: PropType<FormConfig>;
|
|
116
|
+
required: true;
|
|
117
|
+
default: () => never[];
|
|
118
|
+
};
|
|
119
|
+
labelWidth: {
|
|
120
|
+
type: StringConstructor;
|
|
121
|
+
default: () => string;
|
|
122
|
+
};
|
|
123
|
+
disabled: {
|
|
124
|
+
type: BooleanConstructor;
|
|
125
|
+
default: () => boolean;
|
|
126
|
+
};
|
|
127
|
+
height: {
|
|
128
|
+
type: StringConstructor;
|
|
129
|
+
default: () => string;
|
|
130
|
+
};
|
|
131
|
+
stepActive: {
|
|
132
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
133
|
+
default: () => number;
|
|
134
|
+
};
|
|
135
|
+
size: {
|
|
136
|
+
type: PropType<"small" | "default" | "large">;
|
|
137
|
+
};
|
|
138
|
+
inline: {
|
|
139
|
+
type: BooleanConstructor;
|
|
140
|
+
default: boolean;
|
|
141
|
+
};
|
|
142
|
+
labelPosition: {
|
|
143
|
+
type: StringConstructor;
|
|
144
|
+
default: string;
|
|
145
|
+
};
|
|
146
|
+
keyProp: {
|
|
147
|
+
type: StringConstructor;
|
|
148
|
+
default: string;
|
|
149
|
+
};
|
|
150
|
+
popperClass: {
|
|
151
|
+
type: StringConstructor;
|
|
152
|
+
};
|
|
153
|
+
}>> & {
|
|
154
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
155
|
+
"onField-input"?: ((...args: any[]) => any) | undefined;
|
|
156
|
+
"onField-change"?: ((...args: any[]) => any) | undefined;
|
|
157
|
+
}, {
|
|
158
|
+
initialized: import("vue").Ref<boolean>;
|
|
159
|
+
values: import("vue").Ref<import("./schema").FormValue>;
|
|
160
|
+
elForm: import("vue").Ref<any>;
|
|
161
|
+
formState: import("./schema").FormState;
|
|
162
|
+
changeHandler: () => void;
|
|
163
|
+
resetForm: () => any;
|
|
164
|
+
submitForm: (native?: boolean | undefined) => Promise<any>;
|
|
165
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "field-input" | "field-change")[], string, {
|
|
166
|
+
config: FormConfig;
|
|
167
|
+
initValues: Record<string, any>;
|
|
168
|
+
keyProp: string;
|
|
169
|
+
parentValues: Record<string, any>;
|
|
170
|
+
labelWidth: string;
|
|
171
|
+
disabled: boolean;
|
|
172
|
+
height: string;
|
|
173
|
+
stepActive: string | number;
|
|
174
|
+
inline: boolean;
|
|
175
|
+
labelPosition: string;
|
|
176
|
+
}> & {
|
|
177
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
178
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
179
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
180
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
181
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
182
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
183
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
184
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
185
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
186
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
187
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
188
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
189
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
190
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
191
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
|
|
192
|
+
};
|
|
193
|
+
$forceUpdate: () => void;
|
|
194
|
+
$nextTick: typeof import("vue").nextTick;
|
|
195
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
196
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
|
197
|
+
initValues: {
|
|
198
|
+
type: ObjectConstructor;
|
|
199
|
+
required: true;
|
|
200
|
+
default: () => {};
|
|
201
|
+
};
|
|
202
|
+
parentValues: {
|
|
203
|
+
type: ObjectConstructor;
|
|
204
|
+
default: () => {};
|
|
205
|
+
};
|
|
206
|
+
config: {
|
|
207
|
+
type: PropType<FormConfig>;
|
|
208
|
+
required: true;
|
|
209
|
+
default: () => never[];
|
|
210
|
+
};
|
|
211
|
+
labelWidth: {
|
|
212
|
+
type: StringConstructor;
|
|
213
|
+
default: () => string;
|
|
214
|
+
};
|
|
215
|
+
disabled: {
|
|
216
|
+
type: BooleanConstructor;
|
|
217
|
+
default: () => boolean;
|
|
218
|
+
};
|
|
219
|
+
height: {
|
|
220
|
+
type: StringConstructor;
|
|
221
|
+
default: () => string;
|
|
222
|
+
};
|
|
223
|
+
stepActive: {
|
|
224
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
225
|
+
default: () => number;
|
|
226
|
+
};
|
|
227
|
+
size: {
|
|
228
|
+
type: PropType<"small" | "default" | "large">;
|
|
229
|
+
};
|
|
230
|
+
inline: {
|
|
231
|
+
type: BooleanConstructor;
|
|
232
|
+
default: boolean;
|
|
233
|
+
};
|
|
234
|
+
labelPosition: {
|
|
235
|
+
type: StringConstructor;
|
|
236
|
+
default: string;
|
|
237
|
+
};
|
|
238
|
+
keyProp: {
|
|
239
|
+
type: StringConstructor;
|
|
240
|
+
default: string;
|
|
241
|
+
};
|
|
242
|
+
popperClass: {
|
|
243
|
+
type: StringConstructor;
|
|
244
|
+
};
|
|
245
|
+
}>> & {
|
|
246
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
247
|
+
"onField-input"?: ((...args: any[]) => any) | undefined;
|
|
248
|
+
"onField-change"?: ((...args: any[]) => any) | undefined;
|
|
249
|
+
} & import("vue").ShallowUnwrapRef<{
|
|
250
|
+
initialized: import("vue").Ref<boolean>;
|
|
251
|
+
values: import("vue").Ref<import("./schema").FormValue>;
|
|
252
|
+
elForm: import("vue").Ref<any>;
|
|
253
|
+
formState: import("./schema").FormState;
|
|
254
|
+
changeHandler: () => void;
|
|
255
|
+
resetForm: () => any;
|
|
256
|
+
submitForm: (native?: boolean | undefined) => Promise<any>;
|
|
257
|
+
}> & {} & import("vue").ComponentCustomProperties) | undefined>;
|
|
258
|
+
saveFetch: import("vue").Ref<boolean>;
|
|
259
|
+
stepActive: import("vue").Ref<number>;
|
|
260
|
+
dialogVisible: import("vue").Ref<boolean>;
|
|
261
|
+
bodyHeight: import("vue").Ref<string>;
|
|
262
|
+
stepCount: import("vue").ComputedRef<number>;
|
|
263
|
+
hasStep: import("vue").ComputedRef<boolean>;
|
|
264
|
+
cancel: () => void;
|
|
265
|
+
closeHandler: () => void;
|
|
266
|
+
save: () => Promise<void>;
|
|
267
|
+
preStep: () => void;
|
|
268
|
+
nextStep: () => void;
|
|
269
|
+
changeHandler: (value: any) => void;
|
|
270
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "close" | "submit" | "error")[], "change" | "close" | "submit" | "error", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
271
|
+
values: {
|
|
272
|
+
type: ObjectConstructor;
|
|
273
|
+
default: () => {};
|
|
274
|
+
};
|
|
275
|
+
width: (NumberConstructor | StringConstructor)[];
|
|
276
|
+
fullscreen: BooleanConstructor;
|
|
277
|
+
title: StringConstructor;
|
|
278
|
+
config: {
|
|
279
|
+
type: PropType<FormConfig>;
|
|
280
|
+
required: true;
|
|
281
|
+
default: () => never[];
|
|
282
|
+
};
|
|
283
|
+
labelWidth: (NumberConstructor | StringConstructor)[];
|
|
284
|
+
size: PropType<"small" | "default" | "large">;
|
|
285
|
+
confirmText: {
|
|
286
|
+
type: StringConstructor;
|
|
287
|
+
default: string;
|
|
288
|
+
};
|
|
289
|
+
}>> & {
|
|
290
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
291
|
+
onSubmit?: ((...args: any[]) => any) | undefined;
|
|
292
|
+
onError?: ((...args: any[]) => any) | undefined;
|
|
293
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
294
|
+
}, {
|
|
295
|
+
config: FormConfig;
|
|
296
|
+
values: Record<string, any>;
|
|
297
|
+
fullscreen: boolean;
|
|
298
|
+
confirmText: string;
|
|
299
|
+
}>;
|
|
300
|
+
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
2
|
import { ChildConfig, FormState } from '../schema';
|
|
3
|
-
declare const _default: DefineComponent<{
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
labelWidth: StringConstructor;
|
|
5
5
|
expandMore: BooleanConstructor;
|
|
6
6
|
span: NumberConstructor;
|
|
@@ -16,9 +16,9 @@ declare const _default: DefineComponent<{
|
|
|
16
16
|
size: StringConstructor;
|
|
17
17
|
}, {
|
|
18
18
|
mForm: FormState | undefined;
|
|
19
|
-
display: ComputedRef<any>;
|
|
19
|
+
display: import("vue").ComputedRef<any>;
|
|
20
20
|
changeHandler: () => void;
|
|
21
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "change"[], "change", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
21
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
22
|
labelWidth: StringConstructor;
|
|
23
23
|
expandMore: BooleanConstructor;
|
|
24
24
|
span: NumberConstructor;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { ChildConfig, FormValue } from '../schema';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
labelWidth: StringConstructor;
|
|
5
|
+
expandMore: BooleanConstructor;
|
|
6
|
+
model: {
|
|
7
|
+
type: PropType<FormValue>;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
config: {
|
|
11
|
+
type: PropType<ChildConfig>;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
prop: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: () => string;
|
|
17
|
+
};
|
|
18
|
+
stepActive: {
|
|
19
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
20
|
+
};
|
|
21
|
+
size: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
}, {
|
|
26
|
+
expand: import("vue").Ref<boolean>;
|
|
27
|
+
name: import("vue").ComputedRef<string | number>;
|
|
28
|
+
type: import("vue").ComputedRef<string>;
|
|
29
|
+
disabled: import("vue").ComputedRef<any>;
|
|
30
|
+
itemProp: import("vue").ComputedRef<string>;
|
|
31
|
+
items: import("vue").ComputedRef<import("../schema").FormConfig>;
|
|
32
|
+
display: import("vue").ComputedRef<boolean>;
|
|
33
|
+
itemLabelWidth: import("vue").ComputedRef<string | undefined>;
|
|
34
|
+
tagName: import("vue").ComputedRef<import("vue").ConcreteComponent<{}, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | "m-fields-text">;
|
|
35
|
+
rule: import("vue").ComputedRef<import("../schema").Rule[]>;
|
|
36
|
+
tooltip: import("vue").ComputedRef<any>;
|
|
37
|
+
extra: import("vue").ComputedRef<any>;
|
|
38
|
+
key: (config: any) => any;
|
|
39
|
+
onChangeHandler: (v: FormValue, key?: string) => Promise<void>;
|
|
40
|
+
expandHandler: () => boolean;
|
|
41
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
42
|
+
labelWidth: StringConstructor;
|
|
43
|
+
expandMore: BooleanConstructor;
|
|
44
|
+
model: {
|
|
45
|
+
type: PropType<FormValue>;
|
|
46
|
+
required: true;
|
|
47
|
+
};
|
|
48
|
+
config: {
|
|
49
|
+
type: PropType<ChildConfig>;
|
|
50
|
+
required: true;
|
|
51
|
+
};
|
|
52
|
+
prop: {
|
|
53
|
+
type: StringConstructor;
|
|
54
|
+
default: () => string;
|
|
55
|
+
};
|
|
56
|
+
stepActive: {
|
|
57
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
58
|
+
};
|
|
59
|
+
size: {
|
|
60
|
+
type: StringConstructor;
|
|
61
|
+
default: string;
|
|
62
|
+
};
|
|
63
|
+
}>> & {
|
|
64
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
65
|
+
}, {
|
|
66
|
+
size: string;
|
|
67
|
+
prop: string;
|
|
68
|
+
expandMore: boolean;
|
|
69
|
+
}>;
|
|
70
|
+
export default _default;
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { FieldsetConfig } from '../schema';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
new (...args: any[]): {
|
|
4
|
+
$: import("vue").ComponentInternalInstance;
|
|
5
|
+
$data: {};
|
|
6
|
+
$props: Partial<{
|
|
7
|
+
rules: any;
|
|
8
|
+
prop: string;
|
|
9
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
10
|
+
labelWidth?: string | undefined;
|
|
11
|
+
prop: string;
|
|
12
|
+
size?: string | undefined;
|
|
13
|
+
model: Record<string, any>;
|
|
14
|
+
config: FieldsetConfig;
|
|
15
|
+
rules?: any;
|
|
16
|
+
}>, {
|
|
17
|
+
rules: {};
|
|
18
|
+
prop: string;
|
|
19
|
+
}>>> & {
|
|
20
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
21
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "rules" | "prop">;
|
|
22
|
+
$attrs: {
|
|
23
|
+
[x: string]: unknown;
|
|
24
|
+
};
|
|
25
|
+
$refs: {
|
|
26
|
+
[x: string]: unknown;
|
|
27
|
+
};
|
|
28
|
+
$slots: Readonly<{
|
|
29
|
+
[name: string]: import("vue").Slot | undefined;
|
|
30
|
+
}>;
|
|
31
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
32
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
33
|
+
$emit: (event: "change", ...args: any[]) => void;
|
|
34
|
+
$el: any;
|
|
35
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
36
|
+
labelWidth?: string | undefined;
|
|
37
|
+
prop: string;
|
|
38
|
+
size?: string | undefined;
|
|
39
|
+
model: Record<string, any>;
|
|
40
|
+
config: FieldsetConfig;
|
|
41
|
+
rules?: any;
|
|
42
|
+
}>, {
|
|
43
|
+
rules: {};
|
|
44
|
+
prop: string;
|
|
45
|
+
}>>> & {
|
|
46
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
47
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], string, {
|
|
48
|
+
rules: any;
|
|
49
|
+
prop: string;
|
|
50
|
+
}> & {
|
|
51
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
52
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
53
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
54
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
55
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
56
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
57
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
58
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
59
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
60
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
61
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
62
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
63
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
64
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
65
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
|
|
66
|
+
};
|
|
67
|
+
$forceUpdate: () => void;
|
|
68
|
+
$nextTick: typeof import("vue").nextTick;
|
|
69
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
70
|
+
} & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
71
|
+
labelWidth?: string | undefined;
|
|
72
|
+
prop: string;
|
|
73
|
+
size?: string | undefined;
|
|
74
|
+
model: Record<string, any>;
|
|
75
|
+
config: FieldsetConfig;
|
|
76
|
+
rules?: any;
|
|
77
|
+
}>, {
|
|
78
|
+
rules: {};
|
|
79
|
+
prop: string;
|
|
80
|
+
}>>> & {
|
|
81
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
82
|
+
} & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
|
|
83
|
+
__isFragment?: undefined;
|
|
84
|
+
__isTeleport?: undefined;
|
|
85
|
+
__isSuspense?: undefined;
|
|
86
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
87
|
+
labelWidth?: string | undefined;
|
|
88
|
+
prop: string;
|
|
89
|
+
size?: string | undefined;
|
|
90
|
+
model: Record<string, any>;
|
|
91
|
+
config: FieldsetConfig;
|
|
92
|
+
rules?: any;
|
|
93
|
+
}>, {
|
|
94
|
+
rules: {};
|
|
95
|
+
prop: string;
|
|
96
|
+
}>>> & {
|
|
97
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
98
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", {
|
|
99
|
+
rules: any;
|
|
100
|
+
prop: string;
|
|
101
|
+
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
102
|
+
$slots: {};
|
|
103
|
+
});
|
|
104
|
+
export default _default;
|
|
105
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
106
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
107
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
108
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
109
|
+
} : {
|
|
110
|
+
type: import('vue').PropType<T[K]>;
|
|
111
|
+
required: true;
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
115
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
116
|
+
default: D[K];
|
|
117
|
+
} : P[K];
|
|
118
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
2
|
import { GroupListConfig } from '../schema';
|
|
3
|
-
declare const _default: DefineComponent<{
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
labelWidth: StringConstructor;
|
|
5
5
|
model: {
|
|
6
6
|
type: ObjectConstructor;
|
|
@@ -20,13 +20,13 @@ declare const _default: DefineComponent<{
|
|
|
20
20
|
default: string;
|
|
21
21
|
};
|
|
22
22
|
}, {
|
|
23
|
-
addable: ComputedRef<boolean | "undefined">;
|
|
23
|
+
addable: import("vue").ComputedRef<boolean | "undefined">;
|
|
24
24
|
toggleMode: () => void;
|
|
25
25
|
removeHandler: (index: number) => false | undefined;
|
|
26
26
|
swapHandler: (idx1: number, idx2: number) => false | undefined;
|
|
27
27
|
changeHandler: () => false | undefined;
|
|
28
28
|
addHandler: () => Promise<false | undefined>;
|
|
29
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "change"[], "change", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
29
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
30
30
|
labelWidth: StringConstructor;
|
|
31
31
|
model: {
|
|
32
32
|
type: ObjectConstructor;
|
|
@@ -48,9 +48,9 @@ declare const _default: DefineComponent<{
|
|
|
48
48
|
}>> & {
|
|
49
49
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
50
50
|
}, {
|
|
51
|
-
name: string;
|
|
52
51
|
config: GroupListConfig;
|
|
53
|
-
|
|
52
|
+
name: string;
|
|
54
53
|
prop: string;
|
|
54
|
+
model: Record<string, any>;
|
|
55
55
|
}>;
|
|
56
56
|
export default _default;
|