|
|
@ -17,7 +17,8 @@ BI.Single = BI.inherit(BI.Widget, { |
|
|
|
title: null, |
|
|
|
title: null, |
|
|
|
warningTitle: null, |
|
|
|
warningTitle: null, |
|
|
|
tipType: null, // success或warning
|
|
|
|
tipType: null, // success或warning
|
|
|
|
belowMouse: false // title是否跟随鼠标
|
|
|
|
belowMouse: false, // title是否跟随鼠标
|
|
|
|
|
|
|
|
enableHover: false |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -57,7 +58,7 @@ BI.Single = BI.inherit(BI.Widget, { |
|
|
|
self.setValue(newValue); |
|
|
|
self.setValue(newValue); |
|
|
|
}) : o.value; |
|
|
|
}) : o.value; |
|
|
|
BI.Single.superclass._init.apply(this, arguments); |
|
|
|
BI.Single.superclass._init.apply(this, arguments); |
|
|
|
if (BI.isKey(o.title) || BI.isKey(o.warningTitle) |
|
|
|
if (o.enableHover || BI.isKey(o.title) || BI.isKey(o.warningTitle) |
|
|
|
|| BI.isFunction(o.title) || BI.isFunction(o.warningTitle)) { |
|
|
|
|| BI.isFunction(o.title) || BI.isFunction(o.warningTitle)) { |
|
|
|
this.enableHover({ |
|
|
|
this.enableHover({ |
|
|
|
belowMouse: o.belowMouse, |
|
|
|
belowMouse: o.belowMouse, |
|
|
|