Skip to content

[t-form]组件:表单的校验trigger的值不应该是单个字符串 #6391

@kosHuuuuuuuuu

Description

@kosHuuuuuuuuu

我希望表单的校验支持trigger: ['change', 'blur']的写法,但是翻看了源码之后,按类型定义, trigger 只能传一个。
export interface FormValidateParams {
fields?: Array;
showErrorMessage?: boolean;
trigger?: ValidateTriggerType;
}
export type ValidateTriggerType = 'blur' | 'change' | 'submit' | 'all';

Metadata

Metadata

Assignees

No one assigned

    Labels

    usagethe issue about component usage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions