| | |
| | | key: 'qrWidth', |
| | | min: 5, |
| | | max: 1000, |
| | | label: '宽度', |
| | | label: '二维码尺寸', |
| | | initVal: card.qrWidth || 50, |
| | | required: true, |
| | | }, |
| | |
| | | key: 'noValue', |
| | | label: '空值', |
| | | initVal: card.noValue || 'show', |
| | | tooltip: '当元素内容为空时,是否显示当前元素。', |
| | | required: false, |
| | | options: [ |
| | | { value: 'show', text: '显示' }, |
| | |
| | | this.updateComponent({...this.state.card, wrap: res}) |
| | | } |
| | | |
| | | skip = () => { |
| | | const { wrap } = this.state.card |
| | | |
| | | if (!wrap.linkmenu) return |
| | | |
| | | MKEmitter.emit('changeEditMenu', { |
| | | MenuID: wrap.linkmenu, |
| | | copyMenuId: '', |
| | | MenuNo: '', |
| | | MenuName: '', |
| | | }) |
| | | } |
| | | |
| | | render() { |
| | | const { card } = this.state |
| | | |
| | |
| | | right = <Icon type="logout" /> |
| | | } |
| | | if (card.wrap.scan === 'true') { |
| | | right = !right ? <ExpandOutlined /> : <Icon type="ellipsis" /> |
| | | right = !right ? <ExpandOutlined onDoubleClick={this.skip}/> : <Icon type="ellipsis" /> |
| | | } |
| | | if (card.wrap.refresh === 'true') { |
| | | right = !right ? <ReloadOutlined /> : <Icon type="ellipsis" /> |
| | | right = !right ? <ReloadOutlined /> : <Icon type="ellipsis" onDoubleClick={this.skip}/> |
| | | } |
| | | |
| | | return ( |
| | |
| | | cursor: pointer; |
| | | } |
| | | >.anticon:not(.anticon-search) { |
| | | margin: 0px 5px; |
| | | padding: 0px 5px; |
| | | } |
| | | } |
| | | } |
| | |
| | | import dashboard from '@/assets/mobimg/dashboard.png' |
| | | import ratioboard from '@/assets/mobimg/ratioboard.png' |
| | | import scatter from '@/assets/mobimg/scatter.png' |
| | | import chart from '@/assets/mobimg/chart.png' |
| | | import tree from '@/assets/mobimg/tree.png' |
| | | |
| | | // 组件配置信息 |
| | |
| | | { type: 'menu', url: dashboard, component: 'dashboard', subtype: 'dashboard', title: '仪表盘', width: 12 }, |
| | | { type: 'menu', url: ratioboard, component: 'dashboard', subtype: 'ratioboard', title: '占比图', width: 12 }, |
| | | { type: 'menu', url: scatter, component: 'scatter', subtype: 'scatter', title: '散点图', width: 24 }, |
| | | { type: 'menu', url: chart, component: 'chart', subtype: 'custom', title: '自定义图表', width: 24 }, |
| | | { type: 'menu', url: Editor, component: 'editor', subtype: 'brafteditor', title: '富文本', width: 24 }, |
| | | { type: 'menu', url: SandBox, component: 'code', subtype: 'sandbox', title: '自定义', width: 24 }, |
| | | { type: 'menu', url: group, component: 'group', subtype: 'normalgroup', title: '分组', width: 24 }, |
| | |
| | | )} |
| | | </Form.Item> |
| | | </Col> : null} |
| | | {display === 'drawer' ? <Col span={12}> |
| | | {display === 'drawer' && appType !== 'mob' ? <Col span={12}> |
| | | <Form.Item label="表单类型"> |
| | | {getFieldDecorator('formType', { |
| | | initialValue: config.setting.formType || 'edit' |