cell cell 定义 list-view 等列表中的每一项内容。 该组件只能放置在支持回收复用的列表如 list-view 组件中,内部可放置任意子组件。 官方文档说内部可放置任意子组件,但是放置默认选中的switch checkbox radio为啥不选中,放在cell外面又正常 <view>
<list-view id="listView" class="main" enable-back-to-top>
<cell class="cell">
<text class="title">{item.title}</text>
<text class="subtitle">{item.subtitle}</text>
<label>
<radio checked color="#f0f" value="radio_c"/>
<text>中国</text>
</label>
</cell>
<label class="label" >
<radio checked color="#f0f" value="radio_c"/>
<text>中国</text>
</label>
</list-view>
</view> |