Browse Source

build

master
dailer 6 years ago
parent
commit
1e89e03b12
  1. 2
      demo/js/config/base.js
  2. 23
      dist/2.0/fineui.ie.js
  3. 24
      dist/2.0/fineui.ie.min.js
  4. 23
      dist/2.0/fineui.js
  5. 20
      dist/2.0/fineui.min.js
  6. 22
      dist/base.js
  7. 23
      dist/bundle.ie.js
  8. 24
      dist/bundle.ie.min.js
  9. 23
      dist/bundle.js
  10. 20
      dist/bundle.min.js
  11. 1
      dist/core.js
  12. 2
      dist/demo.js
  13. 23
      dist/fineui.ie.js
  14. 24
      dist/fineui.ie.min.js
  15. 23
      dist/fineui.js
  16. 20
      dist/fineui.min.js
  17. 23
      dist/fineui_without_jquery_polyfill.js
  18. 2
      dist/utils.min.js
  19. 1
      src/core/shortcut.js

2
demo/js/config/base.js

@ -5,7 +5,7 @@ Demo.BASE_CONFIG = [{
}, { }, {
pId: 2, pId: 2,
text: "bi.label", text: "bi.label",
value: "demo.label" value: "demo.mixin"
},{ },{
pId: 2, pId: 2,
text: "bi.label_scene", text: "bi.label_scene",

23
dist/2.0/fineui.ie.js vendored

@ -12233,7 +12233,6 @@ if (!_global.BI) {
} }
kv[xtype] = cls; kv[xtype] = cls;
}; };
// 根据配置属性生成widget // 根据配置属性生成widget
var createWidget = function (config) { var createWidget = function (config) {
if (config["classType"]) { if (config["classType"]) {
@ -46454,13 +46453,14 @@ BI.HtmlLabel = BI.inherit(BI.Single, {
_createNotCenterEl: function () { _createNotCenterEl: function () {
var o = this.options; var o = this.options;
var adaptLayout = o.textAlign === "right" ? "bi.right_vertical_adapt" : "bi.vertical_adapt";
var json = this._createJson(); var json = this._createJson();
if (BI.isNumber(o.width) && o.width > 0) { if (BI.isNumber(o.width) && o.width > 0) {
if (BI.isNumber(o.textWidth) && o.textWidth > 0) { if (BI.isNumber(o.textWidth) && o.textWidth > 0) {
json.width = o.textWidth; json.width = o.textWidth;
if (BI.isNumber(o.height) && o.height > 0) { if (BI.isNumber(o.height) && o.height > 0) {
BI.createWidget({ BI.createWidget({
type: "bi.vertical_adapt", type: adaptLayout,
height: o.height, height: o.height,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
element: this, element: this,
@ -46473,7 +46473,7 @@ BI.HtmlLabel = BI.inherit(BI.Single, {
return; return;
} }
BI.createWidget({ BI.createWidget({
type: "bi.vertical_adapt", type: adaptLayout,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
hgap: o.hgap, hgap: o.hgap,
vgap: o.vgap, vgap: o.vgap,
@ -46509,7 +46509,7 @@ BI.HtmlLabel = BI.inherit(BI.Single, {
} }
json.width = o.width - 2 * o.hgap - o.lgap - o.rgap; json.width = o.width - 2 * o.hgap - o.lgap - o.rgap;
BI.createWidget({ BI.createWidget({
type: "bi.vertical_adapt", type: adaptLayout,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
hgap: o.hgap, hgap: o.hgap,
vgap: o.vgap, vgap: o.vgap,
@ -46527,7 +46527,7 @@ BI.HtmlLabel = BI.inherit(BI.Single, {
if (BI.isNumber(o.textWidth) && o.textWidth > 0) { if (BI.isNumber(o.textWidth) && o.textWidth > 0) {
json.width = o.textWidth; json.width = o.textWidth;
BI.createWidget({ BI.createWidget({
type: "bi.vertical_adapt", type: adaptLayout,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
hgap: o.hgap, hgap: o.hgap,
vgap: o.vgap, vgap: o.vgap,
@ -46574,7 +46574,7 @@ BI.HtmlLabel = BI.inherit(BI.Single, {
maxWidth: "100%" maxWidth: "100%"
})); }));
BI.createWidget({ BI.createWidget({
type: "bi.vertical_adapt", type: adaptLayout,
element: this, element: this,
items: [this.text] items: [this.text]
}); });
@ -46868,13 +46868,14 @@ BI.Label = BI.inherit(BI.Single, {
_createNotCenterEl: function () { _createNotCenterEl: function () {
var o = this.options; var o = this.options;
var adaptLayout = o.textAlign === "right" ? "bi.right_vertical_adapt" : "bi.vertical_adapt";
var json = this._createJson(); var json = this._createJson();
if (BI.isNumber(o.width) && o.width > 0) { if (BI.isNumber(o.width) && o.width > 0) {
if (BI.isNumber(o.textWidth) && o.textWidth > 0) { if (BI.isNumber(o.textWidth) && o.textWidth > 0) {
json.width = o.textWidth; json.width = o.textWidth;
if (BI.isNumber(o.height) && o.height > 0) { // 2.1 if (BI.isNumber(o.height) && o.height > 0) { // 2.1
BI.createWidget({ BI.createWidget({
type: "bi.vertical_adapt", type: adaptLayout,
height: o.height, height: o.height,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
element: this, element: this,
@ -46887,7 +46888,7 @@ BI.Label = BI.inherit(BI.Single, {
return; return;
} }
BI.createWidget({ // 2.2 BI.createWidget({ // 2.2
type: "bi.vertical_adapt", type: adaptLayout,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
hgap: o.hgap, hgap: o.hgap,
vgap: o.vgap, vgap: o.vgap,
@ -46923,7 +46924,7 @@ BI.Label = BI.inherit(BI.Single, {
} }
json.width = o.width - 2 * o.hgap - o.lgap - o.rgap; json.width = o.width - 2 * o.hgap - o.lgap - o.rgap;
BI.createWidget({ // 2.4 BI.createWidget({ // 2.4
type: "bi.vertical_adapt", type: adaptLayout,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
hgap: o.hgap, hgap: o.hgap,
vgap: o.vgap, vgap: o.vgap,
@ -46941,7 +46942,7 @@ BI.Label = BI.inherit(BI.Single, {
if (BI.isNumber(o.textWidth) && o.textWidth > 0) { if (BI.isNumber(o.textWidth) && o.textWidth > 0) {
json.width = o.textWidth; json.width = o.textWidth;
BI.createWidget({ // 2.5 BI.createWidget({ // 2.5
type: "bi.vertical_adapt", type: adaptLayout,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
hgap: o.hgap, hgap: o.hgap,
vgap: o.vgap, vgap: o.vgap,
@ -46988,7 +46989,7 @@ BI.Label = BI.inherit(BI.Single, {
maxWidth: "100%" maxWidth: "100%"
})); }));
BI.createWidget({ BI.createWidget({
type: "bi.vertical_adapt", type: adaptLayout,
element: this, element: this,
items: [this.text] items: [this.text]
}); });

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

File diff suppressed because one or more lines are too long

23
dist/2.0/fineui.js vendored

@ -12233,7 +12233,6 @@ if (!_global.BI) {
} }
kv[xtype] = cls; kv[xtype] = cls;
}; };
// 根据配置属性生成widget // 根据配置属性生成widget
var createWidget = function (config) { var createWidget = function (config) {
if (config["classType"]) { if (config["classType"]) {
@ -46858,13 +46857,14 @@ BI.HtmlLabel = BI.inherit(BI.Single, {
_createNotCenterEl: function () { _createNotCenterEl: function () {
var o = this.options; var o = this.options;
var adaptLayout = o.textAlign === "right" ? "bi.right_vertical_adapt" : "bi.vertical_adapt";
var json = this._createJson(); var json = this._createJson();
if (BI.isNumber(o.width) && o.width > 0) { if (BI.isNumber(o.width) && o.width > 0) {
if (BI.isNumber(o.textWidth) && o.textWidth > 0) { if (BI.isNumber(o.textWidth) && o.textWidth > 0) {
json.width = o.textWidth; json.width = o.textWidth;
if (BI.isNumber(o.height) && o.height > 0) { if (BI.isNumber(o.height) && o.height > 0) {
BI.createWidget({ BI.createWidget({
type: "bi.vertical_adapt", type: adaptLayout,
height: o.height, height: o.height,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
element: this, element: this,
@ -46877,7 +46877,7 @@ BI.HtmlLabel = BI.inherit(BI.Single, {
return; return;
} }
BI.createWidget({ BI.createWidget({
type: "bi.vertical_adapt", type: adaptLayout,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
hgap: o.hgap, hgap: o.hgap,
vgap: o.vgap, vgap: o.vgap,
@ -46913,7 +46913,7 @@ BI.HtmlLabel = BI.inherit(BI.Single, {
} }
json.width = o.width - 2 * o.hgap - o.lgap - o.rgap; json.width = o.width - 2 * o.hgap - o.lgap - o.rgap;
BI.createWidget({ BI.createWidget({
type: "bi.vertical_adapt", type: adaptLayout,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
hgap: o.hgap, hgap: o.hgap,
vgap: o.vgap, vgap: o.vgap,
@ -46931,7 +46931,7 @@ BI.HtmlLabel = BI.inherit(BI.Single, {
if (BI.isNumber(o.textWidth) && o.textWidth > 0) { if (BI.isNumber(o.textWidth) && o.textWidth > 0) {
json.width = o.textWidth; json.width = o.textWidth;
BI.createWidget({ BI.createWidget({
type: "bi.vertical_adapt", type: adaptLayout,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
hgap: o.hgap, hgap: o.hgap,
vgap: o.vgap, vgap: o.vgap,
@ -46978,7 +46978,7 @@ BI.HtmlLabel = BI.inherit(BI.Single, {
maxWidth: "100%" maxWidth: "100%"
})); }));
BI.createWidget({ BI.createWidget({
type: "bi.vertical_adapt", type: adaptLayout,
element: this, element: this,
items: [this.text] items: [this.text]
}); });
@ -47272,13 +47272,14 @@ BI.Label = BI.inherit(BI.Single, {
_createNotCenterEl: function () { _createNotCenterEl: function () {
var o = this.options; var o = this.options;
var adaptLayout = o.textAlign === "right" ? "bi.right_vertical_adapt" : "bi.vertical_adapt";
var json = this._createJson(); var json = this._createJson();
if (BI.isNumber(o.width) && o.width > 0) { if (BI.isNumber(o.width) && o.width > 0) {
if (BI.isNumber(o.textWidth) && o.textWidth > 0) { if (BI.isNumber(o.textWidth) && o.textWidth > 0) {
json.width = o.textWidth; json.width = o.textWidth;
if (BI.isNumber(o.height) && o.height > 0) { // 2.1 if (BI.isNumber(o.height) && o.height > 0) { // 2.1
BI.createWidget({ BI.createWidget({
type: "bi.vertical_adapt", type: adaptLayout,
height: o.height, height: o.height,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
element: this, element: this,
@ -47291,7 +47292,7 @@ BI.Label = BI.inherit(BI.Single, {
return; return;
} }
BI.createWidget({ // 2.2 BI.createWidget({ // 2.2
type: "bi.vertical_adapt", type: adaptLayout,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
hgap: o.hgap, hgap: o.hgap,
vgap: o.vgap, vgap: o.vgap,
@ -47327,7 +47328,7 @@ BI.Label = BI.inherit(BI.Single, {
} }
json.width = o.width - 2 * o.hgap - o.lgap - o.rgap; json.width = o.width - 2 * o.hgap - o.lgap - o.rgap;
BI.createWidget({ // 2.4 BI.createWidget({ // 2.4
type: "bi.vertical_adapt", type: adaptLayout,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
hgap: o.hgap, hgap: o.hgap,
vgap: o.vgap, vgap: o.vgap,
@ -47345,7 +47346,7 @@ BI.Label = BI.inherit(BI.Single, {
if (BI.isNumber(o.textWidth) && o.textWidth > 0) { if (BI.isNumber(o.textWidth) && o.textWidth > 0) {
json.width = o.textWidth; json.width = o.textWidth;
BI.createWidget({ // 2.5 BI.createWidget({ // 2.5
type: "bi.vertical_adapt", type: adaptLayout,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
hgap: o.hgap, hgap: o.hgap,
vgap: o.vgap, vgap: o.vgap,
@ -47392,7 +47393,7 @@ BI.Label = BI.inherit(BI.Single, {
maxWidth: "100%" maxWidth: "100%"
})); }));
BI.createWidget({ BI.createWidget({
type: "bi.vertical_adapt", type: adaptLayout,
element: this, element: this,
items: [this.text] items: [this.text]
}); });

20
dist/2.0/fineui.min.js vendored

File diff suppressed because one or more lines are too long

22
dist/base.js vendored

@ -10982,13 +10982,14 @@ BI.HtmlLabel = BI.inherit(BI.Single, {
_createNotCenterEl: function () { _createNotCenterEl: function () {
var o = this.options; var o = this.options;
var adaptLayout = o.textAlign === "right" ? "bi.right_vertical_adapt" : "bi.vertical_adapt";
var json = this._createJson(); var json = this._createJson();
if (BI.isNumber(o.width) && o.width > 0) { if (BI.isNumber(o.width) && o.width > 0) {
if (BI.isNumber(o.textWidth) && o.textWidth > 0) { if (BI.isNumber(o.textWidth) && o.textWidth > 0) {
json.width = o.textWidth; json.width = o.textWidth;
if (BI.isNumber(o.height) && o.height > 0) { if (BI.isNumber(o.height) && o.height > 0) {
BI.createWidget({ BI.createWidget({
type: "bi.vertical_adapt", type: adaptLayout,
height: o.height, height: o.height,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
element: this, element: this,
@ -11001,7 +11002,7 @@ BI.HtmlLabel = BI.inherit(BI.Single, {
return; return;
} }
BI.createWidget({ BI.createWidget({
type: "bi.vertical_adapt", type: adaptLayout,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
hgap: o.hgap, hgap: o.hgap,
vgap: o.vgap, vgap: o.vgap,
@ -11037,7 +11038,7 @@ BI.HtmlLabel = BI.inherit(BI.Single, {
} }
json.width = o.width - 2 * o.hgap - o.lgap - o.rgap; json.width = o.width - 2 * o.hgap - o.lgap - o.rgap;
BI.createWidget({ BI.createWidget({
type: "bi.vertical_adapt", type: adaptLayout,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
hgap: o.hgap, hgap: o.hgap,
vgap: o.vgap, vgap: o.vgap,
@ -11055,7 +11056,7 @@ BI.HtmlLabel = BI.inherit(BI.Single, {
if (BI.isNumber(o.textWidth) && o.textWidth > 0) { if (BI.isNumber(o.textWidth) && o.textWidth > 0) {
json.width = o.textWidth; json.width = o.textWidth;
BI.createWidget({ BI.createWidget({
type: "bi.vertical_adapt", type: adaptLayout,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
hgap: o.hgap, hgap: o.hgap,
vgap: o.vgap, vgap: o.vgap,
@ -11102,7 +11103,7 @@ BI.HtmlLabel = BI.inherit(BI.Single, {
maxWidth: "100%" maxWidth: "100%"
})); }));
BI.createWidget({ BI.createWidget({
type: "bi.vertical_adapt", type: adaptLayout,
element: this, element: this,
items: [this.text] items: [this.text]
}); });
@ -11396,13 +11397,14 @@ BI.Label = BI.inherit(BI.Single, {
_createNotCenterEl: function () { _createNotCenterEl: function () {
var o = this.options; var o = this.options;
var adaptLayout = o.textAlign === "right" ? "bi.right_vertical_adapt" : "bi.vertical_adapt";
var json = this._createJson(); var json = this._createJson();
if (BI.isNumber(o.width) && o.width > 0) { if (BI.isNumber(o.width) && o.width > 0) {
if (BI.isNumber(o.textWidth) && o.textWidth > 0) { if (BI.isNumber(o.textWidth) && o.textWidth > 0) {
json.width = o.textWidth; json.width = o.textWidth;
if (BI.isNumber(o.height) && o.height > 0) { // 2.1 if (BI.isNumber(o.height) && o.height > 0) { // 2.1
BI.createWidget({ BI.createWidget({
type: "bi.vertical_adapt", type: adaptLayout,
height: o.height, height: o.height,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
element: this, element: this,
@ -11415,7 +11417,7 @@ BI.Label = BI.inherit(BI.Single, {
return; return;
} }
BI.createWidget({ // 2.2 BI.createWidget({ // 2.2
type: "bi.vertical_adapt", type: adaptLayout,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
hgap: o.hgap, hgap: o.hgap,
vgap: o.vgap, vgap: o.vgap,
@ -11451,7 +11453,7 @@ BI.Label = BI.inherit(BI.Single, {
} }
json.width = o.width - 2 * o.hgap - o.lgap - o.rgap; json.width = o.width - 2 * o.hgap - o.lgap - o.rgap;
BI.createWidget({ // 2.4 BI.createWidget({ // 2.4
type: "bi.vertical_adapt", type: adaptLayout,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
hgap: o.hgap, hgap: o.hgap,
vgap: o.vgap, vgap: o.vgap,
@ -11469,7 +11471,7 @@ BI.Label = BI.inherit(BI.Single, {
if (BI.isNumber(o.textWidth) && o.textWidth > 0) { if (BI.isNumber(o.textWidth) && o.textWidth > 0) {
json.width = o.textWidth; json.width = o.textWidth;
BI.createWidget({ // 2.5 BI.createWidget({ // 2.5
type: "bi.vertical_adapt", type: adaptLayout,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
hgap: o.hgap, hgap: o.hgap,
vgap: o.vgap, vgap: o.vgap,
@ -11516,7 +11518,7 @@ BI.Label = BI.inherit(BI.Single, {
maxWidth: "100%" maxWidth: "100%"
})); }));
BI.createWidget({ BI.createWidget({
type: "bi.vertical_adapt", type: adaptLayout,
element: this, element: this,
items: [this.text] items: [this.text]
}); });

23
dist/bundle.ie.js vendored

@ -12233,7 +12233,6 @@ if (!_global.BI) {
} }
kv[xtype] = cls; kv[xtype] = cls;
}; };
// 根据配置属性生成widget // 根据配置属性生成widget
var createWidget = function (config) { var createWidget = function (config) {
if (config["classType"]) { if (config["classType"]) {
@ -46454,13 +46453,14 @@ BI.HtmlLabel = BI.inherit(BI.Single, {
_createNotCenterEl: function () { _createNotCenterEl: function () {
var o = this.options; var o = this.options;
var adaptLayout = o.textAlign === "right" ? "bi.right_vertical_adapt" : "bi.vertical_adapt";
var json = this._createJson(); var json = this._createJson();
if (BI.isNumber(o.width) && o.width > 0) { if (BI.isNumber(o.width) && o.width > 0) {
if (BI.isNumber(o.textWidth) && o.textWidth > 0) { if (BI.isNumber(o.textWidth) && o.textWidth > 0) {
json.width = o.textWidth; json.width = o.textWidth;
if (BI.isNumber(o.height) && o.height > 0) { if (BI.isNumber(o.height) && o.height > 0) {
BI.createWidget({ BI.createWidget({
type: "bi.vertical_adapt", type: adaptLayout,
height: o.height, height: o.height,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
element: this, element: this,
@ -46473,7 +46473,7 @@ BI.HtmlLabel = BI.inherit(BI.Single, {
return; return;
} }
BI.createWidget({ BI.createWidget({
type: "bi.vertical_adapt", type: adaptLayout,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
hgap: o.hgap, hgap: o.hgap,
vgap: o.vgap, vgap: o.vgap,
@ -46509,7 +46509,7 @@ BI.HtmlLabel = BI.inherit(BI.Single, {
} }
json.width = o.width - 2 * o.hgap - o.lgap - o.rgap; json.width = o.width - 2 * o.hgap - o.lgap - o.rgap;
BI.createWidget({ BI.createWidget({
type: "bi.vertical_adapt", type: adaptLayout,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
hgap: o.hgap, hgap: o.hgap,
vgap: o.vgap, vgap: o.vgap,
@ -46527,7 +46527,7 @@ BI.HtmlLabel = BI.inherit(BI.Single, {
if (BI.isNumber(o.textWidth) && o.textWidth > 0) { if (BI.isNumber(o.textWidth) && o.textWidth > 0) {
json.width = o.textWidth; json.width = o.textWidth;
BI.createWidget({ BI.createWidget({
type: "bi.vertical_adapt", type: adaptLayout,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
hgap: o.hgap, hgap: o.hgap,
vgap: o.vgap, vgap: o.vgap,
@ -46574,7 +46574,7 @@ BI.HtmlLabel = BI.inherit(BI.Single, {
maxWidth: "100%" maxWidth: "100%"
})); }));
BI.createWidget({ BI.createWidget({
type: "bi.vertical_adapt", type: adaptLayout,
element: this, element: this,
items: [this.text] items: [this.text]
}); });
@ -46868,13 +46868,14 @@ BI.Label = BI.inherit(BI.Single, {
_createNotCenterEl: function () { _createNotCenterEl: function () {
var o = this.options; var o = this.options;
var adaptLayout = o.textAlign === "right" ? "bi.right_vertical_adapt" : "bi.vertical_adapt";
var json = this._createJson(); var json = this._createJson();
if (BI.isNumber(o.width) && o.width > 0) { if (BI.isNumber(o.width) && o.width > 0) {
if (BI.isNumber(o.textWidth) && o.textWidth > 0) { if (BI.isNumber(o.textWidth) && o.textWidth > 0) {
json.width = o.textWidth; json.width = o.textWidth;
if (BI.isNumber(o.height) && o.height > 0) { // 2.1 if (BI.isNumber(o.height) && o.height > 0) { // 2.1
BI.createWidget({ BI.createWidget({
type: "bi.vertical_adapt", type: adaptLayout,
height: o.height, height: o.height,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
element: this, element: this,
@ -46887,7 +46888,7 @@ BI.Label = BI.inherit(BI.Single, {
return; return;
} }
BI.createWidget({ // 2.2 BI.createWidget({ // 2.2
type: "bi.vertical_adapt", type: adaptLayout,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
hgap: o.hgap, hgap: o.hgap,
vgap: o.vgap, vgap: o.vgap,
@ -46923,7 +46924,7 @@ BI.Label = BI.inherit(BI.Single, {
} }
json.width = o.width - 2 * o.hgap - o.lgap - o.rgap; json.width = o.width - 2 * o.hgap - o.lgap - o.rgap;
BI.createWidget({ // 2.4 BI.createWidget({ // 2.4
type: "bi.vertical_adapt", type: adaptLayout,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
hgap: o.hgap, hgap: o.hgap,
vgap: o.vgap, vgap: o.vgap,
@ -46941,7 +46942,7 @@ BI.Label = BI.inherit(BI.Single, {
if (BI.isNumber(o.textWidth) && o.textWidth > 0) { if (BI.isNumber(o.textWidth) && o.textWidth > 0) {
json.width = o.textWidth; json.width = o.textWidth;
BI.createWidget({ // 2.5 BI.createWidget({ // 2.5
type: "bi.vertical_adapt", type: adaptLayout,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
hgap: o.hgap, hgap: o.hgap,
vgap: o.vgap, vgap: o.vgap,
@ -46988,7 +46989,7 @@ BI.Label = BI.inherit(BI.Single, {
maxWidth: "100%" maxWidth: "100%"
})); }));
BI.createWidget({ BI.createWidget({
type: "bi.vertical_adapt", type: adaptLayout,
element: this, element: this,
items: [this.text] items: [this.text]
}); });

24
dist/bundle.ie.min.js vendored

File diff suppressed because one or more lines are too long

23
dist/bundle.js vendored

@ -12233,7 +12233,6 @@ if (!_global.BI) {
} }
kv[xtype] = cls; kv[xtype] = cls;
}; };
// 根据配置属性生成widget // 根据配置属性生成widget
var createWidget = function (config) { var createWidget = function (config) {
if (config["classType"]) { if (config["classType"]) {
@ -46858,13 +46857,14 @@ BI.HtmlLabel = BI.inherit(BI.Single, {
_createNotCenterEl: function () { _createNotCenterEl: function () {
var o = this.options; var o = this.options;
var adaptLayout = o.textAlign === "right" ? "bi.right_vertical_adapt" : "bi.vertical_adapt";
var json = this._createJson(); var json = this._createJson();
if (BI.isNumber(o.width) && o.width > 0) { if (BI.isNumber(o.width) && o.width > 0) {
if (BI.isNumber(o.textWidth) && o.textWidth > 0) { if (BI.isNumber(o.textWidth) && o.textWidth > 0) {
json.width = o.textWidth; json.width = o.textWidth;
if (BI.isNumber(o.height) && o.height > 0) { if (BI.isNumber(o.height) && o.height > 0) {
BI.createWidget({ BI.createWidget({
type: "bi.vertical_adapt", type: adaptLayout,
height: o.height, height: o.height,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
element: this, element: this,
@ -46877,7 +46877,7 @@ BI.HtmlLabel = BI.inherit(BI.Single, {
return; return;
} }
BI.createWidget({ BI.createWidget({
type: "bi.vertical_adapt", type: adaptLayout,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
hgap: o.hgap, hgap: o.hgap,
vgap: o.vgap, vgap: o.vgap,
@ -46913,7 +46913,7 @@ BI.HtmlLabel = BI.inherit(BI.Single, {
} }
json.width = o.width - 2 * o.hgap - o.lgap - o.rgap; json.width = o.width - 2 * o.hgap - o.lgap - o.rgap;
BI.createWidget({ BI.createWidget({
type: "bi.vertical_adapt", type: adaptLayout,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
hgap: o.hgap, hgap: o.hgap,
vgap: o.vgap, vgap: o.vgap,
@ -46931,7 +46931,7 @@ BI.HtmlLabel = BI.inherit(BI.Single, {
if (BI.isNumber(o.textWidth) && o.textWidth > 0) { if (BI.isNumber(o.textWidth) && o.textWidth > 0) {
json.width = o.textWidth; json.width = o.textWidth;
BI.createWidget({ BI.createWidget({
type: "bi.vertical_adapt", type: adaptLayout,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
hgap: o.hgap, hgap: o.hgap,
vgap: o.vgap, vgap: o.vgap,
@ -46978,7 +46978,7 @@ BI.HtmlLabel = BI.inherit(BI.Single, {
maxWidth: "100%" maxWidth: "100%"
})); }));
BI.createWidget({ BI.createWidget({
type: "bi.vertical_adapt", type: adaptLayout,
element: this, element: this,
items: [this.text] items: [this.text]
}); });
@ -47272,13 +47272,14 @@ BI.Label = BI.inherit(BI.Single, {
_createNotCenterEl: function () { _createNotCenterEl: function () {
var o = this.options; var o = this.options;
var adaptLayout = o.textAlign === "right" ? "bi.right_vertical_adapt" : "bi.vertical_adapt";
var json = this._createJson(); var json = this._createJson();
if (BI.isNumber(o.width) && o.width > 0) { if (BI.isNumber(o.width) && o.width > 0) {
if (BI.isNumber(o.textWidth) && o.textWidth > 0) { if (BI.isNumber(o.textWidth) && o.textWidth > 0) {
json.width = o.textWidth; json.width = o.textWidth;
if (BI.isNumber(o.height) && o.height > 0) { // 2.1 if (BI.isNumber(o.height) && o.height > 0) { // 2.1
BI.createWidget({ BI.createWidget({
type: "bi.vertical_adapt", type: adaptLayout,
height: o.height, height: o.height,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
element: this, element: this,
@ -47291,7 +47292,7 @@ BI.Label = BI.inherit(BI.Single, {
return; return;
} }
BI.createWidget({ // 2.2 BI.createWidget({ // 2.2
type: "bi.vertical_adapt", type: adaptLayout,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
hgap: o.hgap, hgap: o.hgap,
vgap: o.vgap, vgap: o.vgap,
@ -47327,7 +47328,7 @@ BI.Label = BI.inherit(BI.Single, {
} }
json.width = o.width - 2 * o.hgap - o.lgap - o.rgap; json.width = o.width - 2 * o.hgap - o.lgap - o.rgap;
BI.createWidget({ // 2.4 BI.createWidget({ // 2.4
type: "bi.vertical_adapt", type: adaptLayout,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
hgap: o.hgap, hgap: o.hgap,
vgap: o.vgap, vgap: o.vgap,
@ -47345,7 +47346,7 @@ BI.Label = BI.inherit(BI.Single, {
if (BI.isNumber(o.textWidth) && o.textWidth > 0) { if (BI.isNumber(o.textWidth) && o.textWidth > 0) {
json.width = o.textWidth; json.width = o.textWidth;
BI.createWidget({ // 2.5 BI.createWidget({ // 2.5
type: "bi.vertical_adapt", type: adaptLayout,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
hgap: o.hgap, hgap: o.hgap,
vgap: o.vgap, vgap: o.vgap,
@ -47392,7 +47393,7 @@ BI.Label = BI.inherit(BI.Single, {
maxWidth: "100%" maxWidth: "100%"
})); }));
BI.createWidget({ BI.createWidget({
type: "bi.vertical_adapt", type: adaptLayout,
element: this, element: this,
items: [this.text] items: [this.text]
}); });

20
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

1
dist/core.js vendored

@ -12233,7 +12233,6 @@ if (!_global.BI) {
} }
kv[xtype] = cls; kv[xtype] = cls;
}; };
// 根据配置属性生成widget // 根据配置属性生成widget
var createWidget = function (config) { var createWidget = function (config) {
if (config["classType"]) { if (config["classType"]) {

2
dist/demo.js vendored

@ -3361,7 +3361,7 @@ BI.shortcut("demo.value_chooser_pane", Demo.ValueChooserPane);Demo.BASE_CONFIG =
}, { }, {
pId: 2, pId: 2,
text: "bi.label", text: "bi.label",
value: "demo.label" value: "demo.mixin"
},{ },{
pId: 2, pId: 2,
text: "bi.label_scene", text: "bi.label_scene",

23
dist/fineui.ie.js vendored

@ -12478,7 +12478,6 @@ if (!_global.BI) {
} }
kv[xtype] = cls; kv[xtype] = cls;
}; };
// 根据配置属性生成widget // 根据配置属性生成widget
var createWidget = function (config) { var createWidget = function (config) {
if (config["classType"]) { if (config["classType"]) {
@ -46699,13 +46698,14 @@ BI.HtmlLabel = BI.inherit(BI.Single, {
_createNotCenterEl: function () { _createNotCenterEl: function () {
var o = this.options; var o = this.options;
var adaptLayout = o.textAlign === "right" ? "bi.right_vertical_adapt" : "bi.vertical_adapt";
var json = this._createJson(); var json = this._createJson();
if (BI.isNumber(o.width) && o.width > 0) { if (BI.isNumber(o.width) && o.width > 0) {
if (BI.isNumber(o.textWidth) && o.textWidth > 0) { if (BI.isNumber(o.textWidth) && o.textWidth > 0) {
json.width = o.textWidth; json.width = o.textWidth;
if (BI.isNumber(o.height) && o.height > 0) { if (BI.isNumber(o.height) && o.height > 0) {
BI.createWidget({ BI.createWidget({
type: "bi.vertical_adapt", type: adaptLayout,
height: o.height, height: o.height,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
element: this, element: this,
@ -46718,7 +46718,7 @@ BI.HtmlLabel = BI.inherit(BI.Single, {
return; return;
} }
BI.createWidget({ BI.createWidget({
type: "bi.vertical_adapt", type: adaptLayout,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
hgap: o.hgap, hgap: o.hgap,
vgap: o.vgap, vgap: o.vgap,
@ -46754,7 +46754,7 @@ BI.HtmlLabel = BI.inherit(BI.Single, {
} }
json.width = o.width - 2 * o.hgap - o.lgap - o.rgap; json.width = o.width - 2 * o.hgap - o.lgap - o.rgap;
BI.createWidget({ BI.createWidget({
type: "bi.vertical_adapt", type: adaptLayout,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
hgap: o.hgap, hgap: o.hgap,
vgap: o.vgap, vgap: o.vgap,
@ -46772,7 +46772,7 @@ BI.HtmlLabel = BI.inherit(BI.Single, {
if (BI.isNumber(o.textWidth) && o.textWidth > 0) { if (BI.isNumber(o.textWidth) && o.textWidth > 0) {
json.width = o.textWidth; json.width = o.textWidth;
BI.createWidget({ BI.createWidget({
type: "bi.vertical_adapt", type: adaptLayout,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
hgap: o.hgap, hgap: o.hgap,
vgap: o.vgap, vgap: o.vgap,
@ -46819,7 +46819,7 @@ BI.HtmlLabel = BI.inherit(BI.Single, {
maxWidth: "100%" maxWidth: "100%"
})); }));
BI.createWidget({ BI.createWidget({
type: "bi.vertical_adapt", type: adaptLayout,
element: this, element: this,
items: [this.text] items: [this.text]
}); });
@ -47113,13 +47113,14 @@ BI.Label = BI.inherit(BI.Single, {
_createNotCenterEl: function () { _createNotCenterEl: function () {
var o = this.options; var o = this.options;
var adaptLayout = o.textAlign === "right" ? "bi.right_vertical_adapt" : "bi.vertical_adapt";
var json = this._createJson(); var json = this._createJson();
if (BI.isNumber(o.width) && o.width > 0) { if (BI.isNumber(o.width) && o.width > 0) {
if (BI.isNumber(o.textWidth) && o.textWidth > 0) { if (BI.isNumber(o.textWidth) && o.textWidth > 0) {
json.width = o.textWidth; json.width = o.textWidth;
if (BI.isNumber(o.height) && o.height > 0) { // 2.1 if (BI.isNumber(o.height) && o.height > 0) { // 2.1
BI.createWidget({ BI.createWidget({
type: "bi.vertical_adapt", type: adaptLayout,
height: o.height, height: o.height,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
element: this, element: this,
@ -47132,7 +47133,7 @@ BI.Label = BI.inherit(BI.Single, {
return; return;
} }
BI.createWidget({ // 2.2 BI.createWidget({ // 2.2
type: "bi.vertical_adapt", type: adaptLayout,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
hgap: o.hgap, hgap: o.hgap,
vgap: o.vgap, vgap: o.vgap,
@ -47168,7 +47169,7 @@ BI.Label = BI.inherit(BI.Single, {
} }
json.width = o.width - 2 * o.hgap - o.lgap - o.rgap; json.width = o.width - 2 * o.hgap - o.lgap - o.rgap;
BI.createWidget({ // 2.4 BI.createWidget({ // 2.4
type: "bi.vertical_adapt", type: adaptLayout,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
hgap: o.hgap, hgap: o.hgap,
vgap: o.vgap, vgap: o.vgap,
@ -47186,7 +47187,7 @@ BI.Label = BI.inherit(BI.Single, {
if (BI.isNumber(o.textWidth) && o.textWidth > 0) { if (BI.isNumber(o.textWidth) && o.textWidth > 0) {
json.width = o.textWidth; json.width = o.textWidth;
BI.createWidget({ // 2.5 BI.createWidget({ // 2.5
type: "bi.vertical_adapt", type: adaptLayout,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
hgap: o.hgap, hgap: o.hgap,
vgap: o.vgap, vgap: o.vgap,
@ -47233,7 +47234,7 @@ BI.Label = BI.inherit(BI.Single, {
maxWidth: "100%" maxWidth: "100%"
})); }));
BI.createWidget({ BI.createWidget({
type: "bi.vertical_adapt", type: adaptLayout,
element: this, element: this,
items: [this.text] items: [this.text]
}); });

24
dist/fineui.ie.min.js vendored

File diff suppressed because one or more lines are too long

23
dist/fineui.js vendored

@ -12478,7 +12478,6 @@ if (!_global.BI) {
} }
kv[xtype] = cls; kv[xtype] = cls;
}; };
// 根据配置属性生成widget // 根据配置属性生成widget
var createWidget = function (config) { var createWidget = function (config) {
if (config["classType"]) { if (config["classType"]) {
@ -47103,13 +47102,14 @@ BI.HtmlLabel = BI.inherit(BI.Single, {
_createNotCenterEl: function () { _createNotCenterEl: function () {
var o = this.options; var o = this.options;
var adaptLayout = o.textAlign === "right" ? "bi.right_vertical_adapt" : "bi.vertical_adapt";
var json = this._createJson(); var json = this._createJson();
if (BI.isNumber(o.width) && o.width > 0) { if (BI.isNumber(o.width) && o.width > 0) {
if (BI.isNumber(o.textWidth) && o.textWidth > 0) { if (BI.isNumber(o.textWidth) && o.textWidth > 0) {
json.width = o.textWidth; json.width = o.textWidth;
if (BI.isNumber(o.height) && o.height > 0) { if (BI.isNumber(o.height) && o.height > 0) {
BI.createWidget({ BI.createWidget({
type: "bi.vertical_adapt", type: adaptLayout,
height: o.height, height: o.height,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
element: this, element: this,
@ -47122,7 +47122,7 @@ BI.HtmlLabel = BI.inherit(BI.Single, {
return; return;
} }
BI.createWidget({ BI.createWidget({
type: "bi.vertical_adapt", type: adaptLayout,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
hgap: o.hgap, hgap: o.hgap,
vgap: o.vgap, vgap: o.vgap,
@ -47158,7 +47158,7 @@ BI.HtmlLabel = BI.inherit(BI.Single, {
} }
json.width = o.width - 2 * o.hgap - o.lgap - o.rgap; json.width = o.width - 2 * o.hgap - o.lgap - o.rgap;
BI.createWidget({ BI.createWidget({
type: "bi.vertical_adapt", type: adaptLayout,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
hgap: o.hgap, hgap: o.hgap,
vgap: o.vgap, vgap: o.vgap,
@ -47176,7 +47176,7 @@ BI.HtmlLabel = BI.inherit(BI.Single, {
if (BI.isNumber(o.textWidth) && o.textWidth > 0) { if (BI.isNumber(o.textWidth) && o.textWidth > 0) {
json.width = o.textWidth; json.width = o.textWidth;
BI.createWidget({ BI.createWidget({
type: "bi.vertical_adapt", type: adaptLayout,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
hgap: o.hgap, hgap: o.hgap,
vgap: o.vgap, vgap: o.vgap,
@ -47223,7 +47223,7 @@ BI.HtmlLabel = BI.inherit(BI.Single, {
maxWidth: "100%" maxWidth: "100%"
})); }));
BI.createWidget({ BI.createWidget({
type: "bi.vertical_adapt", type: adaptLayout,
element: this, element: this,
items: [this.text] items: [this.text]
}); });
@ -47517,13 +47517,14 @@ BI.Label = BI.inherit(BI.Single, {
_createNotCenterEl: function () { _createNotCenterEl: function () {
var o = this.options; var o = this.options;
var adaptLayout = o.textAlign === "right" ? "bi.right_vertical_adapt" : "bi.vertical_adapt";
var json = this._createJson(); var json = this._createJson();
if (BI.isNumber(o.width) && o.width > 0) { if (BI.isNumber(o.width) && o.width > 0) {
if (BI.isNumber(o.textWidth) && o.textWidth > 0) { if (BI.isNumber(o.textWidth) && o.textWidth > 0) {
json.width = o.textWidth; json.width = o.textWidth;
if (BI.isNumber(o.height) && o.height > 0) { // 2.1 if (BI.isNumber(o.height) && o.height > 0) { // 2.1
BI.createWidget({ BI.createWidget({
type: "bi.vertical_adapt", type: adaptLayout,
height: o.height, height: o.height,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
element: this, element: this,
@ -47536,7 +47537,7 @@ BI.Label = BI.inherit(BI.Single, {
return; return;
} }
BI.createWidget({ // 2.2 BI.createWidget({ // 2.2
type: "bi.vertical_adapt", type: adaptLayout,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
hgap: o.hgap, hgap: o.hgap,
vgap: o.vgap, vgap: o.vgap,
@ -47572,7 +47573,7 @@ BI.Label = BI.inherit(BI.Single, {
} }
json.width = o.width - 2 * o.hgap - o.lgap - o.rgap; json.width = o.width - 2 * o.hgap - o.lgap - o.rgap;
BI.createWidget({ // 2.4 BI.createWidget({ // 2.4
type: "bi.vertical_adapt", type: adaptLayout,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
hgap: o.hgap, hgap: o.hgap,
vgap: o.vgap, vgap: o.vgap,
@ -47590,7 +47591,7 @@ BI.Label = BI.inherit(BI.Single, {
if (BI.isNumber(o.textWidth) && o.textWidth > 0) { if (BI.isNumber(o.textWidth) && o.textWidth > 0) {
json.width = o.textWidth; json.width = o.textWidth;
BI.createWidget({ // 2.5 BI.createWidget({ // 2.5
type: "bi.vertical_adapt", type: adaptLayout,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
hgap: o.hgap, hgap: o.hgap,
vgap: o.vgap, vgap: o.vgap,
@ -47637,7 +47638,7 @@ BI.Label = BI.inherit(BI.Single, {
maxWidth: "100%" maxWidth: "100%"
})); }));
BI.createWidget({ BI.createWidget({
type: "bi.vertical_adapt", type: adaptLayout,
element: this, element: this,
items: [this.text] items: [this.text]
}); });

20
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

23
dist/fineui_without_jquery_polyfill.js vendored

@ -12233,7 +12233,6 @@ if (!_global.BI) {
} }
kv[xtype] = cls; kv[xtype] = cls;
}; };
// 根据配置属性生成widget // 根据配置属性生成widget
var createWidget = function (config) { var createWidget = function (config) {
if (config["classType"]) { if (config["classType"]) {
@ -33674,13 +33673,14 @@ BI.HtmlLabel = BI.inherit(BI.Single, {
_createNotCenterEl: function () { _createNotCenterEl: function () {
var o = this.options; var o = this.options;
var adaptLayout = o.textAlign === "right" ? "bi.right_vertical_adapt" : "bi.vertical_adapt";
var json = this._createJson(); var json = this._createJson();
if (BI.isNumber(o.width) && o.width > 0) { if (BI.isNumber(o.width) && o.width > 0) {
if (BI.isNumber(o.textWidth) && o.textWidth > 0) { if (BI.isNumber(o.textWidth) && o.textWidth > 0) {
json.width = o.textWidth; json.width = o.textWidth;
if (BI.isNumber(o.height) && o.height > 0) { if (BI.isNumber(o.height) && o.height > 0) {
BI.createWidget({ BI.createWidget({
type: "bi.vertical_adapt", type: adaptLayout,
height: o.height, height: o.height,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
element: this, element: this,
@ -33693,7 +33693,7 @@ BI.HtmlLabel = BI.inherit(BI.Single, {
return; return;
} }
BI.createWidget({ BI.createWidget({
type: "bi.vertical_adapt", type: adaptLayout,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
hgap: o.hgap, hgap: o.hgap,
vgap: o.vgap, vgap: o.vgap,
@ -33729,7 +33729,7 @@ BI.HtmlLabel = BI.inherit(BI.Single, {
} }
json.width = o.width - 2 * o.hgap - o.lgap - o.rgap; json.width = o.width - 2 * o.hgap - o.lgap - o.rgap;
BI.createWidget({ BI.createWidget({
type: "bi.vertical_adapt", type: adaptLayout,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
hgap: o.hgap, hgap: o.hgap,
vgap: o.vgap, vgap: o.vgap,
@ -33747,7 +33747,7 @@ BI.HtmlLabel = BI.inherit(BI.Single, {
if (BI.isNumber(o.textWidth) && o.textWidth > 0) { if (BI.isNumber(o.textWidth) && o.textWidth > 0) {
json.width = o.textWidth; json.width = o.textWidth;
BI.createWidget({ BI.createWidget({
type: "bi.vertical_adapt", type: adaptLayout,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
hgap: o.hgap, hgap: o.hgap,
vgap: o.vgap, vgap: o.vgap,
@ -33794,7 +33794,7 @@ BI.HtmlLabel = BI.inherit(BI.Single, {
maxWidth: "100%" maxWidth: "100%"
})); }));
BI.createWidget({ BI.createWidget({
type: "bi.vertical_adapt", type: adaptLayout,
element: this, element: this,
items: [this.text] items: [this.text]
}); });
@ -34088,13 +34088,14 @@ BI.Label = BI.inherit(BI.Single, {
_createNotCenterEl: function () { _createNotCenterEl: function () {
var o = this.options; var o = this.options;
var adaptLayout = o.textAlign === "right" ? "bi.right_vertical_adapt" : "bi.vertical_adapt";
var json = this._createJson(); var json = this._createJson();
if (BI.isNumber(o.width) && o.width > 0) { if (BI.isNumber(o.width) && o.width > 0) {
if (BI.isNumber(o.textWidth) && o.textWidth > 0) { if (BI.isNumber(o.textWidth) && o.textWidth > 0) {
json.width = o.textWidth; json.width = o.textWidth;
if (BI.isNumber(o.height) && o.height > 0) { // 2.1 if (BI.isNumber(o.height) && o.height > 0) { // 2.1
BI.createWidget({ BI.createWidget({
type: "bi.vertical_adapt", type: adaptLayout,
height: o.height, height: o.height,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
element: this, element: this,
@ -34107,7 +34108,7 @@ BI.Label = BI.inherit(BI.Single, {
return; return;
} }
BI.createWidget({ // 2.2 BI.createWidget({ // 2.2
type: "bi.vertical_adapt", type: adaptLayout,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
hgap: o.hgap, hgap: o.hgap,
vgap: o.vgap, vgap: o.vgap,
@ -34143,7 +34144,7 @@ BI.Label = BI.inherit(BI.Single, {
} }
json.width = o.width - 2 * o.hgap - o.lgap - o.rgap; json.width = o.width - 2 * o.hgap - o.lgap - o.rgap;
BI.createWidget({ // 2.4 BI.createWidget({ // 2.4
type: "bi.vertical_adapt", type: adaptLayout,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
hgap: o.hgap, hgap: o.hgap,
vgap: o.vgap, vgap: o.vgap,
@ -34161,7 +34162,7 @@ BI.Label = BI.inherit(BI.Single, {
if (BI.isNumber(o.textWidth) && o.textWidth > 0) { if (BI.isNumber(o.textWidth) && o.textWidth > 0) {
json.width = o.textWidth; json.width = o.textWidth;
BI.createWidget({ // 2.5 BI.createWidget({ // 2.5
type: "bi.vertical_adapt", type: adaptLayout,
scrollable: o.whiteSpace === "normal", scrollable: o.whiteSpace === "normal",
hgap: o.hgap, hgap: o.hgap,
vgap: o.vgap, vgap: o.vgap,
@ -34208,7 +34209,7 @@ BI.Label = BI.inherit(BI.Single, {
maxWidth: "100%" maxWidth: "100%"
})); }));
BI.createWidget({ BI.createWidget({
type: "bi.vertical_adapt", type: adaptLayout,
element: this, element: this,
items: [this.text] items: [this.text]
}); });

2
dist/utils.min.js vendored

File diff suppressed because one or more lines are too long

1
src/core/shortcut.js

@ -6,7 +6,6 @@
} }
kv[xtype] = cls; kv[xtype] = cls;
}; };
// 根据配置属性生成widget // 根据配置属性生成widget
var createWidget = function (config) { var createWidget = function (config) {
if (config["classType"]) { if (config["classType"]) {

Loading…
Cancel
Save