Browse Source

Merge pull request #1061 in VISUAL/fineui from ~TELLER/fineui:typescript to master

* commit 'e5991770808c125c4822c0721455d4829a35c686':
  KERNEL-927 refactor: 修改生命周期
  KERNEL-927 refactor: 修改生命周期
es6
guy 5 years ago
parent
commit
535f76510d
  1. 21
      dist/2.0/fineui.ie.js
  2. 54
      dist/2.0/fineui.ie.min.js
  3. 21
      dist/2.0/fineui.js
  4. 2
      dist/2.0/fineui.min.css
  5. 54
      dist/2.0/fineui.min.js
  6. 21
      dist/bundle.ie.js
  7. 54
      dist/bundle.ie.min.js
  8. 21
      dist/bundle.js
  9. 2
      dist/bundle.min.css
  10. 54
      dist/bundle.min.js
  11. 8
      dist/core.js
  12. 21
      dist/fineui.ie.js
  13. 76
      dist/fineui.ie.min.js
  14. 21
      dist/fineui.js
  15. 2
      dist/fineui.min.css
  16. 76
      dist/fineui.min.js
  17. 21
      dist/fineui_without_jquery_polyfill.js
  18. 6
      dist/fix/fix.ie.js
  19. 6
      dist/fix/fix.js
  20. 8
      dist/utils.js
  21. 8
      dist/utils.min.js
  22. 7
      dist/widget.js
  23. 8
      src/core/inject.js

21
dist/2.0/fineui.ie.js vendored

