diff --git a/docs/api/motajs-client/index.md b/docs/api/motajs-client/index.md index 1535acb..5c5b673 100644 --- a/docs/api/motajs-client/index.md +++ b/docs/api/motajs-client/index.md @@ -2,12 +2,12 @@ `@motajs/client` 包含多个模块: -- [ClientBase](../motajs-client-base/) +- [`@motajs/client-base`](../motajs-client-base/) 示例: ```ts -import { ClientBase } from '@motajs/client'; +import { KeyCode } from '@motajs/client'; -const { ClientBase } = Mota.require('@motajs/client'); +const { KeyCOde } = Mota.require('@motajs/client'); ``` diff --git a/docs/api/motajs-system/index.md b/docs/api/motajs-system/index.md index 73ffadf..76a8633 100644 --- a/docs/api/motajs-system/index.md +++ b/docs/api/motajs-system/index.md @@ -2,16 +2,16 @@ 包含两个模块: -- [Action](../motajs-system-action/index.md) -- [UI](../motajs-system-ui/index.md) +- [`@motajs/system-action`](../motajs-system-action/index.md) +- [`@motajs/system-ui`](../motajs-system-ui/index.md) ## 引入示例 ```ts -import { Action, UI } from '@motajs/system'; +import { gameKey, UIController } from '@motajs/system'; -Action.gameKey.register(...); -const myController = new UI.UIController('my-controller'); +gameKey.register(...); +const myController = new UIController('my-controller'); ``` 等效于: diff --git a/packages/client/src/index.ts b/packages/client/src/index.ts index ef669d9..1e7424f 100644 --- a/packages/client/src/index.ts +++ b/packages/client/src/index.ts @@ -1 +1 @@ -export * as Base from '@motajs/client-base'; +export * from '@motajs/client-base'; diff --git a/packages/system/src/index.ts b/packages/system/src/index.ts index c6ec392..3670f29 100644 --- a/packages/system/src/index.ts +++ b/packages/system/src/index.ts @@ -1,2 +1,2 @@ -export * as Action from '@motajs/system-action'; -export * as UI from '@motajs/system-ui'; +export * from '@motajs/system-action'; +export * from '@motajs/system-ui';