Skip to content

Commit

Permalink
feat(Dialog): add api wrapperClassName for v2 fix alibaba-fusion#3703
Browse files Browse the repository at this point in the history
  • Loading branch information
bindoon committed May 13, 2022
1 parent 1b8a06b commit ad6e577
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/dialog/dialog-v2.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ const Dialog = props => {
minMargin,
onClose,
style,
wrapperClassName,
...others
} = props;

Expand Down Expand Up @@ -238,6 +239,7 @@ const Dialog = props => {

const wrapperCls = classNames({
[`${prefix}overlay-wrapper`]: true,
[`${wrapperClassName}`]: !!wrapperClassName,
opened: visible,
});
const dialogCls = classNames({
Expand Down
5 changes: 5 additions & 0 deletions src/dialog/dialog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,11 @@ export default class Dialog extends Component {
* @version 1.25
*/
overflowScroll: PropTypes.bool,
/**
* [v2] 最外包裹层 className
* @version 1.26
*/
wrapperClassName: PropTypes.string,
/**
* [废弃]同closeMode, 控制对话框关闭的方式,值可以为字符串或者布尔值,其中字符串是由以下值组成:
* **close** 表示点击关闭按钮可以关闭对话框
Expand Down

0 comments on commit ad6e577

Please sign in to comment.