guy 6 years ago
parent
commit
617a07b1b5
  1. 14
      dist/_fineui.min.js
  2. 12
      dist/bundle.js
  3. 14
      dist/bundle.min.js
  4. 12
      dist/core.js
  5. 14
      dist/fineui.min.js
  6. 12
      src/core/plugin.js

14
dist/_fineui.min.js vendored

File diff suppressed because one or more lines are too long

12
dist/bundle.js vendored

@ -25281,9 +25281,13 @@ BI.shortcut("bi.layout", BI.Layout);BI.Plugin = BI.Plugin || {};
var _WidgetsPlugin = {};
var _ObjectPlugin = {};
var _ConfigPlugin = {};
var _GlobalWidgetConfigFn, _GlobalObjectConfigFn;
BI.extend(BI.Plugin, {
getWidget: function (type, options) {
if (_GlobalWidgetConfigFn) {
_GlobalWidgetConfigFn(type, options);
}
if (_ConfigPlugin[type]) {
for (var i = _ConfigPlugin[type].length - 1; i >= 0; i--) {
_ConfigPlugin[type][i](options);
@ -25300,6 +25304,11 @@ BI.shortcut("bi.layout", BI.Layout);BI.Plugin = BI.Plugin || {};
return options;
},
config: function (widgetConfigFn, objectConfigFn) {
_GlobalWidgetConfigFn = widgetConfigFn;
_GlobalObjectConfigFn = objectConfigFn;
},
configWidget: function (type, fn) {
if (!_ConfigPlugin[type]) {
_ConfigPlugin[type] = [];
@ -25322,6 +25331,9 @@ BI.shortcut("bi.layout", BI.Layout);BI.Plugin = BI.Plugin || {};
},
getObject: function (type, object) {
if (_GlobalObjectConfigFn) {
_GlobalObjectConfigFn(type, object);
}
if (_ObjectPlugin[type]) {
var res;
for (var i = 0, len = _ObjectPlugin[type].length; i < len; i++) {

14
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

12
dist/core.js vendored

@ -25281,9 +25281,13 @@ BI.shortcut("bi.layout", BI.Layout);BI.Plugin = BI.Plugin || {};
var _WidgetsPlugin = {};
var _ObjectPlugin = {};
var _ConfigPlugin = {};
var _GlobalWidgetConfigFn, _GlobalObjectConfigFn;
BI.extend(BI.Plugin, {
getWidget: function (type, options) {
if (_GlobalWidgetConfigFn) {
_GlobalWidgetConfigFn(type, options);
}
if (_ConfigPlugin[type]) {
for (var i = _ConfigPlugin[type].length - 1; i >= 0; i--) {
_ConfigPlugin[type][i](options);
@ -25300,6 +25304,11 @@ BI.shortcut("bi.layout", BI.Layout);BI.Plugin = BI.Plugin || {};
return options;
},
config: function (widgetConfigFn, objectConfigFn) {
_GlobalWidgetConfigFn = widgetConfigFn;
_GlobalObjectConfigFn = objectConfigFn;
},
configWidget: function (type, fn) {
if (!_ConfigPlugin[type]) {
_ConfigPlugin[type] = [];
@ -25322,6 +25331,9 @@ BI.shortcut("bi.layout", BI.Layout);BI.Plugin = BI.Plugin || {};
},
getObject: function (type, object) {
if (_GlobalObjectConfigFn) {
_GlobalObjectConfigFn(type, object);
}
if (_ObjectPlugin[type]) {
var res;
for (var i = 0, len = _ObjectPlugin[type].length; i < len; i++) {

14
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

12
src/core/plugin.js

@ -3,9 +3,13 @@ BI.Plugin = BI.Plugin || {};
var _WidgetsPlugin = {};
var _ObjectPlugin = {};
var _ConfigPlugin = {};
var _GlobalWidgetConfigFn, _GlobalObjectConfigFn;
BI.extend(BI.Plugin, {
getWidget: function (type, options) {
if (_GlobalWidgetConfigFn) {
_GlobalWidgetConfigFn(type, options);
}
if (_ConfigPlugin[type]) {
for (var i = _ConfigPlugin[type].length - 1; i >= 0; i--) {
_ConfigPlugin[type][i](options);
@ -22,6 +26,11 @@ BI.Plugin = BI.Plugin || {};
return options;
},
config: function (widgetConfigFn, objectConfigFn) {
_GlobalWidgetConfigFn = widgetConfigFn;
_GlobalObjectConfigFn = objectConfigFn;
},
configWidget: function (type, fn) {
if (!_ConfigPlugin[type]) {
_ConfigPlugin[type] = [];
@ -44,6 +53,9 @@ BI.Plugin = BI.Plugin || {};
},
getObject: function (type, object) {
if (_GlobalObjectConfigFn) {
_GlobalObjectConfigFn(type, object);
}
if (_ObjectPlugin[type]) {
var res;
for (var i = 0, len = _ObjectPlugin[type].length; i < len; i++) {

Loading…
Cancel
Save