mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-26 14:58:55 +08:00
refactor(editor): use selected signal in block component (#9849)
This commit is contained in:
@@ -58,7 +58,9 @@ export class CaptionedBlockComponent<
|
||||
></block-caption-editor>`
|
||||
: nothing}
|
||||
${this.selectedStyle === SelectedStyle.Background
|
||||
? html`<affine-block-selection .block=${this}></affine-block-selection>`
|
||||
? html`<affine-block-selection
|
||||
.selected=${this.selected$.value}
|
||||
></affine-block-selection>`
|
||||
: null}
|
||||
${this.useZeroWidth && !this.doc.readonly
|
||||
? html`<block-zero-width .block=${this}></block-zero-width>`
|
||||
|
||||
Reference in New Issue
Block a user