demo: Update demo with Space.Compact wrap (#48067)

* demo: App demo update

* test: Update test snapshots
This commit is contained in:
Meetacoo 2024-03-25 14:42:15 +08:00 committed by GitHub
parent 0177a7079e
commit dc9e4572ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 6 additions and 2 deletions

View File

@ -6,6 +6,7 @@ exports[`renders components/app/demo/basic.tsx extend context correctly 1`] = `
>
<div
class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small"
style="flex-wrap: wrap;"
>
<div
class="ant-space-item"
@ -55,6 +56,7 @@ exports[`renders components/app/demo/config.tsx extend context correctly 1`] = `
>
<div
class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small"
style="flex-wrap: wrap;"
>
<div
class="ant-space-item"

View File

@ -6,6 +6,7 @@ exports[`renders components/app/demo/basic.tsx correctly 1`] = `
>
<div
class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small"
style="flex-wrap:wrap"
>
<div
class="ant-space-item"
@ -53,6 +54,7 @@ exports[`renders components/app/demo/config.tsx correctly 1`] = `
>
<div
class="ant-space ant-space-horizontal ant-space-align-center ant-space-gap-row-small ant-space-gap-col-small"
style="flex-wrap:wrap"
>
<div
class="ant-space-item"

View File

@ -25,7 +25,7 @@ const MyPage = () => {
};
return (
<Space>
<Space wrap>
<Button type="primary" onClick={showMessage}>
Open message
</Button>

View File

@ -17,7 +17,7 @@ const MyPage = () => {
};
return (
<Space>
<Space wrap>
<Button type="primary" onClick={showMessage}>
Message for only one
</Button>