<template>
  <h1>EPC发卡</h1>
  <button class="btn btn-default" @click="printEpc">打印</button>
  <PrintEpc ref="printEpc" printer-name="打印机" />

  <h1>打印控件</h1>

  <PrintWidget />
</template>

<script>
import PrintEpc from '@/print/print-epc.js';
import PrintWidget from '@/print/print-widget.js';

export default {

  components: {
    'PrintEpc': PrintEpc,
    'PrintWidget': PrintWidget,
  },
  data: function(){
    return {
      pageSize: 20,
    };
  },

  mounted: function(){
        
  },

  methods: {
    printEpc: function(){
      this.$refs.printEpc.show();
    },
  },
};
</script>

<style scoped>

</style>