|
|
@ -15,7 +15,7 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
|
<script setup lang="ts">
|
|
|
|
import { computed, defineOptions } from 'vue'
|
|
|
|
import { computed, defineProps } from 'vue'
|
|
|
|
import { useRoute } from 'vitepress'
|
|
|
|
import { useRoute } from 'vitepress'
|
|
|
|
import { withBase, isExternal } from '../utils'
|
|
|
|
import { withBase, isExternal } from '../utils'
|
|
|
|
import type { DefaultTheme } from '../config'
|
|
|
|
import type { DefaultTheme } from '../config'
|
|
|
@ -32,14 +32,10 @@ const normalizePath = (path: string): string => {
|
|
|
|
return path
|
|
|
|
return path
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const { props } = defineOptions<{
|
|
|
|
const { item } = defineProps<{
|
|
|
|
props: {
|
|
|
|
|
|
|
|
item: DefaultTheme.NavItemWithLink
|
|
|
|
item: DefaultTheme.NavItemWithLink
|
|
|
|
}
|
|
|
|
|
|
|
|
}>()
|
|
|
|
}>()
|
|
|
|
|
|
|
|
|
|
|
|
const item = props.item
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const route = useRoute()
|
|
|
|
const route = useRoute()
|
|
|
|
|
|
|
|
|
|
|
|
const classes = computed(() => ({
|
|
|
|
const classes = computed(() => ({
|
|
|
|