From 3e634e618ecce29f5ee67f7fae8a7a3c896adbec Mon Sep 17 00:00:00 2001 From: neverland Date: Fri, 10 Jan 2020 09:59:26 +0800 Subject: [PATCH] fix(Calendar): missing info when selected (#5536) --- src/calendar/components/Month.js | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/calendar/components/Month.js b/src/calendar/components/Month.js index 225f4d4dc..422e93af9 100644 --- a/src/calendar/components/Month.js +++ b/src/calendar/components/Month.js @@ -184,22 +184,24 @@ export default createComponent({ } }; - if (type === 'selected') { - return ( -
-
- {item.text} -
-
- ); - } - const TopInfo = topInfo &&
{topInfo}
; const BottomInfo = bottomInfo && (
{bottomInfo}
); + if (type === 'selected') { + return ( +
+
+ {TopInfo} + {item.text} + {BottomInfo} +
+
+ ); + } + return (