doc(button): button size

This commit is contained in:
07akioni 2020-03-02 12:09:15 +08:00
parent 8e52373679
commit 3e763bbbf3
5 changed files with 28 additions and 3 deletions

View File

@ -3,6 +3,7 @@ Button is used to trigger some actions.
## Demos
```demo
basic
size
text
disabled
icon

View File

@ -0,0 +1,13 @@
# Size
Button can be `tiny`, `small`, `medium` and `large` size.
```html
<n-button size="tiny">small small</n-button>
<n-button type="primary" size="small">small</n-button>
<n-button type="info" size="medium">not small</n-button>
<n-button type="success" size="large">not not small</n-button>
```
```css
.n-button {
margin: 0 8px 8px 0;
}
```

View File

@ -3,6 +3,7 @@
## 演示
```demo
basic
size
text
disabled
icon

View File

@ -0,0 +1,13 @@
# 尺寸
`tiny`、`small`、`medium` 和 `large` 尺寸。
```html
<n-button size="tiny">小小</n-button>
<n-button type="primary" size="small"></n-button>
<n-button type="info" size="medium">不小</n-button>
<n-button type="success" size="large">不不小</n-button>
```
```css
.n-button {
margin: 0 8px 8px 0;
}
```

View File

@ -81,9 +81,6 @@ export default {
if (feedback === false) return
this.hide()
})
.catch(() => {
this.hide()
})
}
},
render (h) {