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" class="ant-btn ant-btn-default ant-dropdown-trigger"
type="button" type="button"
> >
<span> <div
class="ant-space ant-space-horizontal ant-space-align-center"
>
<div
class="ant-space-item"
style="margin-right:8px"
>
Button Button
</span> </div>
<div
class="ant-space-item"
>
<span <span
aria-label="down" aria-label="down"
class="anticon anticon-down" class="anticon anticon-down"
@ -4292,6 +4301,8 @@ exports[`renders ./components/dropdown/demo/dropdown-button.md extend context co
/> />
</svg> </svg>
</span> </span>
</div>
</div>
</button> </button>
<div> <div>
<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" class="ant-btn ant-btn-default ant-dropdown-trigger"
type="button" type="button"
> >
<span> <div
class="ant-space ant-space-horizontal ant-space-align-center"
>
<div
class="ant-space-item"
style="margin-right:8px"
>
Button Button
</span> </div>
<div
class="ant-space-item"
>
<span <span
aria-label="down" aria-label="down"
class="anticon anticon-down" class="anticon anticon-down"
@ -362,6 +371,8 @@ exports[`renders ./components/dropdown/demo/dropdown-button.md correctly 1`] = `
/> />
</svg> </svg>
</span> </span>
</div>
</div>
</button> </button>
</div> </div>
</div> </div>

View File

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