ElemeFE / mint-ui

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

[Bug Report] Navbar与Cell Swipe结合的bug #1234

Open zhengnz opened 6 years ago

zhengnz commented 6 years ago

Mint UI version

2.2.13

OS/Browsers version

钉钉

Vue version

2.5.13

Reproduction Link

https://mint-ui.github.io/docs/#/zh-cn2/cell-swipe

Steps to reproduce

mt-cell-swipe在mt-tab-container-item中,当切换tab后,cell swipe的按钮就会出现,并且无法去除

What is Expected?

切换tab后cell swipe需拖动才会出现按钮

What is actually happening?

切换tab后cell swipe无需拖动也会出现按钮,而且无法通过拖动使按钮消失

lshzndx commented 6 years ago

我也遇到了同样的问题。有解决方案了么?

topul commented 6 years ago

前面有回应过的,在cell swipe上面加v-if,每次切过来都重新渲染一遍就可以了,这个是因为他们把相关的处理逻辑放在了mounted里面,切换过程中是不会触发计算的