1.1.4 • Published 4 years ago

vue-invoice v1.1.4

Weekly downloads
40
License
MIT
Repository
github
Last release
4 years ago

vue-invoice

A simple, light and configurable Invoice component for Vue

Installation

npm install vue-invoice
yarn add vue-invoice

Demo

https://codesandbox.io/s/vue-invoice-3424y

Usage

Global registration

Import the component and register with vue. Ensure to add vuex store as options

import Vue from 'vue'
import Invoice from 'vue-invoice'

Vue.use(Invoice, { store } )

Sample

You can set any currency of your choice. it is set to USD by default There are different color variants. It can be set with the variant prop

<!--vue template-->
<template>
  <div id="app">
    <Invoice
      :company="company"
      :customer="customer"
      :invoice="invoice"
      :variant="1"
      currency="eur"
    />
  </div>
  </template>

Complete Props table

PropsTypeContentDefaultRequired
variantIntegerColor Variant id1No
currencyStringcurrency codeUSDNo
companyObjectcompany name and addressundefinedYes
customerObjectcustomer name, company and email addressundefinedYes
invoiceObjectinvoice items, invoice id & due dateundefinedYes

License

This project is licensed under the MIT License.

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.0.2

4 years ago

1.1.0

4 years ago

1.0.1

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

0.1.0

4 years ago