chore: update resource dialog style (#982)

This commit is contained in:
boojack
2023-01-21 08:46:49 +08:00
committed by GitHub
parent 0aaf153717
commit c5368fe8d3
19 changed files with 139 additions and 94 deletions

View File

@ -9,8 +9,8 @@ import theme from "../../theme";
import "../../less/base-dialog.less";
interface DialogConfig {
className: string;
dialogName: string;
className?: string;
clickSpaceDestroy?: boolean;
}
@ -55,7 +55,7 @@ const BaseDialog: React.FC<Props> = (props: Props) => {
};
return (
<div className={`dialog-wrapper ${className}`} onMouseDown={handleSpaceClicked}>
<div className={`dialog-wrapper ${className ?? ""}`} onMouseDown={handleSpaceClicked}>
<div ref={dialogContainerRef} className="dialog-container" onMouseDown={(e) => e.stopPropagation()}>
{children}
</div>