VueJs - Element UI: How to get change el-date-picker

dede.brahma picture dede.brahma · Jul 10, 2018 · Viewed 10.8k times · Source

I have a case with Element UI 2.4.3 (actually for now i use 2.4.1).

When i use el-date-picker @change: in previous version it runs fine, but when Element UI has an update is el-date-picker :@change not working.

can you help me?

here my code

<el-date-picker v-model="form.birthdayName" type="date"  @change="dateChangebirthday"  format="dd-MM-yyyy" value-format="yyyy-MM-dd"  placeholder="Pick a day">
</el-date-picker>

here my fiddle (Element UI: 2.3.9) = https://jsfiddle.net/dede402/v86npjsg/3/

here my fiddle (Element UI: 2.4.3) = https://jsfiddle.net/dede402/875pe9zo/3/

Answer

weslati khaled picture weslati khaled · Sep 28, 2018
@change="dateChangebirthday($event)"

new Vue({ ...
methods: {
  dateChangebirthday(event){
  console.log(event);
 }
}