fix: 手动操作行标记示例时动态获取列表前两行
parent
e1f6449073
commit
329fa68207
|
|
@ -145,10 +145,9 @@ function onView(row: RowType) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function onCustomSet() {
|
function onCustomSet() {
|
||||||
gridApi.markKeysAsViewed([
|
const tableData = gridApi.grid.getData();
|
||||||
'0da74a21-362d-42ba-9c7e-078e47477620',
|
const keys = tableData.slice(0, 2).map((row) => row.id);
|
||||||
'1c7785d9-f16b-448b-b6a2-fb4b3557550a',
|
gridApi.markKeysAsViewed(keys);
|
||||||
]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function onClearViewed() {
|
function onClearViewed() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue