|
|
@ -26,14 +26,14 @@ BI.prepares.push(function () { |
|
|
|
if (!isIE && supportFlex) { |
|
|
|
if (!isIE && supportFlex) { |
|
|
|
return BI.extend({}, ob, {type: "bi.flex_horizontal"}); |
|
|
|
return BI.extend({}, ob, {type: "bi.flex_horizontal"}); |
|
|
|
} |
|
|
|
} |
|
|
|
// 解决使用inline_vertical_adapt的顺序问题
|
|
|
|
// // 解决使用inline_vertical_adapt的顺序问题
|
|
|
|
// 从右往左放置时,为了兼容,我们统一采用从右到左的放置方式
|
|
|
|
// // 从右往左放置时,为了兼容,我们统一采用从右到左的放置方式
|
|
|
|
if (ob.horizontalAlign === BI.HorizontalAlign.Right) { |
|
|
|
// if (ob.horizontalAlign === BI.HorizontalAlign.Right) {
|
|
|
|
return BI.extend({verticalAlign: BI.VerticalAlign.Top}, ob, { |
|
|
|
// return BI.extend({verticalAlign: BI.VerticalAlign.Top}, ob, {
|
|
|
|
type: "bi.inline_vertical_adapt", |
|
|
|
// type: "bi.inline_vertical_adapt",
|
|
|
|
items: ob.items && ob.items.reverse() |
|
|
|
// items: ob.items && ob.items.reverse()
|
|
|
|
}); |
|
|
|
// });
|
|
|
|
} |
|
|
|
// }
|
|
|
|
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) { |
|
|
@ -43,9 +43,6 @@ BI.prepares.push(function () { |
|
|
|
if (!isIE && supportFlex) { |
|
|
|
if (!isIE && supportFlex) { |
|
|
|
return BI.extend({}, ob, {type: "bi.flex_center_adapt"}); |
|
|
|
return BI.extend({}, ob, {type: "bi.flex_center_adapt"}); |
|
|
|
} |
|
|
|
} |
|
|
|
if (ob.horizontalAlign === BI.HorizontalAlign.Right) { |
|
|
|
|
|
|
|
return BI.extend({}, ob, {type: "bi.inline_center_adapt", items: ob.items && ob.items.reverse()}); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return BI.extend({}, ob, {type: "bi.inline_center_adapt"}); |
|
|
|
return BI.extend({}, ob, {type: "bi.inline_center_adapt"}); |
|
|
|
} |
|
|
|
} |
|
|
|
return ob; |
|
|
|
return ob; |
|
|
@ -57,9 +54,6 @@ BI.prepares.push(function () { |
|
|
|
if (!isIE && supportFlex) { |
|
|
|
if (!isIE && supportFlex) { |
|
|
|
return BI.extend({}, ob, {type: "bi.flex_vertical_center_adapt"}); |
|
|
|
return BI.extend({}, ob, {type: "bi.flex_vertical_center_adapt"}); |
|
|
|
} |
|
|
|
} |
|
|
|
if (ob.horizontalAlign === BI.HorizontalAlign.Right) { |
|
|
|
|
|
|
|
return BI.extend({}, ob, {type: "bi.inline_vertical_adapt", items: ob.items && ob.items.reverse()}); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return BI.extend({}, ob, {type: "bi.inline_vertical_adapt"}); |
|
|
|
return BI.extend({}, ob, {type: "bi.inline_vertical_adapt"}); |
|
|
|
} |
|
|
|
} |
|
|
|
return ob; |
|
|
|
return ob; |
|
|
|