ElementUI of DatePicker Date Picker is not selected by default style

ElementUI of DatePicker multiple date selection problem is not selected by default style

problem:

Date selector element which supports multiple choice and skip the date picker, and does not follow expected after clicking the default fill the selected date:

solve:

Because the dates of the value is 0 o'clock every day, passed in default is the current time, and 0:00 different styles so no application is selected, the default selection if you want the same day, the default value is set as the new Date (new Date () .setHours (0,0,0,0))

 

Guess you like

Origin www.cnblogs.com/yangai/p/11364107.html