Skip to content

Commit

Permalink
fix: 修复keyboardnumber组件键盘快速点击偶尔失效的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
dennis.zpf committed Sep 27, 2024
1 parent 1b4bac1 commit 2503c9d
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 24 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
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 2503c9d

Please sign in to comment.