mirror of
https://github.com/zhigang1992/react.git
synced 2026-01-31 09:08:41 +08:00
docs(button): add docs for loading button
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user