Browse Source

Revert "JSY-8352 fix:DownListGroupItem中文字高亮"

This reverts commit 285c0ec6f7.
es6
Guyi 3 years ago
parent
commit
7145f6261a
  1. 4
      src/less/widget/downlist/popup.downlist.less
  2. 10
      src/widget/downlist/item.downlistgroup.js

4
src/less/widget/downlist/popup.downlist.less

@ -3,10 +3,6 @@
.bi-down-list-popup {
& .list-group-item-text {
max-width: 203px;
&.active {
color: @color-bi-text-highlight;
}
}
& .bi-down-list-item {
& .list-item-text {

10
src/widget/downlist/item.downlistgroup.js

@ -16,14 +16,12 @@ BI.DownListGroupItem = BI.inherit(BI.BasicButton, {
var o = this.options;
var self = this;
this.text = BI.createWidget({
type: "bi.text_button",
type: "bi.label",
cls: "list-group-item-text",
textAlign: "left",
text: o.text,
value: o.value,
height: o.height,
disableSelected: true,
selected: this._digest(o.value)
height: o.height
});
this.icon1 = BI.createWidget({
@ -116,9 +114,7 @@ BI.DownListGroupItem = BI.inherit(BI.BasicButton, {
},
setValue: function (v) {
const selected = this._digest(v);
this.icon1.setSelected(selected);
this.text.setSelected(selected);
this.icon1.setSelected(this._digest(v));
}
});
BI.DownListGroupItem.EVENT_CHANGE = "EVENT_CHANGE";

Loading…
Cancel
Save