Skip to content

Commit 6b14986

Browse files
liujupingJackLian
authored andcommitted
feat(config): add defaultSettingPanelProps config
1 parent a560830 commit 6b14986

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

docs/docs/api/configOptions.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,16 @@ JSExpression 是否只支持使用 this 来访问上下文变量,假如需要
254254

255255
自定义 loading 组件
256256

257+
### 插件
258+
259+
#### defaultSettingPanelProps
260+
261+
内置设置面板插件的 panelProps
262+
263+
#### defaultOutlinePaneProps
264+
265+
内置大纲树面板插件的 panelProps
266+
257267
### 其他
258268

259269
#### enableStrictPluginMode
@@ -282,4 +292,3 @@ customPluginTransducer: async (originPlugin: IPublicTypePlugin, ctx: IPublicMode
282292
283293
大纲树插件面板默认 props
284294
285-

packages/engine/src/inner-plugins/default-panel-registry.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ export const defaultPanelRegistry = (editor: any) => {
2828
props: {
2929
ignoreRoot: true,
3030
},
31+
panelProps: {
32+
...(config.get('defaultSettingPanelProps') || {}),
33+
},
3134
});
3235
}
3336
},
@@ -39,5 +42,4 @@ export const defaultPanelRegistry = (editor: any) => {
3942
return fun;
4043
};
4144

42-
4345
export default defaultPanelRegistry;

0 commit comments

Comments
 (0)