参数名 | 类型 | 说明 | 默认值 | 是否必填 | 备注 |
---|---|---|---|---|---|
areas | IArea[] | 地图子组件 | - | true | - |
areaStyle | CSSProperties | 地图子组件的父容器 | - | false | - |
containerStyle | CSSProperties | 地图子组件的父容器的父容器 | - | false | 该容器可以配置地图背景图样式,当出现地图背景和子组件范围不一致时可用 |
showCurrentPosition | boolean | 是否展示当前位置标签 | true | false | - |
closeIconProps | IButtonProps | 关闭按钮 | - | false | - |
buttonProps | IButtonProps | 前往按钮 | - | false | 不配置,则点击地图子组件直接跳转 |
style | CSSProperties | - | false | - | |
className | string | 自定义类名 | - | false | - |
onGoBack | (data: IArea) => void | 跳转事件 回调 | - | false | 返回节点数据 data:{{top: number,left: number,title: string, roomId: string, disabled: boolean}} |
onClose | () => any | 关闭事件 | - | true | - |
xverse-components-map
1.0.4 • Public • Published Package Sidebar
Install
npm i xverse-components-map
Weekly Downloads
0
Version
1.0.4
License
MIT
Unpacked Size
97.8 kB
Total Files
8