windy 6 years ago
parent
commit
7ce0e1c96f
  1. 43
      dist/base.js
  2. 43
      dist/bundle.ie.js
  3. 56
      dist/bundle.ie.min.js
  4. 43
      dist/bundle.js
  5. 56
      dist/bundle.min.js
  6. 43
      dist/fineui.ie.js
  7. 56
      dist/fineui.ie.min.js
  8. 43
      dist/fineui.js
  9. 56
      dist/fineui.min.js
  10. 43
      dist/fineui_without_jquery_polyfill.js
  11. 2
      dist/utils.min.js
  12. 43
      src/base/single/single.js

43
dist/base.js vendored

@ -401,6 +401,17 @@ BI.Single = BI.inherit(BI.Widget, {
}
},
_clearTimeOut: function() {
if (BI.isNotNull(this.showTimeout)) {
clearTimeout(this.showTimeout);
this.showTimeout = null;
}
if (BI.isNotNull(this.hideTimeout)) {
clearTimeout(this.hideTimeout);
this.showTimeout = null;
}
},
enableHover: function (opt) {
opt || (opt = {});
var self = this;
@ -408,30 +419,40 @@ BI.Single = BI.inherit(BI.Widget, {
this.element.on("mouseenter.title" + this.getName(), function (e) {
self._e = e;
if (self.getTipType() === "warning" || (BI.isKey(self.getWarningTitle()) && !self.isEnabled())) {
self.timeout = BI.delay(function () {
self.showTimeout = BI.delay(function () {
self._showToolTip(self._e || e, opt);
}, 200);
} else if (self.getTipType() === "success" || self.isEnabled()) {
self.timeout = BI.delay(function () {
self.showTimeout = BI.delay(function () {
self._showToolTip(self._e || e, opt);
}, 500);
}
});
this.element.on("mousemove.title" + this.getName(), function (e) {
self._e = e;
if (BI.isNotNull(self.timeout)) {
clearTimeout(self.timeout);
if (BI.isNotNull(self.showTimeout)) {
clearTimeout(self.showTimeout);
self.showTimeout = null;
}
self.timeout = BI.delay(function () {
if(BI.isNull(self.hideTimeout)) {
self.hideTimeout = BI.delay(function () {
self._hideTooltip();
}, 500);
}
self.showTimeout = BI.delay(function () {
if (BI.isNotNull(self.hideTimeout)) {
clearTimeout(self.hideTimeout);
self.hideTimeout = null;
}
self._showToolTip(self._e || e, opt);
}, 500);
self._hideTooltip();
});
this.element.on("mouseleave.title" + this.getName(), function (e) {
self._e = null;
if (BI.isNotNull(self.timeout)) {
clearTimeout(self.timeout);
}
self._clearTimeOut();
self._hideTooltip();
});
this._hoverBinded = true;
@ -440,9 +461,7 @@ BI.Single = BI.inherit(BI.Widget, {
disabledHover: function () {
// 取消hover事件
if (BI.isNotNull(this.timeout)) {
clearTimeout(this.timeout);
}
this._clearTimeOut();
this._hideTooltip();
this.element.unbind("mouseenter.title" + this.getName())
.unbind("mousemove.title" + this.getName())

43
dist/bundle.ie.js vendored

@ -35484,6 +35484,17 @@ BI.Single = BI.inherit(BI.Widget, {
}
},
_clearTimeOut: function() {
if (BI.isNotNull(this.showTimeout)) {
clearTimeout(this.showTimeout);
this.showTimeout = null;
}
if (BI.isNotNull(this.hideTimeout)) {
clearTimeout(this.hideTimeout);
this.showTimeout = null;
}
},
enableHover: function (opt) {
opt || (opt = {});
var self = this;
@ -35491,30 +35502,40 @@ BI.Single = BI.inherit(BI.Widget, {
this.element.on("mouseenter.title" + this.getName(), function (e) {
self._e = e;
if (self.getTipType() === "warning" || (BI.isKey(self.getWarningTitle()) && !self.isEnabled())) {
self.timeout = BI.delay(function () {
self.showTimeout = BI.delay(function () {
self._showToolTip(self._e || e, opt);
}, 200);
} else if (self.getTipType() === "success" || self.isEnabled()) {
self.timeout = BI.delay(function () {
self.showTimeout = BI.delay(function () {
self._showToolTip(self._e || e, opt);
}, 500);
}
});
this.element.on("mousemove.title" + this.getName(), function (e) {
self._e = e;
if (BI.isNotNull(self.timeout)) {
clearTimeout(self.timeout);
if (BI.isNotNull(self.showTimeout)) {
clearTimeout(self.showTimeout);
self.showTimeout = null;
}
self.timeout = BI.delay(function () {
if(BI.isNull(self.hideTimeout)) {
self.hideTimeout = BI.delay(function () {
self._hideTooltip();
}, 500);
}
self.showTimeout = BI.delay(function () {
if (BI.isNotNull(self.hideTimeout)) {
clearTimeout(self.hideTimeout);
self.hideTimeout = null;
}
self._showToolTip(self._e || e, opt);
}, 500);
self._hideTooltip();
});
this.element.on("mouseleave.title" + this.getName(), function (e) {
self._e = null;
if (BI.isNotNull(self.timeout)) {
clearTimeout(self.timeout);
}
self._clearTimeOut();
self._hideTooltip();
});
this._hoverBinded = true;
@ -35523,9 +35544,7 @@ BI.Single = BI.inherit(BI.Widget, {
disabledHover: function () {
// 取消hover事件
if (BI.isNotNull(this.timeout)) {
clearTimeout(this.timeout);
}
this._clearTimeOut();
this._hideTooltip();
this.element.unbind("mouseenter.title" + this.getName())
.unbind("mousemove.title" + this.getName())

56
dist/bundle.ie.min.js vendored

File diff suppressed because one or more lines are too long

43
dist/bundle.js vendored

@ -35888,6 +35888,17 @@ BI.Single = BI.inherit(BI.Widget, {
}
},
_clearTimeOut: function() {
if (BI.isNotNull(this.showTimeout)) {
clearTimeout(this.showTimeout);
this.showTimeout = null;
}
if (BI.isNotNull(this.hideTimeout)) {
clearTimeout(this.hideTimeout);
this.showTimeout = null;
}
},
enableHover: function (opt) {
opt || (opt = {});
var self = this;
@ -35895,30 +35906,40 @@ BI.Single = BI.inherit(BI.Widget, {
this.element.on("mouseenter.title" + this.getName(), function (e) {
self._e = e;
if (self.getTipType() === "warning" || (BI.isKey(self.getWarningTitle()) && !self.isEnabled())) {
self.timeout = BI.delay(function () {
self.showTimeout = BI.delay(function () {
self._showToolTip(self._e || e, opt);
}, 200);
} else if (self.getTipType() === "success" || self.isEnabled()) {
self.timeout = BI.delay(function () {
self.showTimeout = BI.delay(function () {
self._showToolTip(self._e || e, opt);
}, 500);
}
});
this.element.on("mousemove.title" + this.getName(), function (e) {
self._e = e;
if (BI.isNotNull(self.timeout)) {
clearTimeout(self.timeout);
if (BI.isNotNull(self.showTimeout)) {
clearTimeout(self.showTimeout);
self.showTimeout = null;
}
self.timeout = BI.delay(function () {
if(BI.isNull(self.hideTimeout)) {
self.hideTimeout = BI.delay(function () {
self._hideTooltip();
}, 500);
}
self.showTimeout = BI.delay(function () {
if (BI.isNotNull(self.hideTimeout)) {
clearTimeout(self.hideTimeout);
self.hideTimeout = null;
}
self._showToolTip(self._e || e, opt);
}, 500);
self._hideTooltip();
});
this.element.on("mouseleave.title" + this.getName(), function (e) {
self._e = null;
if (BI.isNotNull(self.timeout)) {
clearTimeout(self.timeout);
}
self._clearTimeOut();
self._hideTooltip();
});
this._hoverBinded = true;
@ -35927,9 +35948,7 @@ BI.Single = BI.inherit(BI.Widget, {
disabledHover: function () {
// 取消hover事件
if (BI.isNotNull(this.timeout)) {
clearTimeout(this.timeout);
}
this._clearTimeOut();
this._hideTooltip();
this.element.unbind("mouseenter.title" + this.getName())
.unbind("mousemove.title" + this.getName())

56
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

43
dist/fineui.ie.js vendored

@ -35726,6 +35726,17 @@ BI.Single = BI.inherit(BI.Widget, {
}
},
_clearTimeOut: function() {
if (BI.isNotNull(this.showTimeout)) {
clearTimeout(this.showTimeout);
this.showTimeout = null;
}
if (BI.isNotNull(this.hideTimeout)) {
clearTimeout(this.hideTimeout);
this.showTimeout = null;
}
},
enableHover: function (opt) {
opt || (opt = {});
var self = this;
@ -35733,30 +35744,40 @@ BI.Single = BI.inherit(BI.Widget, {
this.element.on("mouseenter.title" + this.getName(), function (e) {
self._e = e;
if (self.getTipType() === "warning" || (BI.isKey(self.getWarningTitle()) && !self.isEnabled())) {
self.timeout = BI.delay(function () {
self.showTimeout = BI.delay(function () {
self._showToolTip(self._e || e, opt);
}, 200);
} else if (self.getTipType() === "success" || self.isEnabled()) {
self.timeout = BI.delay(function () {
self.showTimeout = BI.delay(function () {
self._showToolTip(self._e || e, opt);
}, 500);
}
});
this.element.on("mousemove.title" + this.getName(), function (e) {
self._e = e;
if (BI.isNotNull(self.timeout)) {
clearTimeout(self.timeout);
if (BI.isNotNull(self.showTimeout)) {
clearTimeout(self.showTimeout);
self.showTimeout = null;
}
self.timeout = BI.delay(function () {
if(BI.isNull(self.hideTimeout)) {
self.hideTimeout = BI.delay(function () {
self._hideTooltip();
}, 500);
}
self.showTimeout = BI.delay(function () {
if (BI.isNotNull(self.hideTimeout)) {
clearTimeout(self.hideTimeout);
self.hideTimeout = null;
}
self._showToolTip(self._e || e, opt);
}, 500);
self._hideTooltip();
});
this.element.on("mouseleave.title" + this.getName(), function (e) {
self._e = null;
if (BI.isNotNull(self.timeout)) {
clearTimeout(self.timeout);
}
self._clearTimeOut();
self._hideTooltip();
});
this._hoverBinded = true;
@ -35765,9 +35786,7 @@ BI.Single = BI.inherit(BI.Widget, {
disabledHover: function () {
// 取消hover事件
if (BI.isNotNull(this.timeout)) {
clearTimeout(this.timeout);
}
this._clearTimeOut();
this._hideTooltip();
this.element.unbind("mouseenter.title" + this.getName())
.unbind("mousemove.title" + this.getName())

56
dist/fineui.ie.min.js vendored

File diff suppressed because one or more lines are too long

43
dist/fineui.js vendored

@ -36130,6 +36130,17 @@ BI.Single = BI.inherit(BI.Widget, {
}
},
_clearTimeOut: function() {
if (BI.isNotNull(this.showTimeout)) {
clearTimeout(this.showTimeout);
this.showTimeout = null;
}
if (BI.isNotNull(this.hideTimeout)) {
clearTimeout(this.hideTimeout);
this.showTimeout = null;
}
},
enableHover: function (opt) {
opt || (opt = {});
var self = this;
@ -36137,30 +36148,40 @@ BI.Single = BI.inherit(BI.Widget, {
this.element.on("mouseenter.title" + this.getName(), function (e) {
self._e = e;
if (self.getTipType() === "warning" || (BI.isKey(self.getWarningTitle()) && !self.isEnabled())) {
self.timeout = BI.delay(function () {
self.showTimeout = BI.delay(function () {
self._showToolTip(self._e || e, opt);
}, 200);
} else if (self.getTipType() === "success" || self.isEnabled()) {
self.timeout = BI.delay(function () {
self.showTimeout = BI.delay(function () {
self._showToolTip(self._e || e, opt);
}, 500);
}
});
this.element.on("mousemove.title" + this.getName(), function (e) {
self._e = e;
if (BI.isNotNull(self.timeout)) {
clearTimeout(self.timeout);
if (BI.isNotNull(self.showTimeout)) {
clearTimeout(self.showTimeout);
self.showTimeout = null;
}
self.timeout = BI.delay(function () {
if(BI.isNull(self.hideTimeout)) {
self.hideTimeout = BI.delay(function () {
self._hideTooltip();
}, 500);
}
self.showTimeout = BI.delay(function () {
if (BI.isNotNull(self.hideTimeout)) {
clearTimeout(self.hideTimeout);
self.hideTimeout = null;
}
self._showToolTip(self._e || e, opt);
}, 500);
self._hideTooltip();
});
this.element.on("mouseleave.title" + this.getName(), function (e) {
self._e = null;
if (BI.isNotNull(self.timeout)) {
clearTimeout(self.timeout);
}
self._clearTimeOut();
self._hideTooltip();
});
this._hoverBinded = true;
@ -36169,9 +36190,7 @@ BI.Single = BI.inherit(BI.Widget, {
disabledHover: function () {
// 取消hover事件
if (BI.isNotNull(this.timeout)) {
clearTimeout(this.timeout);
}
this._clearTimeOut();
this._hideTooltip();
this.element.unbind("mouseenter.title" + this.getName())
.unbind("mousemove.title" + this.getName())

56
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

43
dist/fineui_without_jquery_polyfill.js vendored

@ -24640,6 +24640,17 @@ BI.Single = BI.inherit(BI.Widget, {
}
},
_clearTimeOut: function() {
if (BI.isNotNull(this.showTimeout)) {
clearTimeout(this.showTimeout);
this.showTimeout = null;
}
if (BI.isNotNull(this.hideTimeout)) {
clearTimeout(this.hideTimeout);
this.showTimeout = null;
}
},
enableHover: function (opt) {
opt || (opt = {});
var self = this;
@ -24647,30 +24658,40 @@ BI.Single = BI.inherit(BI.Widget, {
this.element.on("mouseenter.title" + this.getName(), function (e) {
self._e = e;
if (self.getTipType() === "warning" || (BI.isKey(self.getWarningTitle()) && !self.isEnabled())) {
self.timeout = BI.delay(function () {
self.showTimeout = BI.delay(function () {
self._showToolTip(self._e || e, opt);
}, 200);
} else if (self.getTipType() === "success" || self.isEnabled()) {
self.timeout = BI.delay(function () {
self.showTimeout = BI.delay(function () {
self._showToolTip(self._e || e, opt);
}, 500);
}
});
this.element.on("mousemove.title" + this.getName(), function (e) {
self._e = e;
if (BI.isNotNull(self.timeout)) {
clearTimeout(self.timeout);
if (BI.isNotNull(self.showTimeout)) {
clearTimeout(self.showTimeout);
self.showTimeout = null;
}
self.timeout = BI.delay(function () {
if(BI.isNull(self.hideTimeout)) {
self.hideTimeout = BI.delay(function () {
self._hideTooltip();
}, 500);
}
self.showTimeout = BI.delay(function () {
if (BI.isNotNull(self.hideTimeout)) {
clearTimeout(self.hideTimeout);
self.hideTimeout = null;
}
self._showToolTip(self._e || e, opt);
}, 500);
self._hideTooltip();
});
this.element.on("mouseleave.title" + this.getName(), function (e) {
self._e = null;
if (BI.isNotNull(self.timeout)) {
clearTimeout(self.timeout);
}
self._clearTimeOut();
self._hideTooltip();
});
this._hoverBinded = true;
@ -24679,9 +24700,7 @@ BI.Single = BI.inherit(BI.Widget, {
disabledHover: function () {
// 取消hover事件
if (BI.isNotNull(this.timeout)) {
clearTimeout(this.timeout);
}
this._clearTimeOut();
this._hideTooltip();
this.element.unbind("mouseenter.title" + this.getName())
.unbind("mousemove.title" + this.getName())

2
dist/utils.min.js vendored

File diff suppressed because one or more lines are too long

43
src/base/single/single.js

@ -59,6 +59,17 @@ BI.Single = BI.inherit(BI.Widget, {
}
},
_clearTimeOut: function() {
if (BI.isNotNull(this.showTimeout)) {
clearTimeout(this.showTimeout);
this.showTimeout = null;
}
if (BI.isNotNull(this.hideTimeout)) {
clearTimeout(this.hideTimeout);
this.showTimeout = null;
}
},
enableHover: function (opt) {
opt || (opt = {});
var self = this;
@ -66,30 +77,40 @@ BI.Single = BI.inherit(BI.Widget, {
this.element.on("mouseenter.title" + this.getName(), function (e) {
self._e = e;
if (self.getTipType() === "warning" || (BI.isKey(self.getWarningTitle()) && !self.isEnabled())) {
self.timeout = BI.delay(function () {
self.showTimeout = BI.delay(function () {
self._showToolTip(self._e || e, opt);
}, 200);
} else if (self.getTipType() === "success" || self.isEnabled()) {
self.timeout = BI.delay(function () {
self.showTimeout = BI.delay(function () {
self._showToolTip(self._e || e, opt);
}, 500);
}
});
this.element.on("mousemove.title" + this.getName(), function (e) {
self._e = e;
if (BI.isNotNull(self.timeout)) {
clearTimeout(self.timeout);
if (BI.isNotNull(self.showTimeout)) {
clearTimeout(self.showTimeout);
self.showTimeout = null;
}
if(BI.isNull(self.hideTimeout)) {
self.hideTimeout = BI.delay(function () {
self._hideTooltip();
}, 500);
}
self.timeout = BI.delay(function () {
self.showTimeout = BI.delay(function () {
if (BI.isNotNull(self.hideTimeout)) {
clearTimeout(self.hideTimeout);
self.hideTimeout = null;
}
self._showToolTip(self._e || e, opt);
}, 500);
self._hideTooltip();
});
this.element.on("mouseleave.title" + this.getName(), function (e) {
self._e = null;
if (BI.isNotNull(self.timeout)) {
clearTimeout(self.timeout);
}
self._clearTimeOut();
self._hideTooltip();
});
this._hoverBinded = true;
@ -98,9 +119,7 @@ BI.Single = BI.inherit(BI.Widget, {
disabledHover: function () {
// 取消hover事件
if (BI.isNotNull(this.timeout)) {
clearTimeout(this.timeout);
}
this._clearTimeOut();
this._hideTooltip();
this.element.unbind("mouseenter.title" + this.getName())
.unbind("mousemove.title" + this.getName())

Loading…
Cancel
Save