@@ -541,7 +541,7 @@ import { ref } from 'vue'
541541
542542const JsonEditorVue = () => process.client
543543 ? import('json-editor-vue')
544- : Promise.resolve({ render: h => h('div') })
544+ : Promise.resolve({ render: (h) => h('div') })
545545
546546const value = ref()
547547</script>
@@ -638,7 +638,7 @@ export default {
638638 components: {
639639 JsonEditorVue: () => process.client
640640 ? import('json-editor-vue')
641- : Promise.resolve({ render: h => h('div') }),
641+ : Promise.resolve({ render: (h) => h('div') }),
642642 },
643643 data() {
644644 return {
@@ -828,11 +828,11 @@ module.exports = {
828828
829829## 属性
830830
831- | 名称 | 说明 | 类型 | 默认值 |
832- | ------- | -------------------------------------------------------------------------------------- | ------------- | -------- |
833- | v-model | 绑定值 | ` any ` | |
834- | mode | 编辑模式, <br >在 Vue 3 中使用 ` [ v-model] :mode` , <br >在 Vue 2 中使用 ` :mode[.sync] ` | [ Mode] ( #Mode ) | ` 'tree' ` |
835- | ... | [ svelte-jsoneditor] ( https://github.com/josdejong/svelte-jsoneditor/#properties ) 的参数 | | |
831+ | 名称 | 说明 | 类型 | 默认值 |
832+ | ------------------------------------------------------ | -------------------------------------------------------------------------------------- | ------------- | -------- |
833+ | v-model /< br >modelValue (Vue 3) /< br >value (Vue 2) | 绑定值 | any | |
834+ | mode / <br >v-model: mode (Vue 3) / <br >: mode .sync ( Vue 2) | 编辑模式 | [ Mode] ( #Mode ) | ` 'tree' ` |
835+ | ... | [ svelte-jsoneditor] ( https://github.com/josdejong/svelte-jsoneditor/#properties ) 的属性 | | |
836836
837837### svelte-jsoneditor 与 json-editor-vue 中绑定值的差异
838838
@@ -844,23 +844,23 @@ module.exports = {
844844``` html
845845<JsonEditorVue
846846 :content =" content"
847- :onChange =" updatedContent => {
847+ :onChange =" ( updatedContent) => {
848848 content = updatedContent
849849 }"
850850/>
851851```
852852
853853> 详情见 https://github.com/josdejong/svelte-jsoneditor/pull/166。
854854
855- ### 布尔类型参数
855+ ### 布尔类型属性
856856
857- 仅写上 svelte-jsoneditor 的布尔类型参数如 ` readOnly ` 但不传值,会隐式转换为 ` true ` :
857+ 仅写上 svelte-jsoneditor 的布尔类型属性如 ` readOnly ` 但不传值,会隐式转换为 ` true ` :
858858
859859- ✔️ ` <JsonEditorVue readOnly /> `
860860
861861- ✔️ ` <JsonEditorVue :readOnly="true" /> `
862862
863- > 通过 CDN 使用时,标签、prop 名称都必须使用短横线命名
863+ > 通过 CDN 使用时,标签、属性名称都必须使用短横线命名。
864864
865865<br >
866866
0 commit comments