From b3b03e20be06d3abb7770eb96f1ee61a39e30882 Mon Sep 17 00:00:00 2001 From: chenjiahan Date: Mon, 28 Dec 2020 19:39:11 +0800 Subject: [PATCH] fix(Calendar): title slot not work #7826 --- src/calendar/components/Header.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calendar/components/Header.js b/src/calendar/components/Header.js index e4fdf2fc5..ff0e71b2f 100644 --- a/src/calendar/components/Header.js +++ b/src/calendar/components/Header.js @@ -16,7 +16,7 @@ export default createComponent({ const renderTitle = () => { if (props.showTitle) { const text = props.title || t('title'); - const title = slots.title ? slots.title : text; + const title = slots.title ? slots.title() : text; return
{title}
; } };