chore(editor): hide title of locked group (#9261)

Close [BS-2188](https://linear.app/affine-design/issue/BS-2188/[improvement]-多个yuan素-lock-后不渲染标签)
This commit is contained in:
L-Sun
2024-12-23 12:39:07 +00:00
parent f770daec0a
commit 8e1ceec4f9

View File

@@ -90,6 +90,16 @@ export class GroupElementModel extends GfxGroupLikeElementModel<GroupElementProp
return result as SerializedGroupElement;
}
override lock(): void {
super.lock();
this.showTitle = false;
}
override unlock(): void {
super.unlock();
this.showTitle = true;
}
@observe(
// use `GroupElementModel` type in decorator will cause playwright error
(_, instance: GfxGroupLikeElementModel<GroupElementProps>, transaction) => {