mirror of
https://iceshrimp.dev/iceshrimp/akkoma-fe.git
synced 2025-12-17 00:43:02 +01:00
render span tag only if it has content
This commit is contained in:
parent
988849116d
commit
3f5e798de7
1 changed files with 1 additions and 1 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
<label class="checkbox">
|
<label class="checkbox">
|
||||||
<input type="checkbox" :checked="checked" @change="$emit('change', $event.target.checked)">
|
<input type="checkbox" :checked="checked" @change="$emit('change', $event.target.checked)">
|
||||||
<i class="checkbox-indicator" />
|
<i class="checkbox-indicator" />
|
||||||
<span><slot></slot></span>
|
<span v-if="!!$slots.default"><slot></slot></span>
|
||||||
</label>
|
</label>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue