Skip to content

Commit b9f2ad7

Browse files
jay-qianjueBeiQiaoT
authored andcommitted
fix(u-number-box):修复动态切换类型引起的输入框bug
1 parent ddb7efe commit b9f2ad7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

uview-ui/components/u-number-box/u-number-box.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</view>
1111
<input :disabled="disabledInput || disabled" :cursor-spacing="getCursorSpacing" :class="{ 'u-input-disabled': disabled }"
1212
v-model="inputVal" class="u-number-input" @blur="onBlur" @focus="onFocus"
13-
:type="positiveInteger?'number':'digit'" :style="{
13+
type="digit" :style="{
1414
color: color,
1515
fontSize: size + 'rpx',
1616
background: bgColor,

0 commit comments

Comments
 (0)