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

@@ -1,5 +1,9 @@
## changelog ## changelog
## 0.7.6
右侧自定义rightGlobalCustom类型变更为函数传入config
## 0.7.5 ## 0.7.5
修改滚轮方向。 修改滚轮方向。

View File

@@ -4,6 +4,10 @@ order: 1
--- ---
## changelog ## changelog
## 0.7.6
右侧自定义rightGlobalCustom类型变更为函数传入config
## 0.7.5 ## 0.7.5
修改滚轮方向。 修改滚轮方向。

View File

@@ -2,7 +2,7 @@
* @Author: yehuozhili * @Author: yehuozhili
* @Date: 2021-02-27 21:33:36 * @Date: 2021-02-27 21:33:36
* @LastEditors: yehuozhili * @LastEditors: yehuozhili
* @LastEditTime: 2021-08-03 11:05:24 * @LastEditTime: 2021-08-03 23:21:01
* @FilePath: \dooringx\packages\dooringx-example\src\plugin\index.tsx * @FilePath: \dooringx\packages\dooringx-example\src\plugin\index.tsx
*/ */

View File

@@ -1,5 +1,5 @@
{ {
"version": "0.7.5", "version": "0.7.6",
"license": "MIT", "license": "MIT",
"main": "dist/index.js", "main": "dist/index.js",
"module": "dist/dooringx-lib.esm.js", "module": "dist/dooringx-lib.esm.js",

View File

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

View File

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