mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 02:31:21 +00:00
[bugfix] Checkbox: should not render label when label is empty (#920)
This commit is contained in:
@@ -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>
|
||||
|
Reference in New Issue
Block a user