Skip to content

Commit

Permalink
fix uni-number-box step步长小于1时,键盘类型为number的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
18148764734 committed Feb 21, 2024
1 parent 6dcf1d6 commit f1078ee
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions uni_modules/uni-number-box/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## 1.2.5(2024-02-21)
- 修复 step步长小于1时,键盘类型为number的bug
## 1.2.4(2024-02-02)
- 修复 加减号垂直位置偏移样式问题
## 1.2.3(2023-05-23)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<view @click="_calcValue('minus')" class="uni-numbox__minus uni-numbox-btns" :style="{background}">
<text class="uni-numbox--text" :class="{ 'uni-numbox--disabled': inputValue <= min || disabled }" :style="{color}">-</text>
</view>
<input :disabled="disabled" @focus="_onFocus" @blur="_onBlur" class="uni-numbox__value" type="number"
<input :disabled="disabled" @focus="_onFocus" @blur="_onBlur" class="uni-numbox__value" :type="step<1?'digit':'number'"
v-model="inputValue" :style="{background, color}" />
<view @click="_calcValue('plus')" class="uni-numbox__plus uni-numbox-btns" :style="{background}">
<text class="uni-numbox--text" :class="{ 'uni-numbox--disabled': inputValue >= max || disabled }" :style="{color}">+</text>
Expand Down
2 changes: 1 addition & 1 deletion uni_modules/uni-number-box/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "uni-number-box",
"displayName": "uni-number-box 数字输入框",
"version": "1.2.4",
"version": "1.2.5",
"description": "NumberBox 带加减按钮的数字输入框组件,用户可以控制每次点击增加的数值,支持小数。",
"keywords": [
"uni-ui",
Expand Down

0 comments on commit f1078ee

Please sign in to comment.