/* * @Author: yehuozhili * @Date: 2021-02-27 21:33:36 * @LastEditors: yehuozhili * @LastEditTime: 2021-08-03 23:21:01 * @FilePath: \dooringx\packages\dooringx-example\src\plugin\index.tsx */ import { InitConfig } from 'dooringx-lib'; import { LeftRegistComponentMapItem } from 'dooringx-lib/dist/core/crossDrag'; import { ContainerOutlined, HighlightOutlined } from '@ant-design/icons'; import commandModules from './commanderModules'; import { functionMap } from './functionMap'; import { Formmodules } from './formComponentModules'; const LeftRegistMap: LeftRegistComponentMapItem[] = [ { type: 'basic', component: 'button', img: 'icon-anniu', displayName: '按钮', urlFn: () => import('./registComponents/button'), }, ]; export const defaultConfig: Partial = { leftAllRegistMap: LeftRegistMap, leftRenderListCategory: [ { type: 'basic', icon: , displayName: '基础组件', }, { type: 'xxc', icon: , custom: true, customRender:
我是自定义渲染
, }, ], initComponentCache: {}, rightRenderListCategory: [ { type: 'style', icon: (
外观
), }, { type: 'animate', icon: (
动画
), }, { type: 'fn', icon: (
函数
), }, { type: 'actions', icon: (
事件
), }, ], initFunctionMap: functionMap, initCommandModule: commandModules, initFormComponents: Formmodules, }; export default defaultConfig;