Skip to content

Commit 2a71cfd

Browse files
authored
added 'selectedColor' property
Added 'selectedColor' property to change selected day 'backgroundColor'.
1 parent e5b5e69 commit 2a71cfd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/calendar/day/basic/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ class Day extends Component {
8080

8181
if (marking.selected) {
8282
containerStyle.push(this.style.selected);
83+
if (marking.selectedColor) {
84+
containerStyle.push({backgroundColor: marking.selectedColor});
85+
}
8386
dotStyle.push(this.style.selectedDot);
8487
textStyle.push(this.style.selectedText);
8588
} else if (typeof marking.disabled !== 'undefined' ? marking.disabled : this.props.state === 'disabled') {

0 commit comments

Comments
 (0)