Skip to content

Commit 8191b2c

Browse files
committed
docs: negligible
1 parent 0307f97 commit 8191b2c

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -510,11 +510,13 @@ export default {
510510

511511
## Props
512512

513-
| Name | Description | Type | Default |
514-
| ------- | --------------------------------------------------------------------------------------------- | ------------------ | -------- |
515-
| v-model | binding value | `any` | |
516-
| mode | edit mode, <br>use `v-model:mode` in Vue 3 <br>or `:mode.sync` in Vue 2 | `'tree'`, `'text'` | `'tree'` |
517-
| ... | properties of [svelte-jsoneditor](https://github.com/josdejong/svelte-jsoneditor/#properties) | | |
513+
| Name | Description | Type | Default |
514+
| ------- | --------------------------------------------------------------------------------------------- | ------------- | -------- |
515+
| v-model | binding value | `any` | |
516+
| mode | edit mode, <br>use `v-model:mode` in Vue 3 <br>or `:mode.sync` in Vue 2 | [Mode](#Mode) | `'tree'` |
517+
| ... | properties of [svelte-jsoneditor](https://github.com/josdejong/svelte-jsoneditor/#properties) | | |
518+
519+
> ⚠ kebab-case is required for tag & prop name when using from CDN
518520
519521
### Binding value difference between `svelte-jsoneditor` and `json-editor-vue`
520522

@@ -541,8 +543,6 @@ Including the boolean properties of `svelte-jsoneditor` like `readOnly` with no
541543

542544
- ✔️ `<JsonEditorVue :readOnly="true" />`
543545

544-
> kebab-case is required for tag & prop name when using via CDN
545-
546546
<br>
547547

548548
## Expose
@@ -555,6 +555,8 @@ Including the boolean properties of `svelte-jsoneditor` like `readOnly` with no
555555

556556
## Types
557557

558+
<a name="Mode"></a>
559+
558560
```ts
559561
type Mode = 'tree' | 'text'
560562
```

0 commit comments

Comments
 (0)