[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

@@ -17,8 +17,12 @@
<demo-block :title="$t('title3')">
<van-radio-group v-model="radio3">
<van-cell-group>
<van-cell><van-radio name="1">{{ $t('radio') }}1</van-radio></van-cell>
<van-cell><van-radio name="2">{{ $t('radio') }}2</van-radio></van-cell>
<van-cell :title="$t('radio') + 1" clickable @click="radio3 = '1'">
<van-radio name="1" />
</van-cell>
<van-cell :title="$t('radio') + 2" clickable @click="radio3 = '2'">
<van-radio name="2" />
</van-cell>
</van-cell-group>
</van-radio-group>
</demo-block>
@@ -61,16 +65,5 @@ export default {
margin-bottom: 10px;
}
}
.van-cell {
.van-radio__input {
float: right;
position: static;
}
.van-radio__label {
margin: 0;
}
}
}
</style>