mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-12 14:40:22 +08: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;
|
return result as SerializedGroupElement;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override lock(): void {
|
||||||
|
super.lock();
|
||||||
|
this.showTitle = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
override unlock(): void {
|
||||||
|
super.unlock();
|
||||||
|
this.showTitle = true;
|
||||||
|
}
|
||||||
|
|
||||||
@observe(
|
@observe(
|
||||||
// use `GroupElementModel` type in decorator will cause playwright error
|
// use `GroupElementModel` type in decorator will cause playwright error
|
||||||
(_, instance: GfxGroupLikeElementModel<GroupElementProps>, transaction) => {
|
(_, instance: GfxGroupLikeElementModel<GroupElementProps>, transaction) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user