We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16a654d commit 4ab37d1Copy full SHA for 4ab37d1
docs/README.zh-CN.md
@@ -436,7 +436,29 @@ const value = ref()
436
</script>
437
```
438
439
-#### 全局注册
+#### 全局注册为 Module
440
+
441
+```ts
442
+// nuxt.config.ts
443
444
+export default defineNuxtConfig({
445
+ modules: ['json-editor-vue/nuxt'],
446
+})
447
+```
448
449
+```vue
450
+<template>
451
+ <client-only>
452
+ <JsonEditorVue v-model="value" />
453
+ </client-only>
454
+</template>
455
456
+<script setup>
457
+const value = ref()
458
+</script>
459
460
461
+#### 全局注册为 Plugin
462
463
```ts
464
// ~/plugins/JsonEditorVue.client.ts
0 commit comments