docs: remove useless code in demo

This commit is contained in:
Benjy Cui 2016-04-20 10:31:16 +08:00
parent 8f7c8fb9c0
commit 0d7e92c056

View File

@ -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();