render span tag only if it has content
This commit is contained in:
parent
988849116d
commit
3f5e798de7
@ -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 New Issue
Block a user