File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
packages/taro-ui/src/components/calendar Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,11 @@ function getFullItem(
12
12
selectedDate : Calendar . SelectedDate ,
13
13
isShowStatus ?: boolean
14
14
) : any {
15
+ if ( options . marks . find ( x => x . value === item . value ) ) {
16
+ ( item . marks as Array < Calendar . Mark > ) = [ {
17
+ value : item . value as string
18
+ } ]
19
+ }
15
20
if ( ! isShowStatus ) return item
16
21
17
22
const bindedPlugins = plugins . map ( fn =>
Original file line number Diff line number Diff line change @@ -65,9 +65,7 @@ export default class AtCalendarList extends React.Component<Props> {
65
65
{ item . marks && item . marks . length > 0 ? (
66
66
< View className = 'extra-marks' >
67
67
{ item . marks . map ( ( mark , key ) => (
68
- < Text key = { key } className = 'mark' >
69
- { mark }
70
- </ Text >
68
+ < Text key = { key } className = 'mark' />
71
69
) ) }
72
70
</ View >
73
71
) : null }
You can’t perform that action at this time.
0 commit comments