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

Commit 36463bd

Browse files
committed
Update form-spinbutton.js
1 parent 46fae2b commit 36463bd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,10 +164,12 @@ export const BFormSpinbutton = /*#__PURE__*/ Vue.extend({
164164
return Math.floor((max - min) / step) * step + min
165165
},
166166
computedDelay() {
167-
return toInteger(this.repeatDelay, DEFAULT_REPEAT_DELAY)
167+
const delay = toInteger(this.repeatDelay, 0)
168+
return delay > 0 ? delay : DEFAULT_REPEAT_DELAY
168169
},
169170
computedInterval() {
170-
return toInteger(this.repeatInterval, DEFAULT_REPEAT_INTERVAL)
171+
const interval = toInteger(this.repeatInterval, 0)
172+
return interval > 0 ? interval : DEFAULT_REPEAT_INTERVAL
171173
},
172174
computedThreshold() {
173175
return toInteger(this.repeatThreshold, DEFAULT_REPEAT_THRESHOLD) || 1

0 commit comments

Comments
 (0)