| | |
| | | import './index.scss' |
| | | |
| | | const MKTable = asyncComponent(() => import('@/components/normalform/modalform/mkTable')) |
| | | const StyleInput = asyncComponent(() => import('@/components/normalform/modalform/styleInput')) |
| | | |
| | | class SettingForm extends Component { |
| | | static propTpyes = { |
| | |
| | | content = (<Input placeholder="" autoComplete="off" onPressEnter={this.handleSubmit}/>) |
| | | } else if (item.type === 'number') { |
| | | content = (<InputNumber min={item.min} max={item.max} precision={item.decimal} onPressEnter={this.handleSubmit}/>) |
| | | } else if (item.type === 'styleInput') { |
| | | content = (<StyleInput config={item}/>) |
| | | } else if (item.type === 'select') { |
| | | content = (<Select mode={item.multi ? 'multiple' : ''}> |
| | | {item.options.map((option, index) => |