Commit b85a11d0f08f4409da7759786f9e5d209a48dfd2
1 parent
770574c9
perf: optimize step-by-step form layout
Showing
1 changed file
with
15 additions
and
0 deletions
src/views/demo/page/form/step/data.tsx
... | ... | @@ -15,6 +15,9 @@ export const step1Schemas: FormSchema[] = [ |
15 | 15 | }, |
16 | 16 | ], |
17 | 17 | }, |
18 | + colProps: { | |
19 | + span: 24, | |
20 | + }, | |
18 | 21 | }, |
19 | 22 | { |
20 | 23 | field: 'fac', |
... | ... | @@ -23,6 +26,9 @@ export const step1Schemas: FormSchema[] = [ |
23 | 26 | required: true, |
24 | 27 | defaultValue: 'test@example.com', |
25 | 28 | slot: 'fac', |
29 | + colProps: { | |
30 | + span: 24, | |
31 | + }, | |
26 | 32 | }, |
27 | 33 | { |
28 | 34 | field: 'pay', |
... | ... | @@ -37,6 +43,9 @@ export const step1Schemas: FormSchema[] = [ |
37 | 43 | label: '收款人姓名', |
38 | 44 | defaultValue: 'Vben', |
39 | 45 | required: true, |
46 | + colProps: { | |
47 | + span: 24, | |
48 | + }, | |
40 | 49 | }, |
41 | 50 | { |
42 | 51 | field: 'money', |
... | ... | @@ -49,6 +58,9 @@ export const step1Schemas: FormSchema[] = [ |
49 | 58 | prefix: () => '¥', |
50 | 59 | }; |
51 | 60 | }, |
61 | + colProps: { | |
62 | + span: 24, | |
63 | + }, | |
52 | 64 | }, |
53 | 65 | ]; |
54 | 66 | |
... | ... | @@ -59,5 +71,8 @@ export const step2Schemas: FormSchema[] = [ |
59 | 71 | label: '支付密码', |
60 | 72 | required: true, |
61 | 73 | defaultValue: '123456', |
74 | + colProps: { | |
75 | + span: 24, | |
76 | + }, | |
62 | 77 | }, |
63 | 78 | ]; | ... | ... |