xprint
0.2.4 • Public • Published xprint
install
npm install --save xprint
import XPrint from 'xprint'
import 'xprint/dist/vue-print.css'
Vue.use(XPrint)
config
import XPrint from 'xprint'
import 'xprint/dist/vue-print.css'
Vue.use(XPrint, {
beforePrint() {
document.body.style.backgroundColor = '#f00'
},
afterPrint() {
document.body.style.backgroundColor = '#0ff'
}
})
use
<xpage class="page"></xpage>
<xpage class="page" white></xpage>
methods
demo
github
npm
Project setup
npm install
Compiles and hot-reloads for development
npm run serve
Compiles and minifies for production
npm run build
Run your tests
npm run test
Lints and fixes files
npm run lint
Customize configuration
See Configuration Reference.
Readme
Keywords
nonePackage Sidebar
Install
Weekly Downloads