king
2022-01-07 c1f9e05741e64087ebbfa5e1185bfd0beeb4eeb5
src/menu/components/card/cardcellcomponent/index.jsx
@@ -150,6 +150,9 @@
      } else {
        options.push('width', 'float')
      }
      if (element.wrapStyle) {
        _style.float = element.wrapStyle.textAlign || 'left'
      }
    } else if (element.eleType === 'picture') {
      options = ['border', 'margin']
    } else if (element.eleType === 'slider') {
@@ -233,7 +236,12 @@
      _card.innerHeight = _card.barHeight + (_card.displayValue === 'true' ? fontSize + 2 : 0)
    } else if (_card.eleType === 'button') { // 拆分style
      _card.style = style
      _card.style = fromJS(style).toJS()
      if (style.float) {
        _card.wrapStyle = {textAlign: style.float}
        delete _card.style.float
      }
    } else {
      _card.style = style
    }