From dd2c04c24c0cd2de56869dc7638f94b1e3b6bb1f Mon Sep 17 00:00:00 2001 From: Orihara Izaya Date: Wed, 13 Oct 2021 10:06:36 +0800 Subject: [PATCH] bugfix: components default value fix components default value --- src/packages/vue-qr.vue | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/src/packages/vue-qr.vue b/src/packages/vue-qr.vue index f3dd0d5..f4a498a 100644 --- a/src/packages/vue-qr.vue +++ b/src/packages/vue-qr.vue @@ -106,21 +106,23 @@ export default { default: "#FFFFFF" }, components: { - default: { - data: { - scale: 0.4 - }, - timing: { - scale: 0.5, - protectors: false - }, - alignment: { - scale: 0.5, - protectors: false - }, - cornerAlignment: { - scale: 1, - protectors: true + default: function(){ + return { + data: { + scale: 0.4 + }, + timing: { + scale: 0.5, + protectors: false + }, + alignment: { + scale: 0.5, + protectors: false + }, + cornerAlignment: { + scale: 1, + protectors: true + } } } }