在使用 ant design 的表格时候使用默认选中项, 需要配置的 Table 的 rowSelection

const rowSelection = {
            type: 'checkbox',
            getCheckboxProps(record) {
                    return {
                        defaultChecked: record.id == 0 // 配置默认勾选的列
                    }
            }
        }

可以参考 ant design 的 GitHub 回复 链接

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-02
  • 2022-12-23
  • 2021-10-17
  • 2021-11-16
  • 2021-10-30
猜你喜欢
  • 2021-11-21
  • 2022-12-23
  • 2021-07-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案