@ -20977,6 +20977,7 @@ _.extend(BI, {
BI.Models = {
getModel: function (type, config) {
var inst = new modelInjection[type](config);
inst._constructor && inst._constructor(config);
callPoint(inst, type);
return inst;
}
@ -20989,9 +20990,10 @@ _.extend(BI, {
if (stores[type]) {
return stores[type];
}
stores[type] = new storeInjection[type](config);
callPoint(stores[type], type);
return stores[type];
var inst = stores[type] = new storeInjection[type](config);
inst._constructor && inst._constructor(config);
callPoint(inst, type);
return inst;
}
};
@ -37746,9 +37748,11 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
}
var Model = function () {
function Model(model) {
function Model() {
_classCallCheck(this, Model);
}
Model.prototype._constructor = function _constructor(model) {
this.alive = true;
this.options = model || {};
this.model = {
@ -37780,7 +37784,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
initMethods(this, actions);
this.created && this.created();
allModelInstances[this._modelHashId] = this;
}
};
Model.prototype._init = function _init() {};
@ -82062,11 +82066,8 @@ BI.SliderIconButton = BI.inherit(BI.Widget, {
},
items: [{
el: {
type: "bi.text_button",
width: 16,
height: 16,
forceNotSelected: true,
cls: "slider-button bi-list-item-select3 bi-high-light-border",
type: "bi.text",
cls: "slider-button bi-high-light-border",
ref: function () {
self.slider = this;
}

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

File diff suppressed because one or more lines are too long

21
dist/2.0/fineui.js vendored

@ -20977,6 +20977,7 @@ _.extend(BI, {
BI.Models = {
getModel: function (type, config) {
var inst = new modelInjection[type](config);
inst._constructor && inst._constructor(config);
callPoint(inst, type);
return inst;
}
@ -20989,9 +20990,10 @@ _.extend(BI, {
if (stores[type]) {
return stores[type];
}
stores[type] = new storeInjection[type](config);
callPoint(stores[type], type);
return stores[type];
var inst = stores[type] = new storeInjection[type](config);
inst._constructor && inst._constructor(config);
callPoint(inst, type);
return inst;
}
};
@ -38159,9 +38161,11 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
}
var Model = function () {
function Model(model) {
function Model() {
_classCallCheck(this, Model);
}
Model.prototype._constructor = function _constructor(model) {
if (model instanceof Observer || model instanceof Model) {
model = model.model;
}
@ -38192,7 +38196,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
if (this.$$model) {
return this.model;
}
}
};
Model.prototype._init = function _init() {};
@ -82466,11 +82470,8 @@ BI.SliderIconButton = BI.inherit(BI.Widget, {
},
items: [{
el: {
type: "bi.text_button",
width: 16,
height: 16,
forceNotSelected: true,
cls: "slider-button bi-list-item-select3 bi-high-light-border",
type: "bi.text",
cls: "slider-button bi-high-light-border",
ref: function () {
self.slider = this;
}

2
dist/2.0/fineui.min.css vendored

File diff suppressed because one or more lines are too long

54
dist/2.0/fineui.min.js vendored

File diff suppressed because one or more lines are too long

21
dist/bundle.ie.js vendored

@ -20977,6 +20977,7 @@ _.extend(BI, {
BI.Models = {
getModel: function (type, config) {
var inst = new modelInjection[type](config);
inst._constructor && inst._constructor(config);
callPoint(inst, type);
return inst;
}
@ -20989,9 +20990,10 @@ _.extend(BI, {
if (stores[type]) {
return stores[type];
}
stores[type] = new storeInjection[type](config);
callPoint(stores[type], type);
return stores[type];
var inst = stores[type] = new storeInjection[type](config);
inst._constructor && inst._constructor(config);
callPoint(inst, type);
return inst;
}
};
@ -37746,9 +37748,11 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
}
var Model = function () {
function Model(model) {
function Model() {
_classCallCheck(this, Model);
}
Model.prototype._constructor = function _constructor(model) {
this.alive = true;
this.options = model || {};
this.model = {
@ -37780,7 +37784,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
initMethods(this, actions);
this.created && this.created();
allModelInstances[this._modelHashId] = this;
}
};
Model.prototype._init = function _init() {};
@ -82062,11 +82066,8 @@ BI.SliderIconButton = BI.inherit(BI.Widget, {
},
items: [{
el: {
type: "bi.text_button",
width: 16,
height: 16,
forceNotSelected: true,
cls: "slider-button bi-list-item-select3 bi-high-light-border",
type: "bi.text",
cls: "slider-button bi-high-light-border",
ref: function () {
self.slider = this;
}

54
dist/bundle.ie.min.js vendored

File diff suppressed because one or more lines are too long

21
dist/bundle.js vendored

@ -20977,6 +20977,7 @@ _.extend(BI, {
BI.Models = {
getModel: function (type, config) {
var inst = new modelInjection[type](config);
inst._constructor && inst._constructor(config);
callPoint(inst, type);
return inst;
}
@ -20989,9 +20990,10 @@ _.extend(BI, {
if (stores[type]) {
return stores[type];
}
stores[type] = new storeInjection[type](config);
callPoint(stores[type], type);
return stores[type];
var inst = stores[type] = new storeInjection[type](config);
inst._constructor && inst._constructor(config);
callPoint(inst, type);
return inst;
}
};
@ -38159,9 +38161,11 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
}
var Model = function () {
function Model(model) {
function Model() {
_classCallCheck(this, Model);
}
Model.prototype._constructor = function _constructor(model) {
if (model instanceof Observer || model instanceof Model) {
model = model.model;
}
@ -38192,7 +38196,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
if (this.$$model) {
return this.model;
}
}
};
Model.prototype._init = function _init() {};
@ -82466,11 +82470,8 @@ BI.SliderIconButton = BI.inherit(BI.Widget, {
},
items: [{
el: {
type: "bi.text_button",
width: 16,
height: 16,
forceNotSelected: true,
cls: "slider-button bi-list-item-select3 bi-high-light-border",
type: "bi.text",
cls: "slider-button bi-high-light-border",
ref: function () {
self.slider = this;
}

2
dist/bundle.min.css vendored

File diff suppressed because one or more lines are too long

54
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

8
dist/core.js vendored

@ -20977,6 +20977,7 @@ _.extend(BI, {
BI.Models = {
getModel: function (type, config) {
var inst = new modelInjection[type](config);
inst._constructor && inst._constructor(config);
callPoint(inst, type);
return inst;
}
@ -20989,9 +20990,10 @@ _.extend(BI, {
if (stores[type]) {
return stores[type];
}
stores[type] = new storeInjection[type](config);
callPoint(stores[type], type);
return stores[type];
var inst = stores[type] = new storeInjection[type](config);
inst._constructor && inst._constructor(config);
callPoint(inst, type);
return inst;
}
};

21
dist/fineui.ie.js vendored

@ -21222,6 +21222,7 @@ _.extend(BI, {
BI.Models = {
getModel: function (type, config) {
var inst = new modelInjection[type](config);
inst._constructor && inst._constructor(config);
callPoint(inst, type);
return inst;
}
@ -21234,9 +21235,10 @@ _.extend(BI, {
if (stores[type]) {
return stores[type];
}
stores[type] = new storeInjection[type](config);
callPoint(stores[type], type);
return stores[type];
var inst = stores[type] = new storeInjection[type](config);
inst._constructor && inst._constructor(config);
callPoint(inst, type);
return inst;
}
};
@ -37991,9 +37993,11 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
}
var Model = function () {
function Model(model) {
function Model() {
_classCallCheck(this, Model);
}
Model.prototype._constructor = function _constructor(model) {
this.alive = true;
this.options = model || {};
this.model = {
@ -38025,7 +38029,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
initMethods(this, actions);
this.created && this.created();
allModelInstances[this._modelHashId] = this;
}
};
Model.prototype._init = function _init() {};
@ -82307,11 +82311,8 @@ BI.SliderIconButton = BI.inherit(BI.Widget, {
},
items: [{
el: {
type: "bi.text_button",
width: 16,
height: 16,
forceNotSelected: true,
cls: "slider-button bi-list-item-select3 bi-high-light-border",
type: "bi.text",
cls: "slider-button bi-high-light-border",
ref: function () {
self.slider = this;
}

76
dist/fineui.ie.min.js vendored

File diff suppressed because one or more lines are too long

21
dist/fineui.js vendored

@ -21222,6 +21222,7 @@ _.extend(BI, {
BI.Models = {
getModel: function (type, config) {
var inst = new modelInjection[type](config);
inst._constructor && inst._constructor(config);
callPoint(inst, type);
return inst;
}
@ -21234,9 +21235,10 @@ _.extend(BI, {
if (stores[type]) {
return stores[type];
}
stores[type] = new storeInjection[type](config);
callPoint(stores[type], type);
return stores[type];
var inst = stores[type] = new storeInjection[type](config);
inst._constructor && inst._constructor(config);
callPoint(inst, type);
return inst;
}
};
@ -38404,9 +38406,11 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
}
var Model = function () {
function Model(model) {
function Model() {
_classCallCheck(this, Model);
}
Model.prototype._constructor = function _constructor(model) {
if (model instanceof Observer || model instanceof Model) {
model = model.model;
}
@ -38437,7 +38441,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
if (this.$$model) {
return this.model;
}
}
};
Model.prototype._init = function _init() {};
@ -82711,11 +82715,8 @@ BI.SliderIconButton = BI.inherit(BI.Widget, {
},
items: [{
el: {
type: "bi.text_button",
width: 16,
height: 16,
forceNotSelected: true,
cls: "slider-button bi-list-item-select3 bi-high-light-border",
type: "bi.text",
cls: "slider-button bi-high-light-border",
ref: function () {
self.slider = this;
}

2
dist/fineui.min.css vendored

File diff suppressed because one or more lines are too long

76
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

21
dist/fineui_without_jquery_polyfill.js vendored

@ -20723,6 +20723,7 @@ _.extend(BI, {
BI.Models = {
getModel: function (type, config) {
var inst = new modelInjection[type](config);
inst._constructor && inst._constructor(config);
callPoint(inst, type);
return inst;
}
@ -20735,9 +20736,10 @@ _.extend(BI, {
if (stores[type]) {
return stores[type];
}
stores[type] = new storeInjection[type](config);
callPoint(stores[type], type);
return stores[type];
var inst = stores[type] = new storeInjection[type](config);
inst._constructor && inst._constructor(config);
callPoint(inst, type);
return inst;
}
};
@ -26979,9 +26981,11 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
}
var Model = function () {
function Model(model) {
function Model() {
_classCallCheck(this, Model);
}
Model.prototype._constructor = function _constructor(model) {
if (model instanceof Observer || model instanceof Model) {
model = model.model;
}
@ -27012,7 +27016,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
if (this.$$model) {
return this.model;
}
}
};
Model.prototype._init = function _init() {};
@ -65317,11 +65321,8 @@ BI.SliderIconButton = BI.inherit(BI.Widget, {
},
items: [{
el: {
type: "bi.text_button",
width: 16,
height: 16,
forceNotSelected: true,
cls: "slider-button bi-list-item-select3 bi-high-light-border",
type: "bi.text",
cls: "slider-button bi-high-light-border",
ref: function () {
self.slider = this;
}

6
dist/fix/fix.ie.js vendored

@ -920,9 +920,11 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
}
var Model = function () {
function Model(model) {
function Model() {
_classCallCheck(this, Model);
}
Model.prototype._constructor = function _constructor(model) {
this.alive = true;
this.options = model || {};
this.model = {
@ -954,7 +956,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
initMethods(this, actions);
this.created && this.created();
allModelInstances[this._modelHashId] = this;
}
};
Model.prototype._init = function _init() {};

6
dist/fix/fix.js vendored

@ -1333,9 +1333,11 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
}
var Model = function () {
function Model(model) {
function Model() {
_classCallCheck(this, Model);
}
Model.prototype._constructor = function _constructor(model) {
if (model instanceof Observer || model instanceof Model) {
model = model.model;
}
@ -1366,7 +1368,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
if (this.$$model) {
return this.model;
}
}
};
Model.prototype._init = function _init() {};

8
dist/utils.js vendored

@ -13505,6 +13505,7 @@ if (!_global.BI) {
BI.Models = {
getModel: function (type, config) {
var inst = new modelInjection[type](config);
inst._constructor && inst._constructor(config);
callPoint(inst, type);
return inst;
}
@ -13517,9 +13518,10 @@ if (!_global.BI) {
if (stores[type]) {
return stores[type];
}
stores[type] = new storeInjection[type](config);
callPoint(stores[type], type);
return stores[type];
var inst = stores[type] = new storeInjection[type](config);
inst._constructor && inst._constructor(config);
callPoint(inst, type);
return inst;
}
};

8
dist/utils.min.js vendored

File diff suppressed because one or more lines are too long

7
dist/widget.js vendored

@ -20129,11 +20129,8 @@ BI.SliderIconButton = BI.inherit(BI.Widget, {
},
items: [{
el: {
type: "bi.text_button",
width: 16,
height: 16,
forceNotSelected: true,
cls: "slider-button bi-list-item-select3 bi-high-light-border",
type: "bi.text",
cls: "slider-button bi-high-light-border",
ref: function () {
self.slider = this;
}

8
src/core/inject.js

@ -156,6 +156,7 @@
BI.Models = {
getModel: function (type, config) {
var inst = new modelInjection[type](config);
inst._constructor && inst._constructor(config);
callPoint(inst, type);
return inst;
}
@ -168,9 +169,10 @@
if (stores[type]) {
return stores[type];
}
stores[type] = new storeInjection[type](config);
callPoint(stores[type], type);
return stores[type];
var inst = stores[type] = new storeInjection[type](config);
inst._constructor && inst._constructor(config);
callPoint(inst, type);
return inst;
}
};

Loading…
Cancel
Save