Skip to content

Commit

Permalink
feat: support root style
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkasany committed Jan 10, 2025
1 parent f8c0131 commit b2a45ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Dialog/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ const Dialog: React.FC<IDialogPropTypes> = (props) => {
maskStyle,
maskProps,
rootClassName,
rootStyle,
classNames: modalClassNames,
styles: modalStyles,
} = props;
Expand Down Expand Up @@ -175,6 +176,7 @@ const Dialog: React.FC<IDialogPropTypes> = (props) => {
return (
<div
className={classNames(`${prefixCls}-root`, rootClassName)}
style={rootStyle}
{...pickAttrs(props, { data: true })}
>
<Mask
Expand Down
1 change: 1 addition & 0 deletions src/IDialogPropTypes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export type IDialogPropTypes = {
className?: string;
keyboard?: boolean;
style?: CSSProperties;
rootStyle?: CSSProperties;
mask?: boolean;
children?: React.ReactNode;
afterClose?: () => any;
Expand Down

0 comments on commit b2a45ad

Please sign in to comment.