add side menu and info
This commit is contained in:
1 parent
5b076b2374
commit
0577efe43a
7 files changed
+57
-4
No files matched your search
@@ -4,23 +4,47 @@
|
||||
<left-navigator />
|
||||
</el-aside>
|
||||
<el-main class="main"> <router-view /> </el-main>
|
||||
<el-button round class="menu" @click="drawer = true">
|
||||
<font-awesome-icon icon="fa-solid fa-bars" class="icon-menu" />
|
||||
</el-button>
|
||||
<el-drawer v-model="drawer" :with-header="false" size="50%" class="drawer">
|
||||
<left-navigator />
|
||||
</el-drawer>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import { ElMain, ElAside } from 'element-plus';
|
||||
import { ElMain, ElAside, ElButton, ElDrawer } from 'element-plus';
|
||||
import LeftNavigator from '@/components/common/LeftNavigator.vue';
|
||||
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'LayoutConversation',
|
||||
components: {
|
||||
ElMain,
|
||||
LeftNavigator
|
||||
ElAside,
|
||||
ElDrawer,
|
||||
ElButton,
|
||||
LeftNavigator,
|
||||
FontAwesomeIcon
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
drawer: false
|
||||
};
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.drawer {
|
||||
.el-drawer__body {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.container {
|
||||
display: flex;
|
||||
@@ -33,6 +57,10 @@ export default defineComponent({
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.menu {
|
||||
display: none;
|
||||
}
|
||||
|
||||
$width: 300px;
|
||||
.aside {
|
||||
width: $width;
|
||||
@@ -71,5 +99,12 @@ $width: 300px;
|
||||
.main {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.menu {
|
||||
display: block;
|
||||
position: fixed;
|
||||
right: 20px;
|
||||
top: 20px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user