Skip to content

Commit

Permalink
fix: 修复文案错误以及判断优化
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzhenfei committed Oct 10, 2020
1 parent 546fd21 commit 1c5236d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/pi-date-picker/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -414,9 +414,9 @@ export default {
},
handleDateChange(e) {
const values = e.detail.value // values 返回的数组固定是picker的数量,只返回有变化的索引值
const time = this.date.time // 取出当前data的实际时间
const time = this.date.time // 取出当前date的实际时间
values.forEach((value, index) => {
if (value != null) {
if (value !== null) {
// value为picker列的索引值
const field = FIELD_MAPS[index] // day
const val = this[field.getMethod][value] // days[index] 取出对应picker值
Expand Down

0 comments on commit 1c5236d

Please sign in to comment.