![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vue 百度地图
许辰铭
这个作者很懒,什么都没留下…
展开
-
Vue 百度地图公共函数调用规范
定义公共函数 新建method文件夹,定义common.js 凡是本来方法是this,统一传为that,然后传参的时候传this export default { infoWindowClose(that) { that.show = false }, infoWindowOpen(that) { that.show = true } } 组件调用 Marker.vue引入方法及调用 <template> <bm-marker :position="markerPoin原创 2021-06-23 17:53:56 · 114 阅读 · 0 评论 -
vue baidumap父组件传给子组件
Vue子父组件——父组件传值子组件原本代码子组件 (Marker.vue)父组件 (Marker.vue) 原本代码 非子父组件的形式,代码如下 <template> <baidu-map class="bm-view" :center="center" :zoom="zoom" @ready="handler" :scroll-wheel-zoom="true"> <bm-marker :position="markerPoint" :dragging="true"原创 2021-06-23 17:14:58 · 311 阅读 · 0 评论