From 0d7e92c0560e98ace159995a6068033eb2640f4c Mon Sep 17 00:00:00 2001 From: Benjy Cui Date: Wed, 20 Apr 2016 10:31:16 +0800 Subject: [PATCH] docs: remove useless code in demo --- components/form/demo/validate-basic.md | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/components/form/demo/validate-basic.md b/components/form/demo/validate-basic.md index cbef4d336e..f5daefa2b3 100644 --- a/components/form/demo/validate-basic.md +++ b/components/form/demo/validate-basic.md @@ -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();