mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-02 11:17:46 +08:00
33 lines
1.1 KiB
Vue
33 lines
1.1 KiB
Vue
<template>
|
|
<el-anchor :offset="70">
|
|
<el-anchor-link :href="`#${locale['basic-usage']}`">
|
|
{{ locale['Basic Usage'] }}
|
|
</el-anchor-link>
|
|
<el-anchor-link :href="`#${locale['horizontal-mode']}`">
|
|
{{ locale['Horizontal Mode'] }}
|
|
</el-anchor-link>
|
|
<el-anchor-link :href="`#${locale['scroll-container']}`">
|
|
{{ locale['Scroll Container'] }}
|
|
</el-anchor-link>
|
|
<el-anchor-link :href="`#${locale['anchor-api']}`">
|
|
{{ locale['Anchor API'] }}
|
|
<template #sub-link>
|
|
<el-anchor-link :href="`#${locale['anchor-attributes']}`">
|
|
{{ locale['Anchor Attributes'] }}
|
|
</el-anchor-link>
|
|
<el-anchor-link :href="`#${locale['anchor-events']}`">
|
|
{{ locale['Anchor Events'] }}
|
|
</el-anchor-link>
|
|
</template>
|
|
</el-anchor-link>
|
|
</el-anchor>
|
|
</template>
|
|
<script lang="ts" setup>
|
|
import { computed } from 'vue'
|
|
import anchorLocale from '../../.vitepress/i18n/component/anchor.json'
|
|
import { useLang } from '~/composables/lang'
|
|
|
|
const lang = useLang()
|
|
const locale = computed(() => anchorLocale[lang.value])
|
|
</script>
|