Href link does not work
请认真写 PR 的标题,会用于生成 change log。
Do you want to request a feature or report a bug?
What is the current behavior? click the image does not go to the link specified by href
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://jsfiddle.net or similar (template: https://jsfiddle.net/n879nke7/). It appears the click event is used to stop the slide.
What is the expected behavior? Click the image it will follow the href link
Which versions of Vant and Vue, and which browser / OS are affected by this issue? Did this work in previous versions of Vant? vant: 0.8.4 Vue: 2.8.2
do you mean the swipe component?
href in swipe used like this
<van-swipe>
<van-swipe-item v-for="(img, index) in images" :key="index">
<a href="https://youzan.com" target="_blank">
<img v-lazy="img" alt="">
</a>
</van-swipe-item>
</van-swipe>
Adding anchor tag works.
@oddonet how to resolve this question , i can't add url in img
Adding anchor tag works.
can you tell me how to use it