mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-12 12:25:22 +08:00
22 lines
707 B
Vue
22 lines
707 B
Vue
<template>
|
|
<el-anchor :offset="70" direction="horizontal">
|
|
<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>
|
|
</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>
|