rax
rax copied to clipboard
[BUG] <title> 微信小程序 map onLabeltap 事件无效
⌨️
- [ ] Would you like to work on a fix?
Where is the bug from?
Rax Core
Minimal code and steps to reproduce the bug
<map enable-building enable-traffic id="navi_map" longitude={longitude} latitude={latitude} scale={scale} markers={markers} style={{ width: '100%', height: '100%', flex: '1' }} onMarkertap={(e) => onMakerClick(e)} onLabeltap={(e) => onMakerClick(e)} />
Current and expected behavior
点击事件无法执行
Environment
"rax": "^1.1.0", "rax-app-renderer": "^3.0.3", "rax-button": "^0.6.5", "rax-document": "^0.1.0", "rax-embed": "^1.2.2", "rax-image": "^2.0.0", "rax-link": "^1.0.1", "rax-picker": "^0.6.5", "rax-scrollview": "^3.7.4", "rax-server-renderer": "^1.4.1", "rax-slider": "^3.1.5", "rax-swiper": "^0.2.0", "rax-text": "^2.0.0", "rax-use-router": "^3.1.2", "rax-video": "^1.6.0", "rax-view": "^2.0.0" node v16.18.1
build.json
{ "targets": ["web", "wechat-miniprogram"], "webpack5": true, "plugins": ["build-plugin-fusion-mobile"], "publicPath": "./", "wechat-miniprogram": { "subPackages": true, "nativeConfig": { // "appid": "wx153595e9066fcafa", "appid": "wx6cd83ad69409b652", "setting": { "es6": true, "urlCheck": false, "minified": true } } }, "proxy": { "/devApi": { "enable": true, "target": "http://192.168.2.75:5566", "changeOrigin": true, "pathRewrite": { "^/devApi": "" } }, "/proApi": { "enable": true, "target": "https://lczhyl.lucheng.gov.cn/dev-api", "changeOrigin": true, "pathRewrite": { "^/proApi": "" } } }, "browserslist": { "chrome": 49, "ie": 11 } }
Possible solution
No response
Additional context
No response