From 0ddf6393fbc556c816116166a8ef57f14c4ca69a Mon Sep 17 00:00:00 2001 From: SunLxy <1011771396@qq.com> Date: Wed, 18 May 2022 11:22:47 +0800 Subject: [PATCH] =?UTF-8?q?fix(collapse):=E4=BF=AE=E6=94=B9=E6=8A=98?= =?UTF-8?q?=E5=8F=A0=E9=9D=A2=E6=9D=BF=E9=BB=98=E8=AE=A4=E5=AD=97=E5=8F=B7?= =?UTF-8?q?=E5=A4=A7=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-collapse/src/style/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/react-collapse/src/style/index.ts b/packages/react-collapse/src/style/index.ts index 3f5cab9dae..e9cf10ead4 100644 --- a/packages/react-collapse/src/style/index.ts +++ b/packages/react-collapse/src/style/index.ts @@ -8,7 +8,7 @@ interface CollapseProps { const CollapseWarp = styled.div` border-radius: 4px; line-height: 16px; - font-size: 14px; + font-size: ${(props) => getThemeVariantValue(props, 'fontSizeDefault')}; background-color: ${(props) => getThemeVariantValue(props, 'backgroundColorBase')}; border: 1px solid ${(props) => getThemeVariantValue(props, 'borderColorCollapseBase')}; overflow: hidden; @@ -101,6 +101,7 @@ const CollapseWarp = styled.div` CollapseWarp.defaultProps = { defaultTheme: { + fontSizeDefault: '14px', backgroundColorBase: '#fff', borderColorCollapseBase: '#d9d9d9', // Header