Browse Source

DEC-14674 feat: iframe新增EVENT_LOADED事件

master
zsmj1994 4 years ago
parent
commit
6ff97cd80a
  1. 1
      changelog.md
  2. 7
      src/base/single/iframe/iframe.js

1
changelog.md

@ -1,5 +1,6 @@
# 更新日志
2.0(2020-08)
- bi.iframe新增EVENT_LOADED事件
- 修复了searcher在允许搜索的情况下输入空格直接退出搜索的问题
- 修复了复选下拉系列'点按空格添加完全匹配项'添加的是显示值而非实际值的问题
- search_text_value_combo支持水印

7
src/base/single/iframe/iframe.js

@ -19,11 +19,14 @@ BI.Iframe = BI.inherit(BI.Single, {
},
_init: function () {
var o = this.options;
var self = this, o = this.options;
o.attributes.frameborder = "0";
o.attributes.src = o.src;
o.attributes.name = o.name;
BI.Iframe.superclass._init.apply(this, arguments);
this.element.on("load", function () {
self.fireEvent("EVENT_LOADED");
});
},
setSrc: function (src) {
@ -45,4 +48,4 @@ BI.Iframe = BI.inherit(BI.Single, {
}
});
BI.shortcut("bi.iframe", BI.Iframe);
BI.shortcut("bi.iframe", BI.Iframe);

Loading…
Cancel
Save