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

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

View File

@@ -2,7 +2,7 @@
* @Author: yehuozhili
* @Date: 2021-02-27 21:33:36
* @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
*/

View File

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

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;
/**
* 组件加载缓存判定,用来设置不异步加载的组件