<Modal zIndex={99999} title="填写文章标题" visible={isModalVisible} onOk={handleOk} onCancel={() => setIsModalVisible(false)} okText="提交" cancelText="取消">
<Form
form={form}
name="basic"
labelCol={{ span: 3 }}
wrapperCol={{ span: 21 }}
autoComplete="off"
initialValues={{ title, subTitle }}
>
<Form.Item
label="标题"
name="title"
rules={[{ required: true, message: '请填写标题' }]}
>
<Input />
</Form.Item>

<Form.Item
label="副标题"
name="subTitle"
>
<Input />
</Form.Item>
</Form>
</Modal>

react项目实战学习笔记-学习44-对话框_前端