| | |
| | | let btnElement = null |
| | | let _style = resetStyle(card.style) |
| | | |
| | | if (_style.display === 'none') { |
| | | _style.display = 'block' |
| | | } |
| | | |
| | | if (card.OpenType === 'form') { |
| | | if (card.formType === 'switch') { |
| | | btnElement = (<Switch style={_style} className={card.size === 'large' ? 'ant-switch-large' : ''} size={card.size} checkedChildren={card.openText || ''} unCheckedChildren={card.closeText || ''}/>) |
| | |
| | | _style = {...card.style, opacity: isDragging ? 0.3 : 1} |
| | | _style = resetStyle(_style) |
| | | } |
| | | if (_style.display === 'none') { |
| | | _style.display = 'block' |
| | | } |
| | | if (card.eleType === 'picture' && card.maxWidth) { |
| | | _style.maxWidth = card.maxWidth |
| | | let left = _style.marginLeft || 'auto' |
| | |
| | | options = ['margin', 'float'] |
| | | } else { |
| | | options.push('width', 'minHeight', 'float') |
| | | if (element.OpenType !== 'form') { |
| | | options.push('display') |
| | | } |
| | | _style.minHeight = _style.minHeight || '28px' |
| | | _style.textAlign = _style.textAlign || 'center' |
| | | } |
| | |
| | | _card.innerHeight = _card.barHeight + (_card.displayValue === 'true' ? fontSize + 2 : 0) |
| | | } else if (_card.eleType === 'button') { // 拆分style |
| | | _card.style = fromJS(style).toJS() |
| | | |
| | | if (_card.OpenType === 'form') { |
| | | delete _card.style.display |
| | | } |
| | | |
| | | if (style.float) { |
| | | _card.wrapStyle = {textAlign: style.float} |
| | |
| | | if (cell.OpenType !== 'form') { |
| | | res.style = {} |
| | | } |
| | | |
| | | if (res.style) { |
| | | delete res.style.display |
| | | } |
| | | // } else if (res.class !== cell.class || res.show !== cell.show || !res.style) { |
| | | } else if (res.class !== cell.class || !res.style) { |
| | | if (res.class) { |
| | |
| | | shows.push('execSuccess', 'execError', 'tipTitle') |
| | | } else if (_funcType === 'mkUnsubscribe' || _funcType === 'reAuth') { |
| | | shows.push('tipTitle') |
| | | } else if (_funcType === 'reSystem') { |
| | | shows.push('tipTitle', 'Ot') |
| | | reOptions.Ot = requireOptions.filter(op => op.value === 'requiredSgl') |
| | | } else if (_funcType === 'closetab') { |
| | | shows.push('refreshTab') |
| | | } else if (_funcType === 'scan') { |
| | |
| | | { value: 'mkBinding', text: '开通扫码登录' }, |
| | | { value: 'mkUnBinding', text: '用户解绑' }, |
| | | { value: 'mkUnsubscribe', text: '注销账户' }, |
| | | { value: 'reAuth', text: '切换系统(清空缓存-小程序)' }, |
| | | { value: 'reAuth', text: '切换授权码 / 小程序清空缓存' }, |
| | | { value: 'reSystem', text: '切换系统(APP内)' }, |
| | | { value: 'clearCache', text: '清空本地配置' }, |
| | | { value: 'copyurl', text: '复制链接地址' }, |
| | | { value: 'expPdf', text: '导出PDF' }, |
| | |
| | | } |
| | | |
| | | btn.updateTime = moment().format('YYYY-MM-DD HH:mm') |
| | | |
| | | if (btn.style) { |
| | | delete btn.style.display |
| | | } |
| | | |
| | | return btn |
| | | } else { |
| | | return item |
| | |
| | | labelCol={{xs: { span: 24 }, sm: { span: 4 }}} wrapperCol={ {xs: { span: 24 }, sm: { span: 20 }} } |
| | | > |
| | | <Radio.Group style={{whiteSpace: 'nowrap'}} defaultValue={card.display || 'block'} onChange={(e) => this.changeNormalStyle(e.target.value, 'display')}> |
| | | <Radio value="block">块级元素</Radio> |
| | | <Radio value="inline-block">行内块元素</Radio> |
| | | <Radio value="block">整行</Radio> |
| | | <Radio value="inline-block">自适应</Radio> |
| | | <Radio value="none">不显示</Radio> |
| | | </Radio.Group> |
| | | </Form.Item> |
| | | </Col> |