fix anchor demo (#14226)

* fix anchor demo

* update anchor snapshot
This commit is contained in:
gyh9457 2019-01-09 23:40:47 +08:00 committed by zombieJ
parent 16f76ecc5e
commit c037e8dddd
4 changed files with 12 additions and 12 deletions

View File

@ -35,10 +35,10 @@ exports[`renders ./components/anchor/demo/basic.md correctly 1`] = `
>
<a
class="ant-anchor-link-title"
href="#components-anchor-demo-fixed"
title="Fixed demo"
href="#components-anchor-demo-static"
title="Static demo"
>
Fixed demo
Static demo
</a>
</div>
<div
@ -111,10 +111,10 @@ exports[`renders ./components/anchor/demo/onClick.md correctly 1`] = `
>
<a
class="ant-anchor-link-title"
href="#components-anchor-demo-fixed"
title="Fixed demo"
href="#components-anchor-demo-static"
title="Static demo"
>
Fixed demo
Static demo
</a>
</div>
<div
@ -185,10 +185,10 @@ exports[`renders ./components/anchor/demo/static.md correctly 1`] = `
>
<a
class="ant-anchor-link-title"
href="#components-anchor-demo-fixed"
title="Fixed demo"
href="#components-anchor-demo-static"
title="Static demo"
>
Fixed demo
Static demo
</a>
</div>
<div

View File

@ -21,7 +21,7 @@ const { Link } = Anchor;
ReactDOM.render(
<Anchor>
<Link href="#components-anchor-demo-basic" title="Basic demo" />
<Link href="#components-anchor-demo-fixed" title="Fixed demo" />
<Link href="#components-anchor-demo-static" title="Static demo" />
<Link href="#API" title="API">
<Link href="#Anchor-Props" title="Anchor Props" />
<Link href="#Link-Props" title="Link Props" />

View File

@ -26,7 +26,7 @@ const handleClick = (e, link) => {
ReactDOM.render(
<Anchor affix={false} onClick={handleClick}>
<Link href="#components-anchor-demo-basic" title="Basic demo" />
<Link href="#components-anchor-demo-fixed" title="Fixed demo" />
<Link href="#components-anchor-demo-static" title="Static demo" />
<Link href="#API" title="API">
<Link href="#Anchor-Props" title="Anchor Props" />
<Link href="#Link-Props" title="Link Props" />

View File

@ -21,7 +21,7 @@ const { Link } = Anchor;
ReactDOM.render(
<Anchor affix={false}>
<Link href="#components-anchor-demo-basic" title="Basic demo" />
<Link href="#components-anchor-demo-fixed" title="Fixed demo" />
<Link href="#components-anchor-demo-static" title="Static demo" />
<Link href="#API" title="API">
<Link href="#Anchor-Props" title="Anchor Props" />
<Link href="#Link-Props" title="Link Props" />