vue-print-pandale

for vue print

Usage no npm install needed!

<script type="module">
  import vuePrintPandale from 'https://cdn.skypack.dev/vue-print-pandale';
</script>

README

vue-print-pandale

The directive wrapper for printed,fast,Simple,light. ( IE兼容问题 )

Install

NPM

npm install vue-print-pandale --save
import Print from 'vue-print-pandale'

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>
    </div>

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

License

MIT