File tree Expand file tree Collapse file tree 3 files changed +37
-0
lines changed Expand file tree Collapse file tree 3 files changed +37
-0
lines changed Original file line number Diff line number Diff line change
1
+ <template >
2
+ <ImageMagnifier :src =" image" :zoom-src =" image" width =" 400" height =" 300" zoom-width =" 400" zoom-height =" 300" ></ImageMagnifier >
3
+ </template >
4
+
5
+ <script >
6
+ import ImageMagnifier from ' ../src/components/ImageMagnifier.vue'
7
+ import image from ' ./img/DA2D9393-4081-4384-B493-95DA1620C26D.png'
8
+ export default {
9
+ components: {
10
+ ImageMagnifier
11
+ },
12
+ data () {
13
+ return {
14
+ image,
15
+ config: {
16
+ width: 400 ,
17
+ height: 300 ,
18
+ maskWidth: 100 ,
19
+ maskHeight: 100 ,
20
+ maskColor: ' #fff' ,
21
+ maskOpacity: 0.5
22
+ }
23
+ }
24
+ }
25
+ }
26
+ </script >
27
+
28
+ <!-- Add "scoped" attribute to limit CSS to this component only -->
29
+ <style scoped>
30
+
31
+ </style >
Original file line number Diff line number Diff line change
1
+ import Vue from 'vue' ;
2
+ import App from './App.vue' ;
3
+
4
+ new Vue ( {
5
+ render : ( h ) => h ( App )
6
+ } ) . $mount ( '#app' )
You can’t perform that action at this time.
0 commit comments