单泠浩

Results 15 comments of 单泠浩

方便的话在 https://codesandbox.io/ 上复现下

感觉这 setup 表现不正常,用普通的 是可以的

V3 你还要引入样式: `import 'vue-tinder/lib/style.css'` Vite 打包还不支持把这样式整进去😂

> Hello I have the same problem, if you can make it work with composition api please help. It's support Composition API,But not "", ** is a compile-time syntactic sugar...

👍👍👍

我有一个将 .v-move 的 transition 强行设为 none 的样式,导致无法监听到 transitionend,且因为你开启了 sync 模式,所以就认为动画还没完成,出现了卡住无法滑动的现象。 这个 v-move 的样式是很久以前加的了,具体目的我也记不清了,可能是重构后忘记去掉了😂(以前是定时器判断结束,现在是监听 transitionend),但类名是 vue 在动画过渡时加的。 我有空看看这个 v-move 出现的条件,看看把这样式去掉会不会有副作用。

你图片上有 onClick 事件,去掉试试?滑动后松手也是会触发 click 的,排查下是不是 onClick 方法里面的问题。

不清楚,没针对 uniapp 做过兼容😂