Skip to content

Commit

Permalink
feat: change the default value of debounce to 300
Browse files Browse the repository at this point in the history
  • Loading branch information
cloydlau committed Sep 22, 2024
1 parent 811a7b3 commit e5f3023
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,7 @@ module.exports = {
| ------------------------------------------------------ | --------------------------------------------------------------------------------------------- | ------- | ----------- |
| v-model /<br>modelValue (Vue 3) /<br>value (Vue 2) | binding value | any | |
| mode /<br>v-model:mode (Vue 3) /<br>:mode.sync (Vue 2) | edit mode | `Mode` | `Mode.tree` |
| debounce | debounce delay to update the binding value when typing, in milliseconds | number | `100` |
| debounce | debounce delay to update the binding value when typing in text mode, in milliseconds | number | `300` |
| stringified | whether to keep the binding value as stringified JSON in text mode | boolean | `true` |
| ... | properties of [svelte-jsoneditor](https://github.com/josdejong/svelte-jsoneditor/#properties) | | |

Expand Down
2 changes: 1 addition & 1 deletion docs/README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -960,7 +960,7 @@ module.exports = {
| ------------------------------------------------------ | -------------------------------------------------------------------------------------- | ------- | ----------- |
| v-model /<br>modelValue (Vue 3) /<br>value (Vue 2) | 绑定值 | any | |
| mode /<br>v-model:mode (Vue 3) /<br>:mode.sync (Vue 2) | 编辑模式 | `Mode` | `Mode.tree` |
| debounce | 输入时更新绑定值的去抖延迟 (毫秒) | number | `100` |
| debounce | 在 text 模式下输入时更新绑定值的去抖延迟 (毫秒) | number | `300` |
| stringified | 在 text 模式下保持绑定值为 stringified JSON | boolean | `true` |
| ... | [svelte-jsoneditor](https://github.com/josdejong/svelte-jsoneditor/#properties) 的属性 | | |

Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ const JsonEditorVue = defineComponent({
}

const debounceComputed = computed(() => {
return conclude([props.debounce, propsGlobal.debounce, 100], {
return conclude([props.debounce, propsGlobal.debounce, 300], {
type: Number as PropType<number>,
})
})
Expand Down

0 comments on commit e5f3023

Please sign in to comment.