guy 7 years ago
parent
commit
fc0c1911a2
  1. 4
      Gruntfile.js
  2. 65
      dist/bundle.css
  3. 310
      dist/bundle.js
  4. 2
      dist/bundle.min.css
  5. 18
      dist/bundle.min.js
  6. 65
      dist/core.css
  7. 310
      dist/core.js
  8. 65
      dist/core_without_normalize.css
  9. 65
      dist/fineui.css
  10. 310
      dist/fineui.js
  11. 2
      dist/fineui.min.css
  12. 18
      dist/fineui.min.js
  13. 0
      src/core/config.js
  14. 3
      src/css/core/wrapper/flex.center.css
  15. 18
      src/css/core/wrapper/flex.css
  16. 3
      src/css/core/wrapper/flex.horizontal.css
  17. 3
      src/css/core/wrapper/flex.vertical.center.css
  18. 3
      src/css/core/wrapper/flex.wrapper.center.css
  19. 3
      src/css/core/wrapper/flex.wrapper.horizontal.css
  20. 3
      src/css/core/wrapper/flex.wrapper.vertical.center.css
  21. 7
      src/css/core/wrapper/inline.center.css
  22. 15
      src/css/core/wrapper/inline.css
  23. 7
      src/css/core/wrapper/inline.vertical.css
  24. 3
      src/less/core/wrapper/flex.center.less
  25. 3
      src/less/core/wrapper/flex.horizontal.less
  26. 3
      src/less/core/wrapper/flex.vertical.center.less
  27. 3
      src/less/core/wrapper/flex.wrapper.center.less
  28. 3
      src/less/core/wrapper/flex.wrapper.horizontal.less
  29. 3
      src/less/core/wrapper/flex.wrapper.vertical.center.less
  30. 11
      src/less/core/wrapper/inline.center.less
  31. 11
      src/less/core/wrapper/inline.vertical.less

4
Gruntfile.js

@ -26,11 +26,11 @@ module.exports = function (grunt) {
"src/core/utils/*.js", "src/core/utils/*.js",
"src/core/behavior/behavior.js", "src/core/behavior/behavior.js",
"src/core/wrapper/layout.js", "src/core/wrapper/layout.js",
"src/core/plugin.js",
"src/core/**/*.js", "src/core/**/*.js",
"src/data/data.js", "src/data/data.js",
"src/data/**/*.js", "src/data/**/*.js"
"src/config.js"
], ],
dest: "dist/core.js" dest: "dist/core.js"
}, },

65
dist/bundle.css vendored

