Skip to content

Commit 7a8dabe

Browse files
committed
docs: omitted
1 parent f3b9b23 commit 7a8dabe

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ createApp()
177177
setup: () => ({
178178
value: ref(),
179179
}),
180-
}).component('json-editor-vue', JsonEditorVue)
180+
}).use(JsonEditorVue)
181181
.mount('#app')
182182
</script>
183183
</body>
@@ -421,7 +421,7 @@ Vue.use(JsonEditorVue, {
421421
})
422422
423423
app.use(VueCompositionAPI)
424-
app.component('json-editor-vue', JsonEditorVue)
424+
app.use(JsonEditorVue)
425425
app.mount('#app')
426426
</script>
427427
</body>

docs/README.zh-CN.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ createApp()
175175
setup: () => ({
176176
value: ref(),
177177
}),
178-
}).component('json-editor-vue', JsonEditorVue)
178+
}).use(JsonEditorVue)
179179
.mount('#app')
180180
</script>
181181
</body>
@@ -419,7 +419,7 @@ Vue.use(JsonEditorVue, {
419419
})
420420
421421
app.use(VueCompositionAPI)
422-
app.component('json-editor-vue', JsonEditorVue)
422+
app.use(JsonEditorVue)
423423
app.mount('#app')
424424
</script>
425425
</body>

0 commit comments

Comments
 (0)