Browse Source

auto upgrade version to 2.0.20201010174209

es6
data 4 years ago
parent
commit
4a69381076
  1. 2
      dist/2.0/fineui.css
  2. 4
      dist/2.0/fineui.ie.min.js
  3. 2
      dist/2.0/fineui.ie.min.js.map
  4. 108
      dist/2.0/fineui.js
  5. 2
      dist/2.0/fineui.js.map
  6. 2
      dist/2.0/fineui.min.css
  7. 4
      dist/2.0/fineui.min.js
  8. 2
      dist/2.0/fineui.min.js.map
  9. 2
      dist/2.0/fineui_without_normalize.css
  10. 2
      dist/2.0/fineui_without_normalize.min.css
  11. 2
      dist/bundle.min.css
  12. 4
      dist/bundle.min.js
  13. 2
      dist/bundle.min.js.map
  14. 2
      dist/demo.css
  15. 108
      dist/demo.js
  16. 2
      dist/demo.js.map
  17. 2
      dist/fineui.css
  18. 4
      dist/fineui.ie.min.js
  19. 2
      dist/fineui.ie.min.js.map
  20. 108
      dist/fineui.js
  21. 2
      dist/fineui.js.map
  22. 2
      dist/fineui.min.css
  23. 4
      dist/fineui.min.js
  24. 2
      dist/fineui.min.js.map
  25. 95
      dist/fineui_without_jquery_polyfill.js
  26. 2
      dist/fineui_without_jquery_polyfill.js.map
  27. 2
      dist/font.css
  28. 4
      dist/utils.js
  29. 2
      dist/utils.js.map
  30. 2
      dist/utils.min.js
  31. 2
      dist/utils.min.js.map
  32. 2
      package.json

2
dist/2.0/fineui.css vendored

File diff suppressed because one or more lines are too long

4
dist/2.0/fineui.ie.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/2.0/fineui.ie.min.js.map vendored

File diff suppressed because one or more lines are too long

108
dist/2.0/fineui.js vendored

