chore: site docs page add api anchor (#21736)

This commit is contained in:
zefeng 2020-03-01 20:31:41 +08:00 committed by GitHub
parent 301529e0d4
commit e59d606dae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -149,6 +149,11 @@ class ComponentDoc extends React.Component {
<Affix className="toc-affix" offsetTop={16}>
<ul id="demo-toc" className="toc">
{jumper}
{doc.api && (
<li key="API" title="API">
<a href="#API">API</a>
</li>
)}
</ul>
</Affix>
<section className="markdown">