[Improvement] Radio: add label-position prop (#1446)

This commit is contained in:
neverland
2018-07-09 21:27:13 +08:00
committed by GitHub
parent b5b25ac923
commit 8c7dc1e622
4 changed files with 11 additions and 2 deletions
+3 -2
View File
@@ -10,7 +10,7 @@
>
<icon :name="currentValue === name ? 'checked' : 'check'" />
</span>
<span v-if="$slots.default" :class="b('label')" @click="onClickLabel">
<span v-if="$slots.default" :class="b('label', labelPosition)" @click="onClickLabel">
<slot />
</span>
</div>
@@ -29,7 +29,8 @@ export default create({
name: null,
value: null,
disabled: Boolean,
labelDisabled: Boolean
labelDisabled: Boolean,
labelPosition: Boolean
},
computed: {