[new feature] Stepper: add button-size prop (#3714)

This commit is contained in:
neverland
2019-07-02 09:31:31 +08:00
committed by GitHub
parent e901a522ad
commit 68d62f856d
5 changed files with 78 additions and 5 deletions
+14 -1
View File
@@ -83,6 +83,18 @@ export default {
}
```
### 自定义大小
通过`input-width`属性设置输入框宽度,通过`button-size`属性设置按钮大小和输入框高度
```html
<van-stepper
v-model="value"
input-width="40px"
button-size="32px"
/>
```
## API
### Props
@@ -97,7 +109,8 @@ export default {
| disabled | 是否禁用步进器 | `Boolean` | `false` | - |
| disable-input | 是否禁用输入框 | `Boolean` | `false` | - |
| async-change | 是否开启异步变更,开启后需要手动控制输入值 | `Boolean` | `false` | - |
| input-width | 输入框宽度,默认单位为`px` | `String | Number` | `30px` | 1.6.13 |
| input-width | 输入框宽度,默认单位为`px` | `String | Number` | `32px` | 1.6.13 |
| button-size | 按钮大小,默认单位为`px`,输入框高度会和按钮大小保持一致 | `String | Number` | `28px` | 2.0.5 |
### Events