From c7b6030418156a16b841298553848078427b7285 Mon Sep 17 00:00:00 2001 From: xingyu Date: Thu, 22 Dec 2022 14:15:07 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E5=9B=BE=E6=A0=87=E9=9D=A2=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/layout/components/Message/index.ts | 3 + .../layout/components/Message/src/Message.vue | 121 ++++++++++++++++++ .../layout/components/Setting/src/Setting.vue | 2 + .../src/components/InterfaceDisplay.vue | 12 ++ .../src/layout/components/ToolHeader.vue | 11 +- yudao-ui-admin-vue3/src/locales/en.ts | 1 + yudao-ui-admin-vue3/src/locales/zh-CN.ts | 1 + yudao-ui-admin-vue3/src/store/modules/app.ts | 8 ++ 8 files changed, 157 insertions(+), 2 deletions(-) create mode 100644 yudao-ui-admin-vue3/src/layout/components/Message/index.ts create mode 100644 yudao-ui-admin-vue3/src/layout/components/Message/src/Message.vue diff --git a/yudao-ui-admin-vue3/src/layout/components/Message/index.ts b/yudao-ui-admin-vue3/src/layout/components/Message/index.ts new file mode 100644 index 000000000..dfe020760 --- /dev/null +++ b/yudao-ui-admin-vue3/src/layout/components/Message/index.ts @@ -0,0 +1,3 @@ +import Message from './src/Message.vue' + +export { Message } diff --git a/yudao-ui-admin-vue3/src/layout/components/Message/src/Message.vue b/yudao-ui-admin-vue3/src/layout/components/Message/src/Message.vue new file mode 100644 index 000000000..d304ef26d --- /dev/null +++ b/yudao-ui-admin-vue3/src/layout/components/Message/src/Message.vue @@ -0,0 +1,121 @@ + + + + + diff --git a/yudao-ui-admin-vue3/src/layout/components/Setting/src/Setting.vue b/yudao-ui-admin-vue3/src/layout/components/Setting/src/Setting.vue index ac3f13aff..14bb7393d 100644 --- a/yudao-ui-admin-vue3/src/layout/components/Setting/src/Setting.vue +++ b/yudao-ui-admin-vue3/src/layout/components/Setting/src/Setting.vue @@ -122,6 +122,8 @@ const copyConfig = async () => { size: ${appStore.getSize}, // 多语言图标 locale: ${appStore.getLocale}, + // 消息图标 + message: ${appStore.getMessage}, // 标签页 tagsView: ${appStore.getTagsView}, // 标签页图标 diff --git a/yudao-ui-admin-vue3/src/layout/components/Setting/src/components/InterfaceDisplay.vue b/yudao-ui-admin-vue3/src/layout/components/Setting/src/components/InterfaceDisplay.vue index 39030a6f2..f44397c45 100644 --- a/yudao-ui-admin-vue3/src/layout/components/Setting/src/components/InterfaceDisplay.vue +++ b/yudao-ui-admin-vue3/src/layout/components/Setting/src/components/InterfaceDisplay.vue @@ -57,6 +57,13 @@ const localeChange = (show: boolean) => { appStore.setLocale(show) } +// 消息图标 +const message = ref(appStore.getMessage) + +const messageChange = (show: boolean) => { + appStore.setMessage(show) +} + // 标签页 const tagsView = ref(appStore.getTagsView) @@ -164,6 +171,11 @@ watch( +
+ {{ t('setting.messageIcon') }} + +
+
{{ t('setting.tagsView') }} diff --git a/yudao-ui-admin-vue3/src/layout/components/ToolHeader.vue b/yudao-ui-admin-vue3/src/layout/components/ToolHeader.vue index 674886c4c..493077739 100644 --- a/yudao-ui-admin-vue3/src/layout/components/ToolHeader.vue +++ b/yudao-ui-admin-vue3/src/layout/components/ToolHeader.vue @@ -1,11 +1,12 @@