Skip to content

Commit

Permalink
文档
Browse files Browse the repository at this point in the history
  • Loading branch information
徐海涛 committed Oct 19, 2020
1 parent 2e12c99 commit 4d7aad9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,5 @@

#### 更新日志

MIT
v1.0.4 修复父组件状态操作使得地图重新加载的问题
v1.0.3 添加文档
10 changes: 4 additions & 6 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,10 @@ var BFAMap = function BFAMap(props) {
};

useEffect(function () {
if (map.current) {
map.current.style.width = '100%';
map.current.style.height = '100%';
initMap();
}
});
map.current.style.width = '100%';
map.current.style.height = '100%';
initMap();
}, []);
if (!setMap || typeof setMap !== 'function') return null;
if (!id) console.error('没有传入唯一ID!,There is no id!');
if (!map_key) console.error('没有传入key!,There is no map key!');
Expand Down

0 comments on commit 4d7aad9

Please sign in to comment.