|
|
@ -1,4 +1,4 @@ |
|
|
|
/*! time: 2021-4-2 17:00:22 */ |
|
|
|
/*! time: 2021-4-4 21:00:25 */ |
|
|
|
/******/ (function(modules) { // webpackBootstrap
|
|
|
|
/******/ (function(modules) { // webpackBootstrap
|
|
|
|
/******/ // The module cache
|
|
|
|
/******/ // The module cache
|
|
|
|
/******/ var installedModules = {}; |
|
|
|
/******/ var installedModules = {}; |
|
|
@ -9275,7 +9275,10 @@ module.exports = !__webpack_require__(892)(function () { |
|
|
|
} |
|
|
|
} |
|
|
|
this._mount(); |
|
|
|
this._mount(); |
|
|
|
|
|
|
|
|
|
|
|
this.__async === true && isMounted && callLifeHook(this, "mounted"); |
|
|
|
if (this.__async === true && isMounted) { |
|
|
|
|
|
|
|
callLifeHook(this, "mounted"); |
|
|
|
|
|
|
|
this.fireEvent(BI.Events.MOUNT); |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_setParent: function (parent) { |
|
|
|
_setParent: function (parent) { |
|
|
@ -17955,9 +17958,7 @@ BI.FlexHorizontalLayout = BI.inherit(BI.Layout, { |
|
|
|
position: "relative" |
|
|
|
position: "relative" |
|
|
|
}); |
|
|
|
}); |
|
|
|
if (o.columnSize[i] !== "auto") { |
|
|
|
if (o.columnSize[i] !== "auto") { |
|
|
|
if (o.horizontalAlign === BI.HorizontalAlign.Stretch && o.columnSize[i] === "fill") { |
|
|
|
if (!(o.horizontalAlign === BI.HorizontalAlign.Stretch && (o.columnSize[i] === "fill" || o.columnSize[i] === ""))) { |
|
|
|
w.element.addClass("f-f"); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
w.element.addClass("f-s-n"); |
|
|
|
w.element.addClass("f-s-n"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -18222,9 +18223,7 @@ BI.FlexVerticalLayout = BI.inherit(BI.Layout, { |
|
|
|
position: "relative" |
|
|
|
position: "relative" |
|
|
|
}); |
|
|
|
}); |
|
|
|
if (o.rowSize[i] !== "auto") { |
|
|
|
if (o.rowSize[i] !== "auto") { |
|
|
|
if (o.verticalAlign === BI.VerticalAlign.Stretch && o.rowSize[i] === "fill") { |
|
|
|
if (!(o.verticalAlign === BI.VerticalAlign.Stretch && (o.rowSize[i] === "fill" || o.rowSize[i] === ""))) { |
|
|
|
w.element.addClass("f-f"); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
w.element.addClass("f-s-n"); |
|
|
|
w.element.addClass("f-s-n"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -18442,9 +18441,7 @@ BI.FlexWrapperHorizontalLayout = BI.inherit(BI.Layout, { |
|
|
|
position: "relative" |
|
|
|
position: "relative" |
|
|
|
}); |
|
|
|
}); |
|
|
|
if (o.columnSize[i] !== "auto") { |
|
|
|
if (o.columnSize[i] !== "auto") { |
|
|
|
if (o.horizontalAlign === BI.HorizontalAlign.Stretch && o.columnSize[i] !== "") { |
|
|
|
if (!(o.horizontalAlign === BI.HorizontalAlign.Stretch && (o.columnSize[i] === "fill" || o.columnSize[i] === ""))) { |
|
|
|
w.element.addClass("f-f"); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
w.element.addClass("f-s-n"); |
|
|
|
w.element.addClass("f-s-n"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -18453,6 +18450,7 @@ BI.FlexWrapperHorizontalLayout = BI.inherit(BI.Layout, { |
|
|
|
} |
|
|
|
} |
|
|
|
if (o.columnSize[i] === "fill") { |
|
|
|
if (o.columnSize[i] === "fill") { |
|
|
|
w.element.addClass("f-f"); |
|
|
|
w.element.addClass("f-f"); |
|
|
|
|
|
|
|
this.element.addClass("f-f"); |
|
|
|
} |
|
|
|
} |
|
|
|
w.element.addClass("c-e"); |
|
|
|
w.element.addClass("c-e"); |
|
|
|
if (i === 0) { |
|
|
|
if (i === 0) { |
|
|
@ -18610,9 +18608,7 @@ BI.FlexWrapperVerticalLayout = BI.inherit(BI.Layout, { |
|
|
|
position: "relative" |
|
|
|
position: "relative" |
|
|
|
}); |
|
|
|
}); |
|
|
|
if (o.rowSize[i] !== "auto") { |
|
|
|
if (o.rowSize[i] !== "auto") { |
|
|
|
if (o.verticalAlign === BI.VerticalAlign.Stretch && o.rowSize[i] !== "") { |
|
|
|
if (!(o.verticalAlign === BI.VerticalAlign.Stretch && (o.rowSize[i] === "fill" && o.rowSize[i] === ""))) { |
|
|
|
w.element.addClass("f-f"); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
w.element.addClass("f-s-n"); |
|
|
|
w.element.addClass("f-s-n"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -18621,6 +18617,7 @@ BI.FlexWrapperVerticalLayout = BI.inherit(BI.Layout, { |
|
|
|
} |
|
|
|
} |
|
|
|
if (o.rowSize[i] === "fill") { |
|
|
|
if (o.rowSize[i] === "fill") { |
|
|
|
w.element.addClass("f-f"); |
|
|
|
w.element.addClass("f-f"); |
|
|
|
|
|
|
|
this.element.addClass("f-f"); |
|
|
|
} |
|
|
|
} |
|
|
|
w.element.addClass("c-e"); |
|
|
|
w.element.addClass("c-e"); |
|
|
|
if (i === 0) { |
|
|
|
if (i === 0) { |
|
|
@ -19859,7 +19856,7 @@ BI.InlineLayout = BI.inherit(BI.Layout, { |
|
|
|
"vertical-align": o.verticalAlign |
|
|
|
"vertical-align": o.verticalAlign |
|
|
|
}); |
|
|
|
}); |
|
|
|
w.element.addClass("i-item"); |
|
|
|
w.element.addClass("i-item"); |
|
|
|
if (o.columnSize[i] === "fill") { |
|
|
|
if (o.columnSize[i] === "fill" || o.columnSize[i] === "") { |
|
|
|
var left = o.hgap + (item.lgap || 0) + (item.hgap || 0), |
|
|
|
var left = o.hgap + (item.lgap || 0) + (item.hgap || 0), |
|
|
|
right = o.hgap + (item.rgap || 0) + (item.hgap || 0); |
|
|
|
right = o.hgap + (item.rgap || 0) + (item.hgap || 0); |
|
|
|
for (var k = 0; k < i; k++) { |
|
|
|
for (var k = 0; k < i; k++) { |
|
|
@ -19868,9 +19865,11 @@ BI.InlineLayout = BI.inherit(BI.Layout, { |
|
|
|
for (var k = i + 1; k < o.columnSize.length; k++) { |
|
|
|
for (var k = i + 1; k < o.columnSize.length; k++) { |
|
|
|
right += o.hgap + o.lgap + o.rgap + o.columnSize[k]; |
|
|
|
right += o.hgap + o.lgap + o.rgap + o.columnSize[k]; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (o.columnSize[i] === "fill") { |
|
|
|
w.element.css("min-width", "calc(100% - " + ((left + right) / BI.pixRatio + BI.pixUnit) + ")"); |
|
|
|
w.element.css("min-width", "calc(100% - " + ((left + right) / BI.pixRatio + BI.pixUnit) + ")"); |
|
|
|
|
|
|
|
} |
|
|
|
if (o.horizontalAlign === BI.HorizontalAlign.Stretch) { |
|
|
|
if (o.horizontalAlign === BI.HorizontalAlign.Stretch) { |
|
|
|
w.element.width(0); |
|
|
|
w.element.css("max-width", "calc(100% - " + ((left + right) / BI.pixRatio + BI.pixUnit) + ")"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if (o.vgap + o.tgap + (item.tgap || 0) + (item.vgap || 0) !== 0) { |
|
|
|
if (o.vgap + o.tgap + (item.tgap || 0) + (item.vgap || 0) !== 0) { |
|
|
@ -30478,7 +30477,7 @@ BI.shortcut("bi.radio", BI.Radio); |
|
|
|
}); |
|
|
|
}); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
if (o.whiteSpace == "normal") { // 1.3
|
|
|
|
if (o.whiteSpace === "normal") { // 1.3
|
|
|
|
BI.extend(json, { |
|
|
|
BI.extend(json, { |
|
|
|
hgap: o.hgap, |
|
|
|
hgap: o.hgap, |
|
|
|
vgap: o.vgap, |
|
|
|
vgap: o.vgap, |
|
|
@ -30547,7 +30546,7 @@ BI.shortcut("bi.radio", BI.Radio); |
|
|
|
}); |
|
|
|
}); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
if (o.whiteSpace == "normal") { // 1.7
|
|
|
|
if (o.whiteSpace === "normal") { // 1.7
|
|
|
|
BI.extend(json, { |
|
|
|
BI.extend(json, { |
|
|
|
hgap: o.hgap, |
|
|
|
hgap: o.hgap, |
|
|
|
vgap: o.vgap, |
|
|
|
vgap: o.vgap, |
|
|
@ -76636,13 +76635,9 @@ BI.prepares.push(function () { |
|
|
|
return _isSupportFlex; |
|
|
|
return _isSupportFlex; |
|
|
|
}; |
|
|
|
}; |
|
|
|
BI.Plugin.configWidget("bi.horizontal", function (ob) { |
|
|
|
BI.Plugin.configWidget("bi.horizontal", function (ob) { |
|
|
|
var isIE = BI.isIE(), supportFlex = isSupportFlex(), isLessIE8 = isIE && BI.getIEVersion() < 8; |
|
|
|
|
|
|
|
if (isLessIE8) { |
|
|
|
|
|
|
|
return ob; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
// 在横向自适应场景下我们需要使用table的自适应撑出滚动条的特性(flex处理不了这种情况)
|
|
|
|
// 在横向自适应场景下我们需要使用table的自适应撑出滚动条的特性(flex处理不了这种情况)
|
|
|
|
// 主要出现在center_adapt或者horizontal_adapt的场景,或者主动设置horizontalAlign的场景
|
|
|
|
// 主要出现在center_adapt或者horizontal_adapt的场景,或者主动设置horizontalAlign的场景
|
|
|
|
if (ob.horizontalAlign === BI.HorizontalAlign.Center || ob.horizontalAlign === BI.HorizontalAlign.Stretch) { |
|
|
|
// if (ob.horizontalAlign === BI.HorizontalAlign.Center || ob.horizontalAlign === BI.HorizontalAlign.Stretch) {
|
|
|
|
// 虽然有两个元素以上的时候,有场景是控制一个显示一个隐藏的效果,还无法通过flex来实现
|
|
|
|
// 虽然有两个元素以上的时候,有场景是控制一个显示一个隐藏的效果,还无法通过flex来实现
|
|
|
|
// var justOneItem = (ob.items && ob.items.length <= 1);
|
|
|
|
// var justOneItem = (ob.items && ob.items.length <= 1);
|
|
|
|
// // 在这种情况下,也可以通过flex支持该布局
|
|
|
|
// // 在这种情况下,也可以通过flex支持该布局
|
|
|
@ -76664,9 +76659,9 @@ BI.prepares.push(function () { |
|
|
|
// ? BI.HorizontalAlign.Left : ob.horizontalAlign
|
|
|
|
// ? BI.HorizontalAlign.Left : ob.horizontalAlign
|
|
|
|
// });
|
|
|
|
// });
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
return BI.extend({}, ob, {type: "bi.table_adapt"}); |
|
|
|
// return BI.extend({}, ob, {type: "bi.table_adapt"});
|
|
|
|
} |
|
|
|
// }
|
|
|
|
if (supportFlex) { |
|
|
|
if (isSupportFlex()) { |
|
|
|
// IE下其实也是可以使用flex布局的,只要排除掉出现滚动条的情况
|
|
|
|
// IE下其实也是可以使用flex布局的,只要排除掉出现滚动条的情况
|
|
|
|
// if (!isIE || (ob.scrollable !== true && ob.scrolly !== true)) {
|
|
|
|
// if (!isIE || (ob.scrollable !== true && ob.scrolly !== true)) {
|
|
|
|
return BI.extend({}, ob, {type: "bi.flex_horizontal"}); |
|
|
|
return BI.extend({}, ob, {type: "bi.flex_horizontal"}); |
|
|
@ -76678,41 +76673,42 @@ BI.prepares.push(function () { |
|
|
|
// type: "bi.inline"
|
|
|
|
// type: "bi.inline"
|
|
|
|
// });
|
|
|
|
// });
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
|
|
return BI.extend({}, ob, {type: "bi.inline"}); |
|
|
|
// 否则采用table,不过horizontalAlign的right就不支持了。
|
|
|
|
// 否则采用table,不过horizontalAlign的right就不支持了。
|
|
|
|
return BI.extend({}, ob, {type: "bi.table_adapt"}); |
|
|
|
// return BI.extend({}, ob, {type: "bi.table_adapt"});
|
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.Plugin.configWidget("bi.center_adapt", function (ob) { |
|
|
|
// BI.Plugin.configWidget("bi.center_adapt", function (ob) {
|
|
|
|
var supportFlex = isSupportFlex(), justOneItem = (ob.items && ob.items.length <= 1); |
|
|
|
// var supportFlex = isSupportFlex(), justOneItem = (ob.items && ob.items.length <= 1);
|
|
|
|
var isAdapt = !ob.horizontalAlign || ob.horizontalAlign === BI.HorizontalAlign.Center || ob.horizontalAlign === BI.HorizontalAlign.Stretch; |
|
|
|
// var isAdapt = !ob.horizontalAlign || ob.horizontalAlign === BI.HorizontalAlign.Center || ob.horizontalAlign === BI.HorizontalAlign.Stretch;
|
|
|
|
if (!isAdapt || justOneItem) { |
|
|
|
// if (!isAdapt || justOneItem) {
|
|
|
|
if (supportFlex) { |
|
|
|
// if (supportFlex) {
|
|
|
|
// IE下其实也是可以使用flex布局的,只要排除掉出现滚动条的情况
|
|
|
|
// // IE下其实也是可以使用flex布局的,只要排除掉出现滚动条的情况
|
|
|
|
// if (!isIE || (ob.scrollable !== true && ob.scrollx !== true && ob.scrolly !== true)) {
|
|
|
|
// // if (!isIE || (ob.scrollable !== true && ob.scrollx !== true && ob.scrolly !== true)) {
|
|
|
|
return BI.extend({}, ob, {type: "bi.flex_center_adapt"}); |
|
|
|
// return BI.extend({}, ob, {type: "bi.flex_center_adapt"});
|
|
|
|
|
|
|
|
// // }
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
} |
|
|
|
// if (!BI.isIE() || BI.getIEVersion() >= 8) {
|
|
|
|
if (!BI.isIE() || BI.getIEVersion() >= 8) { |
|
|
|
// return BI.extend({}, ob, {type: "bi.inline_center_adapt"});
|
|
|
|
return BI.extend({}, ob, {type: "bi.inline_center_adapt"}); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return ob; |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
BI.Plugin.configWidget("bi.vertical_adapt", function (ob) { |
|
|
|
|
|
|
|
var supportFlex = isSupportFlex(), justOneItem = (ob.items && ob.items.length <= 1); |
|
|
|
|
|
|
|
var isAdapt = ob.horizontalAlign === BI.HorizontalAlign.Center || ob.horizontalAlign === BI.HorizontalAlign.Stretch; |
|
|
|
|
|
|
|
if (!isAdapt || justOneItem) { |
|
|
|
|
|
|
|
if (supportFlex) { |
|
|
|
|
|
|
|
// IE下其实也是可以使用flex布局的,只要排除掉出现滚动条的情况
|
|
|
|
|
|
|
|
// if (!isIE || (ob.scrollable !== true && ob.scrolly !== true)) {
|
|
|
|
|
|
|
|
return BI.extend({}, ob, {type: "bi.flex_vertical_adapt"}); |
|
|
|
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
} |
|
|
|
// }
|
|
|
|
if (!BI.isIE() || BI.getIEVersion() > 8) { |
|
|
|
// return ob;
|
|
|
|
return BI.extend({}, ob, {type: "bi.inline_vertical_adapt"}); |
|
|
|
// });
|
|
|
|
} |
|
|
|
// BI.Plugin.configWidget("bi.vertical_adapt", function (ob) {
|
|
|
|
} |
|
|
|
// var supportFlex = isSupportFlex(), justOneItem = (ob.items && ob.items.length <= 1);
|
|
|
|
return ob; |
|
|
|
// var isAdapt = ob.horizontalAlign === BI.HorizontalAlign.Center || ob.horizontalAlign === BI.HorizontalAlign.Stretch;
|
|
|
|
}); |
|
|
|
// if (!isAdapt || justOneItem) {
|
|
|
|
|
|
|
|
// if (supportFlex) {
|
|
|
|
|
|
|
|
// // IE下其实也是可以使用flex布局的,只要排除掉出现滚动条的情况
|
|
|
|
|
|
|
|
// // if (!isIE || (ob.scrollable !== true && ob.scrolly !== true)) {
|
|
|
|
|
|
|
|
// return BI.extend({}, ob, {type: "bi.flex_vertical_adapt"});
|
|
|
|
|
|
|
|
// // }
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// if (!BI.isIE() || BI.getIEVersion() > 8) {
|
|
|
|
|
|
|
|
// return BI.extend({}, ob, {type: "bi.inline_vertical_adapt"});
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// return ob;
|
|
|
|
|
|
|
|
// });
|
|
|
|
BI.Plugin.configWidget("bi.horizontal_adapt", function (ob) { |
|
|
|
BI.Plugin.configWidget("bi.horizontal_adapt", function (ob) { |
|
|
|
var justOneItem = (ob.items && ob.items.length <= 1); |
|
|
|
var justOneItem = (ob.items && ob.items.length <= 1); |
|
|
|
if (!ob.verticalAlign || ob.verticalAlign === BI.VerticalAlign.TOP) { |
|
|
|
if (!ob.verticalAlign || ob.verticalAlign === BI.VerticalAlign.TOP) { |
|
|
|