Browse Source

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

* commit 'e5fb91a3079a83c139fd48044c0db7b2b8389ec8':
  布局
es6
guy 6 years ago
parent
commit
380f81acca
  1. 2
      dist/2.0/fineui.css
  2. 26
      dist/2.0/fineui.ie.js
  3. 62
      dist/2.0/fineui.ie.min.js
  4. 26
      dist/2.0/fineui.js
  5. 2
      dist/2.0/fineui.min.css
  6. 26
      dist/2.0/fineui.min.js
  7. 2
      dist/bundle.css
  8. 26
      dist/bundle.ie.js
  9. 62
      dist/bundle.ie.min.js
  10. 26
      dist/bundle.js
  11. 2
      dist/bundle.min.css
  12. 26
      dist/bundle.min.js
  13. 2
      dist/core.css
  14. 26
      dist/core.js
  15. 2
      dist/core_without_normalize.css
  16. 2
      dist/fineui.css
  17. 26
      dist/fineui.ie.js
  18. 62
      dist/fineui.ie.min.js
  19. 26
      dist/fineui.js
  20. 2
      dist/fineui.min.css
  21. 26
      dist/fineui.min.js
  22. 26
      dist/fineui_without_jquery_polyfill.js
  23. 2
      dist/utils.min.js
  24. 17
      src/core/wrapper/layout/flex/wrapper/flex.wrapper.center.js
  25. 4
      src/core/wrapper/layout/flex/wrapper/flex.wrapper.horizontal.center.js
  26. 3
      src/core/wrapper/layout/flex/wrapper/flex.wrapper.vertical.center.js
  27. 2
      src/core/wrapper/layout/flex/wrapper/flex.wrapper.vertical.js
  28. 2
      src/css/core/wrapper/flex.css
  29. 1
      src/less/core/wrapper/flex.wrapper.horizontal.less
  30. 1
      src/less/core/wrapper/flex.wrapper.vertical.less

2
dist/2.0/fineui.css vendored

