yanzhen-design-vue
Version:
25 lines (24 loc) • 832 B
JavaScript
import { defineComponent, openBlock, createBlock, unref, mergeProps } from "vue";
import { useTooltip } from "./use-tooltip.mjs";
import { tooltipName, tooltipProps, tooltipEmits, tooltipOptions } from "./tooltip.mjs";
const _sfc_main = /* @__PURE__ */ defineComponent({
...{ name: tooltipName },
__name: "tooltip",
props: tooltipProps,
emits: tooltipEmits,
setup(__props, { expose: __expose, emit: __emit }) {
const { ns } = tooltipOptions;
const props = __props;
const emit = __emit;
const [{ _ref, propsRef }, Tooltip] = useTooltip(props, emit);
__expose({ ref: _ref });
return (_ctx, _cache) => {
return openBlock(), createBlock(unref(Tooltip), mergeProps({
class: [unref(ns).b()]
}, unref(propsRef)), null, 16, ["class"]);
};
}
});
export {
_sfc_main as default
};