scholtz / qrcode-vue3

MIT License
87 stars 33 forks source link

Button names cannot be changed during download #45

Open tuanpham09 opened 10 months ago

tuanpham09 commented 10 months ago
jmzwcn commented 4 months ago

<QRCodeVue3 :value="qrValue" :key="qrValue" :width="200" :height="200" :download="true" downloadButton="bn-hidden" function download() { let bn = document.getElementsByClassName('bn-hidden')[0] as HTMLButtonElement bn.click() }

.bn-hidden { display: none; }