mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 01:11:25 +08:00
14 lines
260 B
TypeScript
14 lines
260 B
TypeScript
|
import { computed } from 'vue'
|
||
|
import { useData } from 'vitepress'
|
||
|
|
||
|
import { useLang } from './lang'
|
||
|
|
||
|
export const useNav = () => {
|
||
|
const { theme } = useData()
|
||
|
const lang = useLang()
|
||
|
|
||
|
return computed(() => {
|
||
|
return theme.value.nav[lang.value]
|
||
|
})
|
||
|
}
|