king
2025-01-08 50d288f04ad66a18d3ebe80db3ca7c6e68aa65fe
2025-01-08
7个文件已修改
34 ■■■■■ 已修改文件
src/menu/components/card/cardcellcomponent/dragaction/action.jsx 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/card/cardcellcomponent/dragaction/card.jsx 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/card/cardcellcomponent/index.jsx 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/share/actioncomponent/actionform/index.jsx 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/share/actioncomponent/formconfig.jsx 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/share/actioncomponent/index.jsx 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/stylecontroller/index.jsx 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/card/cardcellcomponent/dragaction/action.jsx
@@ -55,6 +55,10 @@
  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 || ''}/>)
src/menu/components/card/cardcellcomponent/dragaction/card.jsx
@@ -63,6 +63,9 @@
    _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'
src/menu/components/card/cardcellcomponent/index.jsx
@@ -151,6 +151,9 @@
        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'
      }
@@ -255,6 +258,10 @@
      _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}
@@ -511,6 +518,10 @@
            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) {
src/menu/components/share/actioncomponent/actionform/index.jsx
@@ -495,6 +495,9 @@
        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') {
src/menu/components/share/actioncomponent/formconfig.jsx
@@ -214,7 +214,8 @@
      { 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' },
src/menu/components/share/actioncomponent/index.jsx
@@ -461,6 +461,11 @@
          }
          btn.updateTime = moment().format('YYYY-MM-DD HH:mm')
          if (btn.style) {
            delete btn.style.display
          }
          return btn
        } else {
          return item
src/menu/stylecontroller/index.jsx
@@ -1103,8 +1103,9 @@
                    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>