2019-09-21 17:03:05 +08:00
|
|
|
# Button
|
|
|
|
Button is used to trigger some actions.
|
|
|
|
## Demos
|
|
|
|
```demo
|
|
|
|
basic
|
2019-12-08 17:21:44 +08:00
|
|
|
text
|
2019-09-21 17:03:05 +08:00
|
|
|
disabled
|
|
|
|
icon
|
|
|
|
events
|
|
|
|
shape
|
|
|
|
ghost
|
|
|
|
loading
|
2019-09-22 22:59:29 +08:00
|
|
|
group
|
2019-09-21 17:03:05 +08:00
|
|
|
debug
|
|
|
|
```
|
2020-01-27 19:43:56 +08:00
|
|
|
## Props
|
|
|
|
### Button
|
|
|
|
|Name|Type|Default|Description|
|
|
|
|
|-|-|-|-|
|
|
|
|
|size|`'small' \| 'medium' \| 'large'`|`'medium'`
|
|
|
|
|type|`'default' \| 'primary' \| 'success' \| 'info' \| 'warning' \| 'error'`|`'default'`||
|
|
|
|
|text|`boolean`|`false`||
|
|
|
|
|ghost|`boolean`|`false`||
|
|
|
|
|disabled|`boolean`|`false`||
|
|
|
|
|circle|`boolean`|`false`||
|
|
|
|
|round|`boolean`|`false`||
|
|
|
|
|loading|`boolean`|`false`||
|
|
|
|
|icon-placement|`'left' \| 'right'`|`'left'`||
|
|
|
|
|
|
|
|
### Button Group
|
|
|
|
|Name|Type|Default|Description|
|
|
|
|
|-|-|-|-|
|
|
|
|
|vertical|`boolean`|`false`||
|
|
|
|
|
|
|
|
## Slots
|
|
|
|
### Button
|
|
|
|
|Name|Parameters|Description|
|
|
|
|
|-|-|-|
|
2020-01-30 21:03:34 +08:00
|
|
|
|default|`()`||
|
|
|
|
|icon|`()`||
|
2020-01-27 19:43:56 +08:00
|
|
|
|
|
|
|
### Button Group
|
|
|
|
|Name|Parameters|Description|
|
|
|
|
|-|-|-|
|
2020-01-30 21:03:34 +08:00
|
|
|
|default|`()`||
|
2020-01-27 19:43:56 +08:00
|
|
|
|
|
|
|
## Events
|
|
|
|
### Button
|
|
|
|
|Name|Parameters|Description|
|
|
|
|
|-|-|-|
|
2020-01-30 23:54:06 +08:00
|
|
|
|click|`(e: MouseEvent)`||
|