Closed gurupetach closed 2 years ago
<date-picker v-model="value" @clear="handleClear"/>
handleClear() {
this.value = [from, to]
}
Thanks. Also this works..
<date-picker v-model="params.range" type="date" value-type="format" format="YYYY-MM-DD" range placeholder="Filter by date range" @clear=" (clear) => { params.range = [(from = '2021-01-01'), (to = '')]; } " />
When clearing(the x button), how can i set it to particular
from
andto
instead of null?