Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
monorepo
/
venus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit fd03b7c0
authored
Aug 01, 2024
by
likui628
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
chore: update router locales
1 parent
3eb528e6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
9 deletions
apps/web-antd/src/router/routes/modules/vben.ts
apps/web-ele/src/router/routes/modules/vben.ts
apps/web-ele/src/views/demos/element/index.vue
apps/web-naive/src/router/routes/modules/vben.ts
packages/locales/src/langs/en-US.json
packages/locales/src/langs/zh-CN.json
apps/web-antd/src/router/routes/modules/vben.ts
View file @
fd03b7c
...
...
@@ -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'
)
,
},
},
],
...
...
apps/web-ele/src/router/routes/modules/vben.ts
View file @
fd03b7c
...
...
@@ -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'
)
,
},
},
],
...
...
apps/web-ele/src/views/demos/element/index.vue
View file @
fd03b7c
...
...
@@ -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>
...
...
apps/web-naive/src/router/routes/modules/vben.ts
View file @
fd03b7c
...
...
@@ -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'
)
,
},
},
],
...
...
packages/locales/src/langs/en-US.json
View file @
fd03b7c
...
...
@@ -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"
:
{
...
...
packages/locales/src/langs/zh-CN.json
View file @
fd03b7c
...
...
@@ -15,7 +15,10 @@
"vben"
:
{
"title"
:
"项目"
,
"about"
:
"关于"
,
"document"
:
"文档"
"document"
:
"文档"
,
"antdv"
:
"Ant Design Vue 版本"
,
"naive-ui"
:
"Naive UI 版本"
,
"element-plus"
:
"Element Plus 版本"
}
},
"common"
:
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment