From f257fb27742ad2d352bba6a813c5af771afdbe64 Mon Sep 17 00:00:00 2001 From: Methapon Metanipat Date: Fri, 18 Oct 2024 11:16:29 +0700 Subject: [PATCH] feat(doc-preview): add toolbar --- src/pages/05_quotation/peview/ViewForm.vue | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/src/pages/05_quotation/peview/ViewForm.vue b/src/pages/05_quotation/peview/ViewForm.vue index f70f7b0e..da2450fc 100644 --- a/src/pages/05_quotation/peview/ViewForm.vue +++ b/src/pages/05_quotation/peview/ViewForm.vue @@ -18,6 +18,7 @@ import { QuotationPayload } from 'src/stores/quotations/types'; // NOTE: Import Components import ViewHeader from './ViewHeader.vue'; import BankComponents from './BankComponents.vue'; +import PrintButton from 'src/components/button/PrintButton.vue'; const quotationForm = useQuotationForm(); const optionStore = useOptionStore(); @@ -184,9 +185,16 @@ onMounted(async () => { watch(elements, () => { console.log(elements.value); }); + +function print() { + window.print(); +}