2
0
mirror of https://github.com/frappe/books.git synced 2024-12-25 20:11:15 +00:00
books/ui/pages/ListAndPrintView.vue

32 lines
806 B
Vue
Raw Normal View History

2018-07-13 05:16:15 +00:00
<template>
<div class="frappe-list-form row no-gutters">
<div class="col-4 border-right">
<frappe-list :doctype="doctype" :filters="filters" :key="doctype" />
</div>
2018-07-13 07:29:57 +00:00
<div class="col-8 background-gray">
<print-view v-if="name" :key="doctype + name" :doctype="doctype" :name="name" />
2018-07-13 05:16:15 +00:00
</div>
</div>
</template>
<script>
import List from '../components/List/List';
2018-07-13 07:29:57 +00:00
import PrintView from '../components/Print/PrintView';
2018-07-13 05:16:15 +00:00
export default {
props: ['doctype', 'name', 'filters'],
components: {
FrappeList: List,
PrintView: PrintView,
},
}
</script>
2018-07-13 07:29:57 +00:00
<style lang="scss">
2018-07-13 05:16:15 +00:00
.frappe-list-form {
min-height: calc(100vh - 4rem);
}
2018-07-13 07:29:57 +00:00
@import "../styles/variables";
.background-gray {
background-color: $gray-100
}
2018-07-13 05:16:15 +00:00
</style>