change right custom

This commit is contained in:
yehuozhili
2021-08-03 23:28:00 +08:00
parent 44eab9ce9b
commit e26d4ee2ab
6 changed files with 14 additions and 7 deletions

View File

@@ -2,7 +2,7 @@
* @Author: yehuozhili
* @Date: 2021-03-14 05:42:13
* @LastEditors: yehuozhili
* @LastEditTime: 2021-07-13 21:08:46
* @LastEditTime: 2021-08-03 23:17:54
* @FilePath: \dooringx\packages\dooringx-lib\src\components\rightConfig.tsx
*/
import { CreateOptionsRes } from '../core/components/formTypes';
@@ -345,7 +345,7 @@ function RightConfig(props: PropsWithChildren<RightConfigProps>) {
</Row>
</div>
)}
{!current && !isEdit && customGlobal && customGlobal}
{!current && !isEdit && customGlobal && customGlobal(props.config)}
{!current && isEdit && (
<div style={{ padding: '20px' }} className="yh-tcsz">
<Row style={{ padding: '10 0 20px 0', fontWeight: 'bold' }}></Row>

View File

@@ -2,7 +2,7 @@
* @Author: yehuozhili
* @Date: 2021-02-25 21:16:58
* @LastEditors: yehuozhili
* @LastEditTime: 2021-07-17 20:57:16
* @LastEditTime: 2021-08-03 23:19:24
* @FilePath: \dooringx\packages\dooringx-lib\src\config\index.tsx
*/
import React from 'react';
@@ -105,10 +105,9 @@ export interface InitConfig {
/**
*
* 右侧全局自定义
* @type {ReactNode}
* @memberof InitConfig
*/
rightGlobalCustom: ReactNode;
rightGlobalCustom: ((config: UserConfig) => ReactNode) | null | undefined;
/**
* 组件加载缓存判定,用来设置不异步加载的组件