Skip to content

Commit

Permalink
fix(demo-form): add fieldMapToTime example,fix #807
Browse files Browse the repository at this point in the history
  • Loading branch information
anncwb committed Jun 24, 2021
1 parent a2d8be3 commit a2a75a0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/views/demo/form/UseForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,14 @@
span: 8,
},
},
{
field: 'fieldTime',
component: 'RangePicker',
label: '时间字段',
colProps: {
span: 8,
},
},
{
field: 'field4',
component: 'Select',
Expand Down Expand Up @@ -171,6 +179,7 @@
actionColOptions: {
span: 24,
},
fieldMapToTime: [['fieldTime', ['startTime', 'endTime'], 'YYYY-MM']],
});
return {
register,
Expand Down

0 comments on commit a2a75a0

Please sign in to comment.