ElemeFE / mint-ui

Mobile UI elements for Vue.js
http://mint-ui.github.io/#!/en
MIT License
16.55k stars 3.55k forks source link

[Bug Report] switch的change事件返回值有问题 #1566

Open 412799755 opened 5 years ago

412799755 commented 5 years ago

Mint UI version

2.2.13

OS/Browsers version

windows 10

Vue version

2.6.10

Reproduction Link

https://jsfiddle.net/37uyg9jh/2/

Steps to reproduce

<mt-switch v-model="checked" @change="changeHappened" > methods: { changeHappened(e){ console.log(e,this.checked) }, }

What is Expected?

console出来的结果一直

What is actually happening?

在mt-switch中不一样 但el-switch是正确的 我想提mt-switch 的bug但是自动跳转的页面引入的是el

hqh0713 commented 5 years ago

可以在回掉函数里将checked的值取反

yuriholyhigh commented 5 years ago

这个bug很久了, 不晓得为啥一直没有改