From ddc4156b37024cdac6c05fbb351bb475223a59ba Mon Sep 17 00:00:00 2001 From: "Xavier.Meng" Date: Fri, 20 Dec 2024 16:38:38 +0800 Subject: [PATCH] =?UTF-8?q?BI-161134=20fix:=20display:=20none=20=E6=97=B6?= =?UTF-8?q?=E8=AE=A1=E7=AE=97=E4=B8=BA=200=20=E4=B8=8B=E6=AC=A1=E8=B0=83?= =?UTF-8?q?=E7=94=A8=E4=B9=9F=E9=9C=80=E9=87=8D=E6=96=B0=E8=AE=A1=E7=AE=97?= =?UTF-8?q?=EF=BC=8C=E4=B8=8D=E8=83=BD=E5=8D=95=E9=9D=A0=20isNull=20?= =?UTF-8?q?=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/fineui/src/core/utils/dom.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/fineui/src/core/utils/dom.js b/packages/fineui/src/core/utils/dom.js index 65b746600..a917a4de6 100644 --- a/packages/fineui/src/core/utils/dom.js +++ b/packages/fineui/src/core/utils/dom.js @@ -2,7 +2,7 @@ * 对DOM操作的通用函数 */ import $ from "jquery"; -import { each, isEmpty, isNotEmptyObject, isNull } from "../2.base"; +import { each, isEmpty, isNotEmptyObject } from "../2.base"; import { Widget } from "../4.widget"; import { isIE } from "./../platform"; @@ -116,7 +116,7 @@ export function getScrollWidth(css) { if (hasNoneScrollWidth) { return 0; - } else if (isNull(_scrollWidthMap[key])) { + } else if (!_scrollWidthMap[key]) { const ul = Widget._renderEngine .createElement("
") .width(50)