chore: migrate to useCustomFieldValue (#9201)

This commit is contained in:
neverland
2021-08-07 16:22:02 +08:00
committed by GitHub
parent 6de05f45d2
commit 1bfcbab2fa
36 changed files with 113 additions and 103 deletions
+1 -7
View File
@@ -1,4 +1,4 @@
import type { ComponentPublicInstance, ComputedRef, Ref } from 'vue';
import type { ComputedRef, ComponentPublicInstance } from 'vue';
import type { FieldProps } from './Field';
export type FieldType =
@@ -40,12 +40,6 @@ export type FieldRule = {
formatter?: (value: any, rule: FieldRule) => string;
};
export type FieldProvide = {
childFieldValue: Ref<(() => unknown) | undefined>;
resetValidation: () => void;
validateWithTrigger: (trigger: FieldValidateTrigger) => void;
};
// Shared props of Field and Form
export type FieldFormSharedProps =
| 'colon'