提交 325bca41 编写于 作者: 杜庆泉's avatar 杜庆泉

Merge branch 'master' of http://git.dcloud.io/uniapp/hello-uniapp-x into master

......@@ -40,12 +40,11 @@
</view>
<view class="uni-list">
<checkbox-group @change="checkboxChange">
<view class="uni-list-cell uni-list-cell-pd" v-for="(item, index) in items" :key="item.value"
<checkbox class="uni-list-cell uni-list-cell-pd" v-for="(item, index) in items" :key="item.value"
:value="item.value" :checked="item.checked"
:class="index < items.length - 1 ? 'uni-list-cell-line': ''">
<view>
<checkbox :value="item.value" :checked="item.checked">{{item.name}}</checkbox>
</view>
</view>
{{item.name}}
</checkbox>
</checkbox-group>
</view>
</view>
......
......@@ -33,12 +33,11 @@
</view>
<view class="uni-list">
<radio-group @change="radioChange">
<view class="uni-list-cell uni-list-cell-pd" v-for="(item, index) in items" :key="item.value"
:class="index < items.length - 1 ? 'uni-list-cell-line': ''">
<view>
<radio :value="item.value" :checked="index === current">{{item.name}}</radio>
</view>
</view>
<radio class="uni-list-cell uni-list-cell-pd" v-for="(item, index) in items" :key="item.value"
:class="index < items.length - 1 ? 'uni-list-cell-line': ''" :value="item.value"
:checked="index === current">
{{item.name}}
</radio>
</radio-group>
</view>
</view>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册