tontisa-print-nb

0.0.2 • Public • Published

tontisa-print-nb

This is a directive wrapper for printed, Simple, fast, convenient, light.

Install

NPM

npm install tontisa-print-nb --save
import Print from 'tontisa-print-nb'

Vue.use(Print);

Description

Print the entire page:

<button v-print>Print the entire page</button>

Print local range:

HTML:

    <div id="printMe" style="background:red;">
        <p>葫芦娃,葫芦娃</p>
        <p>一根藤上七朵花 </p>
        <p>小小树藤是我家 啦啦啦啦 </p>
        <p>叮当当咚咚当当 浇不大</p>
        <p> 叮当当咚咚当当 是我家</p>
        <p> 啦啦啦啦</p>
        <p>...</p>
    </div>

    <button v-print="'#printMe'">Print local range</button>

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i tontisa-print-nb

Weekly Downloads

2

Version

0.0.2

License

ISC

Unpacked Size

15.5 kB

Total Files

9

Last publish

Collaborators

  • zongdusir