mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-04-06 03:57:56 +08:00
feat(editor): 历史记录最多存储20条
This commit is contained in:
parent
ccd6fd2be3
commit
ec8e8a17d2
@ -23,7 +23,7 @@ export class UndoRedo<T = any> {
|
||||
private listCursor: number;
|
||||
private listMaxSize: number;
|
||||
|
||||
constructor(listMaxSize = 200) {
|
||||
constructor(listMaxSize = 20) {
|
||||
const minListMaxSize = 2;
|
||||
this.elementList = [];
|
||||
this.listCursor = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user