Skip to content

Commit

Permalink
fix(demo): useForm中DatePicker,RangePicker 日期控件位置不对
Browse files Browse the repository at this point in the history
  • Loading branch information
likui628 committed Oct 10, 2023
1 parent 8b13f62 commit ae58ada
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/views/demo/form/UseForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,22 @@
component: 'DatePicker',
label: '字段3',
colProps: { span: 8 },
componentProps: {
getPopupContainer: () => {
return document.querySelector('.ant-form');
},
},
},
{
field: 'fieldTime',
component: 'RangePicker',
label: '时间字段',
colProps: { span: 8 },
componentProps: {
getPopupContainer: () => {
return document.querySelector('.ant-form');
},
},
},
{
field: 'field4',
Expand Down

0 comments on commit ae58ada

Please sign in to comment.