add i18n
This commit is contained in:
1 parent
9091f41012
commit
1ff6d27ab8
12 files changed
+78
-18
No files matched your search
@@ -7,3 +7,7 @@ body {
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
#app {
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
@@ -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>
|
||||
@@ -0,0 +1,3 @@
|
||||
export default {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
import button from './button';
|
||||
import message from './message';
|
||||
|
||||
export default {
|
||||
button,
|
||||
message,
|
||||
home: '首页',
|
||||
editor: '编辑器'
|
||||
};
|
||||
@@ -0,0 +1,3 @@
|
||||
export default {
|
||||
copied: '复制成功'
|
||||
};
|
||||
@@ -0,0 +1,7 @@
|
||||
export default {
|
||||
theme: '主题',
|
||||
highlight: '代码高亮',
|
||||
bold: '粗体',
|
||||
italic: '斜体',
|
||||
strikeout: '删除线'
|
||||
};
|
||||
@@ -0,0 +1,7 @@
|
||||
import sidebar from './sidebar';
|
||||
import editor from './editor';
|
||||
|
||||
export default {
|
||||
sidebar,
|
||||
editor
|
||||
};
|
||||
@@ -0,0 +1,4 @@
|
||||
export default {
|
||||
article: '文章管理',
|
||||
platform: '平台管理'
|
||||
};
|
||||
+5
-14
@@ -1,16 +1,7 @@
|
||||
import common from './common/index';
|
||||
import content from './content/index';
|
||||
|
||||
export default {
|
||||
message: {
|
||||
copied: '复制成功'
|
||||
},
|
||||
menu: {
|
||||
home: '首页',
|
||||
editor: '编辑器'
|
||||
},
|
||||
option: {
|
||||
theme: '主题',
|
||||
highlight: '代码高亮',
|
||||
bold: '粗体',
|
||||
italic: '斜体',
|
||||
strikeout: '删除线'
|
||||
}
|
||||
common,
|
||||
content
|
||||
};
|
||||
@@ -4,7 +4,9 @@
|
||||
<top-header />
|
||||
</el-header>
|
||||
<el-container>
|
||||
<el-aside width="200px"> side</el-aside>
|
||||
<el-aside width="200px">
|
||||
<sidebar />
|
||||
</el-aside>
|
||||
<el-main>
|
||||
<router-view />
|
||||
</el-main>
|
||||
@@ -13,10 +15,12 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import Sidebar from '@/components/content/Sidebar.vue';
|
||||
import { TopHeader } from '@/components/common/index';
|
||||
export default {
|
||||
components: {
|
||||
TopHeader
|
||||
TopHeader,
|
||||
Sidebar
|
||||
},
|
||||
name: 'LayoutEditor'
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user