We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 68b54f7 + 8026b89 commit 3fcea1eCopy full SHA for 3fcea1e
packages/taro-ui/src/components/calendar/common/helper.ts
@@ -12,6 +12,11 @@ function getFullItem(
12
selectedDate: Calendar.SelectedDate,
13
isShowStatus?: boolean
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
+ }
20
if (!isShowStatus) return item
21
22
const bindedPlugins = plugins.map(fn =>
packages/taro-ui/src/components/calendar/ui/date-list/index.tsx
@@ -66,7 +66,7 @@ export default class AtCalendarList extends React.Component<Props> {
66
<View className='extra-marks'>
67
{item.marks.map((mark, key) => (
68
<Text key={key} className='mark'>
69
- {mark}
+ {mark.value}
70
</Text>
71
))}
72
</View>
0 commit comments