rc-tooltip
Advanced tools
Comparing version 1.1.0 to 1.1.1
# History | ||
---- | ||
## 1.1.0 / 2015-05-14 | ||
## 1.1.1 / 2015-05-14 | ||
add defaultVisible and onVisibleChange |
@@ -90,14 +90,18 @@ /** @jsx React.DOM */ | ||
var tipNode = tooltip.getRootNode(); | ||
var points = ['cr', 'cl']; | ||
var placement = this.props.placement; | ||
if (placement === 'right') { | ||
points = ['cl', 'cr']; | ||
} else if (placement === 'top') { | ||
points = ['bc', 'tc']; | ||
} else if (placement === 'bottom') { | ||
points = ['tc', 'bc']; | ||
if (placement && placement.points) { | ||
domAlign(tipNode, rootNode, placement); | ||
} else { | ||
var points = ['cr', 'cl']; | ||
if (placement === 'right') { | ||
points = ['cl', 'cr']; | ||
} else if (placement === 'top') { | ||
points = ['bc', 'tc']; | ||
} else if (placement === 'bottom') { | ||
points = ['tc', 'bc']; | ||
} | ||
domAlign(tipNode, rootNode, { | ||
points: points | ||
}); | ||
} | ||
domAlign(tipNode, rootNode, { | ||
points: points | ||
}); | ||
} | ||
@@ -104,0 +108,0 @@ }); |
{ | ||
"name": "rc-tooltip", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "tooltip ui component for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -109,5 +109,5 @@ # rc-tooltip | ||
<td>placement</td> | ||
<td>String</td> | ||
<td>String|Object</td> | ||
<td></td> | ||
<td>one of ['left','right','top','bottom']</td> | ||
<td>one of ['left','right','top','bottom'] or alignConfig of [dom-align](https://github.com/yiminghe/dom-align)</td> | ||
</tr> | ||
@@ -114,0 +114,0 @@ <tr> |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
42783
901
0