2
0
mirror of https://github.com/frappe/books.git synced 2024-09-20 19:29:02 +00:00
books/ui/components/Desk.vue

31 lines
651 B
Vue
Raw Normal View History

2018-06-27 14:38:27 +00:00
<template>
<div class="frappe-desk row no-gutters">
<frappe-sidebar :sidebarConfig="sidebarConfig"></frappe-sidebar>
<frappe-main>
2018-07-12 15:15:52 +00:00
<frappe-navbar :showSearch="showSearch"></frappe-navbar>
2018-06-27 14:38:27 +00:00
<slot></slot>
</frappe-main>
</div>
</template>
<script>
import Sidebar from './Sidebar';
import Main from './Main';
import Navbar from './Navbar';
export default {
props: ['sidebarConfig'],
components: {
FrappeSidebar: Sidebar,
FrappeMain: Main,
FrappeNavbar: Navbar
2018-07-12 15:15:52 +00:00
},
computed: {
showSearch() {
return /list|edit/.test(this.$route.path)
}
2018-06-27 14:38:27 +00:00
}
};
</script>
<style>
</style>