mirror of
https://github.com/frappe/books.git
synced 2024-11-13 00:46:28 +00:00
21 lines
351 B
Vue
21 lines
351 B
Vue
<template>
|
|
<div v-html="printTemplate"></div>
|
|
</template>
|
|
|
|
<script>
|
|
import { getHTML } from '../../common/print.js';
|
|
|
|
export default {
|
|
name: 'PrintView',
|
|
props: ['doctype', 'name'],
|
|
data() {
|
|
return {
|
|
printTemplate: ''
|
|
}
|
|
},
|
|
async created(vm) {
|
|
this.printTemplate = await getHTML(this.doctype, this.name);
|
|
},
|
|
}
|
|
</script>
|