提交 d7c623fc 编写于 作者: d-u-a's avatar d-u-a

fix: v3 map @regionchange 无效的Bug

上级 7e3c7e15
......@@ -4,10 +4,6 @@ import {
import initOn from 'uni-core/service/bridge/on'
import {
requireNativePlugin
} from '../bridge'
import {
NETWORK_TYPES
} from '../api/constants'
......@@ -23,7 +19,8 @@ import {
import tabBar from './tab-bar'
import {
publish
publish,
requireNativePlugin
} from '../bridge'
import {
......
......@@ -208,9 +208,9 @@ export default {
map.onclick = (e) => {
this.$trigger('click', {}, e)
}
map.onstatuschanged((data = {}) => {
this.$trigger('end', {}, data)
})
map.onstatuschanged = (e) => {
this.$trigger('regionchange', {}, e)
}
this._addMarkers(this.markers)
this._addMapLines(this.polyline)
this._addMapCircles(this.circles)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册