king
2023-04-05 0a98c5dab4f2783ff5250cb69715340b40d801bb
src/menu/components/card/cardcellcomponent/index.jsx
@@ -361,6 +361,13 @@
    const { elements } = this.state
    this.elementFormRef.handleConfirm().then(res => {
      if (res.width % 0.5) {
        res.width = parseInt(res.width / 0.5) * 0.5
      }
      if (res.width % 1) {
        res.width = (res.width + '').replace(/.5/, 'x')
      }
      let _elements = elements.map(cell => {
        if (cell.uuid === res.uuid) {
          res.style = cell.style || {}
@@ -744,7 +751,7 @@
    const { elements, visible, actvisible, profVisible, card, record } = this.state
    return (
      <div className="model-menu-card-cell-list">
      <div className={'model-menu-card-cell-list ' + (cardCell && cardCell.setting.layout === 'flex' ? 'mk-flex' : '') }>
        <DragElement
          list={elements}
          parent={cardCell}