chore: update router locales

This commit is contained in:
likui628 2024-08-01 12:53:02 +08:00
parent 3eb528e61d
commit fd03b7c000
6 changed files with 20 additions and 9 deletions

View File

@ -60,7 +60,7 @@ const routes: RouteRecordRaw[] = [
meta: {
badgeType: 'dot',
link: VBEN_NAIVE_PREVIEW_URL,
title: 'Naive UI 版本',
title: $t('page.vben.naive-ui'),
},
},
{
@ -70,7 +70,7 @@ const routes: RouteRecordRaw[] = [
meta: {
badgeType: 'dot',
link: VBEN_ELE_PREVIEW_URL,
title: 'Element Plus 版本',
title: $t('page.vben.element-plus'),
},
},
],

View File

@ -60,7 +60,7 @@ const routes: RouteRecordRaw[] = [
meta: {
badgeType: 'dot',
link: VBEN_NAIVE_PREVIEW_URL,
title: 'Naive UI 版本',
title: $t('page.vben.naive-ui'),
},
},
{
@ -70,7 +70,7 @@ const routes: RouteRecordRaw[] = [
meta: {
badgeType: 'dot',
link: VBEN_PREVIEW_URL,
title: 'Ant Design 版本',
title: $t('page.vben.antdv'),
},
},
],

View File

@ -9,6 +9,10 @@ import {
type NotificationType = 'error' | 'info' | 'success' | 'warning';
function info() {
ElMessage.info('How many roads must a man walk down');
}
function error() {
ElMessage.error({
duration: 2500,
@ -70,6 +74,7 @@ function notify(type: NotificationType) {
<span class="text-lg font-semibold">信息 Message </span>
</div>
<div class="flex gap-3">
<ElButton type="info" @click="info"> 信息 </ElButton>
<ElButton type="danger" @click="error"> 错误 </ElButton>
<ElButton type="warning" @click="warning"> 警告 </ElButton>
<ElButton type="success" @click="success"> 成功 </ElButton>
@ -81,10 +86,10 @@ function notify(type: NotificationType) {
<span class="text-lg font-semibold">通知 Notification </span>
</div>
<div class="flex gap-3">
<ElButton type="info" @click="notify('info')"> 信息 </ElButton>
<ElButton type="danger" @click="notify('error')"> 错误 </ElButton>
<ElButton type="warning" @click="notify('warning')"> 警告 </ElButton>
<ElButton type="success" @click="notify('success')"> 成功 </ElButton>
<ElButton type="primary" @click="notify('info')"> 加载中 </ElButton>
</div>
</div>
</div>

View File

@ -60,7 +60,7 @@ const routes: RouteRecordRaw[] = [
meta: {
badgeType: 'dot',
link: VBEN_PREVIEW_URL,
title: 'Ant Design 版本',
title: $t('page.vben.antdv'),
},
},
{
@ -70,7 +70,7 @@ const routes: RouteRecordRaw[] = [
meta: {
badgeType: 'dot',
link: VBEN_ELE_PREVIEW_URL,
title: 'Element Plus 版本',
title: $t('page.vben.element-plus'),
},
},
],

View File

@ -15,7 +15,10 @@
"vben": {
"title": "Project",
"about": "About",
"document": "Document"
"document": "Document",
"antdv": "Ant Design Vue Version",
"naive-ui": "Naive UI Version",
"element-plus": "Element Plus Version"
}
},
"common": {

View File

@ -15,7 +15,10 @@
"vben": {
"title": "项目",
"about": "关于",
"document": "文档"
"document": "文档",
"antdv": "Ant Design Vue 版本",
"naive-ui": "Naive UI 版本",
"element-plus": "Element Plus 版本"
}
},
"common": {