[improvement] Button: add round prop (#1885)

This commit is contained in:
neverland
2018-10-02 17:03:13 +08:00
committed by GitHub
parent a6d4d2d74a
commit beebeaf5b7
6 changed files with 30 additions and 26 deletions
+4 -5
View File
@@ -49,13 +49,11 @@ Vue.use(Button);
<van-button loading type="primary" />
```
#### Custom Tag
Use `tag` prop to custom button tag
#### Shape
```html
<van-button tag="a" href="https://www.youzan.com" target="_blank">
Button
</van-button>
<van-button type="danger" square>Square</van-button>
<van-button type="danger" round>Round</van-button>
```
### API
@@ -71,6 +69,7 @@ Use `tag` prop to custom button tag
| disabled | Whether to disable button | `Boolean` | `false` |
| loading | Whether show loading status | `Boolean` | `false` |
| block | Whether to set display block | `Boolean` | `false` |
| round | Whether to be round button | `Boolean` | `false` |
| square | Whether to be square button | `Boolean` | `false` |
### Event