Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[t-swiper] 滑动会触发onClick #1169

Closed
wuxianlijiang opened this issue Nov 28, 2023 · 1 comment · Fixed by #1182
Closed

[t-swiper] 滑动会触发onClick #1169

wuxianlijiang opened this issue Nov 28, 2023 · 1 comment · Fixed by #1182
Labels
easy 简单问题 enhancement New feature or request issueshoot 代码共建平台

Comments

@wuxianlijiang
Copy link

wuxianlijiang commented Nov 28, 2023

tdesign-mobile-vue 版本

1.0.6

重现链接

No response

重现步骤

<t-swiper :autoplay="true" :height="swiperHeight+'px'"
		:navigation="{ type: 'fraction', paginationPosition: 'bottom-right' }" @change="handleChange" @click="toArticle">
		<t-swiper-item v-for="(item, index) in news" :key="index">
			<t-image class="image-container" :src="item.extractedImg[0]" shape="round"
				:style="{height:picHeight+'px'}" fit="cover" />
			<div style="height:30px;font-size:14px;line-height:15px;overflow:hidden;background-color:#FFFFFF;">
				【媒体关注】{{item.title}}</div>

		</t-swiper-item>
	</t-swiper>

期望结果

左右滑动正常切换,点击才触发toArticle

实际结果

左右滑动时,即触发toArticle

框架版本

Vue(3.3.8)

浏览器版本

Microsoft Edge 版本 118.0.2088.69 (正式版本) (64 位)

系统版本

windows10

Node版本

v16.14.2

补充说明

No response

IssueShoot

  • 预估时长: 1
  • 期望完成时间: 2023-12-11 00:00:00 +0000 UTC
  • 开发难度: 低
  • 参与人数: 1
  • 需求对接人: anlyyao
  • 验收标准: 实现期望改造效果,提 PR 并通过验收无误
  • 备注: 最终激励以实际提交 pull request 并合并为准
Copy link
Contributor

👋 @wuxianlijiang,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@anlyyao anlyyao added enhancement New feature or request easy 简单问题 issueshoot 代码共建平台 labels Dec 8, 2023
hkaikai added a commit to hkaikai/tdesign-mobile-vue that referenced this issue Dec 12, 2023
yaogengzhu pushed a commit that referenced this issue Dec 21, 2023
* fix(swiper): 滑动会触发onClick问题修复

fix #1169

* refactor(swiper): useSwipe 删除threshold参数
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
easy 简单问题 enhancement New feature or request issueshoot 代码共建平台
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants