[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

@@ -10,7 +10,7 @@
}]"
@click="onClick"
/>
<span class="van-checkbox__label" @click="onClick('label')">
<span v-if="$slots.default" class="van-checkbox__label" @click="onClick('label')">
<slot />
</span>
</div>