Element-ui calculates the date range

uses the date range selection component in element-ui. One problem encountered is that
needs to bind an input box after this date range component. The input box is dynamically calculated and shows how many days the selected date range has. Can you help me answer it? thank you very much

.
Jun.03,2021

set the property of this component:
value-format= "timestamp"
then get the start and end timestamps from the bound v-model [start, end]
days = (end-start) / (60 60 2401000)

Menu