From 941ae0592586334694c48197aaa6692d49cefbce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?LeoYuan=20=E8=A2=81=E5=8A=9B=E7=9A=93?= Date: Thu, 26 May 2022 14:54:41 +0800 Subject: [PATCH] feat: add id setter for DocumentModel --- packages/shell/src/document-model.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/shell/src/document-model.ts b/packages/shell/src/document-model.ts index cf9a41eee..100d2c33b 100644 --- a/packages/shell/src/document-model.ts +++ b/packages/shell/src/document-model.ts @@ -68,6 +68,10 @@ export default class DocumentModel { return this[documentSymbol].id; } + set id(id) { + this[documentSymbol].id = id; + } + /** * 获取当前文档所属的 project * @returns