mirror of
https://github.com/antd-tiny-vue/antd-tiny-vue.git
synced 2024-11-10 09:39:15 +08:00
18 lines
365 B
Vue
18 lines
365 B
Vue
<script lang="ts" setup>
|
|
import { onMounted, shallowRef } from 'vue'
|
|
|
|
const comp = shallowRef()
|
|
onMounted(async () => {
|
|
const { AntdTheme } = await import('vite-plugin-vitepress-demo/theme')
|
|
comp.value = AntdTheme
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<ClientOnly>
|
|
<component v-bind="$attrs" :is="comp"></component>
|
|
</ClientOnly>
|
|
</template>
|
|
|
|
<style scoped></style>
|