aboutsummaryrefslogtreecommitdiff
path: root/src/components/checkbox/checkbox.vue
diff options
context:
space:
mode:
authortaehoon <th.dev91@gmail.com>2019-04-06 13:25:53 -0400
committertaehoon <th.dev91@gmail.com>2019-04-17 11:32:49 -0400
commit3f5e798de79b401945d2a0ac992ca5ee6115d79f (patch)
tree7f6cde2b6f9832c59b636d034dcd9de9045ab19c /src/components/checkbox/checkbox.vue
parent988849116d75ab02ae6da5998c751133ea13f531 (diff)
render span tag only if it has content
Diffstat (limited to 'src/components/checkbox/checkbox.vue')
-rw-r--r--src/components/checkbox/checkbox.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/checkbox/checkbox.vue b/src/components/checkbox/checkbox.vue
index 84bea53e..8f32e96b 100644
--- a/src/components/checkbox/checkbox.vue
+++ b/src/components/checkbox/checkbox.vue
@@ -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>