mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 07:25:15 +00:00
Update application.md
This commit is contained in:
parent
5ec875efb7
commit
931d20beb8
@ -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();
|
||||
```
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user