Update application.md
This commit is contained in:
parent
5ec875efb7
commit
931d20beb8
@ -1,16 +1,16 @@
|
|||||||
# Application
|
# Application
|
||||||
|
|
||||||
## 构造函数
|
## Constructor
|
||||||
|
|
||||||
### `constructor()`
|
### `constructor()`
|
||||||
|
|
||||||
创建一个应用实例。
|
Create an application instance.
|
||||||
|
|
||||||
**签名**
|
**Signature**
|
||||||
|
|
||||||
* `constructor(options: ApplicationOptions)`
|
* `constructor(options: ApplicationOptions)`
|
||||||
|
|
||||||
**示例**
|
**Example**
|
||||||
|
|
||||||
```ts
|
```ts
|
||||||
const app = new Application({
|
const app = new Application({
|
||||||
@ -23,11 +23,11 @@ const app = new Application({
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
## 方法
|
## Methods
|
||||||
|
|
||||||
### use()
|
### use()
|
||||||
|
|
||||||
添加 Providers,内置 Providers 有:
|
Add Providers, build-in Providers are:
|
||||||
|
|
||||||
- APIClientProvider
|
- APIClientProvider
|
||||||
- I18nextProvider
|
- I18nextProvider
|
||||||
@ -44,7 +44,7 @@ const app = new Application({
|
|||||||
|
|
||||||
### render()
|
### render()
|
||||||
|
|
||||||
渲染 App 组件
|
Component to render the App.
|
||||||
|
|
||||||
```ts
|
```ts
|
||||||
import { Application } from '@nocobase/client';
|
import { Application } from '@nocobase/client';
|
||||||
@ -59,4 +59,4 @@ export const app = new Application({
|
|||||||
});
|
});
|
||||||
|
|
||||||
export default app.render();
|
export default app.render();
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user