mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-09 04:31:35 +08:00
doc(button): button size
This commit is contained in:
parent
8e52373679
commit
3e763bbbf3
@ -3,6 +3,7 @@ Button is used to trigger some actions.
|
|||||||
## Demos
|
## Demos
|
||||||
```demo
|
```demo
|
||||||
basic
|
basic
|
||||||
|
size
|
||||||
text
|
text
|
||||||
disabled
|
disabled
|
||||||
icon
|
icon
|
||||||
|
13
demo/documentation/components/button/enUS/size.md
Normal file
13
demo/documentation/components/button/enUS/size.md
Normal 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;
|
||||||
|
}
|
||||||
|
```
|
@ -3,6 +3,7 @@
|
|||||||
## 演示
|
## 演示
|
||||||
```demo
|
```demo
|
||||||
basic
|
basic
|
||||||
|
size
|
||||||
text
|
text
|
||||||
disabled
|
disabled
|
||||||
icon
|
icon
|
||||||
|
13
demo/documentation/components/button/zhCN/size.md
Normal file
13
demo/documentation/components/button/zhCN/size.md
Normal 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;
|
||||||
|
}
|
||||||
|
```
|
@ -81,9 +81,6 @@ export default {
|
|||||||
if (feedback === false) return
|
if (feedback === false) return
|
||||||
this.hide()
|
this.hide()
|
||||||
})
|
})
|
||||||
.catch(() => {
|
|
||||||
this.hide()
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
render (h) {
|
render (h) {
|
||||||
|
Loading…
Reference in New Issue
Block a user