mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-03 04:30:06 +08:00
docs: remove useless code in demo
This commit is contained in:
parent
8f7c8fb9c0
commit
0d7e92c056
@ -15,18 +15,6 @@ function noop() {
|
||||
}
|
||||
|
||||
let BasicDemo = React.createClass({
|
||||
getValidateStatus(field) {
|
||||
const { isFieldValidating, getFieldError, getFieldValue } = this.props.form;
|
||||
|
||||
if (isFieldValidating(field)) {
|
||||
return 'validating';
|
||||
} else if (!!getFieldError(field)) {
|
||||
return 'error';
|
||||
} else if (getFieldValue(field)) {
|
||||
return 'success';
|
||||
}
|
||||
},
|
||||
|
||||
handleReset(e) {
|
||||
e.preventDefault();
|
||||
this.props.form.resetFields();
|
||||
|
Loading…
Reference in New Issue
Block a user