19 lines
341 B
Vue
19 lines
341 B
Vue
<script lang="ts">
|
|
import { isClient } from '@vueuse/core'
|
|
import { Suspense } from 'vue'
|
|
import DocsRepl from './DocsRepl.vue'
|
|
|
|
export default defineComponent({
|
|
props: ['example'],
|
|
setup(props) {
|
|
return () => {
|
|
if (!isClient) {
|
|
return null
|
|
}
|
|
|
|
return h(Suspense, h(DocsRepl, props))
|
|
}
|
|
},
|
|
})
|
|
</script>
|