refactor: 端口策略+探针弹框改用shadcn Dialog,无黑色蒙布居中弹出

This commit is contained in:
attacker committed 2026-06-24 17:01:35 +00:00
1 parent ffa73353f1
commit 6e479f6df7
3 files changed
+511 -138

No files matched your search

+3 -1
View File
@@ -48,13 +48,15 @@ function DialogContent({
className,
children,
showCloseButton = true,
showOverlay = true,
...props
}: React.ComponentProps<typeof DialogPrimitive.Content> & {
showCloseButton?: boolean
showOverlay?: boolean
}) {
return (
<DialogPortal data-slot="dialog-portal">
<DialogOverlay />
{showOverlay && <DialogOverlay />}
<DialogPrimitive.Content
data-slot="dialog-content"
className={cn(