UNPKG

element-plus

Version:

A Component Library for Vue 3

32 lines (29 loc) 831 B
import { defineComponent, ref, provide, renderSlot } from 'vue'; import '../../../tokens/index.mjs'; import { POPPER_INJECTION_KEY } from '../../../tokens/popper.mjs'; const __default__ = { name: "ElPopperRoot", inheritAttrs: false }; const _sfc_main = /* @__PURE__ */ defineComponent({ ...__default__, setup(__props, { expose }) { const triggerRef = ref(); const popperInstanceRef = ref(); const contentRef = ref(); const referenceRef = ref(); const popperProvides = { triggerRef, popperInstanceRef, contentRef, referenceRef }; expose(popperProvides); provide(POPPER_INJECTION_KEY, popperProvides); return (_ctx, _cache) => { return renderSlot(_ctx.$slots, "default"); }; } }); export { _sfc_main as default }; //# sourceMappingURL=popper2.mjs.map