mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 02:31:21 +00:00
[Improvement] Checkbox: add label-position prop (#1394)
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
}]"
|
||||
@click="onClick"
|
||||
/>
|
||||
<span v-if="$slots.default" :class="b('label')" @click="onClick('label')">
|
||||
<span v-if="$slots.default" :class="b('label', labelPosition)" @click="onClick('label')">
|
||||
<slot />
|
||||
</span>
|
||||
</div>
|
||||
@@ -29,6 +29,7 @@ export default create({
|
||||
name: null,
|
||||
value: null,
|
||||
disabled: Boolean,
|
||||
labelPosition: String,
|
||||
labelDisabled: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
|
Reference in New Issue
Block a user