Skip to content

Commit

Permalink
feat(config): add defaultSettingPanelProps config
Browse files Browse the repository at this point in the history
  • Loading branch information
liujuping committed Sep 11, 2023
1 parent a560830 commit 8f377cb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
11 changes: 10 additions & 1 deletion docs/docs/api/configOptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,16 @@ JSExpression 是否只支持使用 this 来访问上下文变量,假如需要

自定义 loading 组件

### 插件

#### defaultSettingPanelProps

内置设置面板插件的 panelProps

#### defaultOutlinePaneProps

内置大纲树面板插件的 panelProps

### 其他

#### enableStrictPluginMode
Expand Down Expand Up @@ -282,4 +292,3 @@ customPluginTransducer: async (originPlugin: IPublicTypePlugin, ctx: IPublicMode
大纲树插件面板默认 props
4 changes: 3 additions & 1 deletion packages/engine/src/inner-plugins/default-panel-registry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ export const defaultPanelRegistry = (editor: any) => {
props: {
ignoreRoot: true,
},
panelProps: {
...(config.get('defaultSettingPanelProps') || {}),
},
});
}
},
Expand All @@ -39,5 +42,4 @@ export const defaultPanelRegistry = (editor: any) => {
return fun;
};


export default defaultPanelRegistry;

0 comments on commit 8f377cb

Please sign in to comment.