[bugfix] Checkbox: should not render label when label is empty (#920)

This commit is contained in:
neverland
2018-04-24 09:51:52 +08:00
committed by GitHub
parent 9d623a6196
commit 86184e090e
10 changed files with 63 additions and 86 deletions

View File

@@ -14,7 +14,7 @@
>
<icon :name="currentValue === name ? 'checked' : 'check'" />
</span>
<span class="van-radio__label" @click="onClickLabel">
<span v-if="$slots.default" class="van-radio__label" @click="onClickLabel">
<slot />
</span>
</div>