scopewu/qrcode.vue

margin is not work in vue2 with 1.7.0

jiameiw opened this issue · 8 comments

<qrcode-vue
        :value="value"
        :size="430"
        level="H"
        :margin="30"
      >
      </qrcode-vue>

but get
image

Hi @jiameiw, The qrcode 1.7.0 does not support the margin prop, 3.1.0 was the first version to support it (vue3 only). Maybe support will be added in the future, would using css padding be sufficient?

Hi @jiameiw, The qrcode 1.7.0 does not support the margin prop, 3.1.0 was the first version to support it (vue3 only). Maybe support will be added in the future, would using css padding be sufficient?

ok,thanks

It would be great to have this for Vue 2 as well.
In the meantime, a note in the readme that this is currently not supported would be nice.

Next I'll try to support margin and image in vue2.

I encountered the same thing... oh

I Also had the same issue.

BTMuli commented

Vue2 is EOL soon...so why not upgrade to vue3?

VUE 2.x end of life.