From 197cad6c5fceea08513ecb745a5a4dd10c6654d8 Mon Sep 17 00:00:00 2001 From: tanjinzhou <415800467@qq.com> Date: Fri, 6 Dec 2019 17:09:27 +0800 Subject: [PATCH] fix: MonthPicker value can not change when open #1510 --- components/vc-calendar/src/calendar/CalendarHeader.jsx | 3 ++- components/vc-calendar/src/month/MonthPanel.jsx | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/components/vc-calendar/src/calendar/CalendarHeader.jsx b/components/vc-calendar/src/calendar/CalendarHeader.jsx index d7e5bf94d..fdc924bc8 100644 --- a/components/vc-calendar/src/calendar/CalendarHeader.jsx +++ b/components/vc-calendar/src/calendar/CalendarHeader.jsx @@ -22,6 +22,7 @@ function showIf(condition, el) { } const CalendarHeader = { + name: 'CalendarHeader', mixins: [BaseMixin], props: { prefixCls: PropTypes.string, @@ -149,7 +150,7 @@ const CalendarHeader = { panel = ( this.showYearPanel('month')} diff --git a/components/vc-calendar/src/month/MonthPanel.jsx b/components/vc-calendar/src/month/MonthPanel.jsx index 2bc34963e..8f8ee4d3b 100644 --- a/components/vc-calendar/src/month/MonthPanel.jsx +++ b/components/vc-calendar/src/month/MonthPanel.jsx @@ -12,6 +12,7 @@ function goYear(direction) { function noop() {} const MonthPanel = { + name: 'MonthPanel', mixins: [BaseMixin], props: { value: PropTypes.any,