Skip to content

Commit

Permalink
docs: reduce dropdown demo (ant-design#25005)
Browse files Browse the repository at this point in the history
  • Loading branch information
xrkffgg authored Jun 17, 2020
1 parent ff0c00d commit 395c0c8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
18 changes: 9 additions & 9 deletions components/dropdown/__tests__/__snapshots__/demo.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -339,57 +339,57 @@ exports[`renders ./components/dropdown/demo/overlay-visible.md correctly 1`] = `
`;

exports[`renders ./components/dropdown/demo/placement.md correctly 1`] = `
<div>
Array [
<button
class="ant-btn ant-dropdown-trigger"
type="button"
>
<span>
bottomLeft
</span>
</button>
</button>,
<button
class="ant-btn ant-dropdown-trigger"
type="button"
>
<span>
bottomCenter
</span>
</button>
</button>,
<button
class="ant-btn ant-dropdown-trigger"
type="button"
>
<span>
bottomRight
</span>
</button>
<br />
</button>,
<br />,
<button
class="ant-btn ant-dropdown-trigger"
type="button"
>
<span>
topLeft
</span>
</button>
</button>,
<button
class="ant-btn ant-dropdown-trigger"
type="button"
>
<span>
topCenter
</span>
</button>
</button>,
<button
class="ant-btn ant-dropdown-trigger"
type="button"
>
<span>
topRight
</span>
</button>
</div>
</button>,
]
`;

exports[`renders ./components/dropdown/demo/sub-menu.md correctly 1`] = `
Expand Down
4 changes: 2 additions & 2 deletions components/dropdown/demo/placement.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const menu = (
);

ReactDOM.render(
<div>
<>
<Dropdown overlay={menu} placement="bottomLeft">
<Button>bottomLeft</Button>
</Dropdown>
Expand All @@ -57,7 +57,7 @@ ReactDOM.render(
<Dropdown overlay={menu} placement="topRight">
<Button>topRight</Button>
</Dropdown>
</div>,
</>,
mountNode,
);
```
Expand Down

0 comments on commit 395c0c8

Please sign in to comment.