fix: 在VxeTable固定列时, getPopupContainer会导致宽度不够, 弹出层样式异常 解决办法(将弹窗元素挂载到VXe滚动容器上
This commit is contained in:
@@ -5,6 +5,7 @@ import { nextTick, onMounted, ref } from 'vue';
|
||||
import { useRouter } from 'vue-router';
|
||||
|
||||
import { Page, useVbenModal, type VbenFormProps } from '@vben/common-ui';
|
||||
import { getVxePopupContainer } from '@vben/utils';
|
||||
|
||||
import { message, Modal, Popconfirm, Space } from 'ant-design-vue';
|
||||
import dayjs from 'dayjs';
|
||||
@@ -263,6 +264,7 @@ function handleImport() {
|
||||
{{ $t('pages.common.edit') }}
|
||||
</a-button>
|
||||
<Popconfirm
|
||||
:get-popup-container="getVxePopupContainer"
|
||||
:title="`确认同步[${row.tableName}]?`"
|
||||
placement="left"
|
||||
@confirm="handleSync(row)"
|
||||
@@ -285,6 +287,7 @@ function handleImport() {
|
||||
生成代码
|
||||
</a-button>
|
||||
<Popconfirm
|
||||
:get-popup-container="getVxePopupContainer"
|
||||
:title="`确认删除[${row.tableName}]?`"
|
||||
placement="left"
|
||||
@confirm="handleDelete(row)"
|
||||
|
Reference in New Issue
Block a user