Работа над боковой панелью

This commit is contained in:
Book Pauk
2019-01-02 15:32:52 +07:00
parent 86e4c8013a
commit a4197c985f

View File

@@ -1,26 +1,34 @@
<template> <template>
<el-container> <el-container>
<el-aside :width="asideWidth"> <el-aside :width="asideWidth">
{{ appName }} <div class="app-name"><span v-html="appName"></span></div>
<el-button class="el-button-collapse" @click="toggleCollapse" :icon="buttonCollapseIcon"></el-button> <el-button class="el-button-collapse" @click="toggleCollapse" :icon="buttonCollapseIcon"></el-button>
<el-menu default-active="1" class="el-menu-vertical" @select="handleSelect" :collapse="isCollapse"> <el-menu class="el-menu-vertical" @select="handleSelect" :collapse="isCollapse">
<el-menu-item index="1"> <el-menu-item index="cardindex">
<i class="el-icon-search"></i> <i class="el-icon-search"></i>
<span slot="title">Картотека</span> <span slot="title">Картотека</span>
</el-menu-item> </el-menu-item>
<el-menu-item index="2"> <el-menu-item index="reader">
<i class="el-icon-tickets"></i>
<span slot="title">Читалка</span>
</el-menu-item>
<el-menu-item index="forum" disabled>
<i class="el-icon-message"></i>
<span slot="title">Форум-чат</span>
</el-menu-item>
<el-menu-item index="newbooks">
<i class="el-icon-upload"></i>
<span slot="title">Поступления</span>
</el-menu-item>
<el-menu-item index="sources">
<i class="el-icon-menu"></i> <i class="el-icon-menu"></i>
<span slot="title">Источники</span> <span slot="title">Источники</span>
</el-menu-item> </el-menu-item>
<el-menu-item index="3" disabled> <el-menu-item index="settings">
<i class="el-icon-message"></i>
<span slot="title">Форум</span>
</el-menu-item>
<el-menu-item index="4">
<i class="el-icon-setting"></i> <i class="el-icon-setting"></i>
<span slot="title">Параметры</span> <span slot="title">Параметры</span>
</el-menu-item> </el-menu-item>
<el-menu-item index="5"> <el-menu-item index="help">
<i class="el-icon-question"></i> <i class="el-icon-question"></i>
<span slot="title">Справка</span> <span slot="title">Справка</span>
</el-menu-item> </el-menu-item>
@@ -80,7 +88,7 @@ class App extends Vue {
if (this.uistate.asideBarCollapse) { if (this.uistate.asideBarCollapse) {
return '64px'; return '64px';
} else { } else {
return '170px'; return '160px';
} }
} }
@@ -93,7 +101,10 @@ class App extends Vue {
} }
get appName() { get appName() {
return `${this.config.name} v${this.config.version}`; if (this.isCollapse)
return '<br><br>';
else
return `${this.config.name} <br>v${this.config.version}`;
} }
get apiError() { get apiError() {
@@ -103,6 +114,13 @@ class App extends Vue {
</script> </script>
<style scoped> <style scoped>
.app-name {
margin-left: 10px;
margin-top: 10px;
text-align: center;
line-height: 140%;
font-weight: bold;
}
.el-container { .el-container {
height: 100%; height: 100%;
} }
@@ -139,7 +157,9 @@ class App extends Vue {
width: 100%; width: 100%;
border: 0; border: 0;
} }
.el-menu-item {
font-size: 80%;
}
</style> </style>
<style> <style>
@@ -147,5 +167,6 @@ body, html, #app {
margin: 0; margin: 0;
padding: 0; padding: 0;
height: 100%; height: 100%;
font: normal 12pt Arial, Verdana, Sans-serif;
} }
</style> </style>