| | |
| | | {value: 'switch', label: '左右切换', forbid: appType === 'mob'}, |
| | | {value: 'slide', label: '滑动加载', forbid: appType !== 'mob'}, |
| | | ], |
| | | controlFields: [ |
| | | {field: 'slidetip', values: ['slide']}, |
| | | ], |
| | | forbid: !(subtype === 'datacard' || (subtype === 'tablecard' && appType === 'mob')) |
| | | }, |
| | | { |
| | |
| | | forbid: !!appType |
| | | }, |
| | | { |
| | | type: 'text', |
| | | field: 'slidetip', |
| | | label: '底部提示', |
| | | initval: wrap.slidetip || wrap.slidetip === '' ? wrap.slidetip : '没有更多了', |
| | | tooltip: '滑动加载至底部时的提示信息。', |
| | | required: false, |
| | | forbid: appType !== 'mob' |
| | | }, |
| | | { |
| | | type: 'table', |
| | | field: 'supNodes', |
| | | label: '上级组件', |
| | |
| | | |
| | | reRequired.linkmenu = false |
| | | reTooltip.linkmenu = '使用扫码登录功能或菜单跳转功能时,需选择跳转的菜单。' |
| | | } else if (_funcType === 'copyurl') { |
| | | shows.push('linkmenu') |
| | | |
| | | reRequired.linkmenu = false |
| | | reTooltip.linkmenu = '可以指定分享的目标地址。' |
| | | |
| | | if (this.record.linkmenu) { |
| | | shows.push('Ot') |
| | | reOptions.Ot = requireOptions.filter(op => ['notRequired', 'requiredSgl'].includes(op.value)) |
| | | } |
| | | } else if (_funcType === 'goBack') { |
| | | shows.push('reload') |
| | | } else if (_funcType === 'megvii') { |
| | | shows.push('subFunc', 'progress') |
| | | } else if (_funcType === 'pay') { |
| | | shows.push('payType') |
| | | shows.push('payType', 'Ot') |
| | | reOptions.Ot = requireOptions.filter(op => ['requiredSgl'].includes(op.value)) |
| | | } |
| | | } |
| | | |
| | |
| | | if (item.extendName) { |
| | | content = <Select |
| | | showSearch |
| | | allowClear={item.allowClear === true} |
| | | allowClear={item.allowClear === true || !item.required} |
| | | filterOption={(input, option) => option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0 || |
| | | option.props.extend.toLowerCase().indexOf(input.toLowerCase()) >= 0} |
| | | onChange={(value) => {this.optionChange(item.key, value)}} |
| | |
| | | } else { |
| | | content = <Select |
| | | showSearch |
| | | allowClear={item.allowClear === true} |
| | | allowClear={item.allowClear === true || !item.required} |
| | | filterOption={(input, option) => option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0} |
| | | onChange={(value) => {this.optionChange(item.key, value)}} |
| | | getPopupContainer={() => document.getElementById('winter')} |
| | |
| | | </Form.Item> |
| | | </Col> : null} |
| | | {exts.includes('share') ? <Col span={12}> |
| | | <Form.Item label="分享链接"> |
| | | <Form.Item label={ |
| | | <Tooltip placement="topLeft" title="分享的链接为用户浏览的页面地址或当前应用的入口地址。注:可在页面中自定义设置。"> |
| | | <QuestionCircleOutlined className="mk-form-tip" /> |
| | | 分享链接 |
| | | </Tooltip> |
| | | }> |
| | | {getFieldDecorator('share_link', { |
| | | initialValue: card ? card.share_link || 'main' : 'main' |
| | | })( |
| | |
| | | </Form.Item> |
| | | </Col> : null} |
| | | {adapters.includes('weixin') || adapters.includes('wxmini') ? <Col span={24}> |
| | | <Form.Item label="分享"> |
| | | <Form.Item label={ |
| | | <Tooltip placement="topLeft" title="使用默认时请在子应用设置分享信息,使用url参数会使用上页参数替换相应字段(@field@)。注:使用自定义或url参数时会分享当前页面。"> |
| | | <QuestionCircleOutlined className="mk-form-tip" /> |
| | | 分享 |
| | | </Tooltip> |
| | | }> |
| | | {getFieldDecorator('share', { |
| | | initialValue: config.share || 'default' |
| | | })( |
| | | <Radio.Group onChange={(e) => {this.selectChange('share', e.target.value)}}> |
| | | <Radio.Group className="mini-radio" onChange={(e) => {this.selectChange('share', e.target.value)}}> |
| | | <Radio value="default">默认</Radio> |
| | | <Radio value="custom">自定义</Radio> |
| | | <Radio value="url">url参数</Radio> |
| | | </Radio.Group> |
| | | )} |
| | | </Form.Item> |
| | | </Col> : null} |
| | | {config.share === 'custom' && (adapters.includes('weixin') || adapters.includes('wxmini')) ? <Col span={24}> |
| | | {['custom', 'url'].includes(config.share) && (adapters.includes('weixin') || adapters.includes('wxmini')) ? <Col span={24}> |
| | | <Form.Item label="分享标题"> |
| | | {getFieldDecorator('share_title', { |
| | | initialValue: config.share_title || '', |
| | |
| | | })(<Input placeholder="" autoComplete="off" onChange={(e) => {this.selectChange('share_title', e.target.value)}}/>)} |
| | | </Form.Item> |
| | | </Col> : null} |
| | | {config.share === 'custom' && (adapters.includes('weixin') || adapters.includes('wxmini')) ? <Col span={24}> |
| | | {['custom', 'url'].includes(config.share) && (adapters.includes('weixin') || adapters.includes('wxmini')) ? <Col span={24}> |
| | | <Form.Item label="分享描述"> |
| | | {getFieldDecorator('share_des', { |
| | | initialValue: config.share_des || '' |
| | |
| | | )} |
| | | </Form.Item> |
| | | </Col> : null} |
| | | {config.share === 'url' && (adapters.includes('weixin') || adapters.includes('wxmini')) ? <Col span={24}> |
| | | <Form.Item label="分享图片"> |
| | | {getFieldDecorator('share_url', { |
| | | initialValue: config.share_url || '' |
| | | })( |
| | | <Input placeholder="" autoComplete="off" onChange={(e) => {this.selectChange('share_url', e.target.value)}}/> |
| | | )} |
| | | </Form.Item> |
| | | </Col> : null} |
| | | <Col span={24}> |
| | | <Form.Item label="备注"> |
| | | {getFieldDecorator('Remark', { |
| | |
| | | } |
| | | } |
| | | } |
| | | .mini-radio { |
| | | .ant-radio-wrapper { |
| | | margin-right: 5px; |
| | | .ant-radio + span { |
| | | padding-right: 3px; |
| | | padding-left: 3px; |
| | | } |
| | | } |
| | | } |
| | | } |