datePicker时间选择器,当datePickerMode: 'date'模式时,返回值应该仅包含年月日,而不需要时分秒
Closed this issue · 0 comments
gongwenyi commented
当配置datePickerMode
为date
时,表示我仅仅需要选择年月日,但是返回值却同时包含了时分秒
datePickerMode: 'date',
onPickerConfirm: (selectedDate) => {
console.log(selectedDate); // 返回值为2016-12-06 17:54:37,包含了我不需要的时分秒
}