1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- <template>
- <div class="home-header">
- <div class="left">
- <div class="sys-icon" @click="linkToHome"></div>
- <div v-if="subTitle" class="sub_title">{{ subTitle }}</div>
- </div>
- <div class="right user-panel" v-if="false">
- <user-avatar />
- </div>
- </div>
- </template>
- <script setup>
- import UserAvatar from '@/views/components/UserNewAvatar.vue';
- import { linkToHome } from '@/utils/external-links';
- const props = defineProps({
- subTitle: {
- type: String,
- default: ''
- }
- })
- </script>
- <style scoped lang="scss">
- .home-header {
- width: 100%;
- cursor: pointer;
- height: 100%;
- padding: 0 40px 0 40px;
- display: flex;
- justify-content: space-between;
- .left {
- height: 100%;
- display: flex;
- justify-content: flex-start;
- align-items: center;
- .sys-icon {
- width: 260px;
- height: 32px;
- background: url('@/assets/images/home/home-logo.png') no-repeat;
- background-size: 100% 100%;
- margin-right: 11px;
- }
- >.sub_title {
- color: #2089F0;
- position: relative;
- padding-left: 11px;
- font-size: 22px;
- font-weight: bolder;
- &::before {
- position: absolute;
- left: 0px;
- top: 3px;
- bottom: 3px;
- margin: auto;
- content: "";
- display: block;
- background: #E5E6E6;
- width: 1px;
- }
- }
- }
- .right {
- height: 100%;
- width: 180px;
- }
- }
- </style>
|