Skip to content

Commit 8f26090

Browse files
committed
docs: modification error
1 parent 50d83d2 commit 8f26090

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

components/app/index.en-US.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ Application wrapper for some global usages.
3030
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.
3131

3232
```html
33-
// myPage.vue
3433
<template>
3534
<a-space>
3635
<a-button type="primary" @click="showMessage">Open message</a-button>
@@ -72,18 +71,18 @@ Note: App.useApp must be available under App.
7271
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.
7372

7473
```html
75-
<a-config-provider theme="{{" ... }}>
74+
<a-config-provider theme="{{ ... }}">
7675
<a-app>...</a-app>
7776
</a-config-provider>
7877
```
7978

8079
### Embedded usage scenarios (if not necessary, try not to do nesting)
8180

8281
```html
83-
<a-pp>
82+
<a-app>
8483
<a-space>
8584
...
8685
<a-app>...</a-app>
8786
</a-space>
88-
</a-pp>
87+
</a-app>
8988
```

components/app/index.zh-CN.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ coverDark: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*JGb3RIzyOCkAAA
3131
App 组件通过 `provide/inject` 提供上下文方法调用,因而 useApp 需要作为子组件才能使用,我们推荐在应用中顶层包裹 App。
3232

3333
```html
34-
// myPage.vue
3534
<template>
3635
<a-space>
3736
<a-button type="primary" @click="showMessage">Open message</a-button>
@@ -73,18 +72,18 @@ App 组件通过 `provide/inject` 提供上下文方法调用,因而 useApp
7372
App 组件只能在 `ConfigProvider` 之下才能使用 Design Token, 如果需要使用其样式重置能力,则 ConfigProvider 与 App 组件必须成对出现。
7473

7574
```html
76-
<a-config-provider theme="{{" ... }}>
75+
<a-config-provider theme="{{ ... }}">
7776
<a-app>...</a-app>
7877
</a-config-provider>
7978
```
8079

8180
### 内嵌使用场景(如无必要,尽量不做嵌套)
8281

8382
```html
84-
<a-pp>
83+
<a-app>
8584
<a-space>
8685
...
8786
<a-app>...</a-app>
8887
</a-space>
89-
</a-pp>
88+
</a-app>
9089
```

0 commit comments

Comments
 (0)