I'm facing an issue with hiding a button in my parent component from the child component. I tried using props to bind the element and v-show directive to hide it, but instead of just hiding the button, it ends up hiding the entire tab.
Take a look at my parent component:
<div class="col-lg-auto" v-if="unpaid.qr_code === 1">
<q-btn glossy
size="md"
:label="$t('Common.GetQrCode.Button')"
@click="makePayment(unpaidIndex, true)" color="positive"
v-bind="share">
</q-btn>
</div>
<div class="col-lg-auto" v-if="unpaid.qr_code === 1">
-- OR --
</div>
props: {
share: {
type: Boolean,
default: true
},
This component is also used in other components. Moving on to my child component:
<payment-tab v-if="depositRefundID !== undefined && depositRefundID !== null && depositRefundID !== '' && loadingComplete" v-show:share="false">