diff --git a/examples/docs/en-US/input-number.md b/examples/docs/en-US/input-number.md index c395ae80b..e43b88267 100644 --- a/examples/docs/en-US/input-number.md +++ b/examples/docs/en-US/input-number.md @@ -126,6 +126,7 @@ Additional `large` and `small` sizes of the input box are available |size | size of the component | string | large/small| — | |disabled| whether the component is disabled | boolean | — | false | |controls| whether to enable the control buttons | boolean | — | true | +|debounce| debounce delay when typing, in millisecond | number | — | 300 | ### Events diff --git a/examples/docs/zh-CN/input-number.md b/examples/docs/zh-CN/input-number.md index e90b121f9..cd9b09d68 100644 --- a/examples/docs/zh-CN/input-number.md +++ b/examples/docs/zh-CN/input-number.md @@ -131,6 +131,7 @@ | size | 计数器尺寸 | string | large, small | — | | disabled | 是否禁用计数器 | boolean | — | false | | controls | 是否使用控制按钮 | boolean | — | true | +| debounce | 输入时的去抖延迟,毫秒 | number | — | 300 | ### Events | 事件名称 | 说明 | 回调参数 | diff --git a/packages/input-number/src/input-number.vue b/packages/input-number/src/input-number.vue index 864e7fba5..a21fa69f0 100644 --- a/packages/input-number/src/input-number.vue +++ b/packages/input-number/src/input-number.vue @@ -27,7 +27,7 @@ @keydown.up.native.prevent="increase" @keydown.down.native.prevent="decrease" @blur="handleBlur" - @input="handleInput" + @input="debounceHandleInput" :disabled="disabled" :size="size" :max="max" @@ -46,6 +46,7 @@