ant-design-vue icon indicating copy to clipboard operation
ant-design-vue copied to clipboard

ant design vue table getCheckboxProps set indeterminate not working

Open soluationsign opened this issue 1 year ago • 0 comments
trafficstars

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

Version

1.7.7

Environment

vue 2

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

soluationsign avatar Jun 13 '24 08:06 soluationsign