king
2023-04-05 0a98c5dab4f2783ff5250cb69715340b40d801bb
src/menu/components/card/cardcellcomponent/dragaction/index.jsx
@@ -1,6 +1,7 @@
import React, { useState } from 'react'
import { useDrop } from 'react-dnd'
import { is, fromJS } from 'immutable'
import { message } from 'antd'
import update from 'immutability-helper'
import Card from './card'
@@ -53,7 +54,6 @@
    }
    copycard.uuid = Utils.getuuid()
    copycard.originCard = card
    try {
      delete _val.$srcId
@@ -76,13 +76,19 @@
      oInput.select()
      document.execCommand('Copy')
      document.body.removeChild(oInput)
      message.success('复制成功。')
    } else {
      message.warning('复制失败。')
    }
    if (card.eleType !== 'button') {
    _cards.push(copycard)
    handleList(_cards)
    handleMenu(copycard)
  }
  }
  const changeStyle = id => {
    const { card } = findCard(id)