mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-25 14:28:51 +08:00
feat(editor): unify block props api (#10888)
Closes: [BS-2707](https://linear.app/affine-design/issue/BS-2707/统一使用props获取和更新block-prop)
This commit is contained in:
@@ -130,7 +130,7 @@ export class NoteBlockModel
|
||||
implements GfxElementGeometry
|
||||
{
|
||||
private _isSelectable(): boolean {
|
||||
return this.displayMode !== NoteDisplayMode.DocOnly;
|
||||
return this.props.displayMode !== NoteDisplayMode.DocOnly;
|
||||
}
|
||||
|
||||
override containsBound(bounds: Bound): boolean {
|
||||
@@ -169,7 +169,7 @@ export class NoteBlockModel
|
||||
this.parent?.children.find(
|
||||
child =>
|
||||
child instanceof NoteBlockModel &&
|
||||
child.displayMode !== NoteDisplayMode.EdgelessOnly
|
||||
child.props.displayMode !== NoteDisplayMode.EdgelessOnly
|
||||
) === this
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user