holyes-table 1.0.19 → 1.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -564,6 +564,7 @@ type HolyesTableFooterProps = {
564
564
  | 方法名 | 参数 | 返回值 | 说明 |
565
565
  | -------- | ------ | -------- | -------- |
566
566
  | reloadData | `(data: any[])` | `Promise<void>` | 重新设置表格数据 |
567
+ | setCurrentRow | `(item: any, isEmitsCurrentChange?: boolean = true)` | `void` | 设置当前选中的行, 会判断是否更换了选中行, 并触发 currentChange 事件 |
567
568
  | getTableData | `()` | `{ fullData, visibleData }` | 获取表格数据(包含全部数据、当前可见数据) |
568
569
  | getCheckboxRecords | `(isFull: boolean, field?: string)` | `any[]` | 获取所有选中的行数据,isFull 为false时, 只获取当前可见数据的选中行; field 为选中列字段, 默认第一个选中列字段 |
569
570
  | clearCheckboxRow | `()` | `void` | 清空多选列选中状态 |