guy 7 years ago
parent
commit
1507e9b74a
  1. 7
      bi/base.js
  2. 6
      bi/core.js
  3. 7
      docs/base.js
  4. 6
      docs/core.js
  5. 7
      src/base/single/tip/tip.tooltip.js
  6. 1
      src/core/controller/controller.tooltips.js
  7. 5
      src/core/widget.js

7
bi/base.js

@ -19759,6 +19759,8 @@ BI.Tooltip = BI.inherit(BI.Tip, {
extraCls: "bi-tooltip",
text: "",
level: "success",//success或warning
stopEvent: false,
stopPropagation: false,
height: 20
})
},
@ -19767,9 +19769,8 @@ BI.Tooltip = BI.inherit(BI.Tip, {
var self = this, o = this.options;
this.element.addClass("tooltip-" + o.level);
var fn = function (e) {
e.stopPropagation();
e.stopEvent();
return false;
o.stopPropagation && e.stopPropagation();
o.stopEvent && e.stopEvent();
};
this.element.bind({
"click": fn,

6
bi/core.js

@ -4512,11 +4512,12 @@ BI.Widget = BI.inherit(BI.OB, {
setVisible: function (visible) {
if (visible === true) {
this.options.invisible = false;
this.element.show();
//用this.element.show()会把display属性改成block
this.element.css("display", "");
this._mount();
} else if (visible === false) {
this.options.invisible = true;
this.element.hide();
this.element.css("display", "none");
}
this.fireEvent(BI.Events.VIEW, visible);
},
@ -16173,6 +16174,7 @@ BI.TooltipsController = BI.inherit(BI.Controller, {
type: "bi.tooltip",
text: text,
level: level,
stopEvent: true,
height: this._const.height
});
},

7
docs/base.js

@ -19759,6 +19759,8 @@ BI.Tooltip = BI.inherit(BI.Tip, {
extraCls: "bi-tooltip",
text: "",
level: "success",//success或warning
stopEvent: false,
stopPropagation: false,
height: 20
})
},
@ -19767,9 +19769,8 @@ BI.Tooltip = BI.inherit(BI.Tip, {
var self = this, o = this.options;
this.element.addClass("tooltip-" + o.level);
var fn = function (e) {
e.stopPropagation();
e.stopEvent();
return false;
o.stopPropagation && e.stopPropagation();
o.stopEvent && e.stopEvent();
};
this.element.bind({
"click": fn,

6
docs/core.js

@ -14507,11 +14507,12 @@ BI.Widget = BI.inherit(BI.OB, {
setVisible: function (visible) {
if (visible === true) {
this.options.invisible = false;
this.element.show();
//用this.element.show()会把display属性改成block
this.element.css("display", "");
this._mount();
} else if (visible === false) {
this.options.invisible = true;
this.element.hide();
this.element.css("display", "none");
}
this.fireEvent(BI.Events.VIEW, visible);
},
@ -21260,6 +21261,7 @@ BI.TooltipsController = BI.inherit(BI.Controller, {
type: "bi.tooltip",
text: text,
level: level,
stopEvent: true,
height: this._const.height
});
},

7
src/base/single/tip/tip.tooltip.js

@ -15,6 +15,8 @@ BI.Tooltip = BI.inherit(BI.Tip, {
extraCls: "bi-tooltip",
text: "",
level: "success",//success或warning
stopEvent: false,
stopPropagation: false,
height: 20
})
},
@ -23,9 +25,8 @@ BI.Tooltip = BI.inherit(BI.Tip, {
var self = this, o = this.options;
this.element.addClass("tooltip-" + o.level);
var fn = function (e) {
e.stopPropagation();
e.stopEvent();
return false;
o.stopPropagation && e.stopPropagation();
o.stopEvent && e.stopEvent();
};
this.element.bind({
"click": fn,

1
src/core/controller/controller.tooltips.js

@ -26,6 +26,7 @@ BI.TooltipsController = BI.inherit(BI.Controller, {
type: "bi.tooltip",
text: text,
level: level,
stopEvent: true,
height: this._const.height
});
},

5
src/core/widget.js

@ -208,11 +208,12 @@ BI.Widget = BI.inherit(BI.OB, {
setVisible: function (visible) {
if (visible === true) {
this.options.invisible = false;
this.element.show();
//用this.element.show()会把display属性改成block
this.element.css("display", "");
this._mount();
} else if (visible === false) {
this.options.invisible = true;
this.element.hide();
this.element.css("display", "none");
}
this.fireEvent(BI.Events.VIEW, visible);
},

Loading…
Cancel
Save