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("