Skip to content

Commit b8ccac4

Browse files
committed
docs: <client-only> is unnecessary in Nuxt environment
1 parent da3f43f commit b8ccac4

File tree

2 files changed

+56
-60
lines changed

2 files changed

+56
-60
lines changed

README.md

Lines changed: 28 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -486,12 +486,10 @@ const value = ref()
486486
</script>
487487
488488
<template>
489-
<client-only>
490-
<JsonEditorVue
491-
v-model="value"
492-
v-bind="{/* local props & attrs */}"
493-
/>
494-
</client-only>
489+
<JsonEditorVue
490+
v-model="value"
491+
v-bind="{/* local props & attrs */}"
492+
/>
495493
</template>
496494
```
497495

@@ -511,9 +509,10 @@ const value = ref()
511509
</script>
512510
513511
<template>
514-
<client-only>
515-
<JsonEditorVue v-model="value" />
516-
</client-only>
512+
<JsonEditorVue
513+
v-model="value"
514+
v-bind="{/* local props & attrs */}"
515+
/>
517516
</template>
518517
```
519518

@@ -537,9 +536,10 @@ const value = ref()
537536
</script>
538537
539538
<template>
540-
<client-only>
541-
<JsonEditorVue v-model="value" />
542-
</client-only>
539+
<JsonEditorVue
540+
v-model="value"
541+
v-bind="{/* local props & attrs */}"
542+
/>
543543
</template>
544544
```
545545

@@ -587,12 +587,10 @@ const value = ref()
587587
</script>
588588
589589
<template>
590-
<client-only>
591-
<JsonEditorVue
592-
v-model="value"
593-
v-bind="{/* local props & attrs */}"
594-
/>
595-
</client-only>
590+
<JsonEditorVue
591+
v-model="value"
592+
v-bind="{/* local props & attrs */}"
593+
/>
596594
</template>
597595
```
598596

@@ -638,9 +636,10 @@ const value = ref()
638636
</script>
639637
640638
<template>
641-
<client-only>
642-
<JsonEditorVue v-model="value" />
643-
</client-only>
639+
<JsonEditorVue
640+
v-model="value"
641+
v-bind="{/* local props & attrs */}"
642+
/>
644643
</template>
645644
```
646645

@@ -696,12 +695,10 @@ export default {
696695
</script>
697696
698697
<template>
699-
<client-only>
700-
<JsonEditorVue
701-
v-model="value"
702-
v-bind="{/* local props & attrs */}"
703-
/>
704-
</client-only>
698+
<JsonEditorVue
699+
v-model="value"
700+
v-bind="{/* local props & attrs */}"
701+
/>
705702
</template>
706703
```
707704

@@ -753,9 +750,10 @@ export default {
753750
</script>
754751
755752
<template>
756-
<client-only>
757-
<JsonEditorVue v-model="value" />
758-
</client-only>
753+
<JsonEditorVue
754+
v-model="value"
755+
v-bind="{/* local props & attrs */}"
756+
/>
759757
</template>
760758
```
761759

docs/README.zh-CN.md

Lines changed: 28 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -484,12 +484,10 @@ const value = ref()
484484
</script>
485485
486486
<template>
487-
<client-only>
488-
<JsonEditorVue
489-
v-model="value"
490-
v-bind="{/* 局部 props & attrs */}"
491-
/>
492-
</client-only>
487+
<JsonEditorVue
488+
v-model="value"
489+
v-bind="{/* 局部 props & attrs */}"
490+
/>
493491
</template>
494492
```
495493

@@ -509,9 +507,10 @@ const value = ref()
509507
</script>
510508
511509
<template>
512-
<client-only>
513-
<JsonEditorVue v-model="value" />
514-
</client-only>
510+
<JsonEditorVue
511+
v-model="value"
512+
v-bind="{/* 局部 props & attrs */}"
513+
/>
515514
</template>
516515
```
517516

@@ -535,9 +534,10 @@ const value = ref()
535534
</script>
536535
537536
<template>
538-
<client-only>
539-
<JsonEditorVue v-model="value" />
540-
</client-only>
537+
<JsonEditorVue
538+
v-model="value"
539+
v-bind="{/* 局部 props & attrs */}"
540+
/>
541541
</template>
542542
```
543543

@@ -585,12 +585,10 @@ const value = ref()
585585
</script>
586586
587587
<template>
588-
<client-only>
589-
<JsonEditorVue
590-
v-model="value"
591-
v-bind="{/* 局部 props & attrs */}"
592-
/>
593-
</client-only>
588+
<JsonEditorVue
589+
v-model="value"
590+
v-bind="{/* 局部 props & attrs */}"
591+
/>
594592
</template>
595593
```
596594

@@ -636,9 +634,10 @@ const value = ref()
636634
</script>
637635
638636
<template>
639-
<client-only>
640-
<JsonEditorVue v-model="value" />
641-
</client-only>
637+
<JsonEditorVue
638+
v-model="value"
639+
v-bind="{/* 局部 props & attrs */}"
640+
/>
642641
</template>
643642
```
644643

@@ -694,12 +693,10 @@ export default {
694693
</script>
695694
696695
<template>
697-
<client-only>
698-
<JsonEditorVue
699-
v-model="value"
700-
v-bind="{/* 局部 props & attrs */}"
701-
/>
702-
</client-only>
696+
<JsonEditorVue
697+
v-model="value"
698+
v-bind="{/* 局部 props & attrs */}"
699+
/>
703700
</template>
704701
```
705702

@@ -751,9 +748,10 @@ export default {
751748
</script>
752749
753750
<template>
754-
<client-only>
755-
<JsonEditorVue v-model="value" />
756-
</client-only>
751+
<JsonEditorVue
752+
v-model="value"
753+
v-bind="{/* 局部 props & attrs */}"
754+
/>
757755
</template>
758756
```
759757

0 commit comments

Comments
 (0)