@@ -32,12 +32,11 @@ import useConfigInject from '../_util/hooks/useConfigInject';
3232import { useInjectForm } from './context' ;
3333import FormItemLabel from './FormItemLabel' ;
3434import FormItemInput from './FormItemInput' ;
35- import type { ValidationRule } from './Form' ;
3635import { useProvideFormItemContext } from './FormItemContext' ;
3736import useDebounce from './utils/useDebounce' ;
3837
3938const ValidateStatuses = tuple ( 'success' , 'warning' , 'error' , 'validating' , '' ) ;
40- export type ValidateStatus = typeof ValidateStatuses [ number ] ;
39+ export type ValidateStatus = ( typeof ValidateStatuses ) [ number ] ;
4140
4241export interface FieldExpose {
4342 fieldValue : Ref < any > ;
@@ -46,7 +45,7 @@ export interface FieldExpose {
4645 resetField : ( ) => void ;
4746 clearValidate : ( ) => void ;
4847 namePath : ComputedRef < InternalNamePath > ;
49- rules ?: ComputedRef < ValidationRule [ ] > ;
48+ rules ?: ComputedRef < Rule [ ] > ;
5049 validateRules : ( options : ValidateOptions ) => Promise < void > | Promise < RuleError [ ] > ;
5150}
5251
@@ -169,7 +168,7 @@ export default defineComponent({
169168 validateTrigger = validateTrigger === undefined ? 'change' : validateTrigger ;
170169 return toArray ( validateTrigger ) ;
171170 } ) ;
172- const rulesRef = computed < ValidationRule [ ] > ( ( ) => {
171+ const rulesRef = computed < Rule [ ] > ( ( ) => {
173172 let formRules = formContext . rules . value ;
174173 const selfRules = props . rules ;
175174 const requiredRule =
0 commit comments