mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 06:03:38 +08:00
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:
parent
46c67ab607
commit
ad8dd24cc8
@ -855,6 +855,7 @@ Array [
|
||||
aria-checked="true"
|
||||
class="ant-switch ant-switch-checked"
|
||||
role="switch"
|
||||
style="margin: 16px;"
|
||||
type="button"
|
||||
>
|
||||
<div
|
||||
|
@ -645,6 +645,7 @@ Array [
|
||||
aria-checked="true"
|
||||
class="ant-switch ant-switch-checked"
|
||||
role="switch"
|
||||
style="margin:16px"
|
||||
type="button"
|
||||
>
|
||||
<div
|
||||
|
@ -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 }} />
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user