PurityChan
PurityChan
  • 发布:2019-09-28 15:54
  • 更新:2019-09-28 16:09
  • 阅读:1725

map组件controls属性定义后,如何监听点击事件

分类:uni-app
map
controls: [  
                {  
                    id: 1,  
                    position: {  
                        left: 5,  
                        top: 50,  
                        width: 30,  
                        height: 30  
                    },  
                    iconPath: '/static/logo.png',  
                    clickable: true  
                }  
            ],

在vue中,如果添加了clickable: true ,点击后会提示nativeView[1].click at uniapp://ready:1
15:41:10.640 Do not have handler in component: pages/map/nmap. Please make sure that handler has been defined in pages/map/nmap.
不知道如何监听,在nvue中,添加controls属性,也不知如何监听

2019-09-28 15:54 负责人:无 分享
已邀请:
1***@qq.com

1***@qq.com

文档不是写的很清楚吗?用@controltap

该问题目前已经被锁定, 无法添加新回复