@ -1,4 +1,4 @@
/*! time: 2020-10-10 17:20:25 */
/*! time: 2020-10-10 17:40:22 */
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
@ -4629,7 +4629,7 @@ if (!_global.BI) {
/***/ (function(module, exports) {
!(function () {
function extend() {
function extend () {
var target = arguments[0] || {}, length = arguments.length, i = 1, options, name, src, copy;
for (; i < length; i++) {
// Only deal with non-null/undefined values
@ -13573,6 +13573,14 @@ module.exports = function (exec) {
// 覆盖父类的_constructor方法,widget不走ob的生命周期
_constructor: function () {
// do nothing
},
_lazyConstructor: function () {
if (!this._constructed) {
this._constructed = true;
this._init();
}
},
beforeInit: null,
@ -13599,7 +13607,6 @@ module.exports = function (exec) {
_init: function () {
BI.Widget.superclass._init.apply(this, arguments);
this._initRoot();
this._initElementWidth();
this._initElementHeight();
this._initVisual();
@ -13635,14 +13642,15 @@ module.exports = function (exec) {
var o = this.options;
this.widgetName = o.widgetName || BI.uniqueId("widget");
this._isRoot = o.root;
this._children = {};
if (BI.isWidget(o.element)) {
this.element = this.options.element.element;
if (o.element instanceof BI.Widget) {
this._parent = o.element;
this._parent.addWidget(this.widgetName, this);
} else {
this._isRoot = true;
}
this.element = this.options.element.element;
} else if (o.element) {
// if (o.root !== true) {
// throw new Error("root is a required property");
@ -13665,7 +13673,6 @@ module.exports = function (exec) {
if (o.css) {
this.element.css(o.css);
}
this._children = {};
},
_initElementWidth: function () {
@ -13875,6 +13882,7 @@ module.exports = function (exec) {
throw new Error("name has already been existed");
}
widget._setParent && widget._setParent(this);
widget._lazyConstructor();
widget.on(BI.Events.DESTROY, function () {
BI.remove(self._children, this);
});
@ -14152,16 +14160,18 @@ module.exports = function (exec) {
var createWidget = function (config) {
var cls = kv[config.type];
if(!cls){
throw new Error("组件"+config.type +"未定义");
if (!cls) {
throw new Error("组件" + config.type + "未定义");
}
var widget = new cls();
widget._initProps(config);
widget._init();
widget._initRoot();
widget._initRef();
// if (config.element || config.root) {
widget._lazyConstructor();
// }
return widget;
};
@ -15305,10 +15315,6 @@ BI.ShowAction = BI.inherit(BI.Action, {
return BI.extend(BI.ShowAction.superclass._defaultConfig.apply(this, arguments), {});
},
_init: function () {
BI.ShowAction.superclass._init.apply(this, arguments);
},
actionPerformed: function (src, tar, callback) {
tar = tar || this.options.tar;
tar.setVisible(true);
@ -15322,6 +15328,7 @@ BI.ShowAction = BI.inherit(BI.Action, {
}
});
/***/ }),
/* 309 */
/***/ (function(module, exports) {
@ -15425,17 +15432,11 @@ BI.Controller = BI.inherit(BI.OB, {
return BI.extend(BI.Controller.superclass._defaultConfig.apply(this, arguments), {
});
},
_init: function () {
BI.Controller.superclass._init.apply(this, arguments);
},
destroy: function () {
}
});
BI.Controller.EVENT_CHANGE = "__EVENT_CHANGE__";
/***/ }),
/* 312 */
/***/ (function(module, exports) {
@ -17135,10 +17136,6 @@ BI.VerticalLayoutLogic = BI.inherit(BI.Logic, {
bgap: o.bgap,
items: o.items
};
},
_init: function () {
BI.VerticalLayoutLogic.superclass._init.apply(this, arguments);
}
});
@ -17188,10 +17185,6 @@ BI.HorizontalLayoutLogic = BI.inherit(BI.Logic, {
bgap: o.bgap,
items: o.items
};
},
_init: function () {
BI.HorizontalLayoutLogic.superclass._init.apply(this, arguments);
}
});
@ -17240,10 +17233,6 @@ BI.TableLayoutLogic = BI.inherit(BI.Logic, {
vgap: o.vgap,
items: o.items
};
},
_init: function () {
BI.TableLayoutLogic.superclass._init.apply(this, arguments);
}
});
@ -17296,13 +17285,10 @@ BI.HorizontalFillLayoutLogic = BI.inherit(BI.Logic, {
bgap: o.bgap,
items: o.items
};
},
_init: function () {
BI.HorizontalFillLayoutLogic.superclass._init.apply(this, arguments);
}
});
/***/ }),
/* 325 */
/***/ (function(module, exports) {
@ -30380,24 +30366,24 @@ BI.shortcut("bi.icon", BI.Icon);
* Created by GameJian on 2016/3/2.
*/
BI.Iframe = BI.inherit(BI.Single, {
_defaultConfig: function () {
_defaultConfig: function (config) {
var conf = BI.Iframe.superclass._defaultConfig.apply(this, arguments);
return BI.extend(conf, {
tagName: "iframe",
baseCls: (conf.baseCls || "") + " bi-iframe",
src: "",
name: "",
attributes: {},
attributes: {
frameborder: 0,
src: config.src,
name: config.name
},
width: "100%",
height: "100%"
});
},
_init: function () {
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");
@ -30439,24 +30425,18 @@ BI.shortcut("bi.iframe", BI.Iframe);
* @abstract
*/
BI.Img = BI.inherit(BI.Single, {
_defaultConfig: function () {
_defaultConfig: function (config) {
var conf = BI.Img.superclass._defaultConfig.apply(this, arguments);
return BI.extend(conf, {
tagName: "img",
baseCls: (conf.baseCls || "") + " bi-img display-block",
src: "",
attributes: {},
attributes: config.src ? {src: config.src} : {},
width: "100%",
height: "100%"
});
},
_init: function () {
var o = this.options;
o.attributes.src = o.src;
BI.Img.superclass._init.apply(this, arguments);
},
setSrc: function (src) {
this.options.src = src;
this.element.attr("src", src);
@ -31514,15 +31494,12 @@ BI.Link = BI.inherit(BI.Label, {
href: o.href,
target: o.target
};
},
_init: function () {
BI.Link.superclass._init.apply(this, arguments);
}
});
BI.shortcut("bi.link", BI.Link);
/***/ }),
/* 432 */
/***/ (function(module, exports) {
@ -37538,10 +37515,6 @@ BI.MultiPopupView = BI.inherit(BI.PopupView, {
});
},
_init: function () {
BI.MultiPopupView.superclass._init.apply(this, arguments);
},
_createToolBar: function () {
var o = this.options, self = this;
if (o.buttons.length === 0) {
@ -37587,6 +37560,7 @@ BI.MultiPopupView.EVENT_CLICK_TOOLBAR_BUTTON = "EVENT_CLICK_TOOLBAR_BUTTON";
BI.shortcut("bi.multi_popup_view", BI.MultiPopupView);
/***/ }),
/* 490 */
/***/ (function(module, exports) {
@ -37607,10 +37581,6 @@ BI.PopupPanel = BI.inherit(BI.MultiPopupView, {
});
},
_init: function () {
BI.PopupPanel.superclass._init.apply(this, arguments);
},
_createTool: function () {
var self = this, o = this.options;
var close = BI.createWidget({
@ -37649,6 +37619,7 @@ BI.PopupPanel.EVENT_CLICK_TOOLBAR_BUTTON = "EVENT_CLICK_TOOLBAR_BUTTON";
BI.shortcut("bi.popup_panel", BI.PopupPanel);
/***/ }),
/* 491 */
/***/ (function(module, exports) {
@ -83664,10 +83635,6 @@ BI.PartTree = BI.inherit(BI.AsyncTree, {
return BI.extend(BI.PartTree.superclass._defaultConfig.apply(this, arguments), {});
},
_init: function () {
BI.PartTree.superclass._init.apply(this, arguments);
},
_loadMore: function () {
var self = this, o = this.options;
var op = BI.extend({}, o.paras, {
@ -83858,6 +83825,7 @@ BI.PartTree = BI.inherit(BI.AsyncTree, {
BI.shortcut("bi.part_tree", BI.PartTree);
/***/ }),
/* 710 */
/***/ (function(module, exports) {
@ -89108,9 +89076,6 @@ BI.DisplayTree = BI.inherit(BI.TreeView, {
extraCls: "bi-display-tree"
});
},
_init: function () {
BI.DisplayTree.superclass._init.apply(this, arguments);
},
// 配置属性
_configSetting: function () {
@ -89160,16 +89125,13 @@ BI.DisplayTree = BI.inherit(BI.TreeView, {
initTree: function (nodes, setting) {
var setting = setting || this._configSetting();
this.nodes = BI.$.fn.zTree.init(this.tree.element, setting, nodes);
},
destroy: function () {
BI.DisplayTree.superclass.destroy.apply(this, arguments);
}
});
BI.DisplayTree.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.display_tree", BI.DisplayTree);
/***/ }),
/* 731 */
/***/ (function(module, exports) {

2
dist/2.0/fineui.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/2.0/fineui.min.css vendored

File diff suppressed because one or more lines are too long

4
dist/2.0/fineui.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/2.0/fineui.min.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/2.0/fineui_without_normalize.css vendored

File diff suppressed because one or more lines are too long

2
dist/2.0/fineui_without_normalize.min.css vendored

File diff suppressed because one or more lines are too long

2
dist/bundle.min.css vendored

File diff suppressed because one or more lines are too long

4
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/bundle.min.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/demo.css vendored

File diff suppressed because one or more lines are too long

108
dist/demo.js vendored

@ -1,4 +1,4 @@
/*! time: 2020-10-10 17:20:25 */
/*! time: 2020-10-10 17:40:22 */
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
@ -4629,7 +4629,7 @@ if (!_global.BI) {
/***/ (function(module, exports) {
!(function () {
function extend() {
function extend () {
var target = arguments[0] || {}, length = arguments.length, i = 1, options, name, src, copy;
for (; i < length; i++) {
// Only deal with non-null/undefined values
@ -13573,6 +13573,14 @@ module.exports = function (exec) {
// 覆盖父类的_constructor方法,widget不走ob的生命周期
_constructor: function () {
// do nothing
},
_lazyConstructor: function () {
if (!this._constructed) {
this._constructed = true;
this._init();
}
},
beforeInit: null,
@ -13599,7 +13607,6 @@ module.exports = function (exec) {
_init: function () {
BI.Widget.superclass._init.apply(this, arguments);
this._initRoot();
this._initElementWidth();
this._initElementHeight();
this._initVisual();
@ -13635,14 +13642,15 @@ module.exports = function (exec) {
var o = this.options;
this.widgetName = o.widgetName || BI.uniqueId("widget");
this._isRoot = o.root;
this._children = {};
if (BI.isWidget(o.element)) {
this.element = this.options.element.element;
if (o.element instanceof BI.Widget) {
this._parent = o.element;
this._parent.addWidget(this.widgetName, this);
} else {
this._isRoot = true;
}
this.element = this.options.element.element;
} else if (o.element) {
// if (o.root !== true) {
// throw new Error("root is a required property");
@ -13665,7 +13673,6 @@ module.exports = function (exec) {
if (o.css) {
this.element.css(o.css);
}
this._children = {};
},
_initElementWidth: function () {
@ -13875,6 +13882,7 @@ module.exports = function (exec) {
throw new Error("name has already been existed");
}
widget._setParent && widget._setParent(this);
widget._lazyConstructor();
widget.on(BI.Events.DESTROY, function () {
BI.remove(self._children, this);
});
@ -14152,16 +14160,18 @@ module.exports = function (exec) {
var createWidget = function (config) {
var cls = kv[config.type];
if(!cls){
throw new Error("组件"+config.type +"未定义");
if (!cls) {
throw new Error("组件" + config.type + "未定义");
}
var widget = new cls();
widget._initProps(config);
widget._init();
widget._initRoot();
widget._initRef();
// if (config.element || config.root) {
widget._lazyConstructor();
// }
return widget;
};
@ -15305,10 +15315,6 @@ BI.ShowAction = BI.inherit(BI.Action, {
return BI.extend(BI.ShowAction.superclass._defaultConfig.apply(this, arguments), {});
},
_init: function () {
BI.ShowAction.superclass._init.apply(this, arguments);
},
actionPerformed: function (src, tar, callback) {
tar = tar || this.options.tar;
tar.setVisible(true);
@ -15322,6 +15328,7 @@ BI.ShowAction = BI.inherit(BI.Action, {
}
});
/***/ }),
/* 309 */
/***/ (function(module, exports) {
@ -15425,17 +15432,11 @@ BI.Controller = BI.inherit(BI.OB, {
return BI.extend(BI.Controller.superclass._defaultConfig.apply(this, arguments), {
});
},
_init: function () {
BI.Controller.superclass._init.apply(this, arguments);
},
destroy: function () {
}
});
BI.Controller.EVENT_CHANGE = "__EVENT_CHANGE__";
/***/ }),
/* 312 */
/***/ (function(module, exports) {
@ -17135,10 +17136,6 @@ BI.VerticalLayoutLogic = BI.inherit(BI.Logic, {
bgap: o.bgap,
items: o.items
};
},
_init: function () {
BI.VerticalLayoutLogic.superclass._init.apply(this, arguments);
}
});
@ -17188,10 +17185,6 @@ BI.HorizontalLayoutLogic = BI.inherit(BI.Logic, {
bgap: o.bgap,
items: o.items
};
},
_init: function () {
BI.HorizontalLayoutLogic.superclass._init.apply(this, arguments);
}
});
@ -17240,10 +17233,6 @@ BI.TableLayoutLogic = BI.inherit(BI.Logic, {
vgap: o.vgap,
items: o.items
};
},
_init: function () {
BI.TableLayoutLogic.superclass._init.apply(this, arguments);
}
});
@ -17296,13 +17285,10 @@ BI.HorizontalFillLayoutLogic = BI.inherit(BI.Logic, {
bgap: o.bgap,
items: o.items
};
},
_init: function () {
BI.HorizontalFillLayoutLogic.superclass._init.apply(this, arguments);
}
});
/***/ }),
/* 325 */
/***/ (function(module, exports) {
@ -30380,24 +30366,24 @@ BI.shortcut("bi.icon", BI.Icon);
* Created by GameJian on 2016/3/2.
*/
BI.Iframe = BI.inherit(BI.Single, {
_defaultConfig: function () {
_defaultConfig: function (config) {
var conf = BI.Iframe.superclass._defaultConfig.apply(this, arguments);
return BI.extend(conf, {
tagName: "iframe",
baseCls: (conf.baseCls || "") + " bi-iframe",
src: "",
name: "",
attributes: {},
attributes: {
frameborder: 0,
src: config.src,
name: config.name
},
width: "100%",
height: "100%"
});
},
_init: function () {
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");
@ -30439,24 +30425,18 @@ BI.shortcut("bi.iframe", BI.Iframe);
* @abstract
*/
BI.Img = BI.inherit(BI.Single, {
_defaultConfig: function () {
_defaultConfig: function (config) {
var conf = BI.Img.superclass._defaultConfig.apply(this, arguments);
return BI.extend(conf, {
tagName: "img",
baseCls: (conf.baseCls || "") + " bi-img display-block",
src: "",
attributes: {},
attributes: config.src ? {src: config.src} : {},
width: "100%",
height: "100%"
});
},
_init: function () {
var o = this.options;
o.attributes.src = o.src;
BI.Img.superclass._init.apply(this, arguments);
},
setSrc: function (src) {
this.options.src = src;
this.element.attr("src", src);
@ -31514,15 +31494,12 @@ BI.Link = BI.inherit(BI.Label, {
href: o.href,
target: o.target
};
},
_init: function () {
BI.Link.superclass._init.apply(this, arguments);
}
});
BI.shortcut("bi.link", BI.Link);
/***/ }),
/* 432 */
/***/ (function(module, exports) {
@ -37538,10 +37515,6 @@ BI.MultiPopupView = BI.inherit(BI.PopupView, {
});
},
_init: function () {
BI.MultiPopupView.superclass._init.apply(this, arguments);
},
_createToolBar: function () {
var o = this.options, self = this;
if (o.buttons.length === 0) {
@ -37587,6 +37560,7 @@ BI.MultiPopupView.EVENT_CLICK_TOOLBAR_BUTTON = "EVENT_CLICK_TOOLBAR_BUTTON";
BI.shortcut("bi.multi_popup_view", BI.MultiPopupView);
/***/ }),
/* 490 */
/***/ (function(module, exports) {
@ -37607,10 +37581,6 @@ BI.PopupPanel = BI.inherit(BI.MultiPopupView, {
});
},
_init: function () {
BI.PopupPanel.superclass._init.apply(this, arguments);
},
_createTool: function () {
var self = this, o = this.options;
var close = BI.createWidget({
@ -37649,6 +37619,7 @@ BI.PopupPanel.EVENT_CLICK_TOOLBAR_BUTTON = "EVENT_CLICK_TOOLBAR_BUTTON";
BI.shortcut("bi.popup_panel", BI.PopupPanel);
/***/ }),
/* 491 */
/***/ (function(module, exports) {
@ -83664,10 +83635,6 @@ BI.PartTree = BI.inherit(BI.AsyncTree, {
return BI.extend(BI.PartTree.superclass._defaultConfig.apply(this, arguments), {});
},
_init: function () {
BI.PartTree.superclass._init.apply(this, arguments);
},
_loadMore: function () {
var self = this, o = this.options;
var op = BI.extend({}, o.paras, {
@ -83858,6 +83825,7 @@ BI.PartTree = BI.inherit(BI.AsyncTree, {
BI.shortcut("bi.part_tree", BI.PartTree);
/***/ }),
/* 710 */
/***/ (function(module, exports) {
@ -89108,9 +89076,6 @@ BI.DisplayTree = BI.inherit(BI.TreeView, {
extraCls: "bi-display-tree"
});
},
_init: function () {
BI.DisplayTree.superclass._init.apply(this, arguments);
},
// 配置属性
_configSetting: function () {
@ -89160,16 +89125,13 @@ BI.DisplayTree = BI.inherit(BI.TreeView, {
initTree: function (nodes, setting) {
var setting = setting || this._configSetting();
this.nodes = BI.$.fn.zTree.init(this.tree.element, setting, nodes);
},
destroy: function () {
BI.DisplayTree.superclass.destroy.apply(this, arguments);
}
});
BI.DisplayTree.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.display_tree", BI.DisplayTree);
/***/ }),
/* 731 */
/***/ (function(module, exports) {

2
dist/demo.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.css vendored

File diff suppressed because one or more lines are too long

4
dist/fineui.ie.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.ie.min.js.map vendored

File diff suppressed because one or more lines are too long

108
dist/fineui.js vendored

@ -1,4 +1,4 @@
/*! time: 2020-10-10 17:20:25 */
/*! time: 2020-10-10 17:40:22 */
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
@ -4629,7 +4629,7 @@ if (!_global.BI) {
/***/ (function(module, exports) {
!(function () {
function extend() {
function extend () {
var target = arguments[0] || {}, length = arguments.length, i = 1, options, name, src, copy;
for (; i < length; i++) {
// Only deal with non-null/undefined values
@ -13573,6 +13573,14 @@ module.exports = function (exec) {
// 覆盖父类的_constructor方法,widget不走ob的生命周期
_constructor: function () {
// do nothing
},
_lazyConstructor: function () {
if (!this._constructed) {
this._constructed = true;
this._init();
}
},
beforeInit: null,
@ -13599,7 +13607,6 @@ module.exports = function (exec) {
_init: function () {
BI.Widget.superclass._init.apply(this, arguments);
this._initRoot();
this._initElementWidth();
this._initElementHeight();
this._initVisual();
@ -13635,14 +13642,15 @@ module.exports = function (exec) {
var o = this.options;
this.widgetName = o.widgetName || BI.uniqueId("widget");
this._isRoot = o.root;
this._children = {};
if (BI.isWidget(o.element)) {
this.element = this.options.element.element;
if (o.element instanceof BI.Widget) {
this._parent = o.element;
this._parent.addWidget(this.widgetName, this);
} else {
this._isRoot = true;
}
this.element = this.options.element.element;
} else if (o.element) {
// if (o.root !== true) {
// throw new Error("root is a required property");
@ -13665,7 +13673,6 @@ module.exports = function (exec) {
if (o.css) {
this.element.css(o.css);
}
this._children = {};
},
_initElementWidth: function () {
@ -13875,6 +13882,7 @@ module.exports = function (exec) {
throw new Error("name has already been existed");
}
widget._setParent && widget._setParent(this);
widget._lazyConstructor();
widget.on(BI.Events.DESTROY, function () {
BI.remove(self._children, this);
});
@ -14152,16 +14160,18 @@ module.exports = function (exec) {
var createWidget = function (config) {
var cls = kv[config.type];
if(!cls){
throw new Error("组件"+config.type +"未定义");
if (!cls) {
throw new Error("组件" + config.type + "未定义");
}
var widget = new cls();
widget._initProps(config);
widget._init();
widget._initRoot();
widget._initRef();
// if (config.element || config.root) {
widget._lazyConstructor();
// }
return widget;
};
@ -15305,10 +15315,6 @@ BI.ShowAction = BI.inherit(BI.Action, {
return BI.extend(BI.ShowAction.superclass._defaultConfig.apply(this, arguments), {});
},
_init: function () {
BI.ShowAction.superclass._init.apply(this, arguments);
},
actionPerformed: function (src, tar, callback) {
tar = tar || this.options.tar;
tar.setVisible(true);
@ -15322,6 +15328,7 @@ BI.ShowAction = BI.inherit(BI.Action, {
}
});
/***/ }),
/* 309 */
/***/ (function(module, exports) {
@ -15425,17 +15432,11 @@ BI.Controller = BI.inherit(BI.OB, {
return BI.extend(BI.Controller.superclass._defaultConfig.apply(this, arguments), {
});
},
_init: function () {
BI.Controller.superclass._init.apply(this, arguments);
},
destroy: function () {
}
});
BI.Controller.EVENT_CHANGE = "__EVENT_CHANGE__";
/***/ }),
/* 312 */
/***/ (function(module, exports) {
@ -17135,10 +17136,6 @@ BI.VerticalLayoutLogic = BI.inherit(BI.Logic, {
bgap: o.bgap,
items: o.items
};
},
_init: function () {
BI.VerticalLayoutLogic.superclass._init.apply(this, arguments);
}
});
@ -17188,10 +17185,6 @@ BI.HorizontalLayoutLogic = BI.inherit(BI.Logic, {
bgap: o.bgap,
items: o.items
};
},
_init: function () {
BI.HorizontalLayoutLogic.superclass._init.apply(this, arguments);
}
});
@ -17240,10 +17233,6 @@ BI.TableLayoutLogic = BI.inherit(BI.Logic, {
vgap: o.vgap,
items: o.items
};
},
_init: function () {
BI.TableLayoutLogic.superclass._init.apply(this, arguments);
}
});
@ -17296,13 +17285,10 @@ BI.HorizontalFillLayoutLogic = BI.inherit(BI.Logic, {
bgap: o.bgap,
items: o.items
};
},
_init: function () {
BI.HorizontalFillLayoutLogic.superclass._init.apply(this, arguments);
}
});
/***/ }),
/* 325 */
/***/ (function(module, exports) {
@ -30380,24 +30366,24 @@ BI.shortcut("bi.icon", BI.Icon);
* Created by GameJian on 2016/3/2.
*/
BI.Iframe = BI.inherit(BI.Single, {
_defaultConfig: function () {
_defaultConfig: function (config) {
var conf = BI.Iframe.superclass._defaultConfig.apply(this, arguments);
return BI.extend(conf, {
tagName: "iframe",
baseCls: (conf.baseCls || "") + " bi-iframe",
src: "",
name: "",
attributes: {},
attributes: {
frameborder: 0,
src: config.src,
name: config.name
},
width: "100%",
height: "100%"
});
},
_init: function () {
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");
@ -30439,24 +30425,18 @@ BI.shortcut("bi.iframe", BI.Iframe);
* @abstract
*/
BI.Img = BI.inherit(BI.Single, {
_defaultConfig: function () {
_defaultConfig: function (config) {
var conf = BI.Img.superclass._defaultConfig.apply(this, arguments);
return BI.extend(conf, {
tagName: "img",
baseCls: (conf.baseCls || "") + " bi-img display-block",
src: "",
attributes: {},
attributes: config.src ? {src: config.src} : {},
width: "100%",
height: "100%"
});
},
_init: function () {
var o = this.options;
o.attributes.src = o.src;
BI.Img.superclass._init.apply(this, arguments);
},
setSrc: function (src) {
this.options.src = src;
this.element.attr("src", src);
@ -31514,15 +31494,12 @@ BI.Link = BI.inherit(BI.Label, {
href: o.href,
target: o.target
};
},
_init: function () {
BI.Link.superclass._init.apply(this, arguments);
}
});
BI.shortcut("bi.link", BI.Link);
/***/ }),
/* 432 */
/***/ (function(module, exports) {
@ -37538,10 +37515,6 @@ BI.MultiPopupView = BI.inherit(BI.PopupView, {
});
},
_init: function () {
BI.MultiPopupView.superclass._init.apply(this, arguments);
},
_createToolBar: function () {
var o = this.options, self = this;
if (o.buttons.length === 0) {
@ -37587,6 +37560,7 @@ BI.MultiPopupView.EVENT_CLICK_TOOLBAR_BUTTON = "EVENT_CLICK_TOOLBAR_BUTTON";
BI.shortcut("bi.multi_popup_view", BI.MultiPopupView);
/***/ }),
/* 490 */
/***/ (function(module, exports) {
@ -37607,10 +37581,6 @@ BI.PopupPanel = BI.inherit(BI.MultiPopupView, {
});
},
_init: function () {
BI.PopupPanel.superclass._init.apply(this, arguments);
},
_createTool: function () {
var self = this, o = this.options;
var close = BI.createWidget({
@ -37649,6 +37619,7 @@ BI.PopupPanel.EVENT_CLICK_TOOLBAR_BUTTON = "EVENT_CLICK_TOOLBAR_BUTTON";
BI.shortcut("bi.popup_panel", BI.PopupPanel);
/***/ }),
/* 491 */
/***/ (function(module, exports) {
@ -83664,10 +83635,6 @@ BI.PartTree = BI.inherit(BI.AsyncTree, {
return BI.extend(BI.PartTree.superclass._defaultConfig.apply(this, arguments), {});
},
_init: function () {
BI.PartTree.superclass._init.apply(this, arguments);
},
_loadMore: function () {
var self = this, o = this.options;
var op = BI.extend({}, o.paras, {
@ -83858,6 +83825,7 @@ BI.PartTree = BI.inherit(BI.AsyncTree, {
BI.shortcut("bi.part_tree", BI.PartTree);
/***/ }),
/* 710 */
/***/ (function(module, exports) {
@ -89108,9 +89076,6 @@ BI.DisplayTree = BI.inherit(BI.TreeView, {
extraCls: "bi-display-tree"
});
},
_init: function () {
BI.DisplayTree.superclass._init.apply(this, arguments);
},
// 配置属性
_configSetting: function () {
@ -89160,16 +89125,13 @@ BI.DisplayTree = BI.inherit(BI.TreeView, {
initTree: function (nodes, setting) {
var setting = setting || this._configSetting();
this.nodes = BI.$.fn.zTree.init(this.tree.element, setting, nodes);
},
destroy: function () {
BI.DisplayTree.superclass.destroy.apply(this, arguments);
}
});
BI.DisplayTree.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.display_tree", BI.DisplayTree);
/***/ }),
/* 731 */
/***/ (function(module, exports) {

2
dist/fineui.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.min.css vendored

File diff suppressed because one or more lines are too long

4
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.min.js.map vendored

File diff suppressed because one or more lines are too long

95
dist/fineui_without_jquery_polyfill.js vendored

@ -1,4 +1,4 @@
/*! time: 2020-10-10 17:20:25 */
/*! time: 2020-10-10 17:40:22 */
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
@ -2090,7 +2090,7 @@ if (!_global.BI) {
/***/ (function(module, exports) {
!(function () {
function extend() {
function extend () {
var target = arguments[0] || {}, length = arguments.length, i = 1, options, name, src, copy;
for (; i < length; i++) {
// Only deal with non-null/undefined values
@ -9605,6 +9605,14 @@ BI.Req = {
// 覆盖父类的_constructor方法,widget不走ob的生命周期
_constructor: function () {
// do nothing
},
_lazyConstructor: function () {
if (!this._constructed) {
this._constructed = true;
this._init();
}
},
beforeInit: null,
@ -9631,7 +9639,6 @@ BI.Req = {
_init: function () {
BI.Widget.superclass._init.apply(this, arguments);
this._initRoot();
this._initElementWidth();
this._initElementHeight();
this._initVisual();
@ -9667,14 +9674,15 @@ BI.Req = {
var o = this.options;
this.widgetName = o.widgetName || BI.uniqueId("widget");
this._isRoot = o.root;
this._children = {};
if (BI.isWidget(o.element)) {
this.element = this.options.element.element;
if (o.element instanceof BI.Widget) {
this._parent = o.element;
this._parent.addWidget(this.widgetName, this);
} else {
this._isRoot = true;
}
this.element = this.options.element.element;
} else if (o.element) {
// if (o.root !== true) {
// throw new Error("root is a required property");
@ -9697,7 +9705,6 @@ BI.Req = {
if (o.css) {
this.element.css(o.css);
}
this._children = {};
},
_initElementWidth: function () {
@ -9907,6 +9914,7 @@ BI.Req = {
throw new Error("name has already been existed");
}
widget._setParent && widget._setParent(this);
widget._lazyConstructor();
widget.on(BI.Events.DESTROY, function () {
BI.remove(self._children, this);
});
@ -10184,16 +10192,18 @@ BI.Req = {
var createWidget = function (config) {
var cls = kv[config.type];
if(!cls){
throw new Error("组件"+config.type +"未定义");
if (!cls) {
throw new Error("组件" + config.type + "未定义");
}
var widget = new cls();
widget._initProps(config);
widget._init();
widget._initRoot();
widget._initRef();
// if (config.element || config.root) {
widget._lazyConstructor();
// }
return widget;
};
@ -11337,10 +11347,6 @@ BI.ShowAction = BI.inherit(BI.Action, {
return BI.extend(BI.ShowAction.superclass._defaultConfig.apply(this, arguments), {});
},
_init: function () {
BI.ShowAction.superclass._init.apply(this, arguments);
},
actionPerformed: function (src, tar, callback) {
tar = tar || this.options.tar;
tar.setVisible(true);
@ -11354,6 +11360,7 @@ BI.ShowAction = BI.inherit(BI.Action, {
}
});
/***/ }),
/* 309 */
/***/ (function(module, exports) {
@ -11457,17 +11464,11 @@ BI.Controller = BI.inherit(BI.OB, {
return BI.extend(BI.Controller.superclass._defaultConfig.apply(this, arguments), {
});
},
_init: function () {
BI.Controller.superclass._init.apply(this, arguments);
},
destroy: function () {
}
});
BI.Controller.EVENT_CHANGE = "__EVENT_CHANGE__";
/***/ }),
/* 312 */
/***/ (function(module, exports) {
@ -13167,10 +13168,6 @@ BI.VerticalLayoutLogic = BI.inherit(BI.Logic, {
bgap: o.bgap,
items: o.items
};
},
_init: function () {
BI.VerticalLayoutLogic.superclass._init.apply(this, arguments);
}
});
@ -13220,10 +13217,6 @@ BI.HorizontalLayoutLogic = BI.inherit(BI.Logic, {
bgap: o.bgap,
items: o.items
};
},
_init: function () {
BI.HorizontalLayoutLogic.superclass._init.apply(this, arguments);
}
});
@ -13272,10 +13265,6 @@ BI.TableLayoutLogic = BI.inherit(BI.Logic, {
vgap: o.vgap,
items: o.items
};
},
_init: function () {
BI.TableLayoutLogic.superclass._init.apply(this, arguments);
}
});
@ -13328,13 +13317,10 @@ BI.HorizontalFillLayoutLogic = BI.inherit(BI.Logic, {
bgap: o.bgap,
items: o.items
};
},
_init: function () {
BI.HorizontalFillLayoutLogic.superclass._init.apply(this, arguments);
}
});
/***/ }),
/* 325 */
/***/ (function(module, exports) {
@ -26412,24 +26398,24 @@ BI.shortcut("bi.icon", BI.Icon);
* Created by GameJian on 2016/3/2.
*/
BI.Iframe = BI.inherit(BI.Single, {
_defaultConfig: function () {
_defaultConfig: function (config) {
var conf = BI.Iframe.superclass._defaultConfig.apply(this, arguments);
return BI.extend(conf, {
tagName: "iframe",
baseCls: (conf.baseCls || "") + " bi-iframe",
src: "",
name: "",
attributes: {},
attributes: {
frameborder: 0,
src: config.src,
name: config.name
},
width: "100%",
height: "100%"
});
},
_init: function () {
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");
@ -26471,24 +26457,18 @@ BI.shortcut("bi.iframe", BI.Iframe);
* @abstract
*/
BI.Img = BI.inherit(BI.Single, {
_defaultConfig: function () {
_defaultConfig: function (config) {
var conf = BI.Img.superclass._defaultConfig.apply(this, arguments);
return BI.extend(conf, {
tagName: "img",
baseCls: (conf.baseCls || "") + " bi-img display-block",
src: "",
attributes: {},
attributes: config.src ? {src: config.src} : {},
width: "100%",
height: "100%"
});
},
_init: function () {
var o = this.options;
o.attributes.src = o.src;
BI.Img.superclass._init.apply(this, arguments);
},
setSrc: function (src) {
this.options.src = src;
this.element.attr("src", src);
@ -27546,15 +27526,12 @@ BI.Link = BI.inherit(BI.Label, {
href: o.href,
target: o.target
};
},
_init: function () {
BI.Link.superclass._init.apply(this, arguments);
}
});
BI.shortcut("bi.link", BI.Link);
/***/ }),
/* 432 */
/***/ (function(module, exports) {
@ -33570,10 +33547,6 @@ BI.MultiPopupView = BI.inherit(BI.PopupView, {
});
},
_init: function () {
BI.MultiPopupView.superclass._init.apply(this, arguments);
},
_createToolBar: function () {
var o = this.options, self = this;
if (o.buttons.length === 0) {
@ -33619,6 +33592,7 @@ BI.MultiPopupView.EVENT_CLICK_TOOLBAR_BUTTON = "EVENT_CLICK_TOOLBAR_BUTTON";
BI.shortcut("bi.multi_popup_view", BI.MultiPopupView);
/***/ }),
/* 490 */
/***/ (function(module, exports) {
@ -33639,10 +33613,6 @@ BI.PopupPanel = BI.inherit(BI.MultiPopupView, {
});
},
_init: function () {
BI.PopupPanel.superclass._init.apply(this, arguments);
},
_createTool: function () {
var self = this, o = this.options;
var close = BI.createWidget({
@ -33681,6 +33651,7 @@ BI.PopupPanel.EVENT_CLICK_TOOLBAR_BUTTON = "EVENT_CLICK_TOOLBAR_BUTTON";
BI.shortcut("bi.popup_panel", BI.PopupPanel);
/***/ }),
/* 491 */
/***/ (function(module, exports) {

2
dist/fineui_without_jquery_polyfill.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/font.css vendored

File diff suppressed because one or more lines are too long

4
dist/utils.js vendored

@ -1,4 +1,4 @@
/*! time: 2020-10-10 17:20:25 */
/*! time: 2020-10-10 17:40:22 */
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
@ -1688,7 +1688,7 @@ if (!_global.BI) {
/***/ (function(module, exports) {
!(function () {
function extend() {
function extend () {
var target = arguments[0] || {}, length = arguments.length, i = 1, options, name, src, copy;
for (; i < length; i++) {
// Only deal with non-null/undefined values

2
dist/utils.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/utils.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/utils.min.js.map vendored

File diff suppressed because one or more lines are too long

2
package.json

@ -1,6 +1,6 @@
{
"name": "fineui",
"version": "2.0.20201010172205",
"version": "2.0.20201010174209",
"description": "fineui",
"main": "dist/fineui.min.js",
"types": "dist/lib/index.d.ts",

Loading…
Cancel
Save