#vue-easy-print
>This is a vue 2.0 based print component
[中文文档](./README.MD)
[English](./README.EN.MD)
# core:
> Use the slot slot of the vue component to load the template.
>Copy the print area using iframe
# [demo](https://jsfiddle.net/pcloth/p35vz97u/)
## Update
V0.0.7 fixes compatibility issues. Thanks [Wizard67] (https://github.com/Wizard67)
## Quick start
### first step:
```sh
npm install vue-easy-print --save
```
###Step 2, in your vue page
```js
Import vueEasyPrint from "vue-easy-print";
Import the demo from './your path / demo';
export default {
components: {
vueEasyPrint,
demo
}
}
```
###Step 3, load the template:
``` html
```
## slot-scope
The method received by func.getChineseNumber is to convert the amount into Chinese.
##Configuring props parameters
``` js
// For paginated table mode: insert a blank line at the end
spaceRow: {
type:Boolean,
default:false,
},
// For paging table mode: incoming print data.
tableData:{
type:Object,
default() {
return undefined
}
},
// Whether to display the table
tableShow:{
type:Boolean,
default:false
},
// How many lines per page
onePageRow: {
type:Number,
default:5,
},
// Copy the hook that was called before printing the page
beforeCopy:Function,
// Hooks called before the page is printed
beforePrint:Function,
```
## demo

``` html