Skip to content

Tabel组件 columns添加了filters属性和onFilter方法,但checkbox选中无法checked #906

@millzhang

Description

@millzhang
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

1.3.10

Environment

chrome74,vue 2.6.10

Reproduction link

https://preview.pro.loacg.com/list/table-list

Steps to reproduce

....
columns=[{
title: '状态',
dataIndex: 'status',
scopedSlots: {
   customRender: 'vstatus'
},
filterMultiple: false,
filters: [{ text: '未审核', value: 0 }, { text: '已审核', value: 1 }],
onFilter: (value: number, record: object) => {
     return value == record.status;
}
}]
...

<a-table
style="margin-top:20px;"
rowKey={this.generateRowKey}
bordered
columns={this.columns}
dataSource={this.tableData}
pagination={this.pagination}
loading={this.loading}
rowSelection={this.rowSelection}
on-change={this.handleTabelChange}
scopedSlots={{
vstatus: (value: number) => this.renderTag(value),
operate: (options: VerifyDataItem) =>
this.renderOperation(options)
}}
/>

What is expected?

点击checkbox选中

What is actually happening?

点击checkbox该行高亮了,但是checkbox却未选中,filterMultiple改为false也未生效

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions