From 1ff50325af66c357d5f50c5c32a43be008ccb019 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Thu, 18 Jul 2019 16:48:24 +0800 Subject: [PATCH] =?UTF-8?q?BI-48231=20number=5Finterval=E4=B9=9F=E8=A1=A5?= =?UTF-8?q?=E5=85=85=E4=B8=80=E4=B8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/css/widget/numberinterval/numberinterval.css | 5 +++++ src/less/widget/numberinterval/numberinterval.less | 3 +++ src/widget/numberinterval/numberinterval.js | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/css/widget/numberinterval/numberinterval.css b/src/css/widget/numberinterval/numberinterval.css index 206f18597..db820c670 100644 --- a/src/css/widget/numberinterval/numberinterval.css +++ b/src/css/widget/numberinterval/numberinterval.css @@ -1,3 +1,8 @@ +.bi-number-interval.hack { + -webkit-border-radius: 0px; + -moz-border-radius: 0px; + border-radius: 0px; +} .bi-number-interval .number-interval-small-editor { -moz-border-radius-topleft: 2px; -webkit-border-top-left-radius: 2px; diff --git a/src/less/widget/numberinterval/numberinterval.less b/src/less/widget/numberinterval/numberinterval.less index 7e16ae3ca..811caf679 100644 --- a/src/less/widget/numberinterval/numberinterval.less +++ b/src/less/widget/numberinterval/numberinterval.less @@ -1,6 +1,9 @@ @import "../../index"; .bi-number-interval { + &.hack { + .border-radius(0px); + } & .number-interval-small-editor { .border-corner-left-radius(2px, 2px); } diff --git a/src/widget/numberinterval/numberinterval.js b/src/widget/numberinterval/numberinterval.js index 9d1378573..74033ec71 100644 --- a/src/widget/numberinterval/numberinterval.js +++ b/src/widget/numberinterval/numberinterval.js @@ -23,7 +23,7 @@ BI.NumberInterval = BI.inherit(BI.Single, { _defaultConfig: function () { var conf = BI.NumberInterval.superclass._defaultConfig.apply(this, arguments); return BI.extend(conf, { - extraCls: "bi-number-interval", + extraCls: "bi-number-interval" + (BI.isIE() && BI.getIEVersion() < 10) ? " hack" : "", height: 24, validation: "valid", closeMin: true,