feat:允许PC表格重置

This commit is contained in:
hzm
2026-02-27 08:39:47 +08:00
parent cbfa9a433a
commit c2f4fec86d
3 changed files with 44 additions and 3 deletions

View File

@@ -1,10 +1,11 @@
'use client';
import { motion } from 'framer-motion';
import { createPortal } from 'react-dom';
import { TrashIcon } from './Icons';
export default function ConfirmModal({ title, message, onConfirm, onCancel, confirmText = "确定删除" }) {
return (
const content = (
<motion.div
className="modal-overlay"
role="dialog"
@@ -40,4 +41,6 @@ export default function ConfirmModal({ title, message, onConfirm, onCancel, conf
</motion.div>
</motion.div>
);
if (typeof document === 'undefined') return null;
return createPortal(content, document.body);
}