guy 7 years ago
parent
commit
940a5a7935
  1. 15
      dist/bundle.js
  2. 38
      dist/bundle.min.js
  3. 15
      dist/core.js
  4. 15
      dist/fineui.js
  5. 10
      dist/fineui.min.js
  6. 2
      src/core/inject.js
  7. 13
      src/core/plugin.js
  8. 2
      utils/utils.js

15
dist/bundle.js vendored

@ -17116,9 +17116,15 @@ BI.shortcut("bi.layout", BI.Layout);BI.Plugin = BI.Plugin || {};
!(function () {
var _WidgetsPlugin = {};
var _ObjectPlugin = {};
var _ConfigPlugin = {};
BI.extend(BI.Plugin, {
getWidget: function (type, options) {
if (_ConfigPlugin[type]) {
for (var i = _ConfigPlugin[type].length - 1; i >= 0; i--) {
_ConfigPlugin[type][i](options);
}
}
if (_WidgetsPlugin[type]) {
var res;
for (var i = _WidgetsPlugin[type].length - 1; i >= 0; i--) {
@ -17130,6 +17136,13 @@ BI.shortcut("bi.layout", BI.Layout);BI.Plugin = BI.Plugin || {};
return options;
},
configWidget: function (type, fn) {
if (!_ConfigPlugin[type]) {
_ConfigPlugin[type] = [];
}
_ConfigPlugin[type].push(fn);
},
registerWidget: function (type, fn) {
if (!_WidgetsPlugin[type]) {
_WidgetsPlugin[type] = [];
@ -20291,7 +20304,7 @@ BI.extend(BI.DOM, {
}
return configFn(providers[type]);
}
BI.Plugin.registerWidget(type, configFn);
BI.Plugin.configWidget(type, configFn);
};
var actions = {};

38
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

15
dist/core.js vendored

@ -17116,9 +17116,15 @@ BI.shortcut("bi.layout", BI.Layout);BI.Plugin = BI.Plugin || {};
!(function () {
var _WidgetsPlugin = {};
var _ObjectPlugin = {};
var _ConfigPlugin = {};
BI.extend(BI.Plugin, {
getWidget: function (type, options) {
if (_ConfigPlugin[type]) {
for (var i = _ConfigPlugin[type].length - 1; i >= 0; i--) {
_ConfigPlugin[type][i](options);
}
}
if (_WidgetsPlugin[type]) {
var res;
for (var i = _WidgetsPlugin[type].length - 1; i >= 0; i--) {
@ -17130,6 +17136,13 @@ BI.shortcut("bi.layout", BI.Layout);BI.Plugin = BI.Plugin || {};
return options;
},
configWidget: function (type, fn) {
if (!_ConfigPlugin[type]) {
_ConfigPlugin[type] = [];
}
_ConfigPlugin[type].push(fn);
},
registerWidget: function (type, fn) {
if (!_WidgetsPlugin[type]) {
_WidgetsPlugin[type] = [];
@ -20291,7 +20304,7 @@ BI.extend(BI.DOM, {
}
return configFn(providers[type]);
}
BI.Plugin.registerWidget(type, configFn);
BI.Plugin.configWidget(type, configFn);
};
var actions = {};

15
dist/fineui.js vendored

@ -17289,9 +17289,15 @@ BI.shortcut("bi.layout", BI.Layout);BI.Plugin = BI.Plugin || {};
!(function () {
var _WidgetsPlugin = {};
var _ObjectPlugin = {};
var _ConfigPlugin = {};
BI.extend(BI.Plugin, {
getWidget: function (type, options) {
if (_ConfigPlugin[type]) {
for (var i = _ConfigPlugin[type].length - 1; i >= 0; i--) {
_ConfigPlugin[type][i](options);
}
}
if (_WidgetsPlugin[type]) {
var res;
for (var i = _WidgetsPlugin[type].length - 1; i >= 0; i--) {
@ -17303,6 +17309,13 @@ BI.shortcut("bi.layout", BI.Layout);BI.Plugin = BI.Plugin || {};
return options;
},
configWidget: function (type, fn) {
if (!_ConfigPlugin[type]) {
_ConfigPlugin[type] = [];
}
_ConfigPlugin[type].push(fn);
},
registerWidget: function (type, fn) {
if (!_WidgetsPlugin[type]) {
_WidgetsPlugin[type] = [];
@ -20464,7 +20477,7 @@ BI.extend(BI.DOM, {
}
return configFn(providers[type]);
}
BI.Plugin.registerWidget(type, configFn);
BI.Plugin.configWidget(type, configFn);
};
var actions = {};

10
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

2
src/core/inject.js

@ -49,7 +49,7 @@
}
return configFn(providers[type]);
}
BI.Plugin.registerWidget(type, configFn);
BI.Plugin.configWidget(type, configFn);
};
var actions = {};

13
src/core/plugin.js

@ -2,9 +2,15 @@ BI.Plugin = BI.Plugin || {};
!(function () {
var _WidgetsPlugin = {};
var _ObjectPlugin = {};
var _ConfigPlugin = {};
BI.extend(BI.Plugin, {
getWidget: function (type, options) {
if (_ConfigPlugin[type]) {
for (var i = _ConfigPlugin[type].length - 1; i >= 0; i--) {
_ConfigPlugin[type][i](options);
}
}
if (_WidgetsPlugin[type]) {
var res;
for (var i = _WidgetsPlugin[type].length - 1; i >= 0; i--) {
@ -16,6 +22,13 @@ BI.Plugin = BI.Plugin || {};
return options;
},
configWidget: function (type, fn) {
if (!_ConfigPlugin[type]) {
_ConfigPlugin[type] = [];
}
_ConfigPlugin[type].push(fn);
},
registerWidget: function (type, fn) {
if (!_WidgetsPlugin[type]) {
_WidgetsPlugin[type] = [];

2
utils/utils.js

@ -4200,7 +4200,7 @@ _.extend(BI.OB.prototype, {
}
return configFn(providers[type]);
}
BI.Plugin.registerWidget(type, configFn);
BI.Plugin.configWidget(type, configFn);
};
var actions = {};

Loading…
Cancel
Save