const Component = require(`vn-print/core/component`); const emailHeader = new Component('email-header'); const emailFooter = new Component('email-footer'); const attachment = new Component('attachment'); module.exports = { name: 'client-debt-statement', components: { 'email-header': emailHeader.build(), 'email-footer': emailFooter.build(), 'attachment': attachment.build() }, data() { return { attachments: [ { filename: 'client-debt-statement.pdf', type: 'pdf', path: `Clients/${this.id}/client-debt-statement-pdf` } ] }; }, props: { id: { type: Number, required: true }, from: { required: true } } };