refactor(editor): edgeless toolbar linked doc custom config extension (#10883)

This commit is contained in:
fundon
2025-03-20 02:08:19 +00:00
parent a004a2cfab
commit ac705c724e
2 changed files with 134 additions and 110 deletions

View File

@@ -314,6 +314,7 @@ function renderActionItem(action: ToolbarAction, context: ToolbarContext) {
?active=${typeof action.active === 'function'
? action.active(context)
: action.active}
?disabled=${action.disabled}
.tooltip=${action.tooltip}
@click=${() => action.run?.(context)}
>
@@ -336,6 +337,7 @@ function renderMenuActionItem(action: ToolbarAction, context: ToolbarContext) {
?active=${typeof action.active === 'function'
? action.active(context)
: action.active}
?disabled=${action.disabled}
.tooltip=${ifDefined(action.tooltip)}
@click=${() => action.run?.(context)}
>