diff --git a/src/components/Backtop/index.ts b/src/components/Backtop/index.ts new file mode 100644 index 0000000..96de88d --- /dev/null +++ b/src/components/Backtop/index.ts @@ -0,0 +1,3 @@ +import Backtop from './src/Backtop.vue' + +export { Backtop } diff --git a/src/components/Backtop/src/Backtop.vue b/src/components/Backtop/src/Backtop.vue new file mode 100644 index 0000000..2e0eea0 --- /dev/null +++ b/src/components/Backtop/src/Backtop.vue @@ -0,0 +1,7 @@ + + + diff --git a/src/components/Logo/index.ts b/src/components/Logo/index.ts new file mode 100644 index 0000000..1c4224c --- /dev/null +++ b/src/components/Logo/index.ts @@ -0,0 +1,3 @@ +import Logo from './src/Logo.vue' + +export { Logo } diff --git a/src/components/Logo/src/Logo.vue b/src/components/Logo/src/Logo.vue new file mode 100644 index 0000000..f3a0393 --- /dev/null +++ b/src/components/Logo/src/Logo.vue @@ -0,0 +1,52 @@ + + + diff --git a/src/components/Menu/src/Menu.vue b/src/components/Menu/src/Menu.vue index 98e1243..d960d6b 100644 --- a/src/components/Menu/src/Menu.vue +++ b/src/components/Menu/src/Menu.vue @@ -7,6 +7,7 @@ import type { LayoutType } from '@/config/app' import { useRenderMenuItem } from './components/useRenderMenuItem' import { useRouter } from 'vue-router' import { isUrl } from '@/utils/is' +import { Logo } from '@/components/Logo' export default defineComponent({ name: 'Menu', @@ -53,14 +54,15 @@ export default defineComponent({
- + + +import { ElDrawer } from 'element-plus' +import { ref } from 'vue' + +const drawer = ref(false) + + + + + diff --git a/src/components/TagsView/src/TagsView.vue b/src/components/TagsView/src/TagsView.vue index 4478fee..d76862d 100644 --- a/src/components/TagsView/src/TagsView.vue +++ b/src/components/TagsView/src/TagsView.vue @@ -199,7 +199,7 @@ watch( } ]" > - +
{{ t(item?.meta?.title as string) }} - +
diff --git a/src/config/app.ts b/src/config/app.ts index 6efa49d..712a130 100644 --- a/src/config/app.ts +++ b/src/config/app.ts @@ -39,7 +39,7 @@ export const appModules: AppState = { showScreenfull: true, // 是否全屏按钮 showUserInfo: true, // 是否显示用户头像 title: 'butterfly-admin', // 标题 - logoTitle: 'butterfly-admin', // logo标题 + logoTitle: 'ButterflyAdmin', // logo标题 userInfo: 'userInfo', // 登录信息存储字段-建议每个项目换一个字段,避免与其他项目冲突 greyMode: false, // 是否开始灰色模式,用于特殊悼念日 showBackTop: true, // 是否显示回到顶部 diff --git a/src/layout/Layout.vue b/src/layout/Layout.vue index 57be87d..46ab914 100644 --- a/src/layout/Layout.vue +++ b/src/layout/Layout.vue @@ -9,6 +9,8 @@ import { UserInfo } from '@/components/UserInfo' import { Screenfull } from '@/components/Screenfull' import { Breadcrumb } from '@/components/Breadcrumb' import { TagsView } from '@/components/TagsView' +import { Backtop } from '@/components/Backtop' +import { Setting } from '@/components/Setting' import AppView from './components/AppView.vue' const appStore = useAppStore() @@ -70,6 +72,10 @@ export default defineComponent({
+ + + + ) } diff --git a/src/layout/components/AppView.vue b/src/layout/components/AppView.vue index 9e0d5be..cfe5646 100644 --- a/src/layout/components/AppView.vue +++ b/src/layout/components/AppView.vue @@ -10,11 +10,22 @@ const getCaches = computed((): string[] => { diff --git a/src/styles/var.css b/src/styles/var.css index 2afa1e3..bfb661c 100644 --- a/src/styles/var.css +++ b/src/styles/var.css @@ -19,6 +19,13 @@ --left-menu-collapse-bg-active-color: var(--el-color-primary); /* left menu end */ + /* logo start */ + --logo-height: 50px; + + --logo-title-text-color: #fff; + /* logo end */ + + /* header start */ --top-tool-height: 40px; --top-tool-p-x: 0; @@ -26,6 +33,9 @@ --top-tool-border-color: #eee; --tags-view-height: 40px; + /* header start */ + + --app-content-padding: 20px; --transition-time-02: 0.2s; }