Skip to content

Commit

Permalink
fix instead tab to 2 spaces (#858)
Browse files Browse the repository at this point in the history
  • Loading branch information
harapeko authored Feb 12, 2021
1 parent f9828e0 commit 8822df4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/guide/composition-api-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ If you need to destructure your props, you can do this by utilizing the [toRefs]
import { toRefs } from 'vue'

setup(props) {
const { title } = toRefs(props)
const { title } = toRefs(props)

console.log(title.value)
console.log(title.value)
}
```

Expand All @@ -56,9 +56,9 @@ If `title` is an optional prop, it could be missing from `props`. In that case,
import { toRef } from 'vue'

setup(props) {
const title = toRef(props, 'title')
const title = toRef(props, 'title')

console.log(title.value)
console.log(title.value)
}
```

Expand Down

0 comments on commit 8822df4

Please sign in to comment.