docs: Update Dropdown demo

This commit is contained in:
zombiej 2022-04-22 15:33:01 +08:00
parent cf2450e759
commit a513051761
3 changed files with 66 additions and 41 deletions

View File

@ -4270,9 +4270,18 @@ exports[`renders ./components/dropdown/demo/dropdown-button.md extend context co
class="ant-btn ant-btn-default ant-dropdown-trigger"
type="button"
>
<span>
<div
class="ant-space ant-space-horizontal ant-space-align-center"
>
<div
class="ant-space-item"
style="margin-right:8px"
>
Button
</span>
</div>
<div
class="ant-space-item"
>
<span
aria-label="down"
class="anticon anticon-down"
@ -4292,6 +4301,8 @@ exports[`renders ./components/dropdown/demo/dropdown-button.md extend context co
/>
</svg>
</span>
</div>
</div>
</button>
<div>
<div

View File

@ -340,9 +340,18 @@ exports[`renders ./components/dropdown/demo/dropdown-button.md correctly 1`] = `
class="ant-btn ant-btn-default ant-dropdown-trigger"
type="button"
>
<span>
<div
class="ant-space ant-space-horizontal ant-space-align-center"
>
<div
class="ant-space-item"
style="margin-right:8px"
>
Button
</span>
</div>
<div
class="ant-space-item"
>
<span
aria-label="down"
class="anticon anticon-down"
@ -362,6 +371,8 @@ exports[`renders ./components/dropdown/demo/dropdown-button.md correctly 1`] = `
/>
</svg>
</span>
</div>
</div>
</button>
</div>
</div>

View File

@ -74,7 +74,10 @@ export default () => (
</Dropdown.Button>
<Dropdown overlay={menu}>
<Button>
Button <DownOutlined />
<Space>
Button
<DownOutlined />
</Space>
</Button>
</Dropdown>
</Space>