Commit f256b872 by zhaochengxiang

主数据

parent 1cd2b826
import { Form, Input } from "antd";
import { Form, Input, Divider } from "antd";
const UpdateBasicInfo = (props) => {
const [form] = Form.useForm();
const { form } = props;
const formItemLayout = {
labelCol: {
......@@ -15,17 +15,23 @@ const UpdateBasicInfo = (props) => {
};
return (
<div>
<Divider>基本信息</Divider>
<Form
form={form}
{...formItemLayout}
>
<Form.Item label='模版名称' name='name' rules={[{ required: true, message: '请填写模版名称' }]}>
<Input style={{ width: '87%' }} />
<Input />
</Form.Item>
<Form.Item label='模版中文名称' name='cnName' rules={[{ required: true, message: '请填写模版中文名称' }]}>
<Input style={{ width: '87%' }} />
<Input />
</Form.Item>
<Form.Item label='模版描述' name='desc'>
<Input />
</Form.Item>
</Form>
</div>
);
}
......
......@@ -50,7 +50,7 @@ const UpdateTemplateModal = (props) => {
onCancel={onCancel}
onOk={onFormFinish}
>
<UpdateBasicInfo />
<UpdateBasicInfo form={form} />
</Modal>
);
}
......
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