update example

This commit is contained in:
hufeixiong
2021-08-03 11:05:40 +08:00
parent a5984c5a7f
commit 44eab9ce9b
4 changed files with 107 additions and 41 deletions

View File

@@ -2,7 +2,7 @@
* @Author: yehuozhili
* @Date: 2021-02-27 21:33:36
* @LastEditors: yehuozhili
* @LastEditTime: 2021-07-10 19:32:16
* @LastEditTime: 2021-08-03 11:05:24
* @FilePath: \dooringx\packages\dooringx-example\src\plugin\index.tsx
*/
@@ -14,16 +14,6 @@ import { functionMap } from './functionMap';
import { Formmodules } from './formComponentModules';
const LeftRegistMap: LeftRegistComponentMapItem[] = [
// build 时如果用代码分割会生成多个文件,这样就不能生成多类型文件。
// 建议基础包全部不分割。后面插件包可以用webpack的特性所以插件包用新脚手架制作
// 基础包不独立出去的原因是部分左侧分类起始值最好规定住
// {
// type: 'xxa',
// component: 'asyncCo',
// img: '',
// urlFn: () => import('./registComponents/asyncCo'),
// displayName:'xxx'
// },
{
type: 'basic',
component: 'button',
@@ -66,6 +56,14 @@ export const defaultConfig: Partial<InitConfig> = {
</div>
),
},
{
type: 'fn',
icon: (
<div className="right-tab-item" style={{ width: 50, textAlign: 'center' }}>
</div>
),
},
{
type: 'actions',
icon: (