king
2020-04-02 4614a540b53edbd83a0a9a483414cfdec0f5d321
src/templates/formtabconfig/dragelement/index.jsx
@@ -51,6 +51,21 @@
    _card.iscopy = true
    _card.focus = true
    // 复制到剪切板
    let oInput = document.createElement('input')
    let val = JSON.parse(JSON.stringify(_card))
    val.copyType = 'form'
    delete val.originUuid
    oInput.value = window.btoa(window.encodeURIComponent(JSON.stringify(val)))
    document.body.appendChild(oInput)
    oInput.select()
    document.execCommand('Copy')
    oInput.className = 'oInput'
    oInput.style.display = 'none'
    document.body.removeChild(oInput)
    handleMenu(_card)
  }