Skip to content

Commit

Permalink
fix(doc): minimap doc fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xinxin93 committed Nov 17, 2022
1 parent 03e4502 commit d4a8426
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/guide/extension/component-minimap.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
| isShowCloseIcon | boolean | true | 是否展示小地图关闭 |
| headerTitle | string | 导航 | 小地图标题 |


```ts
interface MiniMapStaticOption {
width?: number,
Expand All @@ -26,15 +27,14 @@ interface MiniMapStaticOption {
bottomPosition?: number,
headerTitle?: string,
}
```ts
```
### 启用

```ts
import LogicFlow from '@logicflow/core';
import { MiniMap } from '@logicflow/extension';
import '@logicflow/extension/lib/style/index.css';
// 注意:需要在创建lf实例之前使用 MiniMap.setOption方法需要在1.1.31以上使用
// 注意:需要在创建lf实例之前使用 MiniMap.setOption方法需要在1.1.32以上使用
MiniMap.setOption({
width: 200,
height: 170,
Expand Down

0 comments on commit d4a8426

Please sign in to comment.