whychdw
2021-03-02 16c9e2760201ea5fd76581c6843af4f6c99ddbe2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<template>
    <div class="canvas-image">
        <div class="canvas-wrapper" ref="canvasWrapper"></div>
    </div>
</template>
 
<script>
import CanvasImage from "@/pages/js/CanvasImage";
export default {
    data() {
        return {
            canvasImage: ""
        }
    },
    mounted() {
        this.canvasImage = new CanvasImage(this.$refs.canvasWrapper, {
            width: 300,
            height: 300
        });
        this.canvasImage.
        console.log(this.canvasImage);
    }
}
</script>
 
<style scoped>
.canvas-wrapper {
    width: 300px;
    height: 300px;
    box-sizing: border-box;
}
</style>