Skip to content

Commit 0c15501

Browse files
fix: fixed autoformatting
1 parent bd893d9 commit 0c15501

File tree

1 file changed

+17
-14
lines changed

1 file changed

+17
-14
lines changed

src/guide/extras/render-function.md

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,11 @@ import { h } from 'vue'
115115
export default {
116116
setup() {
117117
// 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+
]
119123
}
120124
}
121125
```
@@ -162,7 +166,11 @@ import { h } from 'vue'
162166
export default {
163167
render() {
164168
// 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+
]
166174
}
167175
}
168176
```
@@ -558,8 +566,8 @@ Passing slots as functions allows them to be invoked lazily by the child compone
558566
import { h, KeepAlive, Teleport, Transition, TransitionGroup } from 'vue'
559567

560568
export default {
561-
setup() {
562-
return () => h(Transition, { mode: 'out-in' } /* ... */)
569+
setup () {
570+
return () => h(Transition, { mode: 'out-in' }, /* ... */)
563571
}
564572
}
565573
```
@@ -571,8 +579,8 @@ export default {
571579
import { h, KeepAlive, Teleport, Transition, TransitionGroup } from 'vue'
572580

573581
export default {
574-
render() {
575-
return h(Transition, { mode: 'out-in' } /* ... */)
582+
render () {
583+
return h(Transition, { mode: 'out-in' }, /* ... */)
576584
}
577585
}
578586
```
@@ -609,8 +617,7 @@ export default {
609617
render() {
610618
return h(SomeComponent, {
611619
modelValue: this.modelValue,
612-
'onUpdate:modelValue': (value) =>
613-
this.$emit('update:modelValue', value)
620+
'onUpdate:modelValue': (value) => this.$emit('update:modelValue', value)
614621
})
615622
}
616623
}
@@ -627,12 +634,8 @@ import { h, withDirectives } from 'vue'
627634

628635
// a custom directive
629636
const pin = {
630-
mounted() {
631-
/* ... */
632-
},
633-
updated() {
634-
/* ... */
635-
}
637+
mounted() { /* ... */ },
638+
updated() { /* ... */ }
636639
}
637640

638641
// <div v-pin:top.animate="200"></div>

0 commit comments

Comments
 (0)