:fix: 修改icon问题,将类型文件名改为具体的组件名,避免编译读取错误

This commit is contained in:
xujiang 2020-09-08 09:02:39 +08:00
parent e54228401c
commit ad8df2748a
5 changed files with 3260 additions and 3316 deletions

View File

@ -8,6 +8,7 @@ export default defineConfig({
dva: {
immer: true,
},
devtool: 'source-map',
antd: {},
title: '趣谈前端-h5-visible-tool',
exportStatic: {},

View File

@ -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';

View File

@ -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) => {
<Input />
</Form.Item>
)}
{item.type === 'TextArea' && (
<Form.Item label={item.name} name={item.key}>
<TextArea rows={4} />
</Form.Item>
)}
{item.type === 'DataList' && (
<Form.Item label={item.name} name={item.key}>
<DataList />

6567
yarn.lock

File diff suppressed because it is too large Load Diff