fix dynamic chips

This commit is contained in:
dni ⚡
2024-10-17 10:40:52 +02:00
parent 5f328539ff
commit ff6d53afcb
3 changed files with 11 additions and 4 deletions
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -450,7 +450,7 @@ window.app.component('lnbits-dynamic-chips', {
if (!this.chip) return
this.chips.push(this.chip)
this.chip = ''
this.modelValue = this.chips.join(',')
this.$emit('update:model-value', this.chips.join(','))
},
removeChip(index) {
this.chips.splice(index, 1)
+9 -2
View File
@@ -393,7 +393,7 @@
></q-input>
<div v-else-if="o.type === 'chips'">
<lnbits-dynamic-chips
:model-value="formData[o.name]"
v-model="formData[o.name]"
@update:model-value="handleValueChanged"
></lnbits-dynamic-chips>
</div>
@@ -489,7 +489,14 @@
<template id="lnbits-qrcode">
<div class="qrcode__wrapper">
<qrcode-vue :value="value" level="Q" render-as="svg" margin="1" size="350" class="rounded-borders"></qrcode-vue>
<qrcode-vue
:value="value"
level="Q"
render-as="svg"
margin="1"
size="350"
class="rounded-borders"
></qrcode-vue>
<img class="qrcode__image" :src="logo" alt="qrcode icon" />
</div>
</template>