UNPKG

@arco-design/web-vue

Version:

Arco Design Vue 2.0: A Vue.js 3 UI Library

19 lines (18 loc) 424 B
import { defineComponent, ref, onMounted } from "vue"; var ClientOnly = defineComponent({ name: "ClientOnly", setup(_, { slots }) { const mounted = ref(false); onMounted(() => mounted.value = true); return () => { var _a; if (mounted.value) { return (_a = slots.default) == null ? void 0 : _a.call(slots); } return null; }; } }); export { ClientOnly as default };