import { dynamic } from 'umi';
import { Spin } from 'antd';
import { useMemo, memo } from 'react';
const needList = ['Tab', 'Carousel', 'Upload', 'Video']
const DynamicFunc = (type) => dynamic({
loader: async function() {
let Component;
if(needList.includes(type)) {
const { default: Graph } = await import(`@/components/${type}`)
Component = Graph
}else {
const Components = await import(`@/components/DynamicEngine/components`)
Component = Components[type]
}
return (props) => {
const { config } = props
return