mirror of
https://github.com/MrXujiang/h5-Dooring.git
synced 2025-12-19 23:52:48 +00:00
:fix: 修改icon问题,将类型文件名改为具体的组件名,避免编译读取错误
This commit is contained in:
parent
e54228401c
commit
ad8df2748a
@ -8,6 +8,7 @@ export default defineConfig({
|
|||||||
dva: {
|
dva: {
|
||||||
immer: true,
|
immer: true,
|
||||||
},
|
},
|
||||||
|
devtool: 'source-map',
|
||||||
antd: {},
|
antd: {},
|
||||||
title: '趣谈前端-h5-visible-tool',
|
title: '趣谈前端-h5-visible-tool',
|
||||||
exportStatic: {},
|
exportStatic: {},
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
import { useState, useEffect, memo } from 'react';
|
import { useState, useEffect, memo } from 'react';
|
||||||
import classnames from 'classnames';
|
import classnames from 'classnames';
|
||||||
import Icon from '../Icon';
|
import Icon from '../Icon/icon';
|
||||||
import styles from './index.less';
|
import styles from './index.less';
|
||||||
import { IconTypes } from '../DynamicEngine/schema';
|
import { IconTypes } from '../DynamicEngine/schema';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|||||||
@ -18,6 +18,7 @@ const normFile = (e: any) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const { Option } = Select;
|
const { Option } = Select;
|
||||||
|
const { TextArea } = Input;
|
||||||
|
|
||||||
const formItemLayout = {
|
const formItemLayout = {
|
||||||
labelCol: { span: 6 },
|
labelCol: { span: 6 },
|
||||||
@ -71,6 +72,11 @@ const FormEditor = (props: FormEditorProps) => {
|
|||||||
<Input />
|
<Input />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
)}
|
)}
|
||||||
|
{item.type === 'TextArea' && (
|
||||||
|
<Form.Item label={item.name} name={item.key}>
|
||||||
|
<TextArea rows={4} />
|
||||||
|
</Form.Item>
|
||||||
|
)}
|
||||||
{item.type === 'DataList' && (
|
{item.type === 'DataList' && (
|
||||||
<Form.Item label={item.name} name={item.key}>
|
<Form.Item label={item.name} name={item.key}>
|
||||||
<DataList />
|
<DataList />
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user