X Tutup
Skip to content

Commit d04e96e

Browse files
committed
feat: add id setter for DocumentModel
1 parent 016f2e6 commit d04e96e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/shell/src/document-model.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ export default class DocumentModel {
6868
return this[documentSymbol].id;
6969
}
7070

71+
set id(id) {
72+
this[documentSymbol].id = id;
73+
}
74+
7175
/**
7276
* 获取当前文档所属的 project
7377
* @returns

0 commit comments

Comments
 (0)
X Tutup