Skip to content

ant design vue table getCheckboxProps set indeterminate not working #5505

@JamesCZF

Description

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

Version

1.7.2

Environment

Vue2.6.10

Reproduction link

Edit on CodeSandbox

Steps to reproduce

computed: {
rowSelection() {
const _this = this;
return {
onChange: (selectedRowKeys, selectedRows) => {
// this.rowSelection.selectedRowKeys = selectedRowKeys;
},
onSelect: (record, selected, selectedRows) => {
_this.submit(record.id, selected, "resourece");
_this.selectedRowKeys = selectedRows.map((item) => item.id);
},
onSelectAll: (selected, selectedRows, changeRows) => {
console.log(selected, selectedRows, changeRows);
},
selectedRowKeys: this.selectedRowKeys,
getCheckboxProps: (record) => ({
props: {
indeterminate: record.id === "1514871721679704066",
},
}),
};
},
},

What is expected?

indeterminate: true work

What is actually happening?

indeterminate: true not work

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions