antd table的selectedRowKeys

2,518 阅读1分钟
 <a-table
        :row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
        :columns="tagColumns"
        :data-source="tagLoadData"
        :loading="loading"
        :rowKey="(record)=>record.rulesKey"
        @change="nextClick"
      >
      </a-table>

1.:rowKey="(record)=>record.rulesKey"绑定哪个字段,selectedRowKeys数组中就保存哪个字段