feat(Stepper): add theme prop (#6282)

* feat(Stepper): add theme prop

* docs: add round theme doc
This commit is contained in:
neverland
2020-05-15 16:43:37 +08:00
committed by GitHub
parent 26e9492d79
commit 8307b3d9ad
7 changed files with 78 additions and 9 deletions
+7
View File
@@ -97,6 +97,12 @@ export default {
};
```
### Round Theme
```html
<van-stepper v-model="value" theme="round" button-size="22" disable-input />
```
## API
### Props
@@ -112,6 +118,7 @@ export default {
| input-width | Input width | _number \| string_ | `32px` |
| button-size `v2.0.5` | Button size | _number \| string_ | `28px` |
| decimal-length `v2.2.1` | Decimal length | _number \| string_ | - |
| theme `v2.8.2` | Theme, can be set to `round` | _string_ | - |
| integer | Whether to allow only integers | _boolean_ | `false` |
| disabled | Disable value change | _boolean_ | `false` |
| disable-plus `v2.2.16` | Whether to disable plus button | _boolean_ | `false` |