| | |
| | | import './index.scss' |
| | | |
| | | const btnIcons = [{ |
| | | MenuID: '', |
| | | text: 'unset' |
| | | }, { |
| | | MenuID: 'plus', |
| | | text: 'plus' |
| | | }, { |
| | |
| | | _options = ['label', 'Ot', 'OpenType', 'pageTemplate', 'icon', 'class'] |
| | | } else { |
| | | if (this.state.interType === 'outer') { |
| | | _options = ['label', 'OpenType', 'intertype', 'interface', 'func', 'callbackFunc', 'Ot', 'icon', 'class'] |
| | | _options = ['label', 'OpenType', 'intertype', 'innerFunc', 'interface', 'outerFunc', 'callbackFunc', 'Ot', 'icon', 'class'] |
| | | } else { |
| | | _options = ['label', 'OpenType', 'intertype', 'func', 'Ot', 'icon', 'class'] |
| | | _options = ['label', 'OpenType', 'intertype', 'innerFunc', 'Ot', 'icon', 'class'] |
| | | } |
| | | } |
| | | this.setState({ |
| | |
| | | if (key === 'intertype') { |
| | | let _options = null |
| | | if (value === 'outer') { |
| | | _options = ['label', 'OpenType', 'intertype', 'interface', 'func', 'callbackFunc', 'Ot', 'icon', 'class'] |
| | | _options = ['label', 'OpenType', 'intertype', 'innerFunc', 'interface', 'outerFunc', 'callbackFunc', 'Ot', 'icon', 'class'] |
| | | } else { |
| | | _options = ['label', 'OpenType', 'intertype', 'func', 'Ot', 'icon', 'class'] |
| | | _options = ['label', 'OpenType', 'intertype', 'innerFunc', 'Ot', 'icon', 'class'] |
| | | } |
| | | this.setState({ |
| | | interType: value, |
| | |
| | | getFields() { |
| | | const { getFieldDecorator } = this.props.form |
| | | const fields = [] |
| | | console.log(this.state.formlist) |
| | | this.state.formlist.forEach((item, index) => { |
| | | if (item.hidden) return |
| | | |
| | |
| | | > |
| | | {item.options.map(option => |
| | | <Select.Option id={option.MenuID} title={option.text} key={option.MenuID} value={option.MenuID}> |
| | | {item.key === 'icon' && <Icon type={option.MenuID} />} {option.text} |
| | | {item.key === 'icon' && option.MenuID && <Icon type={option.MenuID} />} {option.text} |
| | | </Select.Option> |
| | | )} |
| | | </Select> |
| | |
| | | _options = ['label', 'Ot', 'OpenType', 'pageTemplate', 'icon', 'class'] |
| | | } else { |
| | | if (_intertype === 'outer') { |
| | | _options = ['label', 'OpenType', 'intertype', 'interface', 'func', 'callbackFunc', 'Ot', 'icon', 'class'] |
| | | _options = ['label', 'OpenType', 'intertype', 'innerFunc', 'interface', 'outerFunc', 'callbackFunc', 'Ot', 'icon', 'class'] |
| | | } else { |
| | | _options = ['label', 'OpenType', 'intertype', 'func', 'Ot', 'icon', 'class'] |
| | | _options = ['label', 'OpenType', 'intertype', 'innerFunc', 'Ot', 'icon', 'class'] |
| | | } |
| | | } |
| | | this.setState({ |