<view class="uni-header">
<view class="uni-group">
<button class="uni-button" type="warn" size="mini" :disabled="!selectedIndexs.length" @click="delTable">批量删除</button>
</view>
</view>
<view class="uni-container">
<unicloud-db ref="udb" :collection="collectionList" :where="where" page-data="replace" :orderby="orderby"
:getcount="true" :page-size="options.pageSize" :page-current="options.pageCurrent"
v-slot:default="{ pagination, loading, error, options }" :options="options" loadtime="manual"
@load="onqueryload">
<uni-table ref="table" :loading="loading" :emptyText="error.message || '没有更多数据'" border stripe
type="selection" @selection-change="selectionChange">
...
methods: {
// 选中项改变
selectionChange(e) {
this.selectedIndexs = e.detail.index
},
}