add ref in childComponent and refs on click tab

This commit is contained in:
ogerly 2022-04-13 10:36:30 +02:00
parent dfc4a7ddde
commit 17f8a47f7f

View File

@ -15,12 +15,12 @@
/>
</b-tab>
<b-tab :title="titelGdt" class="px-4">
<b-tab :title="titelGdt" class="px-4" @click="$refs.childComponentRef.updateGdt()">
<b-row class="mb-3">
<b-col>{{ $t('transaction.gdt-text') }}</b-col>
<b-col class="text-right">{{ `${$n(GdtBalance, 'decimal')} GDT` }}</b-col>
</b-row>
<gdt-transaction-list />
<gdt-transaction-list ref="childComponentRef" />
</b-tab>
</b-tabs>
</div>