rc-tooltip
Advanced tools
Comparing version 3.7.1 to 3.7.2
@@ -10,2 +10,3 @@ import _extends from 'babel-runtime/helpers/extends'; | ||
import { placements } from './placements'; | ||
import Content from './Content'; | ||
@@ -35,7 +36,9 @@ var Tooltip = function (_Component) { | ||
arrowContent | ||
), React.createElement( | ||
'div', | ||
{ className: prefixCls + '-inner', key: 'content', id: id }, | ||
typeof overlay === 'function' ? overlay() : overlay | ||
)]; | ||
), React.createElement(Content, { | ||
key: 'content', | ||
trigger: _this.trigger, | ||
prefixCls: prefixCls, | ||
id: id, | ||
overlay: overlay | ||
})]; | ||
}, _this.saveTrigger = function (node) { | ||
@@ -46,8 +49,2 @@ _this.trigger = node; | ||
Tooltip.prototype.componentDidUpdate = function componentDidUpdate() { | ||
if (this.props.visible) { | ||
this.trigger.forcePopupAlign(); | ||
} | ||
}; | ||
Tooltip.prototype.getPopupDomNode = function getPopupDomNode() { | ||
@@ -54,0 +51,0 @@ return this.trigger.getPopupDomNode(); |
@@ -39,2 +39,6 @@ 'use strict'; | ||
var _Content = require('./Content'); | ||
var _Content2 = _interopRequireDefault(_Content); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | ||
@@ -65,7 +69,9 @@ | ||
arrowContent | ||
), _react2['default'].createElement( | ||
'div', | ||
{ className: prefixCls + '-inner', key: 'content', id: id }, | ||
typeof overlay === 'function' ? overlay() : overlay | ||
)]; | ||
), _react2['default'].createElement(_Content2['default'], { | ||
key: 'content', | ||
trigger: _this.trigger, | ||
prefixCls: prefixCls, | ||
id: id, | ||
overlay: overlay | ||
})]; | ||
}, _this.saveTrigger = function (node) { | ||
@@ -76,8 +82,2 @@ _this.trigger = node; | ||
Tooltip.prototype.componentDidUpdate = function componentDidUpdate() { | ||
if (this.props.visible) { | ||
this.trigger.forcePopupAlign(); | ||
} | ||
}; | ||
Tooltip.prototype.getPopupDomNode = function getPopupDomNode() { | ||
@@ -84,0 +84,0 @@ return this.trigger.getPopupDomNode(); |
{ | ||
"name": "rc-tooltip", | ||
"version": "3.7.1", | ||
"version": "3.7.2", | ||
"description": "React Tooltip", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
648362
17
7265