forked from ant-design/ant-design
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Anchor component changed to data-driven (ant-design#39034)
* feat: Anchor component changed to data-driven * test: add test cases for data driven items * fix: type * chore: mark deprecated for anchor children prop * docs: add items description * test: update snapshot * docs: demos changed to data-driven * docs: Keep the old jsx syntax demo for debugging
- Loading branch information
Showing
16 changed files
with
556 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
81 changes: 81 additions & 0 deletions
81
components/anchor/__tests__/__snapshots__/Anchor.test.tsx.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Anchor Render renders items correctly 1`] = ` | ||
<div> | ||
<div | ||
class="" | ||
> | ||
<div | ||
class="ant-anchor-wrapper" | ||
style="max-height: 100vh;" | ||
> | ||
<div | ||
class="ant-anchor" | ||
> | ||
<div | ||
class="ant-anchor-ink" | ||
> | ||
<span | ||
class="ant-anchor-ink-ball" | ||
/> | ||
</div> | ||
<div | ||
class="ant-anchor-link" | ||
> | ||
<a | ||
class="ant-anchor-link-title" | ||
href="#components-anchor-demo-basic" | ||
title="Item Basic Demo" | ||
> | ||
Item Basic Demo | ||
</a> | ||
</div> | ||
<div | ||
class="ant-anchor-link" | ||
> | ||
<a | ||
class="ant-anchor-link-title" | ||
href="#components-anchor-demo-static" | ||
title="Static demo" | ||
> | ||
Static demo | ||
</a> | ||
</div> | ||
<div | ||
class="ant-anchor-link" | ||
> | ||
<a | ||
class="ant-anchor-link-title" | ||
href="#api" | ||
title="API" | ||
> | ||
API | ||
</a> | ||
<div | ||
class="ant-anchor-link" | ||
> | ||
<a | ||
class="ant-anchor-link-title" | ||
href="#anchor-props" | ||
title="Anchor Props" | ||
> | ||
Anchor Props | ||
</a> | ||
<div | ||
class="ant-anchor-link" | ||
> | ||
<a | ||
class="ant-anchor-link-title" | ||
href="#link-props" | ||
title="Link Props" | ||
> | ||
Link Props | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.