Commit f256b872 by zhaochengxiang

主数据

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