From 5c0f3df3e9a4ca82948823002a74b42b2edc63d5 Mon Sep 17 00:00:00 2001 From: guy Date: Fri, 2 Apr 2021 22:20:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B8=83=E5=B1=80=E5=A4=A7=E4=B8=80=E7=BB=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/platform/web/config.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/core/platform/web/config.js b/src/core/platform/web/config.js index 6b324df12..cf49db71c 100644 --- a/src/core/platform/web/config.js +++ b/src/core/platform/web/config.js @@ -14,10 +14,6 @@ BI.prepares.push(function () { return _isSupportFlex; }; BI.Plugin.configWidget("bi.horizontal", function (ob) { - var isIE = BI.isIE(), supportFlex = isSupportFlex(), isLessIE8 = isIE && BI.getIEVersion() < 8; - if (isLessIE8) { - return ob; - } // 在横向自适应场景下我们需要使用table的自适应撑出滚动条的特性(flex处理不了这种情况) // 主要出现在center_adapt或者horizontal_adapt的场景,或者主动设置horizontalAlign的场景 // if (ob.horizontalAlign === BI.HorizontalAlign.Center || ob.horizontalAlign === BI.HorizontalAlign.Stretch) { @@ -44,7 +40,7 @@ BI.prepares.push(function () { // } // return BI.extend({}, ob, {type: "bi.table_adapt"}); // } - if (supportFlex) { + if (isSupportFlex()) { // IE下其实也是可以使用flex布局的,只要排除掉出现滚动条的情况 // if (!isIE || (ob.scrollable !== true && ob.scrolly !== true)) { return BI.extend({}, ob, {type: "bi.flex_horizontal"});