提交 c5804ee2 编写于 作者: Q qiang

Merge commit '4251ebf7' into alpha-publish

...@@ -10,7 +10,10 @@ function removeAttr (el, name) { ...@@ -10,7 +10,10 @@ function removeAttr (el, name) {
module.exports = { module.exports = {
preTransformNode (el, { preTransformNode (el, {
warn warn
}) { }) {
if (process.env.UNI_PLATFORM === 'app-plus' && el.tag === 'ad') {
warn("app-vue平台, <ad> 组件暂不支持非 V3 编译, 详见: https://ask.dcloud.net.cn/article/36599")
}
if (el.tag === 'slot' && !el.attrsMap['name']) { if (el.tag === 'slot' && !el.attrsMap['name']) {
el.attrsList.push({ el.attrsList.push({
name: 'SLOT_DEFAULT', name: 'SLOT_DEFAULT',
......
...@@ -34,6 +34,10 @@ export class MapContext { ...@@ -34,6 +34,10 @@ export class MapContext {
operateMapPlayer(this.id, this.pageVm, 'includePoints', args) operateMapPlayer(this.id, this.pageVm, 'includePoints', args)
} }
} }
MapContext.prototype.$getAppMap = function() {
return plus.maps.getMapById(this.pageVm.$page.id + '-map-' + this.id);
}
methods.forEach(function (method) { methods.forEach(function (method) {
MapContext.prototype[method] = callback.warp(function (options, callbackId) { MapContext.prototype[method] = callback.warp(function (options, callbackId) {
......
...@@ -188,7 +188,7 @@ export default { ...@@ -188,7 +188,7 @@ export default {
if (this.latitude && this.longitude) { if (this.latitude && this.longitude) {
mapStyle.center = new plus.maps.Point(this.longitude, this.latitude) mapStyle.center = new plus.maps.Point(this.longitude, this.latitude)
} }
const map = this.map = plus.maps.create('map' + Date.now(), mapStyle) const map = this.map = plus.maps.create(this.$page.id + '-map-' + (this.id || Date.now()), mapStyle)
map.__markers__ = {} map.__markers__ = {}
map.__lines__ = [] map.__lines__ = []
map.__circles__ = [] map.__circles__ = []
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册