refactor: 移除 Modal 组件直接导入,统一使用 window.modal 调用

将项目中直接导入的 antdv-next Modal 组件替换为通过 window.modal 调用,提升代码一致性
删除不再使用的 table-switch.vue 组件
This commit is contained in:
dap
2026-01-16 11:21:23 +08:00
parent 20f9a8a497
commit 1f643874a9
42 changed files with 85 additions and 242 deletions

View File

@@ -3,7 +3,7 @@ import { computed, ref } from 'vue';
import { $t } from '@vben/locales';
import { Modal, Switch } from 'antdv-next';
import { Switch } from 'antdv-next';
import { isFunction } from 'lodash-es';
interface Props {
@@ -64,7 +64,7 @@ function confirmUpdate(checked: boolean, lastStatus: boolean) {
? props.confirmText(checked)
: `确认要更新状态吗?`;
Modal.confirm({
window.modal.confirm({
title: '提示',
content,
centered: true,