Skip to content
快速跳转

item 列表项组件 ​

介绍 ​

包裹列表循环项的结构组件

引入 ​

在app.json或index.json中引入组件

json
"usingComponents": {
  "item": "coolui-scroller/item/index"
}

代码演示 ​

html
<scroller>
  <item
    ripple
    wx:for="{{ list }}"
    wx:for-index="index"
    wx:for-item="listItem"
    wx:key="index"
  >
    <view class="item">
      <view class="title">{{index}}.{{listItem.title}}</view>
    </view>
  </item>
</scroller>

配置 ​

参数说明类型默认值版本
ripple设置点击是否显示波纹效果,可设置true或false。设置为true时开启Booleanfalse3.0.4