yue1123 / vue3-baidu-map-gl

🎉百度地图 GL版 Vue3 组件库,baidu map gl components libary based on Vue3.0
https://yue1123.github.io/vue3-baidu-map-gl/
MIT License
378 stars 45 forks source link

pluginReady 回调里面第二个参数为undefind #89

Closed huxiguo closed 1 month ago

huxiguo commented 1 month ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

pluginReady 回调里面第二个参数为undefind,并且如果有两个页面都注册了动画组件,只有一个页面会回调pluginReady ,另一个页面不会,我使用的是在每个BMap 组件里面注册组件

guixianleng commented 1 month ago

正确姿势: const getPluginReady = (map, pluginRecord) => { console.log(pluginRecord, 'pluginRecord'); }

yue1123 commented 1 month ago

能提供一个最小复现demo吗