2017-07-23 18:42:08 +00:00
|
|
|
<template>
|
2017-08-04 08:20:50 +00:00
|
|
|
<div class="side-bar flex flex--column">
|
|
|
|
<div class="side-title flex flex--row flex--space-between">
|
|
|
|
<div class="flex flex--row">
|
|
|
|
<!-- <button class="side-title__button button" @click="newItem()">
|
|
|
|
<icon-file-plus></icon-file-plus>
|
|
|
|
</button> -->
|
|
|
|
<div class="side-title__title">
|
|
|
|
Menu
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<button class="side-title__button button" @click="toggleSideBar(false)">
|
|
|
|
<icon-close></icon-close>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<div class="side-bar__panel side-bar__panel--toc">
|
|
|
|
<toc>
|
|
|
|
</toc>
|
|
|
|
</div>
|
2017-07-23 18:42:08 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2017-08-04 08:20:50 +00:00
|
|
|
import { mapActions } from 'vuex';
|
2017-07-23 18:42:08 +00:00
|
|
|
import Toc from './Toc';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
components: {
|
|
|
|
Toc,
|
|
|
|
},
|
2017-08-04 08:20:50 +00:00
|
|
|
methods: {
|
|
|
|
...mapActions('data', [
|
|
|
|
'toggleSideBar',
|
|
|
|
]),
|
|
|
|
},
|
2017-07-23 18:42:08 +00:00
|
|
|
};
|
|
|
|
</script>
|
2017-08-04 08:20:50 +00:00
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
@import 'common/variables.scss';
|
|
|
|
|
|
|
|
.side-bar {
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
.side-bar__panel {
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.side-bar__panel--toc {
|
|
|
|
left: 1000px;
|
|
|
|
}
|
|
|
|
</style>
|