Skip to content

Commit e28c53e

Browse files
Jinjiangeddyerburgh
authored andcommitted
docs: code format fix (#1033)
1 parent 8db0c20 commit e28c53e

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Diff for: docs/guides/common-tips.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -75,18 +75,18 @@ You can emit a custom event from a child component by accessing the instance.
7575
import ChildComponent from './ChildComponent'
7676
7777
export default {
78-
name: 'ParentComponent',
79-
components: { ChildComponent },
80-
data() {
81-
return {
82-
emitted: false
83-
}
84-
},
85-
methods: {
86-
onCustom () {
87-
this.emitted = true
88-
}
78+
name: 'ParentComponent',
79+
components: { ChildComponent },
80+
data() {
81+
return {
82+
emitted: false
8983
}
84+
},
85+
methods: {
86+
onCustom () {
87+
this.emitted = true
88+
}
89+
}
9090
}
9191
</script>
9292
```

0 commit comments

Comments
 (0)