mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-03-24 11:44:31 +08:00
refactor: 移除 Modal 组件直接导入,统一使用 window.modal 调用
将项目中直接导入的 antdv-next Modal 组件替换为通过 window.modal 调用,提升代码一致性 删除不再使用的 table-switch.vue 组件
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user