mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-15 05:37:32 +00:00
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:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user