mirror of
https://github.com/antd-tiny-vue/antd-tiny-vue.git
synced 2025-07-06 11:49:06 +08:00
chore: change docs
This commit is contained in:
17
.vitepress/components/demo.vue
Normal file
17
.vitepress/components/demo.vue
Normal file
@ -0,0 +1,17 @@
|
||||
<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>
|
Reference in New Issue
Block a user