97 lines
2.2 KiB
Vue
Raw Normal View History

2025-11-07 17:27:41 +08:00
<template>
<div class="root">
<div class="header">
<img class="logo" src="../assets/imgs/logo.png" alt="logo" />
<h2>政务·渝路智管</h2>
<div class="user">
<el-icon :size="24"><User /></el-icon>
</div>
2025-11-07 17:27:41 +08:00
</div>
<div class="content">
<div class="content-leftbar">
<MenuBar></MenuBar>
</div>
<div class="content-main">
2026-04-03 16:29:10 +08:00
<div class="breadcrumb-wrapper">
<Breadcrumb ref="breadcrumbRef" @breadcrumb-change="handleBreadcrumbChange"></Breadcrumb>
</div>
<div class="router-wrapper">
<router-view></router-view>
</div>
2025-11-07 17:27:41 +08:00
</div>
</div>
</div>
</template>
<script setup>
import MenuBar from "../component/MenuBar/index.vue";
2026-04-03 16:29:10 +08:00
import Breadcrumb from '../component/Breadcrumb/index.vue';
import { User } from '@element-plus/icons-vue'
import { ref } from 'vue'
const breadcrumbRef = ref(null)
const handleBreadcrumbChange = (breadcrumbList) => {
console.log('面包屑变更:', breadcrumbList)
}
2025-11-07 17:27:41 +08:00
</script>
<style lang="scss" scoped>
.root {
width: 100%;
height: 100%;
overflow: hidden;
}
.header {
height: 64px;
width: 100%;
background-image: url("../assets/imgs/header.png");
background-size: cover;
background-position: center;
display: flex;
align-items: center;
justify-content: space-between;
2025-11-07 17:27:41 +08:00
.logo {
width: 42px;
height: 42px;
margin-left: 16px;
margin-right: 16px;
}
.user {
margin-left: auto;
cursor: pointer;
margin-right: 16px;
}
2025-11-07 17:27:41 +08:00
}
.content {
height: calc(100% - 64px);
width: 100%;
display: flex;
}
.content-leftbar {
width: 248px;
height: 100%;
background-image: url("../assets/imgs/menu.png");
background-size: cover;
background-position: center;
}
.content-main {
width: calc(100% - 248px);
height: 100%;
2026-04-03 16:29:10 +08:00
display: flex;
flex-direction: column;
}
.breadcrumb-wrapper {
height: 40px;
min-height: 40px;
width: 100%;
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
border-bottom: 1px solid #e4e7ed;
}
.router-wrapper {
flex: 1;
height: calc(100% - 40px);
overflow: hidden;
2025-11-07 17:27:41 +08:00
}
</style>