Browse Source

文本支持点击

master
guy 4 years ago
parent
commit
2a0f53e8ff
  1. 6
      src/base/single/label/abstract.label.js
  2. 2
      src/base/single/text.js

6
src/base/single/label/abstract.label.js

@ -18,7 +18,8 @@ BI.AbstractLabel = BI.inherit(BI.Single, {
tgap: 0,
bgap: 0,
text: "",
highLight: false
highLight: false,
handler: null
});
},
@ -33,7 +34,8 @@ BI.AbstractLabel = BI.inherit(BI.Single, {
value: o.value,
py: o.py,
keyword: o.keyword,
highLight: o.highLight
highLight: o.highLight,
handler: o.handler
};
},

2
src/base/single/text.js

@ -59,7 +59,7 @@ BI.Text = BI.inherit(BI.Single, {
textOverflow: o.whiteSpace === "nowrap" ? "ellipsis" : "",
overflow: o.whiteSpace === "nowrap" ? "" : (BI.isWidthOrHeight(o.height) ? "auto" : "")
});
if (o.handler) {
if (o.handler && o.handler !== BI.emptyFn) {
this.text = BI.createWidget({
type: "bi.layout",
tagName: "span"

Loading…
Cancel
Save