@@ -115,7 +115,11 @@ import { h } from 'vue'
115
115
export default {
116
116
setup () {
117
117
// use an array to return multiple root nodes
118
- return () => [h (' div' ), h (' div' ), h (' div' )]
118
+ return () => [
119
+ h (' div' ),
120
+ h (' div' ),
121
+ h (' div' )
122
+ ]
119
123
}
120
124
}
121
125
```
@@ -162,7 +166,11 @@ import { h } from 'vue'
162
166
export default {
163
167
render () {
164
168
// use an array to return multiple root nodes
165
- return [h (' div' ), h (' div' ), h (' div' )]
169
+ return [
170
+ h (' div' ),
171
+ h (' div' ),
172
+ h (' div' )
173
+ ]
166
174
}
167
175
}
168
176
```
@@ -558,8 +566,8 @@ Passing slots as functions allows them to be invoked lazily by the child compone
558
566
import { h , KeepAlive , Teleport , Transition , TransitionGroup } from ' vue'
559
567
560
568
export default {
561
- setup () {
562
- return () => h (Transition, { mode: ' out-in' } /* ... */ )
569
+ setup () {
570
+ return () => h (Transition, { mode: ' out-in' }, /* ... */ )
563
571
}
564
572
}
565
573
```
@@ -571,8 +579,8 @@ export default {
571
579
import { h , KeepAlive , Teleport , Transition , TransitionGroup } from ' vue'
572
580
573
581
export default {
574
- render () {
575
- return h (Transition, { mode: ' out-in' } /* ... */ )
582
+ render () {
583
+ return h (Transition, { mode: ' out-in' }, /* ... */ )
576
584
}
577
585
}
578
586
```
@@ -609,8 +617,7 @@ export default {
609
617
render () {
610
618
return h (SomeComponent, {
611
619
modelValue: this .modelValue ,
612
- ' onUpdate:modelValue ' : (value ) =>
613
- this .$emit (' update:modelValue' , value)
620
+ ' onUpdate:modelValue ' : (value ) => this .$emit (' update:modelValue' , value)
614
621
})
615
622
}
616
623
}
@@ -627,12 +634,8 @@ import { h, withDirectives } from 'vue'
627
634
628
635
// a custom directive
629
636
const pin = {
630
- mounted () {
631
- /* ... */
632
- },
633
- updated () {
634
- /* ... */
635
- }
637
+ mounted () { /* ... */ },
638
+ updated () { /* ... */ }
636
639
}
637
640
638
641
// <div v-pin:top.animate="200"></div>
0 commit comments