File tree Expand file tree Collapse file tree 2 files changed +22
-14
lines changed Expand file tree Collapse file tree 2 files changed +22
-14
lines changed Original file line number Diff line number Diff line change @@ -977,13 +977,13 @@ With Scope:
977
977
978
978
## Props
979
979
980
- | Name | Description | Type | Default |
981
- | ------------------------------------------------------ | --------------------------------------------------------------------------------------------- | ------- | ----------- |
982
- | v-model /<br >modelValue (Vue 3) /<br >value (Vue 2) | binding value | any | |
983
- | mode /<br >v-model: mode (Vue 3) /<br >: mode .sync (Vue 2) | edit mode | ` Mode ` | ` Mode.tree ` |
984
- | debounce | debounce delay to update the binding value when typing in text mode, in milliseconds | number | ` 300 ` |
985
- | stringified | whether to keep the binding value as stringified JSON in text mode | boolean | ` true ` |
986
- | ... | properties of [ svelte-jsoneditor] ( https://github.com/josdejong/svelte-jsoneditor/#properties ) | | |
980
+ | Name | Description | Type | Default |
981
+ | ------------------------------------------------------ | --------------------------------------------------------------------------------------------- | ------------------------------------ | ----------- |
982
+ | v-model /<br >modelValue (Vue 3) /<br >value (Vue 2) | binding value | any | |
983
+ | mode /<br >v-model: mode (Vue 3) /<br >: mode .sync (Vue 2) | edit mode | ` Mode ` /< br >you can use string in JS | ` Mode.tree ` |
984
+ | debounce | debounce delay to update the binding value when typing in text mode, in milliseconds | number | ` 300 ` |
985
+ | stringified | whether to keep the binding value as stringified JSON in text mode | boolean | ` true ` |
986
+ | ... | properties of [ svelte-jsoneditor] ( https://github.com/josdejong/svelte-jsoneditor/#properties ) | | |
987
987
988
988
### parsed JSON vs. stringified JSON
989
989
@@ -1038,6 +1038,10 @@ import { Mode } from 'vanilla-jsoneditor'
1038
1038
</template>
1039
1039
```
1040
1040
1041
+ > [ !Tip]
1042
+ >
1043
+ > You can use ` mode="text" ` in JavaScript context without installing vanilla-jsoneditor.
1044
+
1041
1045
### Naming convention
1042
1046
1043
1047
Support camelCase and kebab-case for tag & property name.
Original file line number Diff line number Diff line change @@ -977,13 +977,13 @@ npm rm json-editor-vue && npm i json-editor-vue
977
977
978
978
## 属性
979
979
980
- | 名称 | 说明 | 类型 | 默认值 |
981
- | ------------------------------------------------------ | -------------------------------------------------------------------------------------- | ------- | ----------- |
982
- | v-model /<br >modelValue (Vue 3) /<br >value (Vue 2) | 绑定值 | any | |
983
- | mode /<br >v-model: mode (Vue 3) /<br >: mode .sync (Vue 2) | 编辑模式 | ` Mode ` | ` Mode.tree ` |
984
- | debounce | 在 text 模式下输入时更新绑定值的去抖延迟 (毫秒) | number | ` 300 ` |
985
- | stringified | 在 text 模式下保持绑定值为 stringified JSON | boolean | ` true ` |
986
- | ... | [ svelte-jsoneditor] ( https://github.com/josdejong/svelte-jsoneditor/#properties ) 的属性 | | |
980
+ | 名称 | 说明 | 类型 | 默认值 |
981
+ | ------------------------------------------------------ | -------------------------------------------------------------------------------------- | ----------------------------------- | ----------- |
982
+ | v-model /<br >modelValue (Vue 3) /<br >value (Vue 2) | 绑定值 | any | |
983
+ | mode /<br >v-model: mode (Vue 3) /<br >: mode .sync (Vue 2) | 编辑模式 | ` Mode ` /< br >可以在 JS 中使用 string | ` Mode.tree ` |
984
+ | debounce | 在 text 模式下输入时更新绑定值的去抖延迟 (毫秒) | number | ` 300 ` |
985
+ | stringified | 在 text 模式下保持绑定值为 stringified JSON | boolean | ` true ` |
986
+ | ... | [ svelte-jsoneditor] ( https://github.com/josdejong/svelte-jsoneditor/#properties ) 的属性 | | |
987
987
988
988
### parsed JSON vs. stringified JSON
989
989
@@ -1038,6 +1038,10 @@ import { Mode } from 'vanilla-jsoneditor'
1038
1038
</template>
1039
1039
```
1040
1040
1041
+ > [ !Tip]
1042
+ >
1043
+ > 可以在 JavaScript 上下文中使用 ` mode="text" ` 而无需安装 vanilla-jsoneditor.
1044
+
1041
1045
### 命名惯例
1042
1046
1043
1047
标签、属性名称支持驼峰命名和短横线命名
You can’t perform that action at this time.
0 commit comments