From ab82f42f6ae7d163d940f977b7ae9dc7c34aa701 Mon Sep 17 00:00:00 2001 From: chenjiahan Date: Mon, 9 Mar 2020 20:23:50 +0800 Subject: [PATCH] fix(Calendar): color not work in multiple mode (#5786) --- src/calendar/components/Month.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/calendar/components/Month.js b/src/calendar/components/Month.js index cf46a4987..7bbdc38cf 100644 --- a/src/calendar/components/Month.js +++ b/src/calendar/components/Month.js @@ -186,7 +186,12 @@ export default createComponent({ } if (this.color) { - if (type === 'start' || type === 'end') { + if ( + type === 'start' || + type === 'end' || + type === 'multiple-selected' || + type === 'multiple-middle' + ) { style.background = this.color; } else if (type === 'middle') { style.color = this.color;