refactor(views): 移除未使用的getVxePopupContainer导入和属性

清理工作流分类、系统字典类型和数据视图中的冗余代码,移除不再需要的getVxePopupContainer工具函数导入及其相关属性配置
This commit is contained in:
dap 2026-01-16 09:30:00 +08:00
parent fbd5b64345
commit 29e0d0437e
3 changed files with 2 additions and 12 deletions

View File

@ -8,7 +8,6 @@ import type { DictData } from '#/api/system/dict/dict-data-model';
import { ref } from 'vue'; import { ref } from 'vue';
import { useVbenDrawer } from '@vben/common-ui'; import { useVbenDrawer } from '@vben/common-ui';
import { getVxePopupContainer } from '@vben/utils';
import { Modal, Popconfirm, Space } from 'antdv-next'; import { Modal, Popconfirm, Space } from 'antdv-next';
@ -125,7 +124,7 @@ emitter.on('rowClick', async (value) => {
<template> <template>
<div> <div>
<BasicTable id="dict-data" table-title="字典数据列表"> <BasicTable table-title="字典数据列表">
<template #toolbar-tools> <template #toolbar-tools>
<Space> <Space>
<a-button <a-button
@ -162,9 +161,6 @@ emitter.on('rowClick', async (value) => {
{{ $t('pages.common.edit') }} {{ $t('pages.common.edit') }}
</ghost-button> </ghost-button>
<Popconfirm <Popconfirm
:get-popup-container="
(node) => getVxePopupContainer(node, 'dict-data')
"
placement="left" placement="left"
title="确认删除?" title="确认删除?"
@confirm="handleDelete(row)" @confirm="handleDelete(row)"

View File

@ -7,7 +7,6 @@ import type { DictType } from '#/api/system/dict/dict-type-model';
import { ref } from 'vue'; import { ref } from 'vue';
import { useVbenModal } from '@vben/common-ui'; import { useVbenModal } from '@vben/common-ui';
import { getVxePopupContainer } from '@vben/utils';
import { Modal, Popconfirm, Space } from 'antdv-next'; import { Modal, Popconfirm, Space } from 'antdv-next';
@ -133,7 +132,7 @@ function handleDownloadExcel() {
<template> <template>
<div> <div>
<BasicTable id="dict-type" table-title="字典类型列表"> <BasicTable table-title="字典类型列表">
<template #toolbar-tools> <template #toolbar-tools>
<Space> <Space>
<a-button <a-button
@ -175,9 +174,6 @@ function handleDownloadExcel() {
{{ $t('pages.common.edit') }} {{ $t('pages.common.edit') }}
</ghost-button> </ghost-button>
<Popconfirm <Popconfirm
:get-popup-container="
(node) => getVxePopupContainer(node, 'dict-type')
"
placement="left" placement="left"
title="确认删除?" title="确认删除?"
@confirm="handleDelete(row)" @confirm="handleDelete(row)"

View File

@ -7,7 +7,6 @@ import type { VxeGridProps } from '#/adapter/vxe-table';
import { nextTick } from 'vue'; import { nextTick } from 'vue';
import { Page, useVbenModal } from '@vben/common-ui'; import { Page, useVbenModal } from '@vben/common-ui';
import { getVxePopupContainer } from '@vben/utils';
import { Popconfirm, Space } from 'antdv-next'; import { Popconfirm, Space } from 'antdv-next';
@ -136,7 +135,6 @@ function collapseAll() {
{{ $t('pages.common.add') }} {{ $t('pages.common.add') }}
</ghost-button> </ghost-button>
<Popconfirm <Popconfirm
placement="left" placement="left"
title="确认删除?" title="确认删除?"
@confirm="handleDelete(row)" @confirm="handleDelete(row)"