diff --git a/apps/web-antd/src/router/routes/modules/vben.ts b/apps/web-antd/src/router/routes/modules/vben.ts index 88d0f7db..3a0daabe 100644 --- a/apps/web-antd/src/router/routes/modules/vben.ts +++ b/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'), }, }, ], diff --git a/apps/web-ele/src/router/routes/modules/vben.ts b/apps/web-ele/src/router/routes/modules/vben.ts index 602ef816..a5ced040 100644 --- a/apps/web-ele/src/router/routes/modules/vben.ts +++ b/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'), }, }, ], diff --git a/apps/web-ele/src/views/demos/element/index.vue b/apps/web-ele/src/views/demos/element/index.vue index 9db6940c..d56e9d9b 100644 --- a/apps/web-ele/src/views/demos/element/index.vue +++ b/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) { 信息 Message
+ 信息 错误 警告 成功 @@ -81,10 +86,10 @@ function notify(type: NotificationType) { 通知 Notification
+ 信息 错误 警告 成功 - 加载中
diff --git a/apps/web-naive/src/router/routes/modules/vben.ts b/apps/web-naive/src/router/routes/modules/vben.ts index acbe39e7..3fd5942b 100644 --- a/apps/web-naive/src/router/routes/modules/vben.ts +++ b/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'), }, }, ], diff --git a/packages/locales/src/langs/en-US.json b/packages/locales/src/langs/en-US.json index 7992631d..9100d7ba 100644 --- a/packages/locales/src/langs/en-US.json +++ b/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": { diff --git a/packages/locales/src/langs/zh-CN.json b/packages/locales/src/langs/zh-CN.json index c4b692d6..a832a9b2 100644 --- a/packages/locales/src/langs/zh-CN.json +++ b/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": {