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

[新功能需求] 数字键盘增加鼠标事件处理 #951

Open
kunglin opened this issue Mar 18, 2025 · 1 comment
Open

[新功能需求] 数字键盘增加鼠标事件处理 #951

kunglin opened this issue Mar 18, 2025 · 1 comment
Labels
feature: need confirm 待确认的新特性

Comments

@kunglin
Copy link

kunglin commented Mar 18, 2025

这个功能解决了什么问题?

数字键盘没有监听鼠标事件,导致H5平台下数字键盘没有任何输出

你期望的 API 是什么样子的?

文件位置wot-design-uni\components\wd-number-keyboard\key\index.vue

新增鼠标事件

<view :class="`wd-key-wrapper ${wider ? 'wd-key-wrapper--wider' : ''}`" @[clickStart]="onTouchStart" @[clickMove]="onTouchMove" @[clickEnd]="onTouchEnd">
  ...
</view>
<script setup>
...
// #ifdef APP-PLUS
const clickStart = 'touchstart'
const clickMove = 'touchmove'
const clickEnd = 'touchend'
// #endif
// #ifdef WEB
const clickStart = 'mousedown'
const clickMove = 'mousemove'
const clickEnd = 'mouseup'
// #endif
...
</script>
@kunglin kunglin added the feature: need confirm 待确认的新特性 label Mar 18, 2025
Copy link

感谢您的建议。您提出的功能请求是为数字键盘增加鼠标事件处理,以解决在H5平台下数字键盘没有输出的问题。我们会将此请求记录下来,并在未来的版本中考虑实现。

如果您有其他问题或需要进一步的帮助,请随时在评论中描述您的问题并@petercat-assistant与我开始对话。

🪧 Tips For further assistance, please describe your question in the comments and @petercat-assistant to start a conversation with me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature: need confirm 待确认的新特性
Projects
None yet
Development

No branches or pull requests

1 participant