From 809c0b46ae9f6984dfca12356dd16387133ffd2a Mon Sep 17 00:00:00 2001 From: chenfan <83797583+chenfan0@users.noreply.github.com> Date: Sun, 9 Jan 2022 22:06:16 +0800 Subject: [PATCH 1/2] Update composition-api-setup.md From the source code, when the setup function is called, the component instance is already created using the createComponentInstance function. --- src/guide/composition-api-setup.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/guide/composition-api-setup.md b/src/guide/composition-api-setup.md index 1e113308c8..a2a33bb60f 100644 --- a/src/guide/composition-api-setup.md +++ b/src/guide/composition-api-setup.md @@ -103,7 +103,7 @@ We'll explain the role of `expose` shortly. ## Accessing Component Properties -When `setup` is executed, the component instance has not been created yet. As a result, you will only be able to access the following properties: +When `setup` is executed, although the component instance has already been created, you will only be able to access the following properties: - `props` - `attrs` From a69344d08950118cab83bc04b721b5d4c8c31f80 Mon Sep 17 00:00:00 2001 From: chenfan <83797583+chenfan0@users.noreply.github.com> Date: Thu, 13 Jan 2022 09:25:00 +0800 Subject: [PATCH 2/2] Update src/guide/composition-api-setup.md Co-authored-by: Natalia Tepluhina --- src/guide/composition-api-setup.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/guide/composition-api-setup.md b/src/guide/composition-api-setup.md index a2a33bb60f..b9c828b48d 100644 --- a/src/guide/composition-api-setup.md +++ b/src/guide/composition-api-setup.md @@ -103,7 +103,7 @@ We'll explain the role of `expose` shortly. ## Accessing Component Properties -When `setup` is executed, although the component instance has already been created, you will only be able to access the following properties: +When `setup` is executed, you will only be able to access the following properties: - `props` - `attrs`