You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-19Lines changed: 14 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,8 +37,8 @@ English | [简体中文](./docs/README.zh-CN.md)
37
37
### Peer Dependencies
38
38
39
39
-`vue`
40
-
-`vanilla-jsoneditor` standalone bundle provided by svelte-jsoneditor
41
-
-`@vue/composition-api` only for Vue 2.6 or earlier
40
+
-`vanilla-jsoneditor`: standalone bundle provided by `svelte-jsoneditor`
41
+
-`@vue/composition-api`: only for Vue 2.6 or earlier
42
42
43
43
<br>
44
44
@@ -75,9 +75,7 @@ createApp()
75
75
.mount('#app')
76
76
```
77
77
78
-
#### CDN
79
-
80
-
##### Using the ESM Build
78
+
#### CDN + ESM
81
79
82
80
```html
83
81
<!DOCTYPE html>
@@ -118,7 +116,7 @@ createApp()
118
116
</html>
119
117
```
120
118
121
-
##### Using the Global Build
119
+
####CDN + UMD
122
120
123
121
> ⚠ Not yet supported because `vanilla-jsoneditor` does not export UMD, please leave a message [here](https://github.com/josdejong/svelte-jsoneditor/discussions/196) if you need it.
124
122
@@ -187,9 +185,7 @@ Vue.use(JsonEditorVue, {
187
185
})
188
186
```
189
187
190
-
#### CDN
191
-
192
-
##### Using the ESM Build
188
+
#### CDN + ESM
193
189
194
190
```html
195
191
<!DOCTYPE html>
@@ -232,7 +228,7 @@ Vue.use(JsonEditorVue, {
232
228
</html>
233
229
```
234
230
235
-
##### Using the Global Build
231
+
####CDN + UMD
236
232
237
233
> ⚠ Not yet supported because `vanilla-jsoneditor` does not export UMD, please leave a message [here](https://github.com/josdejong/svelte-jsoneditor/discussions/196) if you need it.
> ⚠ Not yet supported because `vanilla-jsoneditor` does not export UMD, please leave a message [here](https://github.com/josdejong/svelte-jsoneditor/discussions/196) if you need it.
369
364
@@ -670,8 +665,8 @@ export default {
670
665
671
666
### Binding value difference between `svelte-jsoneditor` and `json-editor-vue`
672
667
673
-
-`svelte-jsoneditor` An object contains a stringified JSON or a parsed JSON, will do `JSON.parse` when passing as a stringified JSON.
674
-
-`json-editor-vue` JSON itself. What users see is what users get.
668
+
-`svelte-jsoneditor`: An object contains a stringified JSON or a parsed JSON, will do `JSON.parse` when passing as a stringified JSON.
669
+
-`json-editor-vue`: JSON itself. What users see is what users get.
675
670
676
671
If you prefer the behavior of `svelte-jsoneditor`:
0 commit comments