king
2023-08-23 547e5fe219ee7bee309ecd67db74bc8df66b5433
src/menu/components/card/cardcellcomponent/index.jsx
@@ -7,7 +7,6 @@
import asyncComponent from '@/utils/asyncComponent'
import { getCardCellForm } from './formconfig'
import { getActionForm, getBaseTableActionForm } from '@/menu/components/share/actioncomponent/formconfig'
import Utils, { FuncUtils } from '@/utils/utils.js'
import MKEmitter from '@/utils/events.js'
import MenuUtils from '@/utils/utils-custom.js'
@@ -160,6 +159,8 @@
      options = ['background', 'border', 'margin']
    } else if (element.eleType === 'color') {
      options = ['border', 'margin', 'padding']
    } else if (element.eleType === 'number' || element.eleType === 'icon') {
      options.push('display')
    } else if (element.eleType === 'text') {
      options[0] = 'font2'
      options.push('display')
@@ -167,6 +168,10 @@
      options = ['padding', 'margin']
    } else if (element.eleType === 'splitline') {
      options = ['padding', 'margin']
    }
    if (element.eleType !== 'button') {
      options.push('position')
    }
    options.push('clear')
@@ -202,7 +207,7 @@
      _card.style = style
      let line = _card.height || null
      if (['currentDate', 'sequence', 'icon'].includes(_card.eleType)) {
      if (['currentDate', 'sequence'].includes(_card.eleType) || (_card.eleType === 'icon' && _card.tipType !== 'text')) {
        line = 1
      }
@@ -367,7 +372,7 @@
        if (cell.uuid === res.uuid) {
          res.style = cell.style || {}
          if (res.eleType !== 'text') {
          if (!['text', 'number', 'icon'].includes(res.eleType)) {
            delete res.style.display
          }
          
@@ -377,7 +382,7 @@
          } else if (['text', 'number', 'formula', 'currentDate', 'sequence', 'icon'].includes(res.eleType)) {
            let line = res.height || null
            if (['currentDate', 'sequence', 'icon'].includes(res.eleType)) {
            if (['currentDate', 'sequence'].includes(res.eleType) || (res.eleType === 'icon' && res.tipType !== 'text')) {
              line = 1
            }
@@ -756,6 +761,7 @@
          {/* 编辑按钮:复制、编辑 */}
          <Modal
            title="编辑元素"
            wrapClassName="mk-scroll-modal"
            visible={visible}
            width={850}
            maskClosable={false}
@@ -775,6 +781,7 @@
          {/* 编辑按钮:复制、编辑 */}
          <Modal
            title="按钮·编辑"
            wrapClassName="mk-scroll-modal"
            visible={actvisible}
            width={920}
            maskClosable={false}