Skip to content

Commit

Permalink
fix: numbox 在vue2手动输入后失焦导致清空数值的严重bug
Browse files Browse the repository at this point in the history
  • Loading branch information
18148764734 committed Apr 26, 2024
1 parent 8a2cf46 commit ac5da5d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 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.7(2024-04-26)
- 修复 在vue2手动输入后失焦导致清空数值的严重bug
## 1.2.6(2024-02-22)
- 新增 设置宽度属性width(单位:px)
## 1.2.5(2024-02-21)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
this.$emit('blur', event)
let value = event.detail.value;
if (isNaN(value)) {
this.inputValue = this.min;
this.inputValue = this.value;
return;
}
value = +value;
Expand Down Expand Up @@ -230,4 +230,4 @@
cursor: not-allowed;
/* #endif */
}
</style>
</style>
5 changes: 3 additions & 2 deletions 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.6",
"version": "1.2.7",
"description": "NumberBox 带加减按钮的数字输入框组件,用户可以控制每次点击增加的数值,支持小数。",
"keywords": [
"uni-ui",
Expand Down Expand Up @@ -41,7 +41,8 @@
"platforms": {
"cloud": {
"tcb": "y",
"aliyun": "y"
"aliyun": "y",
"alipay": "n"
},
"client": {
"App": {
Expand Down

0 comments on commit ac5da5d

Please sign in to comment.