element-ui + vue for the project. I wrote a date selection box in the diolag of element, and then I need to echo the acquired time data to the time box when the modal box is displayed. The
code is as follows:
<el-date-picker
style="float: left;"
v-model="editDetails.timeArr"
type="daterange"
size="small"
value-format="yyyy-MM-dd"
range-separator=""
start-placeholder=""
end-placeholder="">
</el-date-picker>
//js
data(){
return {
timeArr:""
}
}
//js
this.outerVisibleStop = true;
this.editDetails = command.details
this.editDetails.timeArr = [command.details.usage_tmp.start_time,command.details.usage_tmp.end_time]
question:
the data will indeed be echoed into the time box, but when I click on the time box to change the date, the value in the time mania will not change.
as shown in figure
after I choose, the date will still be 08-21 to 08-24, and I find that I define the initial value in data, and the value in the time box does not change accordingly