Browse Source

Merge pull request #732 in VISUAL/fineui from ~IMP/fineui_fui:master to master

* commit '66ee4249ea3ebe724f8033b2718c0de059d407b7':
  BI-33958 text生命周期
es6
guy 6 years ago
parent
commit
a43b68afd3
  1. 8
      dist/base.js
  2. 8
      dist/bundle.ie.js
  3. 4
      dist/bundle.ie.min.js
  4. 8
      dist/bundle.js
  5. 16
      dist/bundle.min.js
  6. 25
      dist/demo.js
  7. 8
      dist/fineui.ie.js
  8. 4
      dist/fineui.ie.min.js
  9. 8
      dist/fineui.js
  10. 16
      dist/fineui.min.js
  11. 8
      dist/fineui_without_jquery_polyfill.js
  12. 2
      dist/utils.min.js
  13. 3
      src/base/single/text.js

8
dist/base.js vendored

@ -535,8 +535,7 @@ BI.Text = BI.inherit(BI.Single, {
}); });
}, },
_init: function () { render: function () {
BI.Text.superclass._init.apply(this, arguments);
var self = this, o = this.options; var self = this, o = this.options;
if (o.hgap + o.lgap > 0) { if (o.hgap + o.lgap > 0) {
this.element.css({ this.element.css({
@ -584,6 +583,11 @@ BI.Text = BI.inherit(BI.Single, {
} else { } else {
this.text = this; this.text = this;
} }
},
mounted: function () {
var o = this.options;
if (BI.isKey(o.text)) { if (BI.isKey(o.text)) {
this.setText(o.text); this.setText(o.text);
} else if (BI.isKey(o.value)) { } else if (BI.isKey(o.value)) {

8
dist/bundle.ie.js vendored

@ -35431,8 +35431,7 @@ BI.Text = BI.inherit(BI.Single, {
}); });
}, },
_init: function () { render: function () {
BI.Text.superclass._init.apply(this, arguments);
var self = this, o = this.options; var self = this, o = this.options;
if (o.hgap + o.lgap > 0) { if (o.hgap + o.lgap > 0) {
this.element.css({ this.element.css({
@ -35480,6 +35479,11 @@ BI.Text = BI.inherit(BI.Single, {
} else { } else {
this.text = this; this.text = this;
} }
},
mounted: function () {
var o = this.options;
if (BI.isKey(o.text)) { if (BI.isKey(o.text)) {
this.setText(o.text); this.setText(o.text);
} else if (BI.isKey(o.value)) { } else if (BI.isKey(o.value)) {

4
dist/bundle.ie.min.js vendored

File diff suppressed because one or more lines are too long

8
dist/bundle.js vendored

@ -35970,8 +35970,7 @@ BI.Text = BI.inherit(BI.Single, {
}); });
}, },
_init: function () { render: function () {
BI.Text.superclass._init.apply(this, arguments);
var self = this, o = this.options; var self = this, o = this.options;
if (o.hgap + o.lgap > 0) { if (o.hgap + o.lgap > 0) {
this.element.css({ this.element.css({
@ -36019,6 +36018,11 @@ BI.Text = BI.inherit(BI.Single, {
} else { } else {
this.text = this; this.text = this;
} }
},
mounted: function () {
var o = this.options;
if (BI.isKey(o.text)) { if (BI.isKey(o.text)) {
this.setText(o.text); this.setText(o.text);
} else if (BI.isKey(o.value)) { } else if (BI.isKey(o.value)) {

16
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

25
dist/demo.js vendored

@ -6041,30 +6041,7 @@ Demo.HtapeLayout = BI.inherit(BI.Widget, {
}; };
} }
}); });
BI.shortcut("demo.htape", Demo.HtapeLayout);Demo.InlineVerticalLayout = BI.inherit(BI.Widget, { BI.shortcut("demo.htape", Demo.HtapeLayout);/**
props: {
baseCls: "demo-absolute"
},
render: function () {
return {
type: "bi.inline_vertical_adapt",
items: [{
type: "bi.label",
text: "绝对布局",
cls: "layout-bg1",
width: 300,
height: 200
}, {
type: "bi.label",
text: "绝对布局",
cls: "layout-bg1",
width: 300,
height: 100
}]
};
}
});
BI.shortcut("demo.inline_vertical", Demo.InlineVerticalLayout);/**
* Created by User on 2017/3/22. * Created by User on 2017/3/22.
*/ */
Demo.LeftRightVerticalAdaptLayout = BI.inherit(BI.Widget, { Demo.LeftRightVerticalAdaptLayout = BI.inherit(BI.Widget, {

8
dist/fineui.ie.js vendored

@ -35673,8 +35673,7 @@ BI.Text = BI.inherit(BI.Single, {
}); });
}, },
_init: function () { render: function () {
BI.Text.superclass._init.apply(this, arguments);
var self = this, o = this.options; var self = this, o = this.options;
if (o.hgap + o.lgap > 0) { if (o.hgap + o.lgap > 0) {
this.element.css({ this.element.css({
@ -35722,6 +35721,11 @@ BI.Text = BI.inherit(BI.Single, {
} else { } else {
this.text = this; this.text = this;
} }
},
mounted: function () {
var o = this.options;
if (BI.isKey(o.text)) { if (BI.isKey(o.text)) {
this.setText(o.text); this.setText(o.text);
} else if (BI.isKey(o.value)) { } else if (BI.isKey(o.value)) {

4
dist/fineui.ie.min.js vendored

File diff suppressed because one or more lines are too long

8
dist/fineui.js vendored

@ -36212,8 +36212,7 @@ BI.Text = BI.inherit(BI.Single, {
}); });
}, },
_init: function () { render: function () {
BI.Text.superclass._init.apply(this, arguments);
var self = this, o = this.options; var self = this, o = this.options;
if (o.hgap + o.lgap > 0) { if (o.hgap + o.lgap > 0) {
this.element.css({ this.element.css({
@ -36261,6 +36260,11 @@ BI.Text = BI.inherit(BI.Single, {
} else { } else {
this.text = this; this.text = this;
} }
},
mounted: function () {
var o = this.options;
if (BI.isKey(o.text)) { if (BI.isKey(o.text)) {
this.setText(o.text); this.setText(o.text);
} else if (BI.isKey(o.value)) { } else if (BI.isKey(o.value)) {

16
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

8
dist/fineui_without_jquery_polyfill.js vendored

@ -24780,8 +24780,7 @@ BI.Text = BI.inherit(BI.Single, {
}); });
}, },
_init: function () { render: function () {
BI.Text.superclass._init.apply(this, arguments);
var self = this, o = this.options; var self = this, o = this.options;
if (o.hgap + o.lgap > 0) { if (o.hgap + o.lgap > 0) {
this.element.css({ this.element.css({
@ -24829,6 +24828,11 @@ BI.Text = BI.inherit(BI.Single, {
} else { } else {
this.text = this; this.text = this;
} }
},
mounted: function () {
var o = this.options;
if (BI.isKey(o.text)) { if (BI.isKey(o.text)) {
this.setText(o.text); this.setText(o.text);
} else if (BI.isKey(o.value)) { } else if (BI.isKey(o.value)) {

2
dist/utils.min.js vendored

File diff suppressed because one or more lines are too long

3
src/base/single/text.js

@ -23,8 +23,7 @@ BI.Text = BI.inherit(BI.Single, {
}); });
}, },
_init: function () { render: function () {
BI.Text.superclass._init.apply(this, arguments);
var self = this, o = this.options; var self = this, o = this.options;
if (o.hgap + o.lgap > 0) { if (o.hgap + o.lgap > 0) {
this.element.css({ this.element.css({

Loading…
Cancel
Save