We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e8bbcc commit 4471520Copy full SHA for 4471520
components/form/context.ts
@@ -37,6 +37,7 @@ export const useProvideForm = (state: FormContextProps) => {
37
38
export const useInjectForm = () => {
39
return inject(FormContextKey, {
40
+ name: computed(() => undefined),
41
labelAlign: computed(() => 'right' as FormLabelAlign),
42
vertical: computed(() => false),
43
// eslint-disable-next-line @typescript-eslint/no-unused-vars
@@ -45,10 +46,14 @@ export const useInjectForm = () => {
45
46
removeField: (_eventKey: string) => {},
47
model: computed(() => undefined),
48
rules: computed(() => undefined),
49
+ colon: computed(() => undefined),
50
+ labelWrap: computed(() => undefined),
51
+ labelCol: computed(() => undefined),
52
requiredMark: computed(() => false),
53
+ validateTrigger: computed(() => undefined),
54
onValidate: () => {},
55
validateMessages: computed(() => defaultValidateMessages),
- });
56
+ } as FormContextProps);
57
};
58
59
/** Used for ErrorList only */
0 commit comments