mirror of
https://git.youjo.love/youjo/youjo-fe.git
synced 2025-03-21 01:07:47 +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">
|
||||
<input type="checkbox" :checked="checked" @change="$emit('change', $event.target.checked)">
|
||||
<i class="checkbox-indicator" />
|
||||
<span><slot></slot></span>
|
||||
<span v-if="!!$slots.default"><slot></slot></span>
|
||||
</label>
|
||||
</template>
|
||||
|
||||
|
|
Loading…
Reference in a new issue