| | |
| | | }) |
| | | } |
| | | |
| | | // handleInputNumber = (rule, value, callback, item) => { |
| | | // if (item.required === 'true' && (!value && value !== 0)) { |
| | | // callback(this.props.dict['form.required.input'] + item.label + '!') |
| | | // } else if ((item.min || item.min === 0) && (value || value === 0) && value < item.min) { |
| | | // callback(item.label + '最小值为' + item.min + '!') |
| | | // } else if ((item.max || item.max === 0) && (value || value === 0) && value > item.max) { |
| | | // callback(item.label + '最大值为' + item.max + '!') |
| | | // } |
| | | // } |
| | | |
| | | getFields() { |
| | | const { getFieldDecorator } = this.props.form |
| | | |