diff --git a/components/_util/styleChecker.tsx b/components/_util/styleChecker.tsx index 8c3de765f9..c1798aa5ea 100644 --- a/components/_util/styleChecker.tsx +++ b/components/_util/styleChecker.tsx @@ -1,4 +1,4 @@ -function isStyleSupport(styleName: string | Array): boolean { +const isStyleSupport = (styleName: string | Array): boolean => { if (typeof window !== 'undefined' && window.document && window.document.documentElement) { const styleNameList = Array.isArray(styleName) ? styleName : [styleName]; const { documentElement } = window.document;