From b60e6c2317cf4acb5cdb431cbc0bbe38d4c67476 Mon Sep 17 00:00:00 2001 From: guy Date: Sat, 27 Mar 2021 21:58:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/platform/web/config.js | 7 +++++++ src/less/core/wrapper/flex.wrapper.vertical.less | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/core/platform/web/config.js b/src/core/platform/web/config.js index 6cdaabeeb..52771f68b 100644 --- a/src/core/platform/web/config.js +++ b/src/core/platform/web/config.js @@ -113,6 +113,13 @@ BI.prepares.push(function () { } } }); + BI.Plugin.configWidget("bi.flex_vertical", function (ob) { + if (ob.scrollable === true || ob.scrollx === true) { + if (ob.hgap > 0 || ob.rgap > 0) {// flex中最后一个margin-right不生效 + return BI.extend({}, ob, {type: "bi.flex_scrollable_vertical"}); + } + } + }); BI.Plugin.configWidget("bi.radio", function (ob) { if (BI.isIE() && BI.getIEVersion() <= 9) { diff --git a/src/less/core/wrapper/flex.wrapper.vertical.less b/src/less/core/wrapper/flex.wrapper.vertical.less index a01580a8d..67f1a460d 100644 --- a/src/less/core/wrapper/flex.wrapper.vertical.less +++ b/src/less/core/wrapper/flex.wrapper.vertical.less @@ -64,7 +64,7 @@ -o-flex-wrap: nowrap; flex-wrap: nowrap; - min-width: 100%; + //min-width: 100%; &.h-center { ///* 09版 */