Update application.md

This commit is contained in:
Pearl C 2023-02-18 23:35:36 +08:00 committed by GitHub
parent 5ec875efb7
commit 931d20beb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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