|
@@ -54,18 +54,17 @@ function EditBlock(props) {
|
|
onFinish={onFinish}
|
|
onFinish={onFinish}
|
|
initialValues={initialValues}
|
|
initialValues={initialValues}
|
|
>
|
|
>
|
|
- <Form.Item label="正则式名称" name="name" rules={[{ required: true }]}>
|
|
|
|
- <Input placeholder="请输入" autoComplete='off' maxLength='30'/>
|
|
|
|
|
|
+ <Form.Item label="正则式名称" name="name" rules={[{ required: true,message:'请输入正则式名称'},{ max: 30,message:'正则式名称不能超过30个字符' }]}>
|
|
|
|
+ <Input placeholder="请输入" autoComplete='off'/>
|
|
</Form.Item>
|
|
</Form.Item>
|
|
<Form.Item label="正则式值" name="val" rules={[{ required: true }]}>
|
|
<Form.Item label="正则式值" name="val" rules={[{ required: true }]}>
|
|
<TextArea
|
|
<TextArea
|
|
autoSize={{ minRows: 5, maxRows: 5 }}
|
|
autoSize={{ minRows: 5, maxRows: 5 }}
|
|
/>
|
|
/>
|
|
</Form.Item>
|
|
</Form.Item>
|
|
- <Form.Item label="说明" name="description">
|
|
|
|
|
|
+ <Form.Item label="说明" name="description" rules={[{ max: 200,message:'说明不能超过200个字符' }]}>
|
|
<TextArea
|
|
<TextArea
|
|
autoSize={{ minRows: 5, maxRows: 5 }}
|
|
autoSize={{ minRows: 5, maxRows: 5 }}
|
|
- maxLength='200'
|
|
|
|
/>
|
|
/>
|
|
</Form.Item>
|
|
</Form.Item>
|
|
<Form.Item wrapperCol={{ offset: 8, span: 16 }} style={{ marginTop: 15 }}>
|
|
<Form.Item wrapperCol={{ offset: 8, span: 16 }} style={{ marginTop: 15 }}>
|