feat(table): 优化 table.checkStatus() 方法 (#2239)

* feat(table): 优化 table.checkStatus() 方法

* docs(table): 补充文档
This commit is contained in:
贤心
2024-09-25 00:14:02 +08:00
committed by GitHub
parent 8d14ef50e7
commit 4262ed82b3
2 changed files with 9 additions and 8 deletions

View File

@@ -369,6 +369,7 @@ table.render({
var tableStatus = table.checkStatus('test');
console.log(tableStatus.data) // 选中行的数据
console.log(tableStatus.data.length) // 选中行数量,可作为是否有选中行的条件
console.log(tableStatus.dataCache) // 选中的原始缓存数据,包含内部特定字段 --- 2.9.17+
console.log(tableStatus.isAll ) // 表格是否全选
```