UNPKG

element-plus

Version:

A Component Library for Vue 3

30 lines (27 loc) 794 B
import { defineComponent, computed, openBlock, createElementBlock, normalizeStyle, unref } from 'vue'; import { tooltipV2ArrowProps } from './arrow.mjs'; const __default__ = { name: "ElTooltipV2Arrow" }; const _sfc_main = /* @__PURE__ */ defineComponent({ ...__default__, props: tooltipV2ArrowProps, setup(__props) { const props = __props; const arrowStyle = computed(() => { return { position: "absolute", width: `${props.width}px`, height: `${props.height}px`, ...props.style || {} }; }); return (_ctx, _cache) => { return openBlock(), createElementBlock("div", { style: normalizeStyle(unref(arrowStyle)) }, null, 4); }; } }); export { _sfc_main as default }; //# sourceMappingURL=arrow2.mjs.map