-
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
5 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
# 全局组件事件 | ||
|
||
每个组件都有这两个事件 | ||
|
||
| 事件名 | 说明 | 类型 | | ||
| ------ | ---------------------------------------- | -------------------------------------------------------------------------- | | ||
| initd | 组件初始化后,调用的方法,返回一个地图实例 | `{ map: BmapGL }` | | ||
| unload | 组件卸载时会调用此方法 | `(event: { type: string, target: any, pixel: Pixel, point: Point }): void;` | | ||
每个组件都有这两个事件。如果该组件库提供的功能不能满足开发需求,则可以通过`initd`事件暴露百度地图实例来自由的使用。 | ||
|
||
| 事件名 | 说明 | 类型 | | ||
| ------ | ------------------------------------------ | ----------------- | | ||
| initd | 组件初始化后,调用的方法,返回一个地图实例 | `{ map: BmapGL }` | | ||
| unload | 组件卸载时会调用此方法 | | |