-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
el-amap-elastic-marker中的styles > label.content失去响应 #69
Comments
我确认了下,这个是文档有错误,高德官方styles字段不支持修改,所以这个属于静态属性 |
这个我记得之前的版本是可以的,项目正常更新,最近因为我升级了版本(vue, @vuemap/vue-amap),就不行 |
https://lbs.amap.com/api/javascript-api-v2/documentation#elasticmarker 你可以看下高德文档,组件库内部对属性的set方法处理是直接识别高德对象的,如果有对应的set方法会自动增加watch进行处理,目前高德文档里就不存在修改styles的能力 |
https://lbs.amap.com/api/javascript-api-v2/documentation#marker |
你如果使用el-amap-marker的话可以直接 slot的方式去处理,slot走的是vue的渲染模式,性能肯定更好一些 |
ok, 我试试这个组件, 谢谢 |
使用版本
请填写使用版本:2.0.24
vue:3.3.9
问题描述
使用el-amap-elastic-marker组件,传递属性:styles="item.styles", 如果直接改变数组里面的的label.content内容,地图内容不更新
convertedPoints[i].styles[0].label.content = eleToMount.innerHTML
The text was updated successfully, but these errors were encountered: