Commit 1f5066d9 authored by cellee's avatar cellee

Merge branch 'final' of http://120.77.240.215:9701/Maple/tostumi.git into final

parents efdf776a 2ea737f1
......@@ -135,7 +135,9 @@ const CardAdd = (props: any) => {
name="buildNumber"
style={{ marginRight: 16 }}
className={styles.buildNumber}
rules={[{ required: true, type: 'number', message: 'Only number can be entered' }]}
rules={[
{ required: true, pattern: /^\d+$/, message: 'Only number can be entered' },
]}
>
<Input style={{ width: 80 }} placeholder={'BLK'} />
</Form.Item>
......@@ -144,7 +146,9 @@ const CardAdd = (props: any) => {
name="floorNumber"
style={{ marginRight: 16 }}
className={styles.floorNumber}
rules={[{ required: true, type: 'number', message: 'Only number can be entered' }]}
rules={[
{ required: true, pattern: /^\d+$/, message: 'Only number can be entered' },
]}
>
<Input style={{ width: 80 }} placeholder={'Floor'} />
</Form.Item>
......
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