Commit 2ea737f1 authored by Sixiang_Zzb's avatar Sixiang_Zzb

住户卡bug修复

parent 0182b877
......@@ -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