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

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

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