| | |
| | | } |
| | | } else if (value) { |
| | | let option = null |
| | | if (config.setAll === 'true') { |
| | | option= config.oriOptions[1] |
| | | } else { |
| | | option= config.oriOptions[0] |
| | | } |
| | | option= config.oriOptions[0] |
| | | if (typeof(value) === 'string' && option && typeof(option.value) === 'number') { |
| | | value = +value |
| | | if (isNaN(value)) { |
| | |
| | | }) |
| | | } else { |
| | | let option = null |
| | | if (config.setAll === 'true') { |
| | | option= nextProps.config.oriOptions[1] |
| | | } else { |
| | | option= nextProps.config.oriOptions[0] |
| | | } |
| | | option= nextProps.config.oriOptions[0] |
| | | if (option && typeof(option.value) === 'number') { |
| | | let val = +value |
| | | if (!isNaN(val)) { |