hongluan-ui
Version:
Hongluan Component Library for Vue 3
25 lines (22 loc) • 694 B
JavaScript
import { defineComponent, renderSlot, openBlock, createBlock, Teleport } from 'vue';
import { teleportProps } from './teleport2.mjs';
const COMPONENT_NAME = "Teleport";
const __default__ = defineComponent({
name: COMPONENT_NAME
});
const _sfc_main = /* @__PURE__ */ defineComponent({
...__default__,
props: teleportProps,
setup(__props) {
return (_ctx, _cache) => {
return _ctx.disabled ? renderSlot(_ctx.$slots, "default", { key: 0 }) : (openBlock(), createBlock(Teleport, {
key: 1,
to: _ctx.to
}, [
renderSlot(_ctx.$slots, "default")
], 8, ["to"]));
};
}
});
export { _sfc_main as default };
//# sourceMappingURL=teleport.mjs.map