fix(demo): useForm中DatePicker,RangePicker 日期控件位置不对

This commit is contained in:
Li Kui 2023-10-10 17:48:59 +08:00
parent 8b13f62995
commit ae58ada82e

View File

@ -84,12 +84,22 @@
component: 'DatePicker', component: 'DatePicker',
label: '字段3', label: '字段3',
colProps: { span: 8 }, colProps: { span: 8 },
componentProps: {
getPopupContainer: () => {
return document.querySelector('.ant-form');
},
},
}, },
{ {
field: 'fieldTime', field: 'fieldTime',
component: 'RangePicker', component: 'RangePicker',
label: '时间字段', label: '时间字段',
colProps: { span: 8 }, colProps: { span: 8 },
componentProps: {
getPopupContainer: () => {
return document.querySelector('.ant-form');
},
},
}, },
{ {
field: 'field4', field: 'field4',