🌐 AI搜索 & 代理 主页
Skip to content

Commit 7cfe142

Browse files
committed
Update form-spinbutton.js
1 parent 36463bd commit 7cfe142

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/form-spinbutton/form-spinbutton.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,10 @@ export const BFormSpinbutton = /*#__PURE__*/ Vue.extend({
172172
return interval > 0 ? interval : DEFAULT_REPEAT_INTERVAL
173173
},
174174
computedThreshold() {
175-
return toInteger(this.repeatThreshold, DEFAULT_REPEAT_THRESHOLD) || 1
175+
return Math.max(toInteger(this.repeatThreshold, DEFAULT_REPEAT_THRESHOLD), 1)
176176
},
177177
computedStepMultiplier() {
178-
return toInteger(this.repeatStepMultiplier, DEFAULT_REPEAT_MULTIPLIER) || 1
178+
return Math.max(toInteger(this.repeatStepMultiplier, DEFAULT_REPEAT_MULTIPLIER), 1)
179179
},
180180
computedPrecision() {
181181
// Quick and dirty way to get the number of decimals

0 commit comments

Comments
 (0)