mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-03-22 14:28:59 +08:00
refactor(antd): 移除Popconfirm中已废弃的getVxePopupContainer属性
antd已支持滚动跟随,不再需要手动指定getVxePopupContainer属性。删除相关代码及工具函数,简化实现。
This commit is contained in:
@@ -7,7 +7,6 @@ import type { LoginLog } from '#/api/monitor/logininfo/model';
|
||||
import { ref } from 'vue';
|
||||
|
||||
import { Page, useVbenModal } from '@vben/common-ui';
|
||||
import { getVxePopupContainer } from '@vben/utils';
|
||||
|
||||
import { Modal, Popconfirm, Space } from 'antdv-next';
|
||||
|
||||
@@ -189,7 +188,6 @@ function handleDownloadExcel() {
|
||||
{{ $t('pages.common.info') }}
|
||||
</ghost-button>
|
||||
<Popconfirm
|
||||
:get-popup-container="getVxePopupContainer"
|
||||
placement="left"
|
||||
title="确认删除?"
|
||||
@confirm="() => handleDelete(row)"
|
||||
|
||||
@@ -7,7 +7,6 @@ import type { OnlineUser } from '#/api/monitor/online/model';
|
||||
import { ref } from 'vue';
|
||||
|
||||
import { Page } from '@vben/common-ui';
|
||||
import { getVxePopupContainer } from '@vben/utils';
|
||||
|
||||
import { Popconfirm } from 'antdv-next';
|
||||
import { slice } from 'lodash-es';
|
||||
@@ -82,14 +81,13 @@ async function handleForceOffline(row: OnlineUser) {
|
||||
<div class="mr-1 pl-1 text-[1rem]">
|
||||
<div>
|
||||
在线用户列表 (共
|
||||
<span class="text-primary font-bold">{{ onlineCount }}</span>
|
||||
<span class="font-bold text-primary">{{ onlineCount }}</span>
|
||||
人在线)
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<template #action="{ row }">
|
||||
<Popconfirm
|
||||
:get-popup-container="getVxePopupContainer"
|
||||
:title="`确认强制下线[${row.userName}]?`"
|
||||
placement="left"
|
||||
@confirm="handleForceOffline(row)"
|
||||
|
||||
Reference in New Issue
Block a user