feat(config): add defaultSettingPanelProps config

This commit is contained in:
liujuping 2023-09-11 11:23:36 +08:00 committed by 林熠
parent a560830db6
commit 6b14986e8f
2 changed files with 13 additions and 2 deletions

View File

@ -254,6 +254,16 @@ JSExpression 是否只支持使用 this 来访问上下文变量,假如需要
自定义 loading 组件 自定义 loading 组件
### 插件
#### defaultSettingPanelProps
内置设置面板插件的 panelProps
#### defaultOutlinePaneProps
内置大纲树面板插件的 panelProps
### 其他 ### 其他
#### enableStrictPluginMode #### enableStrictPluginMode
@ -282,4 +292,3 @@ customPluginTransducer: async (originPlugin: IPublicTypePlugin, ctx: IPublicMode
大纲树插件面板默认 props 大纲树插件面板默认 props

View File

@ -28,6 +28,9 @@ export const defaultPanelRegistry = (editor: any) => {
props: { props: {
ignoreRoot: true, ignoreRoot: true,
}, },
panelProps: {
...(config.get('defaultSettingPanelProps') || {}),
},
}); });
} }
}, },
@ -39,5 +42,4 @@ export const defaultPanelRegistry = (editor: any) => {
return fun; return fun;
}; };
export default defaultPanelRegistry; export default defaultPanelRegistry;