antd的下拉框a-select和日期选择器a-date-picker如何固定窗体

1。日期
 
:getCalendarContainer="triggerNode => triggerNode.parentNode"
 
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="购买日期">
<a-date-picker :getCalendarContainer="triggerNode => triggerNode.parentNode" v-decorator="['orderDate', config]" style="width:100%;display:inline-block" />
</a-form-item>
 
2.下拉框
 
:getPopupContainer="triggerNode => triggerNode.parentNode"
 
<a-select
:getPopupContainer="triggerNode => triggerNode.parentNode"
:disabled="hasAccount"
v-decorator="['channel', {initialValue:'',rules: [{ required: true, message: '请选择类型' }]}]"
@select="menuTypeChange"
>
 
 
posted @ 2021-01-24 13:02  小白呀白菜  阅读(1245)  评论(0编辑  收藏  举报