add i18n
This commit is contained in:
1 parent
9091f41012
commit
1ff6d27ab8
12 files changed
+78
-18
No files matched your search
@@ -7,8 +7,8 @@
|
||||
<el-row>
|
||||
<el-col>
|
||||
<el-menu :default-active="active" class="el-menu-demo" mode="horizontal" @select="onSelect">
|
||||
<el-menu-item index="home" v-t="'menu.home'" v-if="false"></el-menu-item>
|
||||
<el-menu-item index="editor" v-t="'menu.editor'"></el-menu-item>
|
||||
<el-menu-item index="home" v-t="'common.home'" v-if="false"></el-menu-item>
|
||||
<el-menu-item index="editor" v-t="'common.editor'"></el-menu-item>
|
||||
</el-menu>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
<template>
|
||||
<el-menu class="h-full">
|
||||
<el-menu-item>
|
||||
<el-icon :size="size" :color="color" class="mr-2">
|
||||
<document />
|
||||
</el-icon>
|
||||
<template #title>{{ $t('content.sidebar.article') }}</template>
|
||||
</el-menu-item>
|
||||
<el-menu-item>
|
||||
<el-icon :size="size" :color="color" class="mr-2">
|
||||
<box />
|
||||
</el-icon>
|
||||
<template #title>{{ $t('content.sidebar.platform') }}</template>
|
||||
</el-menu-item>
|
||||
</el-menu>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { Document, Box } from '@element-plus/icons';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
Document,
|
||||
Box
|
||||
}
|
||||
};
|
||||
</script>
|
||||
Reference in new issue
Block a user