Browse Source

chore: update router locales

pull/3993/head
likui628 2 years ago
parent
commit
fd03b7c000
  1. 4
      apps/web-antd/src/router/routes/modules/vben.ts
  2. 4
      apps/web-ele/src/router/routes/modules/vben.ts
  3. 7
      apps/web-ele/src/views/demos/element/index.vue
  4. 4
      apps/web-naive/src/router/routes/modules/vben.ts
  5. 5
      packages/locales/src/langs/en-US.json
  6. 5
      packages/locales/src/langs/zh-CN.json

4
apps/web-antd/src/router/routes/modules/vben.ts

@ -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'),
},
},
],

4
apps/web-ele/src/router/routes/modules/vben.ts

@ -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'),
},
},
],

7
apps/web-ele/src/views/demos/element/index.vue

@ -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>

4
apps/web-naive/src/router/routes/modules/vben.ts

@ -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'),
},
},
],

5
packages/locales/src/langs/en-US.json

@ -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": {

5
packages/locales/src/langs/zh-CN.json

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

Loading…
Cancel
Save