diff --git a/src/components/Login/LoginItem.js b/src/components/Login/LoginItem.js index 1732315f9359d039a13a5d545f90b0c240834706..2c6eae69e0fc7d1d969bf8241f077ca3783d6b8d 100644 --- a/src/components/Login/LoginItem.js +++ b/src/components/Login/LoginItem.js @@ -43,9 +43,9 @@ class WarpFormItem extends Component { } }; - getFormItemOptions = ({ onChange, defaultValue, rules }) => { + getFormItemOptions = ({ onChange, defaultValue, customprops, rules }) => { const options = { - rules: rules || this.customprops.rules, + rules: rules || customprops.rules, }; if (onChange) { options.onChange = onChange;