Browse Source

Merge pull request #868 in VISUAL/fineui from ~GUY/fineui:master to master

* commit 'ccc4eae1274f33892ac8dfd07f1ba1ad20a884a9':
  组件注册
es6
guy 6 years ago
parent
commit
b30a54d37f
  1. 25
      dist/2.0/fineui.ie.js
  2. 6
      dist/2.0/fineui.ie.min.js
  3. 25
      dist/2.0/fineui.js
  4. 6
      dist/2.0/fineui.min.js
  5. 25
      dist/bundle.ie.js
  6. 6
      dist/bundle.ie.min.js
  7. 25
      dist/bundle.js
  8. 6
      dist/bundle.min.js
  9. 25
      dist/core.js
  10. 25
      dist/fineui.ie.js
  11. 6
      dist/fineui.ie.min.js
  12. 25
      dist/fineui.js
  13. 6
      dist/fineui.min.js
  14. 25
      dist/fineui_without_jquery_polyfill.js
  15. 2
      dist/utils.min.js
  16. 6
      src/core/events.js
  17. 18
      src/core/shortcut.js
  18. 1
      src/core/widget.js

25
dist/2.0/fineui.ie.js vendored

@ -11892,6 +11892,7 @@ if (!_global.BI) {
widget._mount && widget._mount(deep ? force : false, deep, lifeHook, predicate); widget._mount && widget._mount(deep ? force : false, deep, lifeHook, predicate);
}); });
lifeHook !== false && this.mounted && this.mounted(); lifeHook !== false && this.mounted && this.mounted();
this.fireEvent(BI.Events.MOUNT);
predicate && predicate(this); predicate && predicate(this);
return true; return true;
}, },
@ -12267,12 +12268,26 @@ if (!_global.BI) {
if (item.type || options.type) { if (item.type || options.type) {
el = BI.extend({}, options, item); el = BI.extend({}, options, item);
w = BI.Plugin.getWidget(el.type, el); w = BI.Plugin.getWidget(el.type, el);
return w.type === el.type ? BI.Plugin.getObject(el.type, createWidget(w)) : BI.createWidget(BI.extend({}, item, {type: w.type}, options)); if (w.type === el.type) {
var component = createWidget(w);
component.on(BI.Event.MOUNT, function () {
BI.Plugin.getObject(el.type, component);
});
return component;
}
return BI.createWidget(BI.extend({}, item, {type: w.type}, options));
} }
if (item.el && (item.el.type || options.type)) { if (item.el && (item.el.type || options.type)) {
el = BI.extend({}, options, item.el); el = BI.extend({}, options, item.el);
w = BI.Plugin.getWidget(el.type, el); w = BI.Plugin.getWidget(el.type, el);
return w.type === el.type ? BI.Plugin.getObject(el.type, createWidget(w)) : BI.createWidget(BI.extend({}, item, {type: w.type}, options)); if (w.type === el.type) {
var component = createWidget(w);
component.on(BI.Event.MOUNT, function () {
BI.Plugin.getObject(el.type, component);
});
return component;
}
return BI.createWidget(BI.extend({}, item, {type: w.type}, options));
} }
if (BI.isWidget(item.el)) { if (BI.isWidget(item.el)) {
return item.el; return item.el;
@ -17362,6 +17377,12 @@ _.extend(BI, {
*/ */
DESTROY: "_DESTROY", DESTROY: "_DESTROY",
/**
* @static
* @property 取消挂载事件
*/
MOUNT: "_MOUNT",
/** /**
* @static * @static
* @property 取消挂载事件 * @property 取消挂载事件

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

File diff suppressed because one or more lines are too long

25
dist/2.0/fineui.js vendored

@ -11892,6 +11892,7 @@ if (!_global.BI) {
widget._mount && widget._mount(deep ? force : false, deep, lifeHook, predicate); widget._mount && widget._mount(deep ? force : false, deep, lifeHook, predicate);
}); });
lifeHook !== false && this.mounted && this.mounted(); lifeHook !== false && this.mounted && this.mounted();
this.fireEvent(BI.Events.MOUNT);
predicate && predicate(this); predicate && predicate(this);
return true; return true;
}, },
@ -12267,12 +12268,26 @@ if (!_global.BI) {
if (item.type || options.type) { if (item.type || options.type) {
el = BI.extend({}, options, item); el = BI.extend({}, options, item);
w = BI.Plugin.getWidget(el.type, el); w = BI.Plugin.getWidget(el.type, el);
return w.type === el.type ? BI.Plugin.getObject(el.type, createWidget(w)) : BI.createWidget(BI.extend({}, item, {type: w.type}, options)); if (w.type === el.type) {
var component = createWidget(w);
component.on(BI.Event.MOUNT, function () {
BI.Plugin.getObject(el.type, component);
});
return component;
}
return BI.createWidget(BI.extend({}, item, {type: w.type}, options));
} }
if (item.el && (item.el.type || options.type)) { if (item.el && (item.el.type || options.type)) {
el = BI.extend({}, options, item.el); el = BI.extend({}, options, item.el);
w = BI.Plugin.getWidget(el.type, el); w = BI.Plugin.getWidget(el.type, el);
return w.type === el.type ? BI.Plugin.getObject(el.type, createWidget(w)) : BI.createWidget(BI.extend({}, item, {type: w.type}, options)); if (w.type === el.type) {
var component = createWidget(w);
component.on(BI.Event.MOUNT, function () {
BI.Plugin.getObject(el.type, component);
});
return component;
}
return BI.createWidget(BI.extend({}, item, {type: w.type}, options));
} }
if (BI.isWidget(item.el)) { if (BI.isWidget(item.el)) {
return item.el; return item.el;
@ -17362,6 +17377,12 @@ _.extend(BI, {
*/ */
DESTROY: "_DESTROY", DESTROY: "_DESTROY",
/**
* @static
* @property 取消挂载事件
*/
MOUNT: "_MOUNT",
/** /**
* @static * @static
* @property 取消挂载事件 * @property 取消挂载事件

6
dist/2.0/fineui.min.js vendored

File diff suppressed because one or more lines are too long

25
dist/bundle.ie.js vendored

@ -11892,6 +11892,7 @@ if (!_global.BI) {
widget._mount && widget._mount(deep ? force : false, deep, lifeHook, predicate); widget._mount && widget._mount(deep ? force : false, deep, lifeHook, predicate);
}); });
lifeHook !== false && this.mounted && this.mounted(); lifeHook !== false && this.mounted && this.mounted();
this.fireEvent(BI.Events.MOUNT);
predicate && predicate(this); predicate && predicate(this);
return true; return true;
}, },
@ -12267,12 +12268,26 @@ if (!_global.BI) {
if (item.type || options.type) { if (item.type || options.type) {
el = BI.extend({}, options, item); el = BI.extend({}, options, item);
w = BI.Plugin.getWidget(el.type, el); w = BI.Plugin.getWidget(el.type, el);
return w.type === el.type ? BI.Plugin.getObject(el.type, createWidget(w)) : BI.createWidget(BI.extend({}, item, {type: w.type}, options)); if (w.type === el.type) {
var component = createWidget(w);
component.on(BI.Event.MOUNT, function () {
BI.Plugin.getObject(el.type, component);
});
return component;
}
return BI.createWidget(BI.extend({}, item, {type: w.type}, options));
} }
if (item.el && (item.el.type || options.type)) { if (item.el && (item.el.type || options.type)) {
el = BI.extend({}, options, item.el); el = BI.extend({}, options, item.el);
w = BI.Plugin.getWidget(el.type, el); w = BI.Plugin.getWidget(el.type, el);
return w.type === el.type ? BI.Plugin.getObject(el.type, createWidget(w)) : BI.createWidget(BI.extend({}, item, {type: w.type}, options)); if (w.type === el.type) {
var component = createWidget(w);
component.on(BI.Event.MOUNT, function () {
BI.Plugin.getObject(el.type, component);
});
return component;
}
return BI.createWidget(BI.extend({}, item, {type: w.type}, options));
} }
if (BI.isWidget(item.el)) { if (BI.isWidget(item.el)) {
return item.el; return item.el;
@ -17362,6 +17377,12 @@ _.extend(BI, {
*/ */
DESTROY: "_DESTROY", DESTROY: "_DESTROY",
/**
* @static
* @property 取消挂载事件
*/
MOUNT: "_MOUNT",
/** /**
* @static * @static
* @property 取消挂载事件 * @property 取消挂载事件

6
dist/bundle.ie.min.js vendored

File diff suppressed because one or more lines are too long

25
dist/bundle.js vendored

@ -11892,6 +11892,7 @@ if (!_global.BI) {
widget._mount && widget._mount(deep ? force : false, deep, lifeHook, predicate); widget._mount && widget._mount(deep ? force : false, deep, lifeHook, predicate);
}); });
lifeHook !== false && this.mounted && this.mounted(); lifeHook !== false && this.mounted && this.mounted();
this.fireEvent(BI.Events.MOUNT);
predicate && predicate(this); predicate && predicate(this);
return true; return true;
}, },
@ -12267,12 +12268,26 @@ if (!_global.BI) {
if (item.type || options.type) { if (item.type || options.type) {
el = BI.extend({}, options, item); el = BI.extend({}, options, item);
w = BI.Plugin.getWidget(el.type, el); w = BI.Plugin.getWidget(el.type, el);
return w.type === el.type ? BI.Plugin.getObject(el.type, createWidget(w)) : BI.createWidget(BI.extend({}, item, {type: w.type}, options)); if (w.type === el.type) {
var component = createWidget(w);
component.on(BI.Event.MOUNT, function () {
BI.Plugin.getObject(el.type, component);
});
return component;
}
return BI.createWidget(BI.extend({}, item, {type: w.type}, options));
} }
if (item.el && (item.el.type || options.type)) { if (item.el && (item.el.type || options.type)) {
el = BI.extend({}, options, item.el); el = BI.extend({}, options, item.el);
w = BI.Plugin.getWidget(el.type, el); w = BI.Plugin.getWidget(el.type, el);
return w.type === el.type ? BI.Plugin.getObject(el.type, createWidget(w)) : BI.createWidget(BI.extend({}, item, {type: w.type}, options)); if (w.type === el.type) {
var component = createWidget(w);
component.on(BI.Event.MOUNT, function () {
BI.Plugin.getObject(el.type, component);
});
return component;
}
return BI.createWidget(BI.extend({}, item, {type: w.type}, options));
} }
if (BI.isWidget(item.el)) { if (BI.isWidget(item.el)) {
return item.el; return item.el;
@ -17362,6 +17377,12 @@ _.extend(BI, {
*/ */
DESTROY: "_DESTROY", DESTROY: "_DESTROY",
/**
* @static
* @property 取消挂载事件
*/
MOUNT: "_MOUNT",
/** /**
* @static * @static
* @property 取消挂载事件 * @property 取消挂载事件

6
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

25
dist/core.js vendored

@ -11892,6 +11892,7 @@ if (!_global.BI) {
widget._mount && widget._mount(deep ? force : false, deep, lifeHook, predicate); widget._mount && widget._mount(deep ? force : false, deep, lifeHook, predicate);
}); });
lifeHook !== false && this.mounted && this.mounted(); lifeHook !== false && this.mounted && this.mounted();
this.fireEvent(BI.Events.MOUNT);
predicate && predicate(this); predicate && predicate(this);
return true; return true;
}, },
@ -12267,12 +12268,26 @@ if (!_global.BI) {
if (item.type || options.type) { if (item.type || options.type) {
el = BI.extend({}, options, item); el = BI.extend({}, options, item);
w = BI.Plugin.getWidget(el.type, el); w = BI.Plugin.getWidget(el.type, el);
return w.type === el.type ? BI.Plugin.getObject(el.type, createWidget(w)) : BI.createWidget(BI.extend({}, item, {type: w.type}, options)); if (w.type === el.type) {
var component = createWidget(w);
component.on(BI.Event.MOUNT, function () {
BI.Plugin.getObject(el.type, component);
});
return component;
}
return BI.createWidget(BI.extend({}, item, {type: w.type}, options));
} }
if (item.el && (item.el.type || options.type)) { if (item.el && (item.el.type || options.type)) {
el = BI.extend({}, options, item.el); el = BI.extend({}, options, item.el);
w = BI.Plugin.getWidget(el.type, el); w = BI.Plugin.getWidget(el.type, el);
return w.type === el.type ? BI.Plugin.getObject(el.type, createWidget(w)) : BI.createWidget(BI.extend({}, item, {type: w.type}, options)); if (w.type === el.type) {
var component = createWidget(w);
component.on(BI.Event.MOUNT, function () {
BI.Plugin.getObject(el.type, component);
});
return component;
}
return BI.createWidget(BI.extend({}, item, {type: w.type}, options));
} }
if (BI.isWidget(item.el)) { if (BI.isWidget(item.el)) {
return item.el; return item.el;
@ -17362,6 +17377,12 @@ _.extend(BI, {
*/ */
DESTROY: "_DESTROY", DESTROY: "_DESTROY",
/**
* @static
* @property 取消挂载事件
*/
MOUNT: "_MOUNT",
/** /**
* @static * @static
* @property 取消挂载事件 * @property 取消挂载事件

25
dist/fineui.ie.js vendored

@ -12137,6 +12137,7 @@ if (!_global.BI) {
widget._mount && widget._mount(deep ? force : false, deep, lifeHook, predicate); widget._mount && widget._mount(deep ? force : false, deep, lifeHook, predicate);
}); });
lifeHook !== false && this.mounted && this.mounted(); lifeHook !== false && this.mounted && this.mounted();
this.fireEvent(BI.Events.MOUNT);
predicate && predicate(this); predicate && predicate(this);
return true; return true;
}, },
@ -12512,12 +12513,26 @@ if (!_global.BI) {
if (item.type || options.type) { if (item.type || options.type) {
el = BI.extend({}, options, item); el = BI.extend({}, options, item);
w = BI.Plugin.getWidget(el.type, el); w = BI.Plugin.getWidget(el.type, el);
return w.type === el.type ? BI.Plugin.getObject(el.type, createWidget(w)) : BI.createWidget(BI.extend({}, item, {type: w.type}, options)); if (w.type === el.type) {
var component = createWidget(w);
component.on(BI.Event.MOUNT, function () {
BI.Plugin.getObject(el.type, component);
});
return component;
}
return BI.createWidget(BI.extend({}, item, {type: w.type}, options));
} }
if (item.el && (item.el.type || options.type)) { if (item.el && (item.el.type || options.type)) {
el = BI.extend({}, options, item.el); el = BI.extend({}, options, item.el);
w = BI.Plugin.getWidget(el.type, el); w = BI.Plugin.getWidget(el.type, el);
return w.type === el.type ? BI.Plugin.getObject(el.type, createWidget(w)) : BI.createWidget(BI.extend({}, item, {type: w.type}, options)); if (w.type === el.type) {
var component = createWidget(w);
component.on(BI.Event.MOUNT, function () {
BI.Plugin.getObject(el.type, component);
});
return component;
}
return BI.createWidget(BI.extend({}, item, {type: w.type}, options));
} }
if (BI.isWidget(item.el)) { if (BI.isWidget(item.el)) {
return item.el; return item.el;
@ -17607,6 +17622,12 @@ _.extend(BI, {
*/ */
DESTROY: "_DESTROY", DESTROY: "_DESTROY",
/**
* @static
* @property 取消挂载事件
*/
MOUNT: "_MOUNT",
/** /**
* @static * @static
* @property 取消挂载事件 * @property 取消挂载事件

6
dist/fineui.ie.min.js vendored

File diff suppressed because one or more lines are too long

25
dist/fineui.js vendored

@ -12137,6 +12137,7 @@ if (!_global.BI) {
widget._mount && widget._mount(deep ? force : false, deep, lifeHook, predicate); widget._mount && widget._mount(deep ? force : false, deep, lifeHook, predicate);
}); });
lifeHook !== false && this.mounted && this.mounted(); lifeHook !== false && this.mounted && this.mounted();
this.fireEvent(BI.Events.MOUNT);
predicate && predicate(this); predicate && predicate(this);
return true; return true;
}, },
@ -12512,12 +12513,26 @@ if (!_global.BI) {
if (item.type || options.type) { if (item.type || options.type) {
el = BI.extend({}, options, item); el = BI.extend({}, options, item);
w = BI.Plugin.getWidget(el.type, el); w = BI.Plugin.getWidget(el.type, el);
return w.type === el.type ? BI.Plugin.getObject(el.type, createWidget(w)) : BI.createWidget(BI.extend({}, item, {type: w.type}, options)); if (w.type === el.type) {
var component = createWidget(w);
component.on(BI.Event.MOUNT, function () {
BI.Plugin.getObject(el.type, component);
});
return component;
}
return BI.createWidget(BI.extend({}, item, {type: w.type}, options));
} }
if (item.el && (item.el.type || options.type)) { if (item.el && (item.el.type || options.type)) {
el = BI.extend({}, options, item.el); el = BI.extend({}, options, item.el);
w = BI.Plugin.getWidget(el.type, el); w = BI.Plugin.getWidget(el.type, el);
return w.type === el.type ? BI.Plugin.getObject(el.type, createWidget(w)) : BI.createWidget(BI.extend({}, item, {type: w.type}, options)); if (w.type === el.type) {
var component = createWidget(w);
component.on(BI.Event.MOUNT, function () {
BI.Plugin.getObject(el.type, component);
});
return component;
}
return BI.createWidget(BI.extend({}, item, {type: w.type}, options));
} }
if (BI.isWidget(item.el)) { if (BI.isWidget(item.el)) {
return item.el; return item.el;
@ -17607,6 +17622,12 @@ _.extend(BI, {
*/ */
DESTROY: "_DESTROY", DESTROY: "_DESTROY",
/**
* @static
* @property 取消挂载事件
*/
MOUNT: "_MOUNT",
/** /**
* @static * @static
* @property 取消挂载事件 * @property 取消挂载事件

6
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

25
dist/fineui_without_jquery_polyfill.js vendored

@ -11892,6 +11892,7 @@ if (!_global.BI) {
widget._mount && widget._mount(deep ? force : false, deep, lifeHook, predicate); widget._mount && widget._mount(deep ? force : false, deep, lifeHook, predicate);
}); });
lifeHook !== false && this.mounted && this.mounted(); lifeHook !== false && this.mounted && this.mounted();
this.fireEvent(BI.Events.MOUNT);
predicate && predicate(this); predicate && predicate(this);
return true; return true;
}, },
@ -12267,12 +12268,26 @@ if (!_global.BI) {
if (item.type || options.type) { if (item.type || options.type) {
el = BI.extend({}, options, item); el = BI.extend({}, options, item);
w = BI.Plugin.getWidget(el.type, el); w = BI.Plugin.getWidget(el.type, el);
return w.type === el.type ? BI.Plugin.getObject(el.type, createWidget(w)) : BI.createWidget(BI.extend({}, item, {type: w.type}, options)); if (w.type === el.type) {
var component = createWidget(w);
component.on(BI.Event.MOUNT, function () {
BI.Plugin.getObject(el.type, component);
});
return component;
}
return BI.createWidget(BI.extend({}, item, {type: w.type}, options));
} }
if (item.el && (item.el.type || options.type)) { if (item.el && (item.el.type || options.type)) {
el = BI.extend({}, options, item.el); el = BI.extend({}, options, item.el);
w = BI.Plugin.getWidget(el.type, el); w = BI.Plugin.getWidget(el.type, el);
return w.type === el.type ? BI.Plugin.getObject(el.type, createWidget(w)) : BI.createWidget(BI.extend({}, item, {type: w.type}, options)); if (w.type === el.type) {
var component = createWidget(w);
component.on(BI.Event.MOUNT, function () {
BI.Plugin.getObject(el.type, component);
});
return component;
}
return BI.createWidget(BI.extend({}, item, {type: w.type}, options));
} }
if (BI.isWidget(item.el)) { if (BI.isWidget(item.el)) {
return item.el; return item.el;
@ -17108,6 +17123,12 @@ _.extend(BI, {
*/ */
DESTROY: "_DESTROY", DESTROY: "_DESTROY",
/**
* @static
* @property 取消挂载事件
*/
MOUNT: "_MOUNT",
/** /**
* @static * @static
* @property 取消挂载事件 * @property 取消挂载事件

2
dist/utils.min.js vendored

File diff suppressed because one or more lines are too long

6
src/core/events.js

@ -53,6 +53,12 @@ _.extend(BI, {
*/ */
DESTROY: "_DESTROY", DESTROY: "_DESTROY",
/**
* @static
* @property 取消挂载事件
*/
MOUNT: "_MOUNT",
/** /**
* @static * @static
* @property 取消挂载事件 * @property 取消挂载事件

18
src/core/shortcut.js

@ -41,12 +41,26 @@
if (item.type || options.type) { if (item.type || options.type) {
el = BI.extend({}, options, item); el = BI.extend({}, options, item);
w = BI.Plugin.getWidget(el.type, el); w = BI.Plugin.getWidget(el.type, el);
return w.type === el.type ? BI.Plugin.getObject(el.type, createWidget(w)) : BI.createWidget(BI.extend({}, item, {type: w.type}, options)); if (w.type === el.type) {
var component = createWidget(w);
component.on(BI.Event.MOUNT, function () {
BI.Plugin.getObject(el.type, component);
});
return component;
}
return BI.createWidget(BI.extend({}, item, {type: w.type}, options));
} }
if (item.el && (item.el.type || options.type)) { if (item.el && (item.el.type || options.type)) {
el = BI.extend({}, options, item.el); el = BI.extend({}, options, item.el);
w = BI.Plugin.getWidget(el.type, el); w = BI.Plugin.getWidget(el.type, el);
return w.type === el.type ? BI.Plugin.getObject(el.type, createWidget(w)) : BI.createWidget(BI.extend({}, item, {type: w.type}, options)); if (w.type === el.type) {
var component = createWidget(w);
component.on(BI.Event.MOUNT, function () {
BI.Plugin.getObject(el.type, component);
});
return component;
}
return BI.createWidget(BI.extend({}, item, {type: w.type}, options));
} }
if (BI.isWidget(item.el)) { if (BI.isWidget(item.el)) {
return item.el; return item.el;

1
src/core/widget.js

@ -198,6 +198,7 @@
widget._mount && widget._mount(deep ? force : false, deep, lifeHook, predicate); widget._mount && widget._mount(deep ? force : false, deep, lifeHook, predicate);
}); });
lifeHook !== false && this.mounted && this.mounted(); lifeHook !== false && this.mounted && this.mounted();
this.fireEvent(BI.Events.MOUNT);
predicate && predicate(this); predicate && predicate(this);
return true; return true;
}, },

Loading…
Cancel
Save