@ -1955,6 +1955,7 @@ textarea {
-o-flex-wrap: nowrap;
flex-wrap: nowrap;
min-height: 100%;
float: left;
}
.bi-flex-scrollable-horizontal-layout .flex-scrollable-horizontal-layout-wrapper.v-middle {
/* 09版 */
@ -2063,6 +2064,7 @@ textarea {
-o-flex-wrap: nowrap;
flex-wrap: nowrap;
min-width: 100%;
float: left;
}
.bi-flex-scrollable-vertical-layout .flex-scrollable-vertical-layout-wrapper.h-center {
/* 09版 */

26
dist/2.0/fineui.ie.js vendored

@ -31583,24 +31583,25 @@ BI.shortcut("bi.flex_vertical", BI.FlexVerticalLayout);/**
*自适应水平和垂直方向都居中容器
* Created by GUY on 2016/12/2.
*
* @class BI.FlexCenterLayout
* @class BI.FlexWrapperCenterLayout
* @extends BI.Layout
*/
BI.FlexCenterLayout = BI.inherit(BI.Layout, {
BI.FlexWrapperCenterLayout = BI.inherit(BI.Layout, {
props: function () {
return BI.extend(BI.FlexCenterLayout.superclass.props.apply(this, arguments), {
baseCls: "bi-flex-scrollable-center-layout clearfix"
return BI.extend(BI.FlexWrapperCenterLayout.superclass.props.apply(this, arguments), {
baseCls: "bi-flex-scrollable-center-layout clearfix",
scrollable: true
});
},
render: function () {
BI.FlexCenterLayout.superclass.render.apply(this, arguments);
BI.FlexWrapperCenterLayout.superclass.render.apply(this, arguments);
this.$wrapper = BI.Widget._renderEngine.createElement("<div>").addClass("flex-scrollable-center-adapt-layout-wrapper");
this.populate(this.options.items);
},
_addElement: function (i, item) {
var o = this.options;
var w = BI.FlexCenterLayout.superclass._addElement.apply(this, arguments);
var w = BI.FlexWrapperCenterLayout.superclass._addElement.apply(this, arguments);
w.element.css({position: "relative"});
return w;
},
@ -31619,11 +31620,11 @@ BI.FlexCenterLayout = BI.inherit(BI.Layout, {
},
populate: function (items) {
BI.FlexCenterLayout.superclass.populate.apply(this, arguments);
BI.FlexWrapperCenterLayout.superclass.populate.apply(this, arguments);
this._mount();
}
});
BI.shortcut("bi.flex_scrollable_center_adapt", BI.FlexCenterLayout);/**
BI.shortcut("bi.flex_scrollable_center_adapt", BI.FlexWrapperCenterLayout);/**
*自适应水平和垂直方向都居中容器
* Created by GUY on 2016/12/2.
*
@ -31636,8 +31637,8 @@ BI.FlexWrapperHorizontalCenter = BI.inherit(BI.Layout, {
baseCls: "bi-flex-scrollable-vertical-center-adapt-layout clearfix",
verticalAlign: BI.VerticalAlign.Top,
rowSize: [],
scrollable: null,
scrolly: true,
scrollable: true,
scrolly: false,
hgap: 0,
vgap: 0,
lgap: 0,
@ -31769,7 +31770,8 @@ BI.FlexWrapperVerticalCenter = BI.inherit(BI.Layout, {
baseCls: "bi-flex-scrollable-vertical-center-adapt-layout clearfix",
horizontalAlign: BI.HorizontalAlign.Left,
columnSize: [],
scrollx: true,
scrollx: false,
scrollable: true,
hgap: 0,
vgap: 0,
lgap: 0,
@ -31833,7 +31835,7 @@ BI.FlexWrapperVerticalLayout = BI.inherit(BI.Layout, {
render: function () {
BI.FlexWrapperVerticalLayout.superclass.render.apply(this, arguments);
var o = this.options;
this.$wrapper = BI.Widget._renderEngine.createElement("<div>").addClass("flex-scrollable-vertical-layout-scrollable h-" + o.horizontalAlign).addClass("v-" + o.verticalAlign);
this.$wrapper = BI.Widget._renderEngine.createElement("<div>").addClass("flex-scrollable-vertical-layout-wrapper h-" + o.horizontalAlign).addClass("v-" + o.verticalAlign);
this.populate(this.options.items);
},

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

File diff suppressed because one or more lines are too long

26
dist/2.0/fineui.js vendored

@ -31583,24 +31583,25 @@ BI.shortcut("bi.flex_vertical", BI.FlexVerticalLayout);/**
*自适应水平和垂直方向都居中容器
* Created by GUY on 2016/12/2.
*
* @class BI.FlexCenterLayout
* @class BI.FlexWrapperCenterLayout
* @extends BI.Layout
*/
BI.FlexCenterLayout = BI.inherit(BI.Layout, {
BI.FlexWrapperCenterLayout = BI.inherit(BI.Layout, {
props: function () {
return BI.extend(BI.FlexCenterLayout.superclass.props.apply(this, arguments), {
baseCls: "bi-flex-scrollable-center-layout clearfix"
return BI.extend(BI.FlexWrapperCenterLayout.superclass.props.apply(this, arguments), {
baseCls: "bi-flex-scrollable-center-layout clearfix",
scrollable: true
});
},
render: function () {
BI.FlexCenterLayout.superclass.render.apply(this, arguments);
BI.FlexWrapperCenterLayout.superclass.render.apply(this, arguments);
this.$wrapper = BI.Widget._renderEngine.createElement("<div>").addClass("flex-scrollable-center-adapt-layout-wrapper");
this.populate(this.options.items);
},
_addElement: function (i, item) {
var o = this.options;
var w = BI.FlexCenterLayout.superclass._addElement.apply(this, arguments);
var w = BI.FlexWrapperCenterLayout.superclass._addElement.apply(this, arguments);
w.element.css({position: "relative"});
return w;
},
@ -31619,11 +31620,11 @@ BI.FlexCenterLayout = BI.inherit(BI.Layout, {
},
populate: function (items) {
BI.FlexCenterLayout.superclass.populate.apply(this, arguments);
BI.FlexWrapperCenterLayout.superclass.populate.apply(this, arguments);
this._mount();
}
});
BI.shortcut("bi.flex_scrollable_center_adapt", BI.FlexCenterLayout);/**
BI.shortcut("bi.flex_scrollable_center_adapt", BI.FlexWrapperCenterLayout);/**
*自适应水平和垂直方向都居中容器
* Created by GUY on 2016/12/2.
*
@ -31636,8 +31637,8 @@ BI.FlexWrapperHorizontalCenter = BI.inherit(BI.Layout, {
baseCls: "bi-flex-scrollable-vertical-center-adapt-layout clearfix",
verticalAlign: BI.VerticalAlign.Top,
rowSize: [],
scrollable: null,
scrolly: true,
scrollable: true,
scrolly: false,
hgap: 0,
vgap: 0,
lgap: 0,
@ -31769,7 +31770,8 @@ BI.FlexWrapperVerticalCenter = BI.inherit(BI.Layout, {
baseCls: "bi-flex-scrollable-vertical-center-adapt-layout clearfix",
horizontalAlign: BI.HorizontalAlign.Left,
columnSize: [],
scrollx: true,
scrollx: false,
scrollable: true,
hgap: 0,
vgap: 0,
lgap: 0,
@ -31833,7 +31835,7 @@ BI.FlexWrapperVerticalLayout = BI.inherit(BI.Layout, {
render: function () {
BI.FlexWrapperVerticalLayout.superclass.render.apply(this, arguments);
var o = this.options;
this.$wrapper = BI.Widget._renderEngine.createElement("<div>").addClass("flex-scrollable-vertical-layout-scrollable h-" + o.horizontalAlign).addClass("v-" + o.verticalAlign);
this.$wrapper = BI.Widget._renderEngine.createElement("<div>").addClass("flex-scrollable-vertical-layout-wrapper h-" + o.horizontalAlign).addClass("v-" + o.verticalAlign);
this.populate(this.options.items);
},

2
dist/2.0/fineui.min.css vendored

File diff suppressed because one or more lines are too long

26
dist/2.0/fineui.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/bundle.css vendored

@ -1955,6 +1955,7 @@ textarea {
-o-flex-wrap: nowrap;
flex-wrap: nowrap;
min-height: 100%;
float: left;
}
.bi-flex-scrollable-horizontal-layout .flex-scrollable-horizontal-layout-wrapper.v-middle {
/* 09版 */
@ -2063,6 +2064,7 @@ textarea {
-o-flex-wrap: nowrap;
flex-wrap: nowrap;
min-width: 100%;
float: left;
}
.bi-flex-scrollable-vertical-layout .flex-scrollable-vertical-layout-wrapper.h-center {
/* 09版 */

26
dist/bundle.ie.js vendored

@ -31583,24 +31583,25 @@ BI.shortcut("bi.flex_vertical", BI.FlexVerticalLayout);/**
*自适应水平和垂直方向都居中容器
* Created by GUY on 2016/12/2.
*
* @class BI.FlexCenterLayout
* @class BI.FlexWrapperCenterLayout
* @extends BI.Layout
*/
BI.FlexCenterLayout = BI.inherit(BI.Layout, {
BI.FlexWrapperCenterLayout = BI.inherit(BI.Layout, {
props: function () {
return BI.extend(BI.FlexCenterLayout.superclass.props.apply(this, arguments), {
baseCls: "bi-flex-scrollable-center-layout clearfix"
return BI.extend(BI.FlexWrapperCenterLayout.superclass.props.apply(this, arguments), {
baseCls: "bi-flex-scrollable-center-layout clearfix",
scrollable: true
});
},
render: function () {
BI.FlexCenterLayout.superclass.render.apply(this, arguments);
BI.FlexWrapperCenterLayout.superclass.render.apply(this, arguments);
this.$wrapper = BI.Widget._renderEngine.createElement("<div>").addClass("flex-scrollable-center-adapt-layout-wrapper");
this.populate(this.options.items);
},
_addElement: function (i, item) {
var o = this.options;
var w = BI.FlexCenterLayout.superclass._addElement.apply(this, arguments);
var w = BI.FlexWrapperCenterLayout.superclass._addElement.apply(this, arguments);
w.element.css({position: "relative"});
return w;
},
@ -31619,11 +31620,11 @@ BI.FlexCenterLayout = BI.inherit(BI.Layout, {
},
populate: function (items) {
BI.FlexCenterLayout.superclass.populate.apply(this, arguments);
BI.FlexWrapperCenterLayout.superclass.populate.apply(this, arguments);
this._mount();
}
});
BI.shortcut("bi.flex_scrollable_center_adapt", BI.FlexCenterLayout);/**
BI.shortcut("bi.flex_scrollable_center_adapt", BI.FlexWrapperCenterLayout);/**
*自适应水平和垂直方向都居中容器
* Created by GUY on 2016/12/2.
*
@ -31636,8 +31637,8 @@ BI.FlexWrapperHorizontalCenter = BI.inherit(BI.Layout, {
baseCls: "bi-flex-scrollable-vertical-center-adapt-layout clearfix",
verticalAlign: BI.VerticalAlign.Top,
rowSize: [],
scrollable: null,
scrolly: true,
scrollable: true,
scrolly: false,
hgap: 0,
vgap: 0,
lgap: 0,
@ -31769,7 +31770,8 @@ BI.FlexWrapperVerticalCenter = BI.inherit(BI.Layout, {
baseCls: "bi-flex-scrollable-vertical-center-adapt-layout clearfix",
horizontalAlign: BI.HorizontalAlign.Left,
columnSize: [],
scrollx: true,
scrollx: false,
scrollable: true,
hgap: 0,
vgap: 0,
lgap: 0,
@ -31833,7 +31835,7 @@ BI.FlexWrapperVerticalLayout = BI.inherit(BI.Layout, {
render: function () {
BI.FlexWrapperVerticalLayout.superclass.render.apply(this, arguments);
var o = this.options;
this.$wrapper = BI.Widget._renderEngine.createElement("<div>").addClass("flex-scrollable-vertical-layout-scrollable h-" + o.horizontalAlign).addClass("v-" + o.verticalAlign);
this.$wrapper = BI.Widget._renderEngine.createElement("<div>").addClass("flex-scrollable-vertical-layout-wrapper h-" + o.horizontalAlign).addClass("v-" + o.verticalAlign);
this.populate(this.options.items);
},

62
dist/bundle.ie.min.js vendored

File diff suppressed because one or more lines are too long

26
dist/bundle.js vendored

@ -31583,24 +31583,25 @@ BI.shortcut("bi.flex_vertical", BI.FlexVerticalLayout);/**
*自适应水平和垂直方向都居中容器
* Created by GUY on 2016/12/2.
*
* @class BI.FlexCenterLayout
* @class BI.FlexWrapperCenterLayout
* @extends BI.Layout
*/
BI.FlexCenterLayout = BI.inherit(BI.Layout, {
BI.FlexWrapperCenterLayout = BI.inherit(BI.Layout, {
props: function () {
return BI.extend(BI.FlexCenterLayout.superclass.props.apply(this, arguments), {
baseCls: "bi-flex-scrollable-center-layout clearfix"
return BI.extend(BI.FlexWrapperCenterLayout.superclass.props.apply(this, arguments), {
baseCls: "bi-flex-scrollable-center-layout clearfix",
scrollable: true
});
},
render: function () {
BI.FlexCenterLayout.superclass.render.apply(this, arguments);
BI.FlexWrapperCenterLayout.superclass.render.apply(this, arguments);
this.$wrapper = BI.Widget._renderEngine.createElement("<div>").addClass("flex-scrollable-center-adapt-layout-wrapper");
this.populate(this.options.items);
},
_addElement: function (i, item) {
var o = this.options;
var w = BI.FlexCenterLayout.superclass._addElement.apply(this, arguments);
var w = BI.FlexWrapperCenterLayout.superclass._addElement.apply(this, arguments);
w.element.css({position: "relative"});
return w;
},
@ -31619,11 +31620,11 @@ BI.FlexCenterLayout = BI.inherit(BI.Layout, {
},
populate: function (items) {
BI.FlexCenterLayout.superclass.populate.apply(this, arguments);
BI.FlexWrapperCenterLayout.superclass.populate.apply(this, arguments);
this._mount();
}
});
BI.shortcut("bi.flex_scrollable_center_adapt", BI.FlexCenterLayout);/**
BI.shortcut("bi.flex_scrollable_center_adapt", BI.FlexWrapperCenterLayout);/**
*自适应水平和垂直方向都居中容器
* Created by GUY on 2016/12/2.
*
@ -31636,8 +31637,8 @@ BI.FlexWrapperHorizontalCenter = BI.inherit(BI.Layout, {
baseCls: "bi-flex-scrollable-vertical-center-adapt-layout clearfix",
verticalAlign: BI.VerticalAlign.Top,
rowSize: [],
scrollable: null,
scrolly: true,
scrollable: true,
scrolly: false,
hgap: 0,
vgap: 0,
lgap: 0,
@ -31769,7 +31770,8 @@ BI.FlexWrapperVerticalCenter = BI.inherit(BI.Layout, {
baseCls: "bi-flex-scrollable-vertical-center-adapt-layout clearfix",
horizontalAlign: BI.HorizontalAlign.Left,
columnSize: [],
scrollx: true,
scrollx: false,
scrollable: true,
hgap: 0,
vgap: 0,
lgap: 0,
@ -31833,7 +31835,7 @@ BI.FlexWrapperVerticalLayout = BI.inherit(BI.Layout, {
render: function () {
BI.FlexWrapperVerticalLayout.superclass.render.apply(this, arguments);
var o = this.options;
this.$wrapper = BI.Widget._renderEngine.createElement("<div>").addClass("flex-scrollable-vertical-layout-scrollable h-" + o.horizontalAlign).addClass("v-" + o.verticalAlign);
this.$wrapper = BI.Widget._renderEngine.createElement("<div>").addClass("flex-scrollable-vertical-layout-wrapper h-" + o.horizontalAlign).addClass("v-" + o.verticalAlign);
this.populate(this.options.items);
},

2
dist/bundle.min.css vendored

File diff suppressed because one or more lines are too long

26
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/core.css vendored

@ -1955,6 +1955,7 @@ textarea {
-o-flex-wrap: nowrap;
flex-wrap: nowrap;
min-height: 100%;
float: left;
}
.bi-flex-scrollable-horizontal-layout .flex-scrollable-horizontal-layout-wrapper.v-middle {
/* 09版 */
@ -2063,6 +2064,7 @@ textarea {
-o-flex-wrap: nowrap;
flex-wrap: nowrap;
min-width: 100%;
float: left;
}
.bi-flex-scrollable-vertical-layout .flex-scrollable-vertical-layout-wrapper.h-center {
/* 09版 */

26
dist/core.js vendored

@ -31583,24 +31583,25 @@ BI.shortcut("bi.flex_vertical", BI.FlexVerticalLayout);/**
*自适应水平和垂直方向都居中容器
* Created by GUY on 2016/12/2.
*
* @class BI.FlexCenterLayout
* @class BI.FlexWrapperCenterLayout
* @extends BI.Layout
*/
BI.FlexCenterLayout = BI.inherit(BI.Layout, {
BI.FlexWrapperCenterLayout = BI.inherit(BI.Layout, {
props: function () {
return BI.extend(BI.FlexCenterLayout.superclass.props.apply(this, arguments), {
baseCls: "bi-flex-scrollable-center-layout clearfix"
return BI.extend(BI.FlexWrapperCenterLayout.superclass.props.apply(this, arguments), {
baseCls: "bi-flex-scrollable-center-layout clearfix",
scrollable: true
});
},
render: function () {
BI.FlexCenterLayout.superclass.render.apply(this, arguments);
BI.FlexWrapperCenterLayout.superclass.render.apply(this, arguments);
this.$wrapper = BI.Widget._renderEngine.createElement("<div>").addClass("flex-scrollable-center-adapt-layout-wrapper");
this.populate(this.options.items);
},
_addElement: function (i, item) {
var o = this.options;
var w = BI.FlexCenterLayout.superclass._addElement.apply(this, arguments);
var w = BI.FlexWrapperCenterLayout.superclass._addElement.apply(this, arguments);
w.element.css({position: "relative"});
return w;
},
@ -31619,11 +31620,11 @@ BI.FlexCenterLayout = BI.inherit(BI.Layout, {
},
populate: function (items) {
BI.FlexCenterLayout.superclass.populate.apply(this, arguments);
BI.FlexWrapperCenterLayout.superclass.populate.apply(this, arguments);
this._mount();
}
});
BI.shortcut("bi.flex_scrollable_center_adapt", BI.FlexCenterLayout);/**
BI.shortcut("bi.flex_scrollable_center_adapt", BI.FlexWrapperCenterLayout);/**
*自适应水平和垂直方向都居中容器
* Created by GUY on 2016/12/2.
*
@ -31636,8 +31637,8 @@ BI.FlexWrapperHorizontalCenter = BI.inherit(BI.Layout, {
baseCls: "bi-flex-scrollable-vertical-center-adapt-layout clearfix",
verticalAlign: BI.VerticalAlign.Top,
rowSize: [],
scrollable: null,
scrolly: true,
scrollable: true,
scrolly: false,
hgap: 0,
vgap: 0,
lgap: 0,
@ -31769,7 +31770,8 @@ BI.FlexWrapperVerticalCenter = BI.inherit(BI.Layout, {
baseCls: "bi-flex-scrollable-vertical-center-adapt-layout clearfix",
horizontalAlign: BI.HorizontalAlign.Left,
columnSize: [],
scrollx: true,
scrollx: false,
scrollable: true,
hgap: 0,
vgap: 0,
lgap: 0,
@ -31833,7 +31835,7 @@ BI.FlexWrapperVerticalLayout = BI.inherit(BI.Layout, {
render: function () {
BI.FlexWrapperVerticalLayout.superclass.render.apply(this, arguments);
var o = this.options;
this.$wrapper = BI.Widget._renderEngine.createElement("<div>").addClass("flex-scrollable-vertical-layout-scrollable h-" + o.horizontalAlign).addClass("v-" + o.verticalAlign);
this.$wrapper = BI.Widget._renderEngine.createElement("<div>").addClass("flex-scrollable-vertical-layout-wrapper h-" + o.horizontalAlign).addClass("v-" + o.verticalAlign);
this.populate(this.options.items);
},

2
dist/core_without_normalize.css vendored

@ -1674,6 +1674,7 @@ textarea {
-o-flex-wrap: nowrap;
flex-wrap: nowrap;
min-height: 100%;
float: left;
}
.bi-flex-scrollable-horizontal-layout .flex-scrollable-horizontal-layout-wrapper.v-middle {
/* 09版 */
@ -1782,6 +1783,7 @@ textarea {
-o-flex-wrap: nowrap;
flex-wrap: nowrap;
min-width: 100%;
float: left;
}
.bi-flex-scrollable-vertical-layout .flex-scrollable-vertical-layout-wrapper.h-center {
/* 09版 */

2
dist/fineui.css vendored

@ -1955,6 +1955,7 @@ textarea {
-o-flex-wrap: nowrap;
flex-wrap: nowrap;
min-height: 100%;
float: left;
}
.bi-flex-scrollable-horizontal-layout .flex-scrollable-horizontal-layout-wrapper.v-middle {
/* 09版 */
@ -2063,6 +2064,7 @@ textarea {
-o-flex-wrap: nowrap;
flex-wrap: nowrap;
min-width: 100%;
float: left;
}
.bi-flex-scrollable-vertical-layout .flex-scrollable-vertical-layout-wrapper.h-center {
/* 09版 */

26
dist/fineui.ie.js vendored

@ -31828,24 +31828,25 @@ BI.shortcut("bi.flex_vertical", BI.FlexVerticalLayout);/**
*自适应水平和垂直方向都居中容器
* Created by GUY on 2016/12/2.
*
* @class BI.FlexCenterLayout
* @class BI.FlexWrapperCenterLayout
* @extends BI.Layout
*/
BI.FlexCenterLayout = BI.inherit(BI.Layout, {
BI.FlexWrapperCenterLayout = BI.inherit(BI.Layout, {
props: function () {
return BI.extend(BI.FlexCenterLayout.superclass.props.apply(this, arguments), {
baseCls: "bi-flex-scrollable-center-layout clearfix"
return BI.extend(BI.FlexWrapperCenterLayout.superclass.props.apply(this, arguments), {
baseCls: "bi-flex-scrollable-center-layout clearfix",
scrollable: true
});
},
render: function () {
BI.FlexCenterLayout.superclass.render.apply(this, arguments);
BI.FlexWrapperCenterLayout.superclass.render.apply(this, arguments);
this.$wrapper = BI.Widget._renderEngine.createElement("<div>").addClass("flex-scrollable-center-adapt-layout-wrapper");
this.populate(this.options.items);
},
_addElement: function (i, item) {
var o = this.options;
var w = BI.FlexCenterLayout.superclass._addElement.apply(this, arguments);
var w = BI.FlexWrapperCenterLayout.superclass._addElement.apply(this, arguments);
w.element.css({position: "relative"});
return w;
},
@ -31864,11 +31865,11 @@ BI.FlexCenterLayout = BI.inherit(BI.Layout, {
},
populate: function (items) {
BI.FlexCenterLayout.superclass.populate.apply(this, arguments);
BI.FlexWrapperCenterLayout.superclass.populate.apply(this, arguments);
this._mount();
}
});
BI.shortcut("bi.flex_scrollable_center_adapt", BI.FlexCenterLayout);/**
BI.shortcut("bi.flex_scrollable_center_adapt", BI.FlexWrapperCenterLayout);/**
*自适应水平和垂直方向都居中容器
* Created by GUY on 2016/12/2.
*
@ -31881,8 +31882,8 @@ BI.FlexWrapperHorizontalCenter = BI.inherit(BI.Layout, {
baseCls: "bi-flex-scrollable-vertical-center-adapt-layout clearfix",
verticalAlign: BI.VerticalAlign.Top,
rowSize: [],
scrollable: null,
scrolly: true,
scrollable: true,
scrolly: false,
hgap: 0,
vgap: 0,
lgap: 0,
@ -32014,7 +32015,8 @@ BI.FlexWrapperVerticalCenter = BI.inherit(BI.Layout, {
baseCls: "bi-flex-scrollable-vertical-center-adapt-layout clearfix",
horizontalAlign: BI.HorizontalAlign.Left,
columnSize: [],
scrollx: true,
scrollx: false,
scrollable: true,
hgap: 0,
vgap: 0,
lgap: 0,
@ -32078,7 +32080,7 @@ BI.FlexWrapperVerticalLayout = BI.inherit(BI.Layout, {
render: function () {
BI.FlexWrapperVerticalLayout.superclass.render.apply(this, arguments);
var o = this.options;
this.$wrapper = BI.Widget._renderEngine.createElement("<div>").addClass("flex-scrollable-vertical-layout-scrollable h-" + o.horizontalAlign).addClass("v-" + o.verticalAlign);
this.$wrapper = BI.Widget._renderEngine.createElement("<div>").addClass("flex-scrollable-vertical-layout-wrapper h-" + o.horizontalAlign).addClass("v-" + o.verticalAlign);
this.populate(this.options.items);
},

62
dist/fineui.ie.min.js vendored

File diff suppressed because one or more lines are too long

26
dist/fineui.js vendored

@ -31828,24 +31828,25 @@ BI.shortcut("bi.flex_vertical", BI.FlexVerticalLayout);/**
*自适应水平和垂直方向都居中容器
* Created by GUY on 2016/12/2.
*
* @class BI.FlexCenterLayout
* @class BI.FlexWrapperCenterLayout
* @extends BI.Layout
*/
BI.FlexCenterLayout = BI.inherit(BI.Layout, {
BI.FlexWrapperCenterLayout = BI.inherit(BI.Layout, {
props: function () {
return BI.extend(BI.FlexCenterLayout.superclass.props.apply(this, arguments), {
baseCls: "bi-flex-scrollable-center-layout clearfix"
return BI.extend(BI.FlexWrapperCenterLayout.superclass.props.apply(this, arguments), {
baseCls: "bi-flex-scrollable-center-layout clearfix",
scrollable: true
});
},
render: function () {
BI.FlexCenterLayout.superclass.render.apply(this, arguments);
BI.FlexWrapperCenterLayout.superclass.render.apply(this, arguments);
this.$wrapper = BI.Widget._renderEngine.createElement("<div>").addClass("flex-scrollable-center-adapt-layout-wrapper");
this.populate(this.options.items);
},
_addElement: function (i, item) {
var o = this.options;
var w = BI.FlexCenterLayout.superclass._addElement.apply(this, arguments);
var w = BI.FlexWrapperCenterLayout.superclass._addElement.apply(this, arguments);
w.element.css({position: "relative"});
return w;
},
@ -31864,11 +31865,11 @@ BI.FlexCenterLayout = BI.inherit(BI.Layout, {
},
populate: function (items) {
BI.FlexCenterLayout.superclass.populate.apply(this, arguments);
BI.FlexWrapperCenterLayout.superclass.populate.apply(this, arguments);
this._mount();
}
});
BI.shortcut("bi.flex_scrollable_center_adapt", BI.FlexCenterLayout);/**
BI.shortcut("bi.flex_scrollable_center_adapt", BI.FlexWrapperCenterLayout);/**
*自适应水平和垂直方向都居中容器
* Created by GUY on 2016/12/2.
*
@ -31881,8 +31882,8 @@ BI.FlexWrapperHorizontalCenter = BI.inherit(BI.Layout, {
baseCls: "bi-flex-scrollable-vertical-center-adapt-layout clearfix",
verticalAlign: BI.VerticalAlign.Top,
rowSize: [],
scrollable: null,
scrolly: true,
scrollable: true,
scrolly: false,
hgap: 0,
vgap: 0,
lgap: 0,
@ -32014,7 +32015,8 @@ BI.FlexWrapperVerticalCenter = BI.inherit(BI.Layout, {
baseCls: "bi-flex-scrollable-vertical-center-adapt-layout clearfix",
horizontalAlign: BI.HorizontalAlign.Left,
columnSize: [],
scrollx: true,
scrollx: false,
scrollable: true,
hgap: 0,
vgap: 0,
lgap: 0,
@ -32078,7 +32080,7 @@ BI.FlexWrapperVerticalLayout = BI.inherit(BI.Layout, {
render: function () {
BI.FlexWrapperVerticalLayout.superclass.render.apply(this, arguments);
var o = this.options;
this.$wrapper = BI.Widget._renderEngine.createElement("<div>").addClass("flex-scrollable-vertical-layout-scrollable h-" + o.horizontalAlign).addClass("v-" + o.verticalAlign);
this.$wrapper = BI.Widget._renderEngine.createElement("<div>").addClass("flex-scrollable-vertical-layout-wrapper h-" + o.horizontalAlign).addClass("v-" + o.verticalAlign);
this.populate(this.options.items);
},

2
dist/fineui.min.css vendored

File diff suppressed because one or more lines are too long

26
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

26
dist/fineui_without_jquery_polyfill.js vendored

@ -20509,24 +20509,25 @@ BI.shortcut("bi.flex_vertical", BI.FlexVerticalLayout);/**
*自适应水平和垂直方向都居中容器
* Created by GUY on 2016/12/2.
*
* @class BI.FlexCenterLayout
* @class BI.FlexWrapperCenterLayout
* @extends BI.Layout
*/
BI.FlexCenterLayout = BI.inherit(BI.Layout, {
BI.FlexWrapperCenterLayout = BI.inherit(BI.Layout, {
props: function () {
return BI.extend(BI.FlexCenterLayout.superclass.props.apply(this, arguments), {
baseCls: "bi-flex-scrollable-center-layout clearfix"
return BI.extend(BI.FlexWrapperCenterLayout.superclass.props.apply(this, arguments), {
baseCls: "bi-flex-scrollable-center-layout clearfix",
scrollable: true
});
},
render: function () {
BI.FlexCenterLayout.superclass.render.apply(this, arguments);
BI.FlexWrapperCenterLayout.superclass.render.apply(this, arguments);
this.$wrapper = BI.Widget._renderEngine.createElement("<div>").addClass("flex-scrollable-center-adapt-layout-wrapper");
this.populate(this.options.items);
},
_addElement: function (i, item) {
var o = this.options;
var w = BI.FlexCenterLayout.superclass._addElement.apply(this, arguments);
var w = BI.FlexWrapperCenterLayout.superclass._addElement.apply(this, arguments);
w.element.css({position: "relative"});
return w;
},
@ -20545,11 +20546,11 @@ BI.FlexCenterLayout = BI.inherit(BI.Layout, {
},
populate: function (items) {
BI.FlexCenterLayout.superclass.populate.apply(this, arguments);
BI.FlexWrapperCenterLayout.superclass.populate.apply(this, arguments);
this._mount();
}
});
BI.shortcut("bi.flex_scrollable_center_adapt", BI.FlexCenterLayout);/**
BI.shortcut("bi.flex_scrollable_center_adapt", BI.FlexWrapperCenterLayout);/**
*自适应水平和垂直方向都居中容器
* Created by GUY on 2016/12/2.
*
@ -20562,8 +20563,8 @@ BI.FlexWrapperHorizontalCenter = BI.inherit(BI.Layout, {
baseCls: "bi-flex-scrollable-vertical-center-adapt-layout clearfix",
verticalAlign: BI.VerticalAlign.Top,
rowSize: [],
scrollable: null,
scrolly: true,
scrollable: true,
scrolly: false,
hgap: 0,
vgap: 0,
lgap: 0,
@ -20695,7 +20696,8 @@ BI.FlexWrapperVerticalCenter = BI.inherit(BI.Layout, {
baseCls: "bi-flex-scrollable-vertical-center-adapt-layout clearfix",
horizontalAlign: BI.HorizontalAlign.Left,
columnSize: [],
scrollx: true,
scrollx: false,
scrollable: true,
hgap: 0,
vgap: 0,
lgap: 0,
@ -20759,7 +20761,7 @@ BI.FlexWrapperVerticalLayout = BI.inherit(BI.Layout, {
render: function () {
BI.FlexWrapperVerticalLayout.superclass.render.apply(this, arguments);
var o = this.options;
this.$wrapper = BI.Widget._renderEngine.createElement("<div>").addClass("flex-scrollable-vertical-layout-scrollable h-" + o.horizontalAlign).addClass("v-" + o.verticalAlign);
this.$wrapper = BI.Widget._renderEngine.createElement("<div>").addClass("flex-scrollable-vertical-layout-wrapper h-" + o.horizontalAlign).addClass("v-" + o.verticalAlign);
this.populate(this.options.items);
},

2
dist/utils.min.js vendored

File diff suppressed because one or more lines are too long

17
src/core/wrapper/layout/flex/wrapper/flex.wrapper.center.js

@ -2,24 +2,25 @@
*自适应水平和垂直方向都居中容器
* Created by GUY on 2016/12/2.
*
* @class BI.FlexCenterLayout
* @class BI.FlexWrapperCenterLayout
* @extends BI.Layout
*/
BI.FlexCenterLayout = BI.inherit(BI.Layout, {
BI.FlexWrapperCenterLayout = BI.inherit(BI.Layout, {
props: function () {
return BI.extend(BI.FlexCenterLayout.superclass.props.apply(this, arguments), {
baseCls: "bi-flex-scrollable-center-layout clearfix"
return BI.extend(BI.FlexWrapperCenterLayout.superclass.props.apply(this, arguments), {
baseCls: "bi-flex-scrollable-center-layout clearfix",
scrollable: true
});
},
render: function () {
BI.FlexCenterLayout.superclass.render.apply(this, arguments);
BI.FlexWrapperCenterLayout.superclass.render.apply(this, arguments);
this.$wrapper = BI.Widget._renderEngine.createElement("<div>").addClass("flex-scrollable-center-adapt-layout-wrapper");
this.populate(this.options.items);
},
_addElement: function (i, item) {
var o = this.options;
var w = BI.FlexCenterLayout.superclass._addElement.apply(this, arguments);
var w = BI.FlexWrapperCenterLayout.superclass._addElement.apply(this, arguments);
w.element.css({position: "relative"});
return w;
},
@ -38,8 +39,8 @@ BI.FlexCenterLayout = BI.inherit(BI.Layout, {
},
populate: function (items) {
BI.FlexCenterLayout.superclass.populate.apply(this, arguments);
BI.FlexWrapperCenterLayout.superclass.populate.apply(this, arguments);
this._mount();
}
});
BI.shortcut("bi.flex_scrollable_center_adapt", BI.FlexCenterLayout);
BI.shortcut("bi.flex_scrollable_center_adapt", BI.FlexWrapperCenterLayout);

4
src/core/wrapper/layout/flex/wrapper/flex.wrapper.horizontal.center.js

@ -11,8 +11,8 @@ BI.FlexWrapperHorizontalCenter = BI.inherit(BI.Layout, {
baseCls: "bi-flex-scrollable-vertical-center-adapt-layout clearfix",
verticalAlign: BI.VerticalAlign.Top,
rowSize: [],
scrollable: null,
scrolly: true,
scrollable: true,
scrolly: false,
hgap: 0,
vgap: 0,
lgap: 0,

3
src/core/wrapper/layout/flex/wrapper/flex.wrapper.vertical.center.js

@ -11,7 +11,8 @@ BI.FlexWrapperVerticalCenter = BI.inherit(BI.Layout, {
baseCls: "bi-flex-scrollable-vertical-center-adapt-layout clearfix",
horizontalAlign: BI.HorizontalAlign.Left,
columnSize: [],
scrollx: true,
scrollx: false,
scrollable: true,
hgap: 0,
vgap: 0,
lgap: 0,

2
src/core/wrapper/layout/flex/wrapper/flex.wrapper.vertical.js

@ -25,7 +25,7 @@ BI.FlexWrapperVerticalLayout = BI.inherit(BI.Layout, {
render: function () {
BI.FlexWrapperVerticalLayout.superclass.render.apply(this, arguments);
var o = this.options;
this.$wrapper = BI.Widget._renderEngine.createElement("<div>").addClass("flex-scrollable-vertical-layout-scrollable h-" + o.horizontalAlign).addClass("v-" + o.verticalAlign);
this.$wrapper = BI.Widget._renderEngine.createElement("<div>").addClass("flex-scrollable-vertical-layout-wrapper h-" + o.horizontalAlign).addClass("v-" + o.verticalAlign);
this.populate(this.options.items);
},

2
src/css/core/wrapper/flex.css

@ -351,6 +351,7 @@
-o-flex-wrap: nowrap;
flex-wrap: nowrap;
min-height: 100%;
float: left;
}
.bi-flex-scrollable-horizontal-layout .flex-scrollable-horizontal-layout-wrapper.v-middle {
/* 09版 */
@ -459,6 +460,7 @@
-o-flex-wrap: nowrap;
flex-wrap: nowrap;
min-width: 100%;
float: left;
}
.bi-flex-scrollable-vertical-layout .flex-scrollable-vertical-layout-wrapper.h-center {
/* 09版 */

1
src/less/core/wrapper/flex.wrapper.horizontal.less

@ -45,6 +45,7 @@
flex-wrap: nowrap;
min-height: 100%;
float: left;
&.v-middle {
/* 09版 */

1
src/less/core/wrapper/flex.wrapper.vertical.less

@ -45,6 +45,7 @@
flex-wrap: nowrap;
min-width: 100%;
float: left;
&.h-center {
/* 09版 */

Loading…
Cancel
Save