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