Skip to content

Commit ae6f01f

Browse files
committed
fix: 利用完整日期做唯一 ID, close #976
1 parent c87d025 commit ae6f01f

File tree

1 file changed

+2
-2
lines changed
  • src/components/calendar/ui/date-list

1 file changed

+2
-2
lines changed

src/components/calendar/ui/date-list/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ export default class AtCalendarList extends Taro.Component<Props> {
4242

4343
return (
4444
<View className='at-calendar__list flex'>
45-
{list.map((item, index) => (
45+
{list.map((item: Calendar.Item) => (
4646
<View
47-
key={`list-item-${index}`}
47+
key={`list-item-${item.value}`}
4848
onClick={this.handleClick.bind(this, item)}
4949
onLongPress={this.handleLongClick.bind(this, item)}
5050
className={classnames(

0 commit comments

Comments
 (0)