From ad8df2748a7ce230d78e0ab68e4640174c96b86b Mon Sep 17 00:00:00 2001 From: xujiang Date: Tue, 8 Sep 2020 09:02:39 +0800 Subject: [PATCH] =?UTF-8?q?:fix:=20=E4=BF=AE=E6=94=B9icon=E9=97=AE?= =?UTF-8?q?=E9=A2=98=EF=BC=8C=E5=B0=86=E7=B1=BB=E5=9E=8B=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=90=8D=E6=94=B9=E4=B8=BA=E5=85=B7=E4=BD=93=E7=9A=84=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E5=90=8D,=E9=81=BF=E5=85=8D=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E8=AF=BB=E5=8F=96=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .umirc.ts | 1 + src/components/CardPicker/index.tsx | 2 +- src/components/FormEditor/index.tsx | 6 + src/components/Icon/{index.ts => icon.ts} | 0 yarn.lock | 6567 ++++++++++----------- 5 files changed, 3260 insertions(+), 3316 deletions(-) rename src/components/Icon/{index.ts => icon.ts} (100%) diff --git a/.umirc.ts b/.umirc.ts index c632179..efc7de9 100644 --- a/.umirc.ts +++ b/.umirc.ts @@ -8,6 +8,7 @@ export default defineConfig({ dva: { immer: true, }, + devtool: 'source-map', antd: {}, title: '趣谈前端-h5-visible-tool', exportStatic: {}, diff --git a/src/components/CardPicker/index.tsx b/src/components/CardPicker/index.tsx index 26b2191..894f725 100644 --- a/src/components/CardPicker/index.tsx +++ b/src/components/CardPicker/index.tsx @@ -1,6 +1,6 @@ import { useState, useEffect, memo } from 'react'; import classnames from 'classnames'; -import Icon from '../Icon'; +import Icon from '../Icon/icon'; import styles from './index.less'; import { IconTypes } from '../DynamicEngine/schema'; import React from 'react'; diff --git a/src/components/FormEditor/index.tsx b/src/components/FormEditor/index.tsx index 2114922..1188f02 100644 --- a/src/components/FormEditor/index.tsx +++ b/src/components/FormEditor/index.tsx @@ -18,6 +18,7 @@ const normFile = (e: any) => { }; const { Option } = Select; +const { TextArea } = Input; const formItemLayout = { labelCol: { span: 6 }, @@ -71,6 +72,11 @@ const FormEditor = (props: FormEditorProps) => { )} + {item.type === 'TextArea' && ( + +