Commit abdeb4cd authored by damon.chen's avatar damon.chen Committed by 偏右

修改getFormItemOptions方法中customprops的错误

this.customprops并不存在,而是通过props传入到组件里的,所以应该是用this.props.customprops获取,而不应该是this.customprops
parent de86a30c
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment