Skip to content

Commit

Permalink
fix: 修复keyboardnumber组件键盘快速点击偶尔失效的问题 (#1290)
Browse files Browse the repository at this point in the history
* fix: 修复keyboardnumber组件键盘快速点击偶尔失效的问题

* fix: @types/node type error

---------

Co-authored-by: dennis.zpf <[email protected]>
Co-authored-by: rayhomie <[email protected]>
  • Loading branch information
3 people authored Sep 29, 2024
1 parent 1b4bac1 commit f1d7ba2
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 26 deletions.
16 changes: 8 additions & 8 deletions compiled/alipay/src/NumberKeyboard/index.axml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<view
data-key="{{itemKey}}"
class="ant-number-keyboard-kb_number"
onTap="tapButton"
onTouchStart="tapButton"
>
{{itemKey}}
</view>
Expand All @@ -57,21 +57,21 @@
a:if="{{point}}"
class="ant-number-keyboard-kb_number ant-number-keyboard-kb_point ant-number-keyboard-kb_flex"
data-key="."
onTap="tapButton"
onTouchStart="tapButton"
>
.
</view>
<view
class="ant-number-keyboard-kb_number ant-number-keyboard-kb_zero ant-number-keyboard-kb_flex"
data-key="0"
onTap="tapButton"
onTouchStart="tapButton"
>
0
</view>
<view
class="ant-number-keyboard-kb_number ant-number-keyboard-kb_point ant-number-keyboard-kb_flex {{point ? '' : 'ant-number-keyboard-kb_e'}}"
data-key="del"
onTap="tapButton"
onTouchStart="tapButton"
>
<ant-icon
type="TextDeletionOutline"
Expand All @@ -86,15 +86,15 @@
<view
class="ant-number-keyboard-kb_number ant-number-keyboard-kb_zero"
data-key="0"
onTap="tapButton"
onTouchStart="tapButton"
>
0
</view>
<view
a:if="{{point}}"
class="ant-number-keyboard-kb_number ant-number-keyboard-kb_point"
data-key="."
onTap="tapButton"
onTouchStart="tapButton"
>
.
</view>
Expand All @@ -107,7 +107,7 @@
<view
class="ant-number-keyboard-kb_number ant-number-keyboard-kb_del"
data-key="del"
onTap="tapButton"
onTouchStart="tapButton"
>
<ant-icon
type="TextDeletionOutline"
Expand All @@ -116,7 +116,7 @@
</view>
<view
style="opacity: {{confirmDisabled ? '0.5' : '1'}}"
onTap="tapButton"
onTouchStart="tapButton"
class="ant-number-keyboard-kb_transfer"
data-key="enter"
>
Expand Down
16 changes: 8 additions & 8 deletions compiled/wechat/src/NumberKeyboard/index.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<view
data-key="{{itemKey}}"
class="ant-number-keyboard-kb_number"
bind:tap="tapButton"
bind:touchstart="tapButton"
>{{itemKey}}</view>
</block>
</view>
Expand All @@ -53,17 +53,17 @@
wx:if="{{point}}"
class="ant-number-keyboard-kb_number ant-number-keyboard-kb_point ant-number-keyboard-kb_flex"
data-key="."
bind:tap="tapButton"
bind:touchstart="tapButton"
>.</view>
<view
class="ant-number-keyboard-kb_number ant-number-keyboard-kb_zero ant-number-keyboard-kb_flex"
data-key="0"
bind:tap="tapButton"
bind:touchstart="tapButton"
>0</view>
<view
class="ant-number-keyboard-kb_number ant-number-keyboard-kb_point ant-number-keyboard-kb_flex {{point ? '' : 'ant-number-keyboard-kb_e'}}"
data-key="del"
bind:tap="tapButton"
bind:touchstart="tapButton"
>
<ant-icon
type="TextDeletionOutline"
Expand All @@ -78,13 +78,13 @@
<view
class="ant-number-keyboard-kb_number ant-number-keyboard-kb_zero"
data-key="0"
bind:tap="tapButton"
bind:touchstart="tapButton"
>0</view>
<view
wx:if="{{point}}"
class="ant-number-keyboard-kb_number ant-number-keyboard-kb_point"
data-key="."
bind:tap="tapButton"
bind:touchstart="tapButton"
>.</view>
</view>
</view>
Expand All @@ -95,7 +95,7 @@
<view
class="ant-number-keyboard-kb_number ant-number-keyboard-kb_del"
data-key="del"
bind:tap="tapButton"
bind:touchstart="tapButton"
>
<ant-icon
type="TextDeletionOutline"
Expand All @@ -104,7 +104,7 @@
</view>
<view
style="opacity: {{confirmDisabled ? '0.5' : '1'}}"
bind:tap="tapButton"
bind:touchstart="tapButton"
class="ant-number-keyboard-kb_transfer"
data-key="enter"
>
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"@diamondyuan/gulp-ifdef": "^0.3.0",
"@types/gulp": "^4.0.13",
"@types/less": "^3.0.3",
"@types/node": "^20.14.2",
"@types/node": "20.14.2",
"@types/through2": "^2.0.39",
"@typescript-eslint/eslint-plugin": "^5.6.0",
"@typescript-eslint/parser": "^5.6.0",
Expand Down Expand Up @@ -125,4 +125,4 @@
],
"license": "MIT",
"homepage": "https://github.com/ant-design/ant-design-mini"
}
}
16 changes: 8 additions & 8 deletions src/NumberKeyboard/index.axml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<view
data-key="{{ itemKey }}"
class="ant-number-keyboard-kb_number"
onTap="tapButton">
onTouchStart="tapButton">
{{ itemKey }}
</view>
</block>
Expand All @@ -54,19 +54,19 @@
a:if="{{ point }}"
class="ant-number-keyboard-kb_number ant-number-keyboard-kb_point ant-number-keyboard-kb_flex"
data-key="."
onTap="tapButton">
onTouchStart="tapButton">
.
</view>
<view
class="ant-number-keyboard-kb_number ant-number-keyboard-kb_zero ant-number-keyboard-kb_flex"
data-key="0"
onTap="tapButton">
onTouchStart="tapButton">
0
</view>
<view
class="ant-number-keyboard-kb_number ant-number-keyboard-kb_point ant-number-keyboard-kb_flex {{ point ? '' : 'ant-number-keyboard-kb_e' }}"
data-key="del"
onTap="tapButton">
onTouchStart="tapButton">
<ant-icon
type="TextDeletionOutline"
className="ant-number-keyboard-del" />
Expand All @@ -78,14 +78,14 @@
<view
class="ant-number-keyboard-kb_number ant-number-keyboard-kb_zero"
data-key="0"
onTap="tapButton">
onTouchStart="tapButton">
0
</view>
<view
a:if="{{ point }}"
class="ant-number-keyboard-kb_number ant-number-keyboard-kb_point"
data-key="."
onTap="tapButton">
onTouchStart="tapButton">
.
</view>
</view>
Expand All @@ -96,14 +96,14 @@
<view
class="ant-number-keyboard-kb_number ant-number-keyboard-kb_del"
data-key="del"
onTap="tapButton">
onTouchStart="tapButton">
<ant-icon
type="TextDeletionOutline"
className="ant-number-keyboard-del" />
</view>
<view
style="opacity: {{ confirmDisabled ? '0.5' : '1' }}"
onTap="tapButton"
onTouchStart="tapButton"
class="ant-number-keyboard-kb_transfer"
data-key="enter">
<!-- #if ALIPAY -->
Expand Down

0 comments on commit f1d7ba2

Please sign in to comment.