@ -1323,9 +1323,6 @@ textarea {
-o-align-items: center; -o-align-items: center;
align-items: center; align-items: center;
} }
.bi-flex-center-layout > * {
margin: auto;
}
.bi-flex-center-layout { .bi-flex-center-layout {
display: box; display: box;
/* OLD - Android 4.4- */ /* OLD - Android 4.4- */
@ -1366,9 +1363,6 @@ textarea {
-o-align-items: center; -o-align-items: center;
align-items: center; align-items: center;
} }
.bi-flex-center-layout > * {
margin: auto;
}
.bi-flex-horizontal-layout { .bi-flex-horizontal-layout {
display: box; display: box;
@ -1440,9 +1434,6 @@ textarea {
-o-align-items: flex-end; -o-align-items: flex-end;
align-items: flex-end; align-items: flex-end;
} }
.bi-flex-horizontal-layout > * {
margin: auto;
}
.bi-flex-vertical-center { .bi-flex-vertical-center {
display: box; display: box;
@ -1520,9 +1511,6 @@ textarea {
-o-align-items: stretch; -o-align-items: stretch;
align-items: stretch; align-items: stretch;
} }
.bi-flex-vertical-center > * {
margin: auto;
}
.bi-flex-wrapper-center-layout .flex-wrapper-center-layout-wrapper { .bi-flex-wrapper-center-layout .flex-wrapper-center-layout-wrapper {
display: box; display: box;
@ -1567,9 +1555,6 @@ textarea {
min-height: 100%; min-height: 100%;
float: left; float: left;
} }
.bi-flex-wrapper-center-layout > * {
margin: auto;
}
.bi-flex-wrapper-horizontal-layout .flex-wrapper-horizontal-layout-wrapper { .bi-flex-wrapper-horizontal-layout .flex-wrapper-horizontal-layout-wrapper {
display: box; display: box;
@ -1640,9 +1625,6 @@ textarea {
-o-align-items: flex-end; -o-align-items: flex-end;
align-items: flex-end; align-items: flex-end;
} }
.bi-flex-wrapper-horizontal-layout .flex-wrapper-horizontal-layout-wrapper > * {
margin: auto;
}
.bi-flex-wrapper-vertical-center .flex-wrapper-vertical-center-wrapper { .bi-flex-wrapper-vertical-center .flex-wrapper-vertical-center-wrapper {
display: box; display: box;
@ -1721,9 +1703,6 @@ textarea {
-o-align-items: stretch; -o-align-items: stretch;
align-items: stretch; align-items: stretch;
} }
.bi-flex-wrapper-vertical-center .flex-wrapper-vertical-center-wrapper > * {
margin: auto;
}
.bi-flex-horizontal-layout { .bi-flex-horizontal-layout {
display: box; display: box;
/* OLD - Android 4.4- */ /* OLD - Android 4.4- */
@ -1794,9 +1773,6 @@ textarea {
-o-align-items: flex-end; -o-align-items: flex-end;
align-items: flex-end; align-items: flex-end;
} }
.bi-flex-horizontal-layout > * {
margin: auto;
}
.bi-flex-vertical-center { .bi-flex-vertical-center {
display: box; display: box;
/* OLD - Android 4.4- */ /* OLD - Android 4.4- */
@ -1873,9 +1849,6 @@ textarea {
-o-align-items: stretch; -o-align-items: stretch;
align-items: stretch; align-items: stretch;
} }
.bi-flex-vertical-center > * {
margin: auto;
}
.bi-flex-wrapper-center-layout .flex-wrapper-center-layout-wrapper { .bi-flex-wrapper-center-layout .flex-wrapper-center-layout-wrapper {
display: box; display: box;
/* OLD - Android 4.4- */ /* OLD - Android 4.4- */
@ -1919,9 +1892,6 @@ textarea {
min-height: 100%; min-height: 100%;
float: left; float: left;
} }
.bi-flex-wrapper-center-layout > * {
margin: auto;
}
.bi-flex-wrapper-horizontal-layout .flex-wrapper-horizontal-layout-wrapper { .bi-flex-wrapper-horizontal-layout .flex-wrapper-horizontal-layout-wrapper {
display: box; display: box;
/* OLD - Android 4.4- */ /* OLD - Android 4.4- */
@ -1991,9 +1961,6 @@ textarea {
-o-align-items: flex-end; -o-align-items: flex-end;
align-items: flex-end; align-items: flex-end;
} }
.bi-flex-wrapper-horizontal-layout .flex-wrapper-horizontal-layout-wrapper > * {
margin: auto;
}
.bi-flex-wrapper-vertical-center .flex-wrapper-vertical-center-wrapper { .bi-flex-wrapper-vertical-center .flex-wrapper-vertical-center-wrapper {
display: box; display: box;
/* OLD - Android 4.4- */ /* OLD - Android 4.4- */
@ -2071,38 +2038,6 @@ textarea {
-o-align-items: stretch; -o-align-items: stretch;
align-items: stretch; align-items: stretch;
} }
.bi-flex-wrapper-vertical-center .flex-wrapper-vertical-center-wrapper > * {
margin: auto;
}
.bi-inline-center-adapt-layout:after {
display: inline-block;
width: 0;
min-height: 100%;
vertical-align: middle;
content: ' ';
}
.bi-inline-center-adapt-layout:after {
display: inline-block;
width: 0;
min-height: 100%;
vertical-align: middle;
content: ' ';
}
.bi-inline-vertical-adapt-layout:after {
display: inline-block;
width: 0;
min-height: 100%;
vertical-align: middle;
content: ' ';
}
.bi-inline-vertical-adapt-layout:after {
display: inline-block;
width: 0;
min-height: 100%;
vertical-align: middle;
content: ' ';
}
.bi-theme-dark { .bi-theme-dark {
background-color: #191B2B; background-color: #191B2B;
color: #cccccc; color: #cccccc;

310
dist/bundle.js vendored

@ -17102,7 +17102,63 @@ BI.Layout = BI.inherit(BI.Widget, {
} }
}); });
BI.shortcut("bi.layout", BI.Layout);/** BI.shortcut("bi.layout", BI.Layout);BI.Plugin = BI.Plugin || {};
!(function () {
var _WidgetsPlugin = {};
var _ObjectPlugin = {};
BI.extend(BI.Plugin, {
getWidget: function (type, options) {
if (_WidgetsPlugin[type]) {
var res;
for (var i = _WidgetsPlugin[type].length - 1; i >= 0; i--) {
if (res = _WidgetsPlugin[type][i](options)) {
return res;
}
}
}
return options;
},
registerWidget: function (type, fn) {
if (!_WidgetsPlugin[type]) {
_WidgetsPlugin[type] = [];
}
if (_WidgetsPlugin[type].length > 0) {
console.log("组件已经注册过了!");
}
_WidgetsPlugin[type].push(fn);
},
relieveWidget: function (type) {
delete _WidgetsPlugin[type];
},
getObject: function (type, object) {
if (_ObjectPlugin[type]) {
var res;
for (var i = 0, len = _ObjectPlugin[type].length; i < len; i++) {
res = _ObjectPlugin[type][i](object);
}
}
return res || object;
},
registerObject: function (type, fn) {
if (!_ObjectPlugin[type]) {
_ObjectPlugin[type] = [];
}
if (_ObjectPlugin[type].length > 0) {
console.log("对象已经注册过了!");
}
_ObjectPlugin[type].push(fn);
},
relieveObject: function (type) {
delete _ObjectPlugin[type];
}
});
})();/**
* guy * guy
* 由一个元素切换到另一个元素的行为 * 由一个元素切换到另一个元素的行为
* @class BI.Action * @class BI.Action
@ -17952,7 +18008,102 @@ BI.RedMarkBehavior = BI.inherit(BI.Behavior, {
} }
}); });
} }
});/** });// 工程配置
(function () {
// 注册布局
var isSupportFlex = BI.isSupportCss3("flex");
BI.Plugin.registerWidget("bi.horizontal", function (ob) {
if (isSupportFlex) {
return BI.extend(ob, {type: "bi.flex_horizontal"});
}
return ob;
});
BI.Plugin.registerWidget("bi.center_adapt", function (ob) {
if (isSupportFlex && ob.items && ob.items.length <= 1) {
// 有滚动条的情况下需要用到flex_wrapper_center布局
if (ob.scrollable === true || ob.scrollx === true || ob.scrolly === true) {
// 不是IE用flex_wrapper_center布局
if (!BI.isIE()) {
return BI.extend(ob, {type: "bi.flex_wrapper_center"});
}
return ob;
}
return BI.extend(ob, {type: "bi.flex_center"});
}
return ob;
});
BI.Plugin.registerWidget("bi.vertical_adapt", function (ob) {
if (isSupportFlex) {
// 有滚动条的情况下需要用到flex_wrapper_center布局
if (ob.scrollable === true || ob.scrollx === true || ob.scrolly === true) {
// 不是IE用flex_wrapper_center布局
if (!BI.isIE()) {
return BI.extend({}, ob, {type: "bi.flex_wrapper_vertical_center"});
}
return ob;
}
return BI.extend(ob, {type: "bi.flex_vertical_center"});
}
return ob;
});
BI.Plugin.registerWidget("bi.float_center_adapt", function (ob) {
if (isSupportFlex) {
// 有滚动条的情况下需要用到flex_wrapper_center布局
if (ob.scrollable === true || ob.scrollx === true || ob.scrolly === true) {
// 不是IE用flex_wrapper_center布局
if (!BI.isIE()) {
return BI.extend({}, ob, {type: "bi.flex_wrapper_center"});
}
return ob;
}
return BI.extend(ob, {type: "bi.flex_center"});
}
return ob;
});
// 注册滚动条
BI.Plugin.registerWidget("bi.grid_table_scrollbar", function (ob) {
if (BI.isIE9Below()) {
return BI.extend(ob, {type: "bi.native_table_scrollbar"});
}
return ob;
});
BI.Plugin.registerWidget("bi.grid_table_horizontal_scrollbar", function (ob) {
if (BI.isIE9Below()) {
return BI.extend(ob, {type: "bi.native_table_horizontal_scrollbar"});
}
return ob;
});
// 注册控件
BI.Plugin.registerWidget("bi.grid_table", function (ob) {
// 非chrome下滚动条滑动效果不好,禁止掉
if (!(BI.isChrome() && BI.isWindows() && !BI.isEdge())) {
return BI.extend(ob, {type: "bi.quick_grid_table"});
}
return ob;
});
BI.Plugin.registerWidget("bi.collection_table", function (ob) {
// 非chrome下滚动条滑动效果不好,禁止掉
if (!(BI.isChrome() && BI.isWindows() && !BI.isEdge())) {
return BI.extend(ob, {type: "bi.quick_collection_table"});
}
return ob;
});
// IE8下滚动条用原生的
$(function () {
if (BI.isIE9Below()) {
BI.GridTableScrollbar.SIZE = 18;
}
});
}());/**
* guy * guy
* 控制器 * 控制器
* Controller层超类 * Controller层超类
@ -20588,63 +20739,7 @@ BI.HorizontalFillLayoutLogic = BI.inherit(BI.Logic, {
_init: function () { _init: function () {
BI.HorizontalFillLayoutLogic.superclass._init.apply(this, arguments); BI.HorizontalFillLayoutLogic.superclass._init.apply(this, arguments);
} }
});BI.Plugin = BI.Plugin || {}; });/**
!(function () {
var _WidgetsPlugin = {};
var _ObjectPlugin = {};
BI.extend(BI.Plugin, {
getWidget: function (type, options) {
if (_WidgetsPlugin[type]) {
var res;
for (var i = _WidgetsPlugin[type].length - 1; i >= 0; i--) {
if (res = _WidgetsPlugin[type][i](options)) {
return res;
}
}
}
return options;
},
registerWidget: function (type, fn) {
if (!_WidgetsPlugin[type]) {
_WidgetsPlugin[type] = [];
}
if (_WidgetsPlugin[type].length > 0) {
console.log("组件已经注册过了!");
}
_WidgetsPlugin[type].push(fn);
},
relieveWidget: function (type) {
delete _WidgetsPlugin[type];
},
getObject: function (type, object) {
if (_ObjectPlugin[type]) {
var res;
for (var i = 0, len = _ObjectPlugin[type].length; i < len; i++) {
res = _ObjectPlugin[type][i](object);
}
}
return res || object;
},
registerObject: function (type, fn) {
if (!_ObjectPlugin[type]) {
_ObjectPlugin[type] = [];
}
if (_ObjectPlugin[type].length > 0) {
console.log("对象已经注册过了!");
}
_ObjectPlugin[type].push(fn);
},
relieveObject: function (type) {
delete _ObjectPlugin[type];
}
});
})();/**
* 对数组对象的扩展 * 对数组对象的扩展
* @class Array * @class Array
*/ */
@ -25776,102 +25871,7 @@ Data.Constant = BICst = {};
}; };
Data.Source = BISource = { Data.Source = BISource = {
};// 工程配置 };/* !
(function () {
// 注册布局
var isSupportFlex = BI.isSupportCss3("flex");
BI.Plugin.registerWidget("bi.horizontal", function (ob) {
if (isSupportFlex) {
return BI.extend(ob, {type: "bi.flex_horizontal"});
}
return ob;
});
BI.Plugin.registerWidget("bi.center_adapt", function (ob) {
if (isSupportFlex && ob.items && ob.items.length <= 1) {
// 有滚动条的情况下需要用到flex_wrapper_center布局
if (ob.scrollable === true || ob.scrollx === true || ob.scrolly === true) {
// 不是IE用flex_wrapper_center布局
if (!BI.isIE()) {
return BI.extend(ob, {type: "bi.flex_wrapper_center"});
}
return ob;
}
return BI.extend(ob, {type: "bi.flex_center"});
}
return ob;
});
BI.Plugin.registerWidget("bi.vertical_adapt", function (ob) {
if (isSupportFlex) {
// 有滚动条的情况下需要用到flex_wrapper_center布局
if (ob.scrollable === true || ob.scrollx === true || ob.scrolly === true) {
// 不是IE用flex_wrapper_center布局
if (!BI.isIE()) {
return BI.extend({}, ob, {type: "bi.flex_wrapper_vertical_center"});
}
return ob;
}
return BI.extend(ob, {type: "bi.flex_vertical_center"});
}
return ob;
});
BI.Plugin.registerWidget("bi.float_center_adapt", function (ob) {
if (isSupportFlex) {
// 有滚动条的情况下需要用到flex_wrapper_center布局
if (ob.scrollable === true || ob.scrollx === true || ob.scrolly === true) {
// 不是IE用flex_wrapper_center布局
if (!BI.isIE()) {
return BI.extend({}, ob, {type: "bi.flex_wrapper_center"});
}
return ob;
}
return BI.extend(ob, {type: "bi.flex_center"});
}
return ob;
});
// 注册滚动条
BI.Plugin.registerWidget("bi.grid_table_scrollbar", function (ob) {
if (BI.isIE9Below()) {
return BI.extend(ob, {type: "bi.native_table_scrollbar"});
}
return ob;
});
BI.Plugin.registerWidget("bi.grid_table_horizontal_scrollbar", function (ob) {
if (BI.isIE9Below()) {
return BI.extend(ob, {type: "bi.native_table_horizontal_scrollbar"});
}
return ob;
});
// 注册控件
BI.Plugin.registerWidget("bi.grid_table", function (ob) {
// 非chrome下滚动条滑动效果不好,禁止掉
if (!(BI.isChrome() && BI.isWindows() && !BI.isEdge())) {
return BI.extend(ob, {type: "bi.quick_grid_table"});
}
return ob;
});
BI.Plugin.registerWidget("bi.collection_table", function (ob) {
// 非chrome下滚动条滑动效果不好,禁止掉
if (!(BI.isChrome() && BI.isWindows() && !BI.isEdge())) {
return BI.extend(ob, {type: "bi.quick_collection_table"});
}
return ob;
});
// IE8下滚动条用原生的
$(function () {
if (BI.isIE9Below()) {
BI.GridTableScrollbar.SIZE = 18;
}
});
}());/* !
* jQuery Mousewheel 3.1.13 * jQuery Mousewheel 3.1.13
* *
* Copyright jQuery Foundation and other contributors * Copyright jQuery Foundation and other contributors

2
dist/bundle.min.css vendored

File diff suppressed because one or more lines are too long

18
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

65
dist/core.css vendored

@ -1323,9 +1323,6 @@ textarea {
-o-align-items: center; -o-align-items: center;
align-items: center; align-items: center;
} }
.bi-flex-center-layout > * {
margin: auto;
}
.bi-flex-center-layout { .bi-flex-center-layout {
display: box; display: box;
/* OLD - Android 4.4- */ /* OLD - Android 4.4- */
@ -1366,9 +1363,6 @@ textarea {
-o-align-items: center; -o-align-items: center;
align-items: center; align-items: center;
} }
.bi-flex-center-layout > * {
margin: auto;
}
.bi-flex-horizontal-layout { .bi-flex-horizontal-layout {
display: box; display: box;
@ -1440,9 +1434,6 @@ textarea {
-o-align-items: flex-end; -o-align-items: flex-end;
align-items: flex-end; align-items: flex-end;
} }
.bi-flex-horizontal-layout > * {
margin: auto;
}
.bi-flex-vertical-center { .bi-flex-vertical-center {
display: box; display: box;
@ -1520,9 +1511,6 @@ textarea {
-o-align-items: stretch; -o-align-items: stretch;
align-items: stretch; align-items: stretch;
} }
.bi-flex-vertical-center > * {
margin: auto;
}
.bi-flex-wrapper-center-layout .flex-wrapper-center-layout-wrapper { .bi-flex-wrapper-center-layout .flex-wrapper-center-layout-wrapper {
display: box; display: box;
@ -1567,9 +1555,6 @@ textarea {
min-height: 100%; min-height: 100%;
float: left; float: left;
} }
.bi-flex-wrapper-center-layout > * {
margin: auto;
}
.bi-flex-wrapper-horizontal-layout .flex-wrapper-horizontal-layout-wrapper { .bi-flex-wrapper-horizontal-layout .flex-wrapper-horizontal-layout-wrapper {
display: box; display: box;
@ -1640,9 +1625,6 @@ textarea {
-o-align-items: flex-end; -o-align-items: flex-end;
align-items: flex-end; align-items: flex-end;
} }
.bi-flex-wrapper-horizontal-layout .flex-wrapper-horizontal-layout-wrapper > * {
margin: auto;
}
.bi-flex-wrapper-vertical-center .flex-wrapper-vertical-center-wrapper { .bi-flex-wrapper-vertical-center .flex-wrapper-vertical-center-wrapper {
display: box; display: box;
@ -1721,9 +1703,6 @@ textarea {
-o-align-items: stretch; -o-align-items: stretch;
align-items: stretch; align-items: stretch;
} }
.bi-flex-wrapper-vertical-center .flex-wrapper-vertical-center-wrapper > * {
margin: auto;
}
.bi-flex-horizontal-layout { .bi-flex-horizontal-layout {
display: box; display: box;
/* OLD - Android 4.4- */ /* OLD - Android 4.4- */
@ -1794,9 +1773,6 @@ textarea {
-o-align-items: flex-end; -o-align-items: flex-end;
align-items: flex-end; align-items: flex-end;
} }
.bi-flex-horizontal-layout > * {
margin: auto;
}
.bi-flex-vertical-center { .bi-flex-vertical-center {
display: box; display: box;
/* OLD - Android 4.4- */ /* OLD - Android 4.4- */
@ -1873,9 +1849,6 @@ textarea {
-o-align-items: stretch; -o-align-items: stretch;
align-items: stretch; align-items: stretch;
} }
.bi-flex-vertical-center > * {
margin: auto;
}
.bi-flex-wrapper-center-layout .flex-wrapper-center-layout-wrapper { .bi-flex-wrapper-center-layout .flex-wrapper-center-layout-wrapper {
display: box; display: box;
/* OLD - Android 4.4- */ /* OLD - Android 4.4- */
@ -1919,9 +1892,6 @@ textarea {
min-height: 100%; min-height: 100%;
float: left; float: left;
} }
.bi-flex-wrapper-center-layout > * {
margin: auto;
}
.bi-flex-wrapper-horizontal-layout .flex-wrapper-horizontal-layout-wrapper { .bi-flex-wrapper-horizontal-layout .flex-wrapper-horizontal-layout-wrapper {
display: box; display: box;
/* OLD - Android 4.4- */ /* OLD - Android 4.4- */
@ -1991,9 +1961,6 @@ textarea {
-o-align-items: flex-end; -o-align-items: flex-end;
align-items: flex-end; align-items: flex-end;
} }
.bi-flex-wrapper-horizontal-layout .flex-wrapper-horizontal-layout-wrapper > * {
margin: auto;
}
.bi-flex-wrapper-vertical-center .flex-wrapper-vertical-center-wrapper { .bi-flex-wrapper-vertical-center .flex-wrapper-vertical-center-wrapper {
display: box; display: box;
/* OLD - Android 4.4- */ /* OLD - Android 4.4- */
@ -2071,38 +2038,6 @@ textarea {
-o-align-items: stretch; -o-align-items: stretch;
align-items: stretch; align-items: stretch;
} }
.bi-flex-wrapper-vertical-center .flex-wrapper-vertical-center-wrapper > * {
margin: auto;
}
.bi-inline-center-adapt-layout:after {
display: inline-block;
width: 0;
min-height: 100%;
vertical-align: middle;
content: ' ';
}
.bi-inline-center-adapt-layout:after {
display: inline-block;
width: 0;
min-height: 100%;
vertical-align: middle;
content: ' ';
}
.bi-inline-vertical-adapt-layout:after {
display: inline-block;
width: 0;
min-height: 100%;
vertical-align: middle;
content: ' ';
}
.bi-inline-vertical-adapt-layout:after {
display: inline-block;
width: 0;
min-height: 100%;
vertical-align: middle;
content: ' ';
}
.bi-theme-dark { .bi-theme-dark {
background-color: #191B2B; background-color: #191B2B;
color: #cccccc; color: #cccccc;

310
dist/core.js vendored

@ -17102,7 +17102,63 @@ BI.Layout = BI.inherit(BI.Widget, {
} }
}); });
BI.shortcut("bi.layout", BI.Layout);/** BI.shortcut("bi.layout", BI.Layout);BI.Plugin = BI.Plugin || {};
!(function () {
var _WidgetsPlugin = {};
var _ObjectPlugin = {};
BI.extend(BI.Plugin, {
getWidget: function (type, options) {
if (_WidgetsPlugin[type]) {
var res;
for (var i = _WidgetsPlugin[type].length - 1; i >= 0; i--) {
if (res = _WidgetsPlugin[type][i](options)) {
return res;
}
}
}
return options;
},
registerWidget: function (type, fn) {
if (!_WidgetsPlugin[type]) {
_WidgetsPlugin[type] = [];
}
if (_WidgetsPlugin[type].length > 0) {
console.log("组件已经注册过了!");
}
_WidgetsPlugin[type].push(fn);
},
relieveWidget: function (type) {
delete _WidgetsPlugin[type];
},
getObject: function (type, object) {
if (_ObjectPlugin[type]) {
var res;
for (var i = 0, len = _ObjectPlugin[type].length; i < len; i++) {
res = _ObjectPlugin[type][i](object);
}
}
return res || object;
},
registerObject: function (type, fn) {
if (!_ObjectPlugin[type]) {
_ObjectPlugin[type] = [];
}
if (_ObjectPlugin[type].length > 0) {
console.log("对象已经注册过了!");
}
_ObjectPlugin[type].push(fn);
},
relieveObject: function (type) {
delete _ObjectPlugin[type];
}
});
})();/**
* guy * guy
* 由一个元素切换到另一个元素的行为 * 由一个元素切换到另一个元素的行为
* @class BI.Action * @class BI.Action
@ -17952,7 +18008,102 @@ BI.RedMarkBehavior = BI.inherit(BI.Behavior, {
} }
}); });
} }
});/** });// 工程配置
(function () {
// 注册布局
var isSupportFlex = BI.isSupportCss3("flex");
BI.Plugin.registerWidget("bi.horizontal", function (ob) {
if (isSupportFlex) {
return BI.extend(ob, {type: "bi.flex_horizontal"});
}
return ob;
});
BI.Plugin.registerWidget("bi.center_adapt", function (ob) {
if (isSupportFlex && ob.items && ob.items.length <= 1) {
// 有滚动条的情况下需要用到flex_wrapper_center布局
if (ob.scrollable === true || ob.scrollx === true || ob.scrolly === true) {
// 不是IE用flex_wrapper_center布局
if (!BI.isIE()) {
return BI.extend(ob, {type: "bi.flex_wrapper_center"});
}
return ob;
}
return BI.extend(ob, {type: "bi.flex_center"});
}
return ob;
});
BI.Plugin.registerWidget("bi.vertical_adapt", function (ob) {
if (isSupportFlex) {
// 有滚动条的情况下需要用到flex_wrapper_center布局
if (ob.scrollable === true || ob.scrollx === true || ob.scrolly === true) {
// 不是IE用flex_wrapper_center布局
if (!BI.isIE()) {
return BI.extend({}, ob, {type: "bi.flex_wrapper_vertical_center"});
}
return ob;
}
return BI.extend(ob, {type: "bi.flex_vertical_center"});
}
return ob;
});
BI.Plugin.registerWidget("bi.float_center_adapt", function (ob) {
if (isSupportFlex) {
// 有滚动条的情况下需要用到flex_wrapper_center布局
if (ob.scrollable === true || ob.scrollx === true || ob.scrolly === true) {
// 不是IE用flex_wrapper_center布局
if (!BI.isIE()) {
return BI.extend({}, ob, {type: "bi.flex_wrapper_center"});
}
return ob;
}
return BI.extend(ob, {type: "bi.flex_center"});
}
return ob;
});
// 注册滚动条
BI.Plugin.registerWidget("bi.grid_table_scrollbar", function (ob) {
if (BI.isIE9Below()) {
return BI.extend(ob, {type: "bi.native_table_scrollbar"});
}
return ob;
});
BI.Plugin.registerWidget("bi.grid_table_horizontal_scrollbar", function (ob) {
if (BI.isIE9Below()) {
return BI.extend(ob, {type: "bi.native_table_horizontal_scrollbar"});
}
return ob;
});
// 注册控件
BI.Plugin.registerWidget("bi.grid_table", function (ob) {
// 非chrome下滚动条滑动效果不好,禁止掉
if (!(BI.isChrome() && BI.isWindows() && !BI.isEdge())) {
return BI.extend(ob, {type: "bi.quick_grid_table"});
}
return ob;
});
BI.Plugin.registerWidget("bi.collection_table", function (ob) {
// 非chrome下滚动条滑动效果不好,禁止掉
if (!(BI.isChrome() && BI.isWindows() && !BI.isEdge())) {
return BI.extend(ob, {type: "bi.quick_collection_table"});
}
return ob;
});
// IE8下滚动条用原生的
$(function () {
if (BI.isIE9Below()) {
BI.GridTableScrollbar.SIZE = 18;
}
});
}());/**
* guy * guy
* 控制器 * 控制器
* Controller层超类 * Controller层超类
@ -20588,63 +20739,7 @@ BI.HorizontalFillLayoutLogic = BI.inherit(BI.Logic, {
_init: function () { _init: function () {
BI.HorizontalFillLayoutLogic.superclass._init.apply(this, arguments); BI.HorizontalFillLayoutLogic.superclass._init.apply(this, arguments);
} }
});BI.Plugin = BI.Plugin || {}; });/**
!(function () {
var _WidgetsPlugin = {};
var _ObjectPlugin = {};
BI.extend(BI.Plugin, {
getWidget: function (type, options) {
if (_WidgetsPlugin[type]) {
var res;
for (var i = _WidgetsPlugin[type].length - 1; i >= 0; i--) {
if (res = _WidgetsPlugin[type][i](options)) {
return res;
}
}
}
return options;
},
registerWidget: function (type, fn) {
if (!_WidgetsPlugin[type]) {
_WidgetsPlugin[type] = [];
}
if (_WidgetsPlugin[type].length > 0) {
console.log("组件已经注册过了!");
}
_WidgetsPlugin[type].push(fn);
},
relieveWidget: function (type) {
delete _WidgetsPlugin[type];
},
getObject: function (type, object) {
if (_ObjectPlugin[type]) {
var res;
for (var i = 0, len = _ObjectPlugin[type].length; i < len; i++) {
res = _ObjectPlugin[type][i](object);
}
}
return res || object;
},
registerObject: function (type, fn) {
if (!_ObjectPlugin[type]) {
_ObjectPlugin[type] = [];
}
if (_ObjectPlugin[type].length > 0) {
console.log("对象已经注册过了!");
}
_ObjectPlugin[type].push(fn);
},
relieveObject: function (type) {
delete _ObjectPlugin[type];
}
});
})();/**
* 对数组对象的扩展 * 对数组对象的扩展
* @class Array * @class Array
*/ */
@ -25776,99 +25871,4 @@ Data.Constant = BICst = {};
}; };
Data.Source = BISource = { Data.Source = BISource = {
};// 工程配置 };
(function () {
// 注册布局
var isSupportFlex = BI.isSupportCss3("flex");
BI.Plugin.registerWidget("bi.horizontal", function (ob) {
if (isSupportFlex) {
return BI.extend(ob, {type: "bi.flex_horizontal"});
}
return ob;
});
BI.Plugin.registerWidget("bi.center_adapt", function (ob) {
if (isSupportFlex && ob.items && ob.items.length <= 1) {
// 有滚动条的情况下需要用到flex_wrapper_center布局
if (ob.scrollable === true || ob.scrollx === true || ob.scrolly === true) {
// 不是IE用flex_wrapper_center布局
if (!BI.isIE()) {
return BI.extend(ob, {type: "bi.flex_wrapper_center"});
}
return ob;
}
return BI.extend(ob, {type: "bi.flex_center"});
}
return ob;
});
BI.Plugin.registerWidget("bi.vertical_adapt", function (ob) {
if (isSupportFlex) {
// 有滚动条的情况下需要用到flex_wrapper_center布局
if (ob.scrollable === true || ob.scrollx === true || ob.scrolly === true) {
// 不是IE用flex_wrapper_center布局
if (!BI.isIE()) {
return BI.extend({}, ob, {type: "bi.flex_wrapper_vertical_center"});
}
return ob;
}
return BI.extend(ob, {type: "bi.flex_vertical_center"});
}
return ob;
});
BI.Plugin.registerWidget("bi.float_center_adapt", function (ob) {
if (isSupportFlex) {
// 有滚动条的情况下需要用到flex_wrapper_center布局
if (ob.scrollable === true || ob.scrollx === true || ob.scrolly === true) {
// 不是IE用flex_wrapper_center布局
if (!BI.isIE()) {
return BI.extend({}, ob, {type: "bi.flex_wrapper_center"});
}
return ob;
}
return BI.extend(ob, {type: "bi.flex_center"});
}
return ob;
});
// 注册滚动条
BI.Plugin.registerWidget("bi.grid_table_scrollbar", function (ob) {
if (BI.isIE9Below()) {
return BI.extend(ob, {type: "bi.native_table_scrollbar"});
}
return ob;
});
BI.Plugin.registerWidget("bi.grid_table_horizontal_scrollbar", function (ob) {
if (BI.isIE9Below()) {
return BI.extend(ob, {type: "bi.native_table_horizontal_scrollbar"});
}
return ob;
});
// 注册控件
BI.Plugin.registerWidget("bi.grid_table", function (ob) {
// 非chrome下滚动条滑动效果不好,禁止掉
if (!(BI.isChrome() && BI.isWindows() && !BI.isEdge())) {
return BI.extend(ob, {type: "bi.quick_grid_table"});
}
return ob;
});
BI.Plugin.registerWidget("bi.collection_table", function (ob) {
// 非chrome下滚动条滑动效果不好,禁止掉
if (!(BI.isChrome() && BI.isWindows() && !BI.isEdge())) {
return BI.extend(ob, {type: "bi.quick_collection_table"});
}
return ob;
});
// IE8下滚动条用原生的
$(function () {
if (BI.isIE9Below()) {
BI.GridTableScrollbar.SIZE = 18;
}
});
}());

65
dist/core_without_normalize.css vendored

@ -1045,9 +1045,6 @@ textarea {
-o-align-items: center; -o-align-items: center;
align-items: center; align-items: center;
} }
.bi-flex-center-layout > * {
margin: auto;
}
.bi-flex-center-layout { .bi-flex-center-layout {
display: box; display: box;
/* OLD - Android 4.4- */ /* OLD - Android 4.4- */
@ -1088,9 +1085,6 @@ textarea {
-o-align-items: center; -o-align-items: center;
align-items: center; align-items: center;
} }
.bi-flex-center-layout > * {
margin: auto;
}
.bi-flex-horizontal-layout { .bi-flex-horizontal-layout {
display: box; display: box;
@ -1162,9 +1156,6 @@ textarea {
-o-align-items: flex-end; -o-align-items: flex-end;
align-items: flex-end; align-items: flex-end;
} }
.bi-flex-horizontal-layout > * {
margin: auto;
}
.bi-flex-vertical-center { .bi-flex-vertical-center {
display: box; display: box;
@ -1242,9 +1233,6 @@ textarea {
-o-align-items: stretch; -o-align-items: stretch;
align-items: stretch; align-items: stretch;
} }
.bi-flex-vertical-center > * {
margin: auto;
}
.bi-flex-wrapper-center-layout .flex-wrapper-center-layout-wrapper { .bi-flex-wrapper-center-layout .flex-wrapper-center-layout-wrapper {
display: box; display: box;
@ -1289,9 +1277,6 @@ textarea {
min-height: 100%; min-height: 100%;
float: left; float: left;
} }
.bi-flex-wrapper-center-layout > * {
margin: auto;
}
.bi-flex-wrapper-horizontal-layout .flex-wrapper-horizontal-layout-wrapper { .bi-flex-wrapper-horizontal-layout .flex-wrapper-horizontal-layout-wrapper {
display: box; display: box;
@ -1362,9 +1347,6 @@ textarea {
-o-align-items: flex-end; -o-align-items: flex-end;
align-items: flex-end; align-items: flex-end;
} }
.bi-flex-wrapper-horizontal-layout .flex-wrapper-horizontal-layout-wrapper > * {
margin: auto;
}
.bi-flex-wrapper-vertical-center .flex-wrapper-vertical-center-wrapper { .bi-flex-wrapper-vertical-center .flex-wrapper-vertical-center-wrapper {
display: box; display: box;
@ -1443,9 +1425,6 @@ textarea {
-o-align-items: stretch; -o-align-items: stretch;
align-items: stretch; align-items: stretch;
} }
.bi-flex-wrapper-vertical-center .flex-wrapper-vertical-center-wrapper > * {
margin: auto;
}
.bi-flex-horizontal-layout { .bi-flex-horizontal-layout {
display: box; display: box;
/* OLD - Android 4.4- */ /* OLD - Android 4.4- */
@ -1516,9 +1495,6 @@ textarea {
-o-align-items: flex-end; -o-align-items: flex-end;
align-items: flex-end; align-items: flex-end;
} }
.bi-flex-horizontal-layout > * {
margin: auto;
}
.bi-flex-vertical-center { .bi-flex-vertical-center {
display: box; display: box;
/* OLD - Android 4.4- */ /* OLD - Android 4.4- */
@ -1595,9 +1571,6 @@ textarea {
-o-align-items: stretch; -o-align-items: stretch;
align-items: stretch; align-items: stretch;
} }
.bi-flex-vertical-center > * {
margin: auto;
}
.bi-flex-wrapper-center-layout .flex-wrapper-center-layout-wrapper { .bi-flex-wrapper-center-layout .flex-wrapper-center-layout-wrapper {
display: box; display: box;
/* OLD - Android 4.4- */ /* OLD - Android 4.4- */
@ -1641,9 +1614,6 @@ textarea {
min-height: 100%; min-height: 100%;
float: left; float: left;
} }
.bi-flex-wrapper-center-layout > * {
margin: auto;
}
.bi-flex-wrapper-horizontal-layout .flex-wrapper-horizontal-layout-wrapper { .bi-flex-wrapper-horizontal-layout .flex-wrapper-horizontal-layout-wrapper {
display: box; display: box;
/* OLD - Android 4.4- */ /* OLD - Android 4.4- */
@ -1713,9 +1683,6 @@ textarea {
-o-align-items: flex-end; -o-align-items: flex-end;
align-items: flex-end; align-items: flex-end;
} }
.bi-flex-wrapper-horizontal-layout .flex-wrapper-horizontal-layout-wrapper > * {
margin: auto;
}
.bi-flex-wrapper-vertical-center .flex-wrapper-vertical-center-wrapper { .bi-flex-wrapper-vertical-center .flex-wrapper-vertical-center-wrapper {
display: box; display: box;
/* OLD - Android 4.4- */ /* OLD - Android 4.4- */
@ -1793,38 +1760,6 @@ textarea {
-o-align-items: stretch; -o-align-items: stretch;
align-items: stretch; align-items: stretch;
} }
.bi-flex-wrapper-vertical-center .flex-wrapper-vertical-center-wrapper > * {
margin: auto;
}
.bi-inline-center-adapt-layout:after {
display: inline-block;
width: 0;
min-height: 100%;
vertical-align: middle;
content: ' ';
}
.bi-inline-center-adapt-layout:after {
display: inline-block;
width: 0;
min-height: 100%;
vertical-align: middle;
content: ' ';
}
.bi-inline-vertical-adapt-layout:after {
display: inline-block;
width: 0;
min-height: 100%;
vertical-align: middle;
content: ' ';
}
.bi-inline-vertical-adapt-layout:after {
display: inline-block;
width: 0;
min-height: 100%;
vertical-align: middle;
content: ' ';
}
.bi-theme-dark { .bi-theme-dark {
background-color: #191B2B; background-color: #191B2B;
color: #cccccc; color: #cccccc;

65
dist/fineui.css vendored

@ -1323,9 +1323,6 @@ textarea {
-o-align-items: center; -o-align-items: center;
align-items: center; align-items: center;
} }
.bi-flex-center-layout > * {
margin: auto;
}
.bi-flex-center-layout { .bi-flex-center-layout {
display: box; display: box;
/* OLD - Android 4.4- */ /* OLD - Android 4.4- */
@ -1366,9 +1363,6 @@ textarea {
-o-align-items: center; -o-align-items: center;
align-items: center; align-items: center;
} }
.bi-flex-center-layout > * {
margin: auto;
}
.bi-flex-horizontal-layout { .bi-flex-horizontal-layout {
display: box; display: box;
@ -1440,9 +1434,6 @@ textarea {
-o-align-items: flex-end; -o-align-items: flex-end;
align-items: flex-end; align-items: flex-end;
} }
.bi-flex-horizontal-layout > * {
margin: auto;
}
.bi-flex-vertical-center { .bi-flex-vertical-center {
display: box; display: box;
@ -1520,9 +1511,6 @@ textarea {
-o-align-items: stretch; -o-align-items: stretch;
align-items: stretch; align-items: stretch;
} }
.bi-flex-vertical-center > * {
margin: auto;
}
.bi-flex-wrapper-center-layout .flex-wrapper-center-layout-wrapper { .bi-flex-wrapper-center-layout .flex-wrapper-center-layout-wrapper {
display: box; display: box;
@ -1567,9 +1555,6 @@ textarea {
min-height: 100%; min-height: 100%;
float: left; float: left;
} }
.bi-flex-wrapper-center-layout > * {
margin: auto;
}
.bi-flex-wrapper-horizontal-layout .flex-wrapper-horizontal-layout-wrapper { .bi-flex-wrapper-horizontal-layout .flex-wrapper-horizontal-layout-wrapper {
display: box; display: box;
@ -1640,9 +1625,6 @@ textarea {
-o-align-items: flex-end; -o-align-items: flex-end;
align-items: flex-end; align-items: flex-end;
} }
.bi-flex-wrapper-horizontal-layout .flex-wrapper-horizontal-layout-wrapper > * {
margin: auto;
}
.bi-flex-wrapper-vertical-center .flex-wrapper-vertical-center-wrapper { .bi-flex-wrapper-vertical-center .flex-wrapper-vertical-center-wrapper {
display: box; display: box;
@ -1721,9 +1703,6 @@ textarea {
-o-align-items: stretch; -o-align-items: stretch;
align-items: stretch; align-items: stretch;
} }
.bi-flex-wrapper-vertical-center .flex-wrapper-vertical-center-wrapper > * {
margin: auto;
}
.bi-flex-horizontal-layout { .bi-flex-horizontal-layout {
display: box; display: box;
/* OLD - Android 4.4- */ /* OLD - Android 4.4- */
@ -1794,9 +1773,6 @@ textarea {
-o-align-items: flex-end; -o-align-items: flex-end;
align-items: flex-end; align-items: flex-end;
} }
.bi-flex-horizontal-layout > * {
margin: auto;
}
.bi-flex-vertical-center { .bi-flex-vertical-center {
display: box; display: box;
/* OLD - Android 4.4- */ /* OLD - Android 4.4- */
@ -1873,9 +1849,6 @@ textarea {
-o-align-items: stretch; -o-align-items: stretch;
align-items: stretch; align-items: stretch;
} }
.bi-flex-vertical-center > * {
margin: auto;
}
.bi-flex-wrapper-center-layout .flex-wrapper-center-layout-wrapper { .bi-flex-wrapper-center-layout .flex-wrapper-center-layout-wrapper {
display: box; display: box;
/* OLD - Android 4.4- */ /* OLD - Android 4.4- */
@ -1919,9 +1892,6 @@ textarea {
min-height: 100%; min-height: 100%;
float: left; float: left;
} }
.bi-flex-wrapper-center-layout > * {
margin: auto;
}
.bi-flex-wrapper-horizontal-layout .flex-wrapper-horizontal-layout-wrapper { .bi-flex-wrapper-horizontal-layout .flex-wrapper-horizontal-layout-wrapper {
display: box; display: box;
/* OLD - Android 4.4- */ /* OLD - Android 4.4- */
@ -1991,9 +1961,6 @@ textarea {
-o-align-items: flex-end; -o-align-items: flex-end;
align-items: flex-end; align-items: flex-end;
} }
.bi-flex-wrapper-horizontal-layout .flex-wrapper-horizontal-layout-wrapper > * {
margin: auto;
}
.bi-flex-wrapper-vertical-center .flex-wrapper-vertical-center-wrapper { .bi-flex-wrapper-vertical-center .flex-wrapper-vertical-center-wrapper {
display: box; display: box;
/* OLD - Android 4.4- */ /* OLD - Android 4.4- */
@ -2071,38 +2038,6 @@ textarea {
-o-align-items: stretch; -o-align-items: stretch;
align-items: stretch; align-items: stretch;
} }
.bi-flex-wrapper-vertical-center .flex-wrapper-vertical-center-wrapper > * {
margin: auto;
}
.bi-inline-center-adapt-layout:after {
display: inline-block;
width: 0;
min-height: 100%;
vertical-align: middle;
content: ' ';
}
.bi-inline-center-adapt-layout:after {
display: inline-block;
width: 0;
min-height: 100%;
vertical-align: middle;
content: ' ';
}
.bi-inline-vertical-adapt-layout:after {
display: inline-block;
width: 0;
min-height: 100%;
vertical-align: middle;
content: ' ';
}
.bi-inline-vertical-adapt-layout:after {
display: inline-block;
width: 0;
min-height: 100%;
vertical-align: middle;
content: ' ';
}
.bi-theme-dark { .bi-theme-dark {
background-color: #191B2B; background-color: #191B2B;
color: #cccccc; color: #cccccc;

310
dist/fineui.js vendored

@ -17275,7 +17275,63 @@ BI.Layout = BI.inherit(BI.Widget, {
} }
}); });
BI.shortcut("bi.layout", BI.Layout);/** BI.shortcut("bi.layout", BI.Layout);BI.Plugin = BI.Plugin || {};
!(function () {
var _WidgetsPlugin = {};
var _ObjectPlugin = {};
BI.extend(BI.Plugin, {
getWidget: function (type, options) {
if (_WidgetsPlugin[type]) {
var res;
for (var i = _WidgetsPlugin[type].length - 1; i >= 0; i--) {
if (res = _WidgetsPlugin[type][i](options)) {
return res;
}
}
}
return options;
},
registerWidget: function (type, fn) {
if (!_WidgetsPlugin[type]) {
_WidgetsPlugin[type] = [];
}
if (_WidgetsPlugin[type].length > 0) {
console.log("组件已经注册过了!");
}
_WidgetsPlugin[type].push(fn);
},
relieveWidget: function (type) {
delete _WidgetsPlugin[type];
},
getObject: function (type, object) {
if (_ObjectPlugin[type]) {
var res;
for (var i = 0, len = _ObjectPlugin[type].length; i < len; i++) {
res = _ObjectPlugin[type][i](object);
}
}
return res || object;
},
registerObject: function (type, fn) {
if (!_ObjectPlugin[type]) {
_ObjectPlugin[type] = [];
}
if (_ObjectPlugin[type].length > 0) {
console.log("对象已经注册过了!");
}
_ObjectPlugin[type].push(fn);
},
relieveObject: function (type) {
delete _ObjectPlugin[type];
}
});
})();/**
* guy * guy
* 由一个元素切换到另一个元素的行为 * 由一个元素切换到另一个元素的行为
* @class BI.Action * @class BI.Action
@ -18125,7 +18181,102 @@ BI.RedMarkBehavior = BI.inherit(BI.Behavior, {
} }
}); });
} }
});/** });// 工程配置
(function () {
// 注册布局
var isSupportFlex = BI.isSupportCss3("flex");
BI.Plugin.registerWidget("bi.horizontal", function (ob) {
if (isSupportFlex) {
return BI.extend(ob, {type: "bi.flex_horizontal"});
}
return ob;
});
BI.Plugin.registerWidget("bi.center_adapt", function (ob) {
if (isSupportFlex && ob.items && ob.items.length <= 1) {
// 有滚动条的情况下需要用到flex_wrapper_center布局
if (ob.scrollable === true || ob.scrollx === true || ob.scrolly === true) {
// 不是IE用flex_wrapper_center布局
if (!BI.isIE()) {
return BI.extend(ob, {type: "bi.flex_wrapper_center"});
}
return ob;
}
return BI.extend(ob, {type: "bi.flex_center"});
}
return ob;
});
BI.Plugin.registerWidget("bi.vertical_adapt", function (ob) {
if (isSupportFlex) {
// 有滚动条的情况下需要用到flex_wrapper_center布局
if (ob.scrollable === true || ob.scrollx === true || ob.scrolly === true) {
// 不是IE用flex_wrapper_center布局
if (!BI.isIE()) {
return BI.extend({}, ob, {type: "bi.flex_wrapper_vertical_center"});
}
return ob;
}
return BI.extend(ob, {type: "bi.flex_vertical_center"});
}
return ob;
});
BI.Plugin.registerWidget("bi.float_center_adapt", function (ob) {
if (isSupportFlex) {
// 有滚动条的情况下需要用到flex_wrapper_center布局
if (ob.scrollable === true || ob.scrollx === true || ob.scrolly === true) {
// 不是IE用flex_wrapper_center布局
if (!BI.isIE()) {
return BI.extend({}, ob, {type: "bi.flex_wrapper_center"});
}
return ob;
}
return BI.extend(ob, {type: "bi.flex_center"});
}
return ob;
});
// 注册滚动条
BI.Plugin.registerWidget("bi.grid_table_scrollbar", function (ob) {
if (BI.isIE9Below()) {
return BI.extend(ob, {type: "bi.native_table_scrollbar"});
}
return ob;
});
BI.Plugin.registerWidget("bi.grid_table_horizontal_scrollbar", function (ob) {
if (BI.isIE9Below()) {
return BI.extend(ob, {type: "bi.native_table_horizontal_scrollbar"});
}
return ob;
});
// 注册控件
BI.Plugin.registerWidget("bi.grid_table", function (ob) {
// 非chrome下滚动条滑动效果不好,禁止掉
if (!(BI.isChrome() && BI.isWindows() && !BI.isEdge())) {
return BI.extend(ob, {type: "bi.quick_grid_table"});
}
return ob;
});
BI.Plugin.registerWidget("bi.collection_table", function (ob) {
// 非chrome下滚动条滑动效果不好,禁止掉
if (!(BI.isChrome() && BI.isWindows() && !BI.isEdge())) {
return BI.extend(ob, {type: "bi.quick_collection_table"});
}
return ob;
});
// IE8下滚动条用原生的
$(function () {
if (BI.isIE9Below()) {
BI.GridTableScrollbar.SIZE = 18;
}
});
}());/**
* guy * guy
* 控制器 * 控制器
* Controller层超类 * Controller层超类
@ -20761,63 +20912,7 @@ BI.HorizontalFillLayoutLogic = BI.inherit(BI.Logic, {
_init: function () { _init: function () {
BI.HorizontalFillLayoutLogic.superclass._init.apply(this, arguments); BI.HorizontalFillLayoutLogic.superclass._init.apply(this, arguments);
} }
});BI.Plugin = BI.Plugin || {}; });/**
!(function () {
var _WidgetsPlugin = {};
var _ObjectPlugin = {};
BI.extend(BI.Plugin, {
getWidget: function (type, options) {
if (_WidgetsPlugin[type]) {
var res;
for (var i = _WidgetsPlugin[type].length - 1; i >= 0; i--) {
if (res = _WidgetsPlugin[type][i](options)) {
return res;
}
}
}
return options;
},
registerWidget: function (type, fn) {
if (!_WidgetsPlugin[type]) {
_WidgetsPlugin[type] = [];
}
if (_WidgetsPlugin[type].length > 0) {
console.log("组件已经注册过了!");
}
_WidgetsPlugin[type].push(fn);
},
relieveWidget: function (type) {
delete _WidgetsPlugin[type];
},
getObject: function (type, object) {
if (_ObjectPlugin[type]) {
var res;
for (var i = 0, len = _ObjectPlugin[type].length; i < len; i++) {
res = _ObjectPlugin[type][i](object);
}
}
return res || object;
},
registerObject: function (type, fn) {
if (!_ObjectPlugin[type]) {
_ObjectPlugin[type] = [];
}
if (_ObjectPlugin[type].length > 0) {
console.log("对象已经注册过了!");
}
_ObjectPlugin[type].push(fn);
},
relieveObject: function (type) {
delete _ObjectPlugin[type];
}
});
})();/**
* 对数组对象的扩展 * 对数组对象的扩展
* @class Array * @class Array
*/ */
@ -25949,102 +26044,7 @@ Data.Constant = BICst = {};
}; };
Data.Source = BISource = { Data.Source = BISource = {
};// 工程配置 };function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
(function () {
// 注册布局
var isSupportFlex = BI.isSupportCss3("flex");
BI.Plugin.registerWidget("bi.horizontal", function (ob) {
if (isSupportFlex) {
return BI.extend(ob, {type: "bi.flex_horizontal"});
}
return ob;
});
BI.Plugin.registerWidget("bi.center_adapt", function (ob) {
if (isSupportFlex && ob.items && ob.items.length <= 1) {
// 有滚动条的情况下需要用到flex_wrapper_center布局
if (ob.scrollable === true || ob.scrollx === true || ob.scrolly === true) {
// 不是IE用flex_wrapper_center布局
if (!BI.isIE()) {
return BI.extend(ob, {type: "bi.flex_wrapper_center"});
}
return ob;
}
return BI.extend(ob, {type: "bi.flex_center"});
}
return ob;
});
BI.Plugin.registerWidget("bi.vertical_adapt", function (ob) {
if (isSupportFlex) {
// 有滚动条的情况下需要用到flex_wrapper_center布局
if (ob.scrollable === true || ob.scrollx === true || ob.scrolly === true) {
// 不是IE用flex_wrapper_center布局
if (!BI.isIE()) {
return BI.extend({}, ob, {type: "bi.flex_wrapper_vertical_center"});
}
return ob;
}
return BI.extend(ob, {type: "bi.flex_vertical_center"});
}
return ob;
});
BI.Plugin.registerWidget("bi.float_center_adapt", function (ob) {
if (isSupportFlex) {
// 有滚动条的情况下需要用到flex_wrapper_center布局
if (ob.scrollable === true || ob.scrollx === true || ob.scrolly === true) {
// 不是IE用flex_wrapper_center布局
if (!BI.isIE()) {
return BI.extend({}, ob, {type: "bi.flex_wrapper_center"});
}
return ob;
}
return BI.extend(ob, {type: "bi.flex_center"});
}
return ob;
});
// 注册滚动条
BI.Plugin.registerWidget("bi.grid_table_scrollbar", function (ob) {
if (BI.isIE9Below()) {
return BI.extend(ob, {type: "bi.native_table_scrollbar"});
}
return ob;
});
BI.Plugin.registerWidget("bi.grid_table_horizontal_scrollbar", function (ob) {
if (BI.isIE9Below()) {
return BI.extend(ob, {type: "bi.native_table_horizontal_scrollbar"});
}
return ob;
});
// 注册控件
BI.Plugin.registerWidget("bi.grid_table", function (ob) {
// 非chrome下滚动条滑动效果不好,禁止掉
if (!(BI.isChrome() && BI.isWindows() && !BI.isEdge())) {
return BI.extend(ob, {type: "bi.quick_grid_table"});
}
return ob;
});
BI.Plugin.registerWidget("bi.collection_table", function (ob) {
// 非chrome下滚动条滑动效果不好,禁止掉
if (!(BI.isChrome() && BI.isWindows() && !BI.isEdge())) {
return BI.extend(ob, {type: "bi.quick_collection_table"});
}
return ob;
});
// IE8下滚动条用原生的
$(function () {
if (BI.isIE9Below()) {
BI.GridTableScrollbar.SIZE = 18;
}
});
}());function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
(function (global, factory) { (function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : factory(global.Fix = global.Fix || {}); typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : factory(global.Fix = global.Fix || {});

2
dist/fineui.min.css vendored

File diff suppressed because one or more lines are too long

18
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

0
src/config.js → src/core/config.js

3
src/css/core/wrapper/flex.center.css

@ -38,6 +38,3 @@
-o-align-items: center; -o-align-items: center;
align-items: center; align-items: center;
} }
.bi-flex-center-layout > * {
margin: auto;
}

18
src/css/core/wrapper/flex.css

@ -38,9 +38,6 @@
-o-align-items: center; -o-align-items: center;
align-items: center; align-items: center;
} }
.bi-flex-center-layout > * {
margin: auto;
}
.bi-flex-horizontal-layout { .bi-flex-horizontal-layout {
display: box; display: box;
@ -112,9 +109,6 @@
-o-align-items: flex-end; -o-align-items: flex-end;
align-items: flex-end; align-items: flex-end;
} }
.bi-flex-horizontal-layout > * {
margin: auto;
}
.bi-flex-vertical-center { .bi-flex-vertical-center {
display: box; display: box;
@ -192,9 +186,6 @@
-o-align-items: stretch; -o-align-items: stretch;
align-items: stretch; align-items: stretch;
} }
.bi-flex-vertical-center > * {
margin: auto;
}
.bi-flex-wrapper-center-layout .flex-wrapper-center-layout-wrapper { .bi-flex-wrapper-center-layout .flex-wrapper-center-layout-wrapper {
display: box; display: box;
@ -239,9 +230,6 @@
min-height: 100%; min-height: 100%;
float: left; float: left;
} }
.bi-flex-wrapper-center-layout > * {
margin: auto;
}
.bi-flex-wrapper-horizontal-layout .flex-wrapper-horizontal-layout-wrapper { .bi-flex-wrapper-horizontal-layout .flex-wrapper-horizontal-layout-wrapper {
display: box; display: box;
@ -312,9 +300,6 @@
-o-align-items: flex-end; -o-align-items: flex-end;
align-items: flex-end; align-items: flex-end;
} }
.bi-flex-wrapper-horizontal-layout .flex-wrapper-horizontal-layout-wrapper > * {
margin: auto;
}
.bi-flex-wrapper-vertical-center .flex-wrapper-vertical-center-wrapper { .bi-flex-wrapper-vertical-center .flex-wrapper-vertical-center-wrapper {
display: box; display: box;
@ -393,6 +378,3 @@
-o-align-items: stretch; -o-align-items: stretch;
align-items: stretch; align-items: stretch;
} }
.bi-flex-wrapper-vertical-center .flex-wrapper-vertical-center-wrapper > * {
margin: auto;
}

3
src/css/core/wrapper/flex.horizontal.css

@ -68,6 +68,3 @@
-o-align-items: flex-end; -o-align-items: flex-end;
align-items: flex-end; align-items: flex-end;
} }
.bi-flex-horizontal-layout > * {
margin: auto;
}

3
src/css/core/wrapper/flex.vertical.center.css

@ -74,6 +74,3 @@
-o-align-items: stretch; -o-align-items: stretch;
align-items: stretch; align-items: stretch;
} }
.bi-flex-vertical-center > * {
margin: auto;
}

3
src/css/core/wrapper/flex.wrapper.center.css

@ -41,6 +41,3 @@
min-height: 100%; min-height: 100%;
float: left; float: left;
} }
.bi-flex-wrapper-center-layout > * {
margin: auto;
}

3
src/css/core/wrapper/flex.wrapper.horizontal.css

@ -67,6 +67,3 @@
-o-align-items: flex-end; -o-align-items: flex-end;
align-items: flex-end; align-items: flex-end;
} }
.bi-flex-wrapper-horizontal-layout .flex-wrapper-horizontal-layout-wrapper > * {
margin: auto;
}

3
src/css/core/wrapper/flex.wrapper.vertical.center.css

@ -75,6 +75,3 @@
-o-align-items: stretch; -o-align-items: stretch;
align-items: stretch; align-items: stretch;
} }
.bi-flex-wrapper-vertical-center .flex-wrapper-vertical-center-wrapper > * {
margin: auto;
}

7
src/css/core/wrapper/inline.center.css

@ -1,7 +0,0 @@
.bi-inline-center-adapt-layout:after {
display: inline-block;
width: 0;
min-height: 100%;
vertical-align: middle;
content: ' ';
}

15
src/css/core/wrapper/inline.css

@ -1,15 +0,0 @@
.bi-inline-center-adapt-layout:after {
display: inline-block;
width: 0;
min-height: 100%;
vertical-align: middle;
content: ' ';
}
.bi-inline-vertical-adapt-layout:after {
display: inline-block;
width: 0;
min-height: 100%;
vertical-align: middle;
content: ' ';
}

7
src/css/core/wrapper/inline.vertical.css

@ -1,7 +0,0 @@
.bi-inline-vertical-adapt-layout:after {
display: inline-block;
width: 0;
min-height: 100%;
vertical-align: middle;
content: ' ';
}

3
src/less/core/wrapper/flex.center.less

@ -34,7 +34,4 @@
-ms-align-items: center; -ms-align-items: center;
-o-align-items: center; -o-align-items: center;
align-items: center; align-items: center;
> * {
margin: auto;
}
} }

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

@ -66,7 +66,4 @@
-o-align-items: flex-end; -o-align-items: flex-end;
align-items: flex-end; align-items: flex-end;
} }
> * {
margin: auto;
}
} }

3
src/less/core/wrapper/flex.vertical.center.less

@ -73,7 +73,4 @@
-o-align-items: stretch; -o-align-items: stretch;
align-items: stretch; align-items: stretch;
} }
> * {
margin: auto;
}
} }

3
src/less/core/wrapper/flex.wrapper.center.less

@ -39,7 +39,4 @@
min-height: 100%; min-height: 100%;
float: left; float: left;
} }
> * {
margin: auto;
}
} }

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

@ -66,8 +66,5 @@
-o-align-items: flex-end; -o-align-items: flex-end;
align-items: flex-end; align-items: flex-end;
} }
> * {
margin: auto;
}
} }
} }

3
src/less/core/wrapper/flex.wrapper.vertical.center.less

@ -76,8 +76,5 @@
-o-align-items: stretch; -o-align-items: stretch;
align-items: stretch; align-items: stretch;
} }
> * {
margin: auto;
}
} }
} }

11
src/less/core/wrapper/inline.center.less

@ -1,11 +0,0 @@
@import "../../index";
.bi-inline-center-adapt-layout{
&:after{
display:inline-block;
width:0;
min-height:100%;
vertical-align:middle;
content:' ';
}
}

11
src/less/core/wrapper/inline.vertical.less

@ -1,11 +0,0 @@
@import "../../index";
.bi-inline-vertical-adapt-layout{
&:after{
display:inline-block;
width:0;
min-height:100%;
vertical-align:middle;
content:' ';
}
}
Loading…
Cancel
Save