Skip to content

Commit

Permalink
fix(date-picker): modify varible name
Browse files Browse the repository at this point in the history
  • Loading branch information
BeADre committed Feb 5, 2021
1 parent c597e4d commit e282a91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/varlet-ui/src/date-picker/DatePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ export default defineComponent({
}
const multipleInit = (value: Array<string>, type: string) => {
const rangeDate = type === 'month' ? chooseRangeMonth : chooseRangeDay
const rangeDate = type === 'month' ? chooseMonths : chooseDays
const formatType = type === 'month' ? 'YYYY-MM' : 'YYYY-MM-D'
rangeDate.value = [...new Set(value.map((choose) => dayjs(choose).format(formatType)))]
}
Expand Down

0 comments on commit e282a91

Please sign in to comment.