# vue-print-nb
This is a directive wrapper for printed, Simple, fast, convenient, light.
## Install
#### NPM
```bash
npm install vue-print-nb --save
```
```javascript
import Print from 'vue-print-nb'
Vue.use(Print);
```
## Run demo
Download the project, install dependencies, run demo
```
npm run serve
-Local: http://localhost:8080/
```
## Description
#### Print the entire page:
```
```
#### Print local range:
HTML:
```
葫芦娃,葫芦娃
一根藤上七朵花
小小树藤是我家 啦啦啦啦
叮当当咚咚当当 浇不大
叮当当咚咚当当 是我家
啦啦啦啦
...
```
Pass in a string type directly
* `id`: ID of local print range
#### More
HTML:
```
葫芦娃,葫芦娃
一根藤上七朵花
小小树藤是我家 啦啦啦啦
叮当当咚咚当当 浇不大
叮当当咚咚当当 是我家
啦啦啦啦
...
```
JavaScript:
```
export default {
data() {
return {
printObj: {
id: "printMe",
popTitle: 'good print',
extraCss: 'https://www.google.com,https://www.google.com',
extraHead: ''
}
};
}
}
```
You can also pass in an object type `Objcet`
### API
* `id`: *requisite Partial printing of the incoming ID
* `standard`: Document type, default is html5, optional `html5`, `loose`, `strict`
* `extraHead`: Additional tags attached to the head tag, separated by commas
* `extraCss`: Additional link connections, separated by commas
* `popTitle`: Title shows the title
* `endCallback()`: Callback events after printing
## License
[MIT](http://opensource.org/licenses/MIT)