From 430a268a9d7b6787c84656797272c0f0d498baff Mon Sep 17 00:00:00 2001 From: harapeko Date: Sat, 13 Feb 2021 02:29:24 +0900 Subject: [PATCH] fix instead tab to 2 spaces --- src/guide/composition-api-setup.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/guide/composition-api-setup.md b/src/guide/composition-api-setup.md index de8facfb4c..e9312fae08 100644 --- a/src/guide/composition-api-setup.md +++ b/src/guide/composition-api-setup.md @@ -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) } ``` @@ -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) } ```