refactor: 端口策略+探针弹框改用shadcn Dialog,无黑色蒙布居中弹出
This commit is contained in:
1 parent
ffa73353f1
commit
6e479f6df7
3 files changed
+511
-138
No files matched your search
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user