Skip to content

Commit b20005a

Browse files
authored
Merge pull request #100 from Izayawww/master
bugfix: components default value
2 parents 399eb79 + d7f324c commit b20005a

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

Diff for: src/packages/vue-qr.vue

+17-15
Original file line numberDiff line numberDiff line change
@@ -106,21 +106,23 @@ export default {
106106
default: "#FFFFFF"
107107
},
108108
components: {
109-
default: {
110-
data: {
111-
scale: 0.4
112-
},
113-
timing: {
114-
scale: 0.5,
115-
protectors: false
116-
},
117-
alignment: {
118-
scale: 0.5,
119-
protectors: false
120-
},
121-
cornerAlignment: {
122-
scale: 1,
123-
protectors: true
109+
default: function(){
110+
return {
111+
data: {
112+
scale: 0.4
113+
},
114+
timing: {
115+
scale: 0.5,
116+
protectors: false
117+
},
118+
alignment: {
119+
scale: 0.5,
120+
protectors: false
121+
},
122+
cornerAlignment: {
123+
scale: 1,
124+
protectors: true
125+
}
124126
}
125127
}
126128
}

0 commit comments

Comments
 (0)