Browse Source

BI-17954

处理点击组件bi.multi_select_bar中text区域内容仅会在组件内部发生状态改变而不对触发事件的问题
es6
MrErHu 6 years ago
parent
commit
8a28d2d49e
  1. 32
      dist/_fineui.min.js
  2. 32
      dist/bundle.js
  3. 30
      dist/bundle.min.js
  4. 32
      dist/case.js
  5. 32
      dist/fineui.min.js
  6. 32
      src/case/toolbar/toolbar.multiselect.js

32
dist/_fineui.min.js vendored

File diff suppressed because one or more lines are too long

32
dist/bundle.js vendored

@ -85543,6 +85543,22 @@ BI.MultiSelectBar = BI.inherit(BI.BasicButton, {
},
invisible: isSelect || !isHalfSelect
});
this.text = BI.createWidget({
type: "bi.text_button",
stopPropagation: true,
textAlign: "left",
whiteSpace: "nowrap",
textHeight: o.height,
height: o.height,
hgap: o.hgap,
text: o.text,
keyword: o.keyword,
value: o.value,
py: o.py,
handler: function () {
self.beforeClick();
}
});
this.checkbox.on(BI.Controller.EVENT_CHANGE, function () {
self.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.CLICK, self.isSelected(), self);
});
@ -85552,23 +85568,17 @@ BI.MultiSelectBar = BI.inherit(BI.BasicButton, {
this.half.on(BI.Controller.EVENT_CHANGE, function () {
self.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.CLICK, self.isSelected(), self);
});
this.text.on(BI.Controller.EVENT_CHANGE, function () {
self.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.CLICK, self.isSelected(), self);
});
this.half.on(BI.HalfIconButton.EVENT_CHANGE, function () {
self.fireEvent(BI.MultiSelectBar.EVENT_CHANGE, self.isSelected(), self);
});
this.checkbox.on(BI.Checkbox.EVENT_CHANGE, function () {
self.fireEvent(BI.MultiSelectBar.EVENT_CHANGE, self.isSelected(), self);
});
this.text = BI.createWidget({
type: "bi.label",
textAlign: "left",
whiteSpace: "nowrap",
textHeight: o.height,
height: o.height,
hgap: o.hgap,
text: o.text,
keyword: o.keyword,
value: o.value,
py: o.py
this.text.on(BI.TextButton.EVENT_CHANGE, function () {
self.fireEvent(BI.MultiSelectBar.EVENT_CHANGE, self.isSelected(), self);
});
BI.createWidget({
type: "bi.htape",

30
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

32
dist/case.js vendored

@ -13094,6 +13094,22 @@ BI.MultiSelectBar = BI.inherit(BI.BasicButton, {
},
invisible: isSelect || !isHalfSelect
});
this.text = BI.createWidget({
type: "bi.text_button",
stopPropagation: true,
textAlign: "left",
whiteSpace: "nowrap",
textHeight: o.height,
height: o.height,
hgap: o.hgap,
text: o.text,
keyword: o.keyword,
value: o.value,
py: o.py,
handler: function () {
self.beforeClick();
}
});
this.checkbox.on(BI.Controller.EVENT_CHANGE, function () {
self.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.CLICK, self.isSelected(), self);
});
@ -13103,23 +13119,17 @@ BI.MultiSelectBar = BI.inherit(BI.BasicButton, {
this.half.on(BI.Controller.EVENT_CHANGE, function () {
self.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.CLICK, self.isSelected(), self);
});
this.text.on(BI.Controller.EVENT_CHANGE, function () {
self.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.CLICK, self.isSelected(), self);
});
this.half.on(BI.HalfIconButton.EVENT_CHANGE, function () {
self.fireEvent(BI.MultiSelectBar.EVENT_CHANGE, self.isSelected(), self);
});
this.checkbox.on(BI.Checkbox.EVENT_CHANGE, function () {
self.fireEvent(BI.MultiSelectBar.EVENT_CHANGE, self.isSelected(), self);
});
this.text = BI.createWidget({
type: "bi.label",
textAlign: "left",
whiteSpace: "nowrap",
textHeight: o.height,
height: o.height,
hgap: o.hgap,
text: o.text,
keyword: o.keyword,
value: o.value,
py: o.py
this.text.on(BI.TextButton.EVENT_CHANGE, function () {
self.fireEvent(BI.MultiSelectBar.EVENT_CHANGE, self.isSelected(), self);
});
BI.createWidget({
type: "bi.htape",

32
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

32
src/case/toolbar/toolbar.multiselect.js

@ -42,6 +42,22 @@ BI.MultiSelectBar = BI.inherit(BI.BasicButton, {
},
invisible: isSelect || !isHalfSelect
});
this.text = BI.createWidget({
type: "bi.text_button",
stopPropagation: true,
textAlign: "left",
whiteSpace: "nowrap",
textHeight: o.height,
height: o.height,
hgap: o.hgap,
text: o.text,
keyword: o.keyword,
value: o.value,
py: o.py,
handler: function () {
self.beforeClick();
}
});
this.checkbox.on(BI.Controller.EVENT_CHANGE, function () {
self.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.CLICK, self.isSelected(), self);
});
@ -51,23 +67,17 @@ BI.MultiSelectBar = BI.inherit(BI.BasicButton, {
this.half.on(BI.Controller.EVENT_CHANGE, function () {
self.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.CLICK, self.isSelected(), self);
});
this.text.on(BI.Controller.EVENT_CHANGE, function () {
self.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.CLICK, self.isSelected(), self);
});
this.half.on(BI.HalfIconButton.EVENT_CHANGE, function () {
self.fireEvent(BI.MultiSelectBar.EVENT_CHANGE, self.isSelected(), self);
});
this.checkbox.on(BI.Checkbox.EVENT_CHANGE, function () {
self.fireEvent(BI.MultiSelectBar.EVENT_CHANGE, self.isSelected(), self);
});
this.text = BI.createWidget({
type: "bi.label",
textAlign: "left",
whiteSpace: "nowrap",
textHeight: o.height,
height: o.height,
hgap: o.hgap,
text: o.text,
keyword: o.keyword,
value: o.value,
py: o.py
this.text.on(BI.TextButton.EVENT_CHANGE, function () {
self.fireEvent(BI.MultiSelectBar.EVENT_CHANGE, self.isSelected(), self);
});
BI.createWidget({
type: "bi.htape",

Loading…
Cancel
Save