17 lines
323 B
Vue
17 lines
323 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>
|