Commit 55245eeb authored by Maofei94's avatar Maofei94

perf: 优化产品配置

parent 5d3d35c5
Pipeline #22483 passed with stages
in 18 minutes 49 seconds
...@@ -3,6 +3,7 @@ import { Form, Select, Input, Button, Popconfirm, Spin } from 'antd'; ...@@ -3,6 +3,7 @@ import { Form, Select, Input, Button, Popconfirm, Spin } from 'antd';
import { modifyProduct } from '@/services/webConfig/api'; import { modifyProduct } from '@/services/webConfig/api';
const { Item } = Form; const { Item } = Form;
const { Option } = Select; const { Option } = Select;
const { TextArea } = Input;
const EditForm = props => { const EditForm = props => {
const { productObj, editCallback, handleDel } = props; const { productObj, editCallback, handleDel } = props;
const [config, setConfig] = useState(''); // 网站配置信息 const [config, setConfig] = useState(''); // 网站配置信息
...@@ -111,7 +112,10 @@ const EditForm = props => { ...@@ -111,7 +112,10 @@ const EditForm = props => {
}, },
]} ]}
> >
<Input placeholder="请输入默认配置" allowClear /> <TextArea
placeholder="请输入默认配置"
autoSize={{ minRows: 3, maxRows: 5 }}
/>
</Item> </Item>
<div style={{ display: 'flex', marginLeft: '35%' }}> <div style={{ display: 'flex', marginLeft: '35%' }}>
<Item <Item
......
...@@ -3,6 +3,7 @@ import { Form, Select, Input, Button, notification, Spin } from 'antd'; ...@@ -3,6 +3,7 @@ import { Form, Select, Input, Button, notification, Spin } from 'antd';
import { modifyProduct } from '@/services/webConfig/api'; import { modifyProduct } from '@/services/webConfig/api';
const { Item } = Form; const { Item } = Form;
const { Option } = Select; const { Option } = Select;
const { TextArea } = Input;
const AddForm = props => { const AddForm = props => {
const { addCallback } = props; const { addCallback } = props;
const [config, setConfig] = useState(''); // 网站配置信息 const [config, setConfig] = useState(''); // 网站配置信息
...@@ -124,7 +125,11 @@ const AddForm = props => { ...@@ -124,7 +125,11 @@ const AddForm = props => {
}, },
]} ]}
> >
<Input placeholder="请输入默认配置" allowClear /> <TextArea
placeholder="请输入默认配置"
allowClear
autoSize={{ minRows: 3, maxRows: 5 }}
/>
</Item> </Item>
<Item wrapperCol={{ span: 7, offset: 7 }}> <Item wrapperCol={{ span: 7, offset: 7 }}>
<Button type="primary" htmlType="submit"> <Button type="primary" htmlType="submit">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment