dome: optimize FloatBotton demo style (#42980)

* docs: FloatBotton open 属性说明

* test: update snapshots

* demo: add controlled demo

* demo: update demo

* feat: add warning

* feat: update warning

* demo: update controlled demo

* demo: prettify demo style

* demo: update snapshots

---------

Co-authored-by: 二货机器人 <smith3816@gmail.com>
This commit is contained in:
dingkang 2023-06-13 11:05:05 +08:00 committed by GitHub
parent 46c67ab607
commit ad8dd24cc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 1 deletions

View File

@ -855,6 +855,7 @@ Array [
aria-checked="true"
class="ant-switch ant-switch-checked"
role="switch"
style="margin: 16px;"
type="button"
>
<div

View File

@ -645,6 +645,7 @@ Array [
aria-checked="true"
class="ant-switch ant-switch-checked"
role="switch"
style="margin:16px"
type="button"
>
<div

View File

@ -20,7 +20,7 @@ const App: React.FC = () => {
<FloatButton />
<FloatButton icon={<CommentOutlined />} />
</FloatButton.Group>
<Switch onChange={onChange} checked={open} />
<Switch onChange={onChange} checked={open} style={{ margin: 16 }} />
</>
);
};