| | |
| | | |
| | | state = { |
| | | roleList: [], |
| | | appType: sessionStorage.getItem('appType'), |
| | | MenuType: '' |
| | | } |
| | | |
| | |
| | | render() { |
| | | const { wrap, config } = this.props |
| | | const { getFieldDecorator } = this.props.form |
| | | const { roleList, MenuType } = this.state |
| | | const { roleList, MenuType, appType } = this.state |
| | | |
| | | const formItemLayout = { |
| | | labelCol: { |
| | |
| | | )} |
| | | </Form.Item> |
| | | </Col> : null} |
| | | {config.subtype === 'datacard' ? <Col span={12}> |
| | | {config.subtype === 'datacard' || (config.subtype === 'tablecard' && appType === 'mob') ? <Col span={12}> |
| | | <Form.Item label={ |
| | | <Tooltip placement="topLeft" title="数据源中选择分页时有效。"> |
| | | <Icon type="question-circle" /> |
| | |
| | | })( |
| | | <Radio.Group> |
| | | <Radio value="page">页码</Radio> |
| | | <Radio value="switch">左右切换</Radio> |
| | | {appType !== 'mob' ? <Radio value="switch">左右切换</Radio> : null} |
| | | {appType === 'mob' ? <Radio value="slide">滑动加载</Radio> : null} |
| | | </Radio.Group> |
| | | )} |
| | | </Form.Item> |