diff --git a/src/dialog/dialog-v2.jsx b/src/dialog/dialog-v2.jsx index 48dadba127..ee0bc07a07 100644 --- a/src/dialog/dialog-v2.jsx +++ b/src/dialog/dialog-v2.jsx @@ -54,6 +54,7 @@ const Dialog = props => { minMargin, onClose, style, + wrapperClassName, ...others } = props; @@ -238,6 +239,7 @@ const Dialog = props => { const wrapperCls = classNames({ [`${prefix}overlay-wrapper`]: true, + [`${wrapperClassName}`]: !!wrapperClassName, opened: visible, }); const dialogCls = classNames({ diff --git a/src/dialog/dialog.jsx b/src/dialog/dialog.jsx index e1aab4271d..28cfce0da3 100644 --- a/src/dialog/dialog.jsx +++ b/src/dialog/dialog.jsx @@ -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** 表示点击关闭按钮可以关闭对话框