Skip to content

Commit

Permalink
test: list demo recorver
Browse files Browse the repository at this point in the history
  • Loading branch information
fangsmile committed Jan 23, 2024
1 parent 0722d2c commit c7224f2
Showing 1 changed file with 3 additions and 20 deletions.
23 changes: 3 additions & 20 deletions packages/vtable/examples/list/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -332,26 +332,9 @@ export function createTable() {
tableInstance.on('change_cell_value', arg => {
console.log(arg);
});
let targetRow = 10;
function loop() {
targetRow += 1;
tableInstance.updateTheme(
VTable.themes.ARCO.extends({
bodyStyle: {
bgColor(args) {
if (args.row <= targetRow) {
return 'rgb(55,66,77)';
}
return 'rgb(255,255,255)';
}
}
})
);
tableInstance.scrollTop += 30;
requestAnimationFrame(loop);
}
// 启动循环
requestAnimationFrame(loop);
setTimeout(() => {
tableInstance.addRecord({ id: 333 }, 6);
}, 3000);
// tableInstance.on('sort_click', args => {
// tableInstance.updateSortState(
// {
Expand Down

0 comments on commit c7224f2

Please sign in to comment.