mint-ui icon indicating copy to clipboard operation
mint-ui copied to clipboard

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

Open 412799755 opened this issue 5 years ago • 2 comments

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

412799755 avatar Apr 22 '19 06:04 412799755

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

hqh0713 avatar May 22 '19 10:05 hqh0713

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

yuriholyhigh avatar May 29 '19 08:05 yuriholyhigh