diff options
| author | taehoon <th.dev91@gmail.com> | 2019-04-06 13:25:53 -0400 |
|---|---|---|
| committer | taehoon <th.dev91@gmail.com> | 2019-04-17 11:32:49 -0400 |
| commit | 3f5e798de79b401945d2a0ac992ca5ee6115d79f (patch) | |
| tree | 7f6cde2b6f9832c59b636d034dcd9de9045ab19c /src/components/checkbox/checkbox.vue | |
| parent | 988849116d75ab02ae6da5998c751133ea13f531 (diff) | |
render span tag only if it has content
Diffstat (limited to 'src/components/checkbox/checkbox.vue')
| -rw-r--r-- | src/components/checkbox/checkbox.vue | 2 |
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> |
