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

feat(picker-item): 给picker-item增加齿轮拨动效果 #2397

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

vickey-chen
Copy link

🤔 这个 PR 的性质是?

  • [v] 新特性提交

🔗 相关 Issue

暂无

💡 需求背景和解决方案

背景:官方的picker 是有齿轮拨动震动感
解决方案:结合官方提供的wx.vibrateShort接口,当手指滑动每一个item时,触发接口,达到类似官方picker的效果

image

📝 更新日志

  • fix(picker-item): 给picker-item增加齿轮拨动效果

  • 本条 PR 不需要纳入 Changelog

☑️ 请求合并前的自查清单

⚠️ 请自检并全部勾选全部选项⚠️

  • 文档已补充或无须补充
  • 代码演示已提供或无须提供
  • TypeScript 定义已补充或无须补充
  • Changelog 已提供或无须提供

@anlyyao
Copy link
Collaborator

anlyyao commented Oct 31, 2023

@vickey-chen 谢谢 vicky 提供的 pr,有以下几点疑问,

  1. wx.vibrateShort接口只能实现拨动震感,没有齿轮效果
  2. 官网文档目前对 wx.vibrateShort 接口介绍是仅在 iPhone 7 / 7 Plus 以上及 Android 机型生效,不知道有没有做其他机型的兼容测试?
  3. 组件增加拨动震感应该是可选的,需要给组件本身新增属性如“vibrateShort",类型为Boolean/Object,并暴露wx.vibrateShort接口的所有属性,用户可完全自定义,不应该直接内嵌在组件

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants