From b0e62faf79f1e22bf35985462aa24bcea34aa61e Mon Sep 17 00:00:00 2001 From: joson <373693643@qq.com> Date: Fri, 22 Apr 2022 10:50:11 +0800 Subject: [PATCH] style(components): [table] clean code (#7309) Co-authored-by: hezhaoshun --- packages/components/table/src/table/style-helper.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/components/table/src/table/style-helper.ts b/packages/components/table/src/table/style-helper.ts index 5fdf52647e..5e101edf62 100644 --- a/packages/components/table/src/table/style-helper.ts +++ b/packages/components/table/src/table/style-helper.ts @@ -151,10 +151,7 @@ function useStyle( } const hasScrollClass = (className: string) => { const { tableWrapper } = table.refs - if (tableWrapper && tableWrapper.classList.contains(className)) { - return true - } - return false + return !!(tableWrapper && tableWrapper.classList.contains(className)) } const syncPostion = function () { if (!table.refs.scrollBarRef) return