You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/app/index.en-US.md
+47-6
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,7 @@ Application wrapper for some global usages.
30
30
App provides upstream and downstream method calls through `provide/inject`, because useApp needs to be used as a subcomponent, we recommend encapsulating App at the top level in the application.
@@ -66,7 +67,18 @@ App provides upstream and downstream method calls through `provide/inject`, beca
66
67
67
68
Note: App.useApp must be available under App.
68
69
69
-
### 与 ConfigProvider 先后顺序
70
+
#### Embedded usage scenarios (if not necessary, try not to do nesting)
71
+
72
+
```html
73
+
<a-app>
74
+
<a-space>
75
+
...
76
+
<a-app>...</a-app>
77
+
</a-space>
78
+
</a-app>
79
+
```
80
+
81
+
#### Sequence with ConfigProvider
70
82
71
83
The App component can only use the token in the `ConfigProvider`, if you need to use the Token, the ConfigProvider and the App component must appear in pairs.
72
84
@@ -76,13 +88,42 @@ The App component can only use the token in the `ConfigProvider`, if you need to
76
88
</a-config-provider>
77
89
```
78
90
79
-
### Embedded usage scenarios (if not necessary, try not to do nesting)
0 commit comments