const Component = require(`vn-print/core/component`); const emailBody = new Component('email-body'); const attachment = new Component('attachment'); module.exports = { name: 'client-debt-statement', components: { 'email-body': emailBody.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 } } };