rc-dialog
Advanced tools
Comparing version 5.3.3 to 5.3.4
@@ -185,3 +185,3 @@ 'use strict'; | ||
'div', | ||
{ className: prefixCls + '-footer' }, | ||
{ className: prefixCls + '-footer', ref: 'footer' }, | ||
props.footer | ||
@@ -195,3 +195,3 @@ ); | ||
'div', | ||
{ className: prefixCls + '-header' }, | ||
{ className: prefixCls + '-header', ref: 'header' }, | ||
_react2['default'].createElement( | ||
@@ -235,3 +235,3 @@ 'div', | ||
'div', | ||
{ className: prefixCls + '-body', style: props.bodyStyle }, | ||
{ className: prefixCls + '-body', style: props.bodyStyle, ref: 'body' }, | ||
props.children | ||
@@ -322,2 +322,6 @@ ), | ||
getElement: function getElement(part) { | ||
return this.refs[part]; | ||
}, | ||
close: function close(e) { | ||
@@ -334,3 +338,3 @@ this.props.onClose(e); | ||
'div', | ||
{ className: (0, _classnames2['default'])(className) }, | ||
{ className: (0, _classnames2['default'])(className), ref: 'root' }, | ||
[this.getMaskElement(), this.getDialogElement()] | ||
@@ -337,0 +341,0 @@ ); |
@@ -83,3 +83,3 @@ 'use strict'; | ||
if (this.dialogRendered) { | ||
_reactDom2['default'].unstable_renderSubtreeIntoContainer(this, this.getDialogElement(), this.getDialogContainer()); | ||
this.dialogInstance = _reactDom2['default'].unstable_renderSubtreeIntoContainer(this, this.getDialogElement(), this.getDialogContainer()); | ||
} | ||
@@ -133,2 +133,7 @@ } | ||
}, { | ||
key: 'getElement', | ||
value: function getElement(part) { | ||
return this.dialogInstance.getElement(part); | ||
} | ||
}, { | ||
key: 'cleanDialogContainer', | ||
@@ -135,0 +140,0 @@ value: function cleanDialogContainer() { |
{ | ||
"name": "rc-dialog", | ||
"version": "5.3.3", | ||
"version": "5.3.4", | ||
"description": "dialog ui component for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30659
778