mirror of
https://gitee.com/layui/layui.git
synced 2025-10-07 23:24:32 +08:00
feat(table): 优化 table.checkStatus() 方法 (#2239)
* feat(table): 优化 table.checkStatus() 方法 * docs(table): 补充文档
This commit is contained in:
@@ -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 ) // 表格是否全选
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user