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' && ( + +