|
|
@ -18,7 +18,6 @@ |
|
|
|
rgap: 0, |
|
|
|
rgap: 0, |
|
|
|
tgap: 0, |
|
|
|
tgap: 0, |
|
|
|
bgap: 0, |
|
|
|
bgap: 0, |
|
|
|
text: "", |
|
|
|
|
|
|
|
py: "", |
|
|
|
py: "", |
|
|
|
highLight: false |
|
|
|
highLight: false |
|
|
|
}, |
|
|
|
}, |
|
|
@ -78,7 +77,7 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var text = this._getShowText(); |
|
|
|
var text = this._getShowText(); |
|
|
|
if (BI.isKey(text)) { |
|
|
|
if (!BI.isUndefined(text)) { |
|
|
|
this.setText(text); |
|
|
|
this.setText(text); |
|
|
|
} else if (BI.isKey(o.value)) { |
|
|
|
} else if (BI.isKey(o.value)) { |
|
|
|
this.setText(o.value); |
|
|
|
this.setText(o.value); |
|
|
@ -105,11 +104,8 @@ |
|
|
|
_getShowText: function () { |
|
|
|
_getShowText: function () { |
|
|
|
var o = this.options; |
|
|
|
var o = this.options; |
|
|
|
var text = BI.isFunction(o.text) ? o.text() : o.text; |
|
|
|
var text = BI.isFunction(o.text) ? o.text() : o.text; |
|
|
|
text = BI.isKey(text) ? text : o.value; |
|
|
|
|
|
|
|
if (!BI.isKey(text)) { |
|
|
|
return BI.isKey(text) ? BI.Text.formatText(text + "") : text; |
|
|
|
return ""; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return BI.Text.formatText(text + ""); |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_doRedMark: function (keyword) { |
|
|
|
_doRedMark: function (keyword) { |
|
|
|