docs(button): add docs for loading button

This commit is contained in:
unix
2020-05-29 14:47:00 +08:00
parent 2430d21f4b
commit 07c412fe6d
2 changed files with 16 additions and 4 deletions

View File

@@ -26,9 +26,15 @@ Used to trigger an operation.
<Playground
title="Loading"
desc="Show running status."
scope={{ Button }}
scope={{ Button, Spacer }}
code={`
<Button loading>Action</Button>
<>
<Button loading>Action</Button>
<Spacer y={.5} />
<Button loading auto>Action</Button>
<Spacer y={.5} />
<Button loading auto type="success" size="small">Action</Button>
</>
`} />
<Playground

View File

@@ -25,9 +25,15 @@ export const meta = {
<Playground
title="加载中"
desc="表示正在运行或加载中的状态。"
scope={{ Button }}
scope={{ Button, Spacer }}
code={`
<Button loading>动作</Button>
<>
<Button loading>Action</Button>
<Spacer y={.5} />
<Button loading auto>Action</Button>
<Spacer y={.5} />
<Button loading auto type="success" size="small">Action</Button>
</>
`} />
<Playground