1317301299a303a98ff37b75de8f46d8a27d1c7bb8007e3972e3cea3b6f768a3d558733c39ed6cae791832b583d81ce4c62f79de4e42d9a9526a5a73f7242e 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. 'use strict';
  2. Object.defineProperty(exports, '__esModule', { value: true });
  3. var vue = require('vue');
  4. var constants = require('./constants.js');
  5. var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
  6. var index = require('../../../hooks/use-namespace/index.js');
  7. const __default__ = vue.defineComponent({
  8. name: "ElPopperArrow",
  9. inheritAttrs: false
  10. });
  11. const _sfc_main = /* @__PURE__ */ vue.defineComponent({
  12. ...__default__,
  13. setup(__props, { expose }) {
  14. const ns = index.useNamespace("popper");
  15. const { arrowRef, arrowStyle } = vue.inject(constants.POPPER_CONTENT_INJECTION_KEY, void 0);
  16. vue.onBeforeUnmount(() => {
  17. arrowRef.value = void 0;
  18. });
  19. expose({
  20. arrowRef
  21. });
  22. return (_ctx, _cache) => {
  23. return vue.openBlock(), vue.createElementBlock("span", {
  24. ref_key: "arrowRef",
  25. ref: arrowRef,
  26. class: vue.normalizeClass(vue.unref(ns).e("arrow")),
  27. style: vue.normalizeStyle(vue.unref(arrowStyle)),
  28. "data-popper-arrow": ""
  29. }, null, 6);
  30. };
  31. }
  32. });
  33. var ElPopperArrow = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "arrow.vue"]]);
  34. exports["default"] = ElPopperArrow;
  35. //# sourceMappingURL=arrow.js.map