-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
我想改内部组件的代码。通过文档的例子修改了VPNavBar但是没有任何数据,全是空白。 #4264
Comments
是根据这个文档吗:https://vitepress.dev/zh/guide/extending-default-theme#overriding-internal-components
主要是替换为自定义的组件
<script lang="ts" setup>
import { useWindowScroll } from '@vueuse/core'
import { ref, watchPostEffect } from 'vue'
import { useData } from 'vitepress/dist/client/theme-default/composables/data'
import { useSidebar } from 'vitepress/dist/client/theme-default//composables/sidebar'
import VPNavBarAppearance from 'vitepress/dist/client/theme-default/components/VPNavBarAppearance.vue'
import VPNavBarExtra from 'vitepress/dist/client/theme-default/components/VPNavBarExtra.vue'
import VPNavBarHamburger from 'vitepress/dist/client/theme-default/components/VPNavBarHamburger.vue'
import VPNavBarMenu from 'vitepress/dist/client/theme-default/components/VPNavBarMenu.vue'
import VPNavBarSearch from 'vitepress/dist/client/theme-default/components/VPNavBarSearch.vue'
import VPNavBarSocialLinks from 'vitepress/dist/client/theme-default/components/VPNavBarSocialLinks.vue'
import VPNavBarTitle from 'vitepress/dist/client/theme-default/components/VPNavBarTitle.vue'
import VPNavBarTranslations from 'vitepress/dist/client/theme-default/components/VPNavBarTranslations.vue'
const props = defineProps<{
isScreenOpen: boolean
}>()
... |
这里quan's全是空白 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我想改内部组件的代码。通过文档的例子修改了VPNavBar但是没有任何数据,全是空白。
我应该怎样更好的修改内部组件代码。
The text was updated successfully, but these errors were encountered: