Commit a2a75a097ff6c9df12471eff0d62d44d2b88cfff
1 parent
a2d8be3a
fix(demo-form): add fieldMapToTime example,fix #807
Showing
1 changed file
with
9 additions
and
0 deletions
src/views/demo/form/UseForm.vue
@@ -97,6 +97,14 @@ | @@ -97,6 +97,14 @@ | ||
97 | }, | 97 | }, |
98 | }, | 98 | }, |
99 | { | 99 | { |
100 | + field: 'fieldTime', | ||
101 | + component: 'RangePicker', | ||
102 | + label: '时间字段', | ||
103 | + colProps: { | ||
104 | + span: 8, | ||
105 | + }, | ||
106 | + }, | ||
107 | + { | ||
100 | field: 'field4', | 108 | field: 'field4', |
101 | component: 'Select', | 109 | component: 'Select', |
102 | label: '字段4', | 110 | label: '字段4', |
@@ -171,6 +179,7 @@ | @@ -171,6 +179,7 @@ | ||
171 | actionColOptions: { | 179 | actionColOptions: { |
172 | span: 24, | 180 | span: 24, |
173 | }, | 181 | }, |
182 | + fieldMapToTime: [['fieldTime', ['startTime', 'endTime'], 'YYYY-MM']], | ||
174 | }); | 183 | }); |
175 | return { | 184 | return { |
176 | register, | 185 | register, |