File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
website/src/components/Preview Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 2828
2929这是一个基于 React 封装的百度地图组件,帮助你轻松的接入地图到 React 项目中。除了必须引用的 APILoader/Map 组件外,我们目前提供了最常用的地图组件,能满足大部分简单的业务场景;如果你有更复杂的需求,或者觉得默认提供的组件功能不够,可以使用 Map 组件返回的地图实例,完全自定义一个地图组件,然后根据百度地图原生 API 做百度地图允许你做的一切事情。
3030
31+ <!-- rehype:ignore:start-->
3132![ ] ( https://user-images.githubusercontent.com/1680273/71525077-35126b00-290b-11ea-9a11-ffd8b30dc9b8.png )
33+ <!-- rehype:ignore:end-->
3234
3335文档实例预览: [ Github] ( https://uiwjs.github.io/react-baidu-map/ ) | [ Gitee] ( https://uiw.gitee.io/react-baidu-map/ )
3436
@@ -149,6 +151,6 @@ As always, thanks to our amazing contributors!
149151
150152Made with [ github-action-contributors] ( https://github.com/jaywcjlove/github-action-contributors ) .
151153
152- ### License
154+ ## License
153155
154156Licensed under the MIT License.
Original file line number Diff line number Diff line change @@ -55,6 +55,9 @@ const Aside = styled.aside`
5555 z-index: 999;
5656 max-height: calc(100vh - 6px);
5757 overflow: auto;
58+ > ul {
59+ padding-left: 10px;
60+ }
5861 li {
5962 height: 22px;
6063 line-height: 22px;
@@ -64,6 +67,7 @@ const Aside = styled.aside`
6467 display: block;
6568 background-color: #f38701;
6669 border-radius: 2px;
70+ margin-left: -10px;
6771 height: 18px;
6872 margin-top: 3px;
6973 position: absolute;
@@ -112,7 +116,7 @@ export const Hyperlink = ({ dom, mdStr }: any) => {
112116 < li key = { heading . id } className = { activeId === heading . id ? 'active' : '' } >
113117 < a
114118 style = { {
115- marginLeft : `${ heading . level - 2 } em` ,
119+ marginLeft : `${ ( heading . level - 2 ) * 0.5 } em` ,
116120 fontWeight : activeId === heading . id ? 'bold' : 'normal' ,
117121 } }
118122 href = { `#${ heading . id } ` }
You can’t perform that action at this time.
0 commit comments