'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var vue = require('vue');
var index = require('../../plugins/copy/index.js');
var iconsVue = require('@element-plus/icons-vue');
var copyIcon = require('./copyIcon.js');

var _sfc_main = /* @__PURE__ */ vue.defineComponent({
  ...{
    name: "GmCopyIcon"
  },
  __name: "CopyIcon",
  props: copyIcon.copyIconProps,
  setup(__props) {
    const props = __props;
    const handleCopy = () => {
      index.GmCopy(String(props.str));
    };
    return (_ctx, _cache) => {
      const _component_gm_icon = vue.resolveComponent("gm-icon");
      return vue.openBlock(), vue.createBlock(_component_gm_icon, {
        class: "gm-relative gm-top-[1px] gm-ml-[2px] gm-cursor-pointer",
        onClick: handleCopy
      }, {
        default: vue.withCtx(() => [
          vue.createVNode(vue.unref(iconsVue.CopyDocument))
        ]),
        _: 1
        /* STABLE */
      });
    };
  }
});

exports.default = _sfc_main;
//# sourceMappingURL=CopyIcon.vue2.js.map
