Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我注意到自定义表单组件has-success会自动使用该属性呈现。为什么是这样?有没有办法来解决这个问题?
has-success
默认情况下,不显示错误,当用户提交表单时,会进行验证。但是,如果您希望has-error所有字段中的类都包含无效数据,只需调用将运行验证并根据规则将 css 类添加到字段的方法this.props.form.validateFields()。componentDidMount
has-error
this.props.form.validateFields()
componentDidMount