/**
 * tdesign v0.32.0
 * (c) 2021 tdesign
 * @license MIT
 */

import clipboard from 'clipboard';

function copyText(_text) {
  var div = document.createElement("div");
  var clip = new clipboard(div, {
    text: function text() {
      return _text;
    }
  });
  div.click();
  clip.destroy();
  div.remove();
}

export { copyText as default };
//# sourceMappingURL=clipboard.js.map
