Skip to content

Commit

Permalink
tooltip mouse enterable 优化
Browse files Browse the repository at this point in the history
  • Loading branch information
kener committed Dec 8, 2014
1 parent 7af52d8 commit 781887f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/component/tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -1242,7 +1242,7 @@ define(function (require) {
__onmousemove: function (param) {
clearTimeout(this._hidingTicket);
clearTimeout(this._showingTicket);
if (this._mousein) {
if (this._mousein && this.enterable) {
return;
}
var target = param.target;
Expand Down
1 change: 1 addition & 0 deletions src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ define(function() {
showDelay: 20, // 显示延迟,添加显示延迟可以避免频繁切换,单位ms
hideDelay: 100, // 隐藏延迟,单位ms
transitionDuration: 0.4, // 动画变换时间,单位s
enterable: true,
backgroundColor: 'rgba(0,0,0,0.7)', // 提示背景颜色,默认为透明度为0.7的黑色
borderColor: '#333', // 提示边框颜色
borderRadius: 4, // 提示边框圆角,单位px,默认为4
Expand Down

0 comments on commit 781887f

Please sign in to comment.