Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(config): add defaultSettingPanelProps config #2461

Merged
merged 1 commit into from
Sep 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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


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;
Loading