跳到主要内容

弹框内下拉框错位

弹框内下拉框错位如何处理,如下图

处理方法,使用 getPopupContainer: (node) => document.body 或者 getPopupContainer: (node) => node.parentNode

{
field: 'ruleConditions',
label: '条件规则',
required: true,
component: 'ApiSelect',
componentProps: {
api: ajaxGetDictItems,
params:{code:'rule_conditions'},
labelField: 'text',
valueField: 'value',
getPopupContainer: (node) => document.body,
},
},

使用后效果如下