From ee08a2333fb51a390210193e2989033cdba62a91 Mon Sep 17 00:00:00 2001 From: xujiang Date: Fri, 18 Sep 2020 21:16:30 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E4=BF=AE=E5=A4=8Dts=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/DynamicEngine/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/DynamicEngine/index.tsx b/src/components/DynamicEngine/index.tsx index d506f0f..1a78a80 100644 --- a/src/components/DynamicEngine/index.tsx +++ b/src/components/DynamicEngine/index.tsx @@ -2,11 +2,11 @@ import { dynamic } from 'umi'; import Loading from '../LoadingCp'; import { useMemo, memo, FC } from 'react'; import React from 'react'; -import { AllTemplateType } from './schema'; +// import { AllTemplateType } from './schema'; export type componentsType = 'media' | 'base' | 'visible'; -const DynamicFunc = (type: AllTemplateType, componentsType: componentsType) => +const DynamicFunc = (type: any, componentsType: componentsType) => dynamic({ loader: async function() { let Component: FC<{ isTpl: boolean }>; @@ -35,7 +35,7 @@ const DynamicFunc = (type: AllTemplateType, componentsType: componentsType) => type DynamicType = { isTpl: boolean; config: { [key: string]: any }; - type: AllTemplateType; + type: any; componentsType: componentsType; category: componentsType; };