<template>
  <div ref="canvasWrap" :style="{width:width+'px',height:height+'px'}">
    <canvas ref="canvas" :style="{width:width+'px',height:height+'px'}" ></canvas>
  </div>
</template>
<script>
  export default {
    data(){
      return {};
    },
    mounted(){

    },
    methods:{
      getContext(){
          return this.$refs.canvas.getContext();
      }
    },
    props:['width','height']
  }
</script>
<style scoped>
</style>
