diff --git a/packages/dooringx-example/src/global.less b/packages/dooringx-example/src/global.less
index aea3d11..e69de29 100644
--- a/packages/dooringx-example/src/global.less
+++ b/packages/dooringx-example/src/global.less
@@ -1,3 +0,0 @@
-.ant-menu-title-content {
- margin: 0 !important;
-}
diff --git a/packages/dooringx-example/src/layouts/index.tsx b/packages/dooringx-example/src/layouts/index.tsx
index f8d0dba..66232a8 100644
--- a/packages/dooringx-example/src/layouts/index.tsx
+++ b/packages/dooringx-example/src/layouts/index.tsx
@@ -2,7 +2,7 @@
* @Author: yehuozhili
* @Date: 2021-07-07 14:51:17
* @LastEditors: yehuozhili
- * @LastEditTime: 2021-07-27 16:24:29
+ * @LastEditTime: 2021-08-12 14:37:38
* @FilePath: \dooringx\packages\dooringx-example\src\layouts\index.tsx
*/
import { Button } from 'antd';
diff --git a/packages/dooringx-example/src/pages/index.tsx b/packages/dooringx-example/src/pages/index.tsx
index 2d414a9..2602601 100644
--- a/packages/dooringx-example/src/pages/index.tsx
+++ b/packages/dooringx-example/src/pages/index.tsx
@@ -2,7 +2,7 @@
* @Author: yehuozhili
* @Date: 2021-05-15 12:49:28
* @LastEditors: yehuozhili
- * @LastEditTime: 2021-08-11 16:26:46
+ * @LastEditTime: 2021-08-12 15:57:35
* @FilePath: \dooringx\packages\dooringx-example\src\pages\index.tsx
*/
import {
@@ -14,7 +14,7 @@ import {
ContainerWrapper,
Control,
} from 'dooringx-lib';
-import { InsertRowBelowOutlined, CalendarOutlined } from '@ant-design/icons';
+import { InsertRowBelowOutlined } from '@ant-design/icons';
import { useContext } from 'react';
import { configContext } from '@/layouts';
import { useCallback } from 'react';
@@ -24,9 +24,6 @@ export const HeaderHeight = '40px';
const footerConfig = function () {
return (
<>
-
- }>
-
}>
@@ -72,12 +69,7 @@ export default function IndexPage() {
}}
>
-
+
diff --git a/packages/dooringx-example/src/plugin/index.tsx b/packages/dooringx-example/src/plugin/index.tsx
index e078ebf..64458b0 100644
--- a/packages/dooringx-example/src/plugin/index.tsx
+++ b/packages/dooringx-example/src/plugin/index.tsx
@@ -2,7 +2,7 @@
* @Author: yehuozhili
* @Date: 2021-02-27 21:33:36
* @LastEditors: yehuozhili
- * @LastEditTime: 2021-08-05 10:54:22
+ * @LastEditTime: 2021-08-12 14:43:05
* @FilePath: \dooringx\packages\dooringx-example\src\plugin\index.tsx
*/
@@ -47,6 +47,7 @@ export const defaultConfig: Partial = {
type: 'xxc',
icon: ,
custom: true,
+ displayName: '自定义',
customRender: 我是自定义渲染
,
},
],
diff --git a/packages/dooringx-lib/src/components/leftConfig.tsx b/packages/dooringx-lib/src/components/leftConfig.tsx
index 2623ad3..66d877a 100644
--- a/packages/dooringx-lib/src/components/leftConfig.tsx
+++ b/packages/dooringx-lib/src/components/leftConfig.tsx
@@ -2,7 +2,7 @@
* @Author: yehuozhili
* @Date: 2021-02-04 10:32:45
* @LastEditors: yehuozhili
- * @LastEditTime: 2021-07-12 17:12:35
+ * @LastEditTime: 2021-08-12 15:50:48
* @FilePath: \dooringx\packages\dooringx-lib\src\components\leftConfig.tsx
*/
import React, { ReactNode, useEffect, useMemo, useState } from 'react';
@@ -18,7 +18,7 @@ interface LeftConfigProps {
config: UserConfig;
showName?: Boolean;
footerConfig?: ReactNode;
- mode?: modeType | undefined;
+ mode?: modeType;
}
/**
@@ -154,14 +154,20 @@ function LeftConfig(props: LeftConfigProps) {
return (
-