自定义小程序表格组件带多选功能

<!-- wxml分页组件 -->
<scroll-view  scroll-x="{
   {false}}">
  <view class="table {
   {border?'border':''}}">
    <view class="th" >
      <view class="td {
   {item.type === 'checkbox'?'td-80':'td-200'}}" wx:for="{
   {cloumns}}" wx:key="index">
        <checkbox checked="{
   {is_all}}" bindtap="checkboxChange" data-type="all"  wx:if="{
   {item.type === 'checkbox'}}"/>
        <text wx:else>{
   {
   item.label}}</text>
      </view>
    </view>
    <scroll-view scroll-x="{
   {false}}" scroll-y="true" style='height:{
   {height}};' class='tbody_scroll'>
      <block wx:for="{
   {data}}" wx:key="index">
        <view class="tr {
   {index%2==0?'bg-tr':''}}">
          <view class="td {
   {tr.type === 'checkbox'?'td-80':'td-200'}}" wx:for="{
   {cloumns}}" wx:key="trIdx" wx:for-item="tr" wx:for-index="trIdx">
          
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值