ant-design-vue
ant-design-vue copied to clipboard
ant design vue table getCheckboxProps set indeterminate not working
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
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