Skip to content

Commit a52b56e

Browse files
authored
Change data attribute from object to function (#237)
1 parent 5e9450c commit a52b56e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

example/docs/introduction/getting-started.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,10 @@ export default {
3535
components: {
3636
Cropper,
3737
},
38-
data: {
39-
img: 'https://images.unsplash.com/photo-1600984575359-310ae7b6bdf2?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=700&q=80'
38+
data() {
39+
return {
40+
img: 'https://images.unsplash.com/photo-1600984575359-310ae7b6bdf2?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=700&q=80',
41+
}
4042
},
4143
methods: {
4244
change({ coordinates, canvas }) {

0 commit comments

Comments
 (0)