Skip to content

Commit e5f3023

Browse files
committed
feat: change the default value of debounce to 300
1 parent 811a7b3 commit e5f3023

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -962,7 +962,7 @@ module.exports = {
962962
| ------------------------------------------------------ | --------------------------------------------------------------------------------------------- | ------- | ----------- |
963963
| v-model /<br>modelValue (Vue 3) /<br>value (Vue 2) | binding value | any | |
964964
| mode /<br>v-model:mode (Vue 3) /<br>:mode.sync (Vue 2) | edit mode | `Mode` | `Mode.tree` |
965-
| debounce | debounce delay to update the binding value when typing, in milliseconds | number | `100` |
965+
| debounce | debounce delay to update the binding value when typing in text mode, in milliseconds | number | `300` |
966966
| stringified | whether to keep the binding value as stringified JSON in text mode | boolean | `true` |
967967
| ... | properties of [svelte-jsoneditor](https://github.com/josdejong/svelte-jsoneditor/#properties) | | |
968968

docs/README.zh-CN.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,7 @@ module.exports = {
960960
| ------------------------------------------------------ | -------------------------------------------------------------------------------------- | ------- | ----------- |
961961
| v-model /<br>modelValue (Vue 3) /<br>value (Vue 2) | 绑定值 | any | |
962962
| mode /<br>v-model:mode (Vue 3) /<br>:mode.sync (Vue 2) | 编辑模式 | `Mode` | `Mode.tree` |
963-
| debounce | 输入时更新绑定值的去抖延迟 (毫秒) | number | `100` |
963+
| debounce | 在 text 模式下输入时更新绑定值的去抖延迟 (毫秒) | number | `300` |
964964
| stringified | 在 text 模式下保持绑定值为 stringified JSON | boolean | `true` |
965965
| ... | [svelte-jsoneditor](https://github.com/josdejong/svelte-jsoneditor/#properties) 的属性 | | |
966966

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ const JsonEditorVue = defineComponent({
111111
}
112112

113113
const debounceComputed = computed(() => {
114-
return conclude([props.debounce, propsGlobal.debounce, 100], {
114+
return conclude([props.debounce, propsGlobal.debounce, 300], {
115115
type: Number as PropType<number>,
116116
})
117117
})

0 commit comments

Comments
 (0)