<group>
<x-number title="title" v-model="value"></x-number>
</group>
x-number
shoule be used in Group
API
Variables
Props
name | type | default | description | required version |
value | number | 0 | form value, use v-model for binding | -- |
title | string | label text | -- | |
min | number | minimum number of value | -- | |
max | number | maximum number of value | -- | |
step | number | 1 | step value | -- |
fillable | boolean | false | if use can fill the number | -- |
width | string | 50px | width of the input element | -- |
button-style | string | square | button styles, ['square', 'round'] | -- |
align | string | right | align setting of the selecting area | -- |
Variables
name | default | description | inherited name |
@number-button-font-color | #3cc51f | -- | |
@number-input-font-color | #666 | -- | |
@number-button-enabled-border-color | #ececec | -- | |
@number-square-button-enabled-border-color | #ececec | -- | @number-button-enabled-border-color |
@number-round-button-enabled-border-color | #3cc51f | -- | @number-button-font-color |
@number-button-disabled-border-color | #ececec | -- | @number-button-enabled-border-color |
@number-round-button-disabled-border-color | #ececec | -- | @number-button-enabled-border-color |
Contributors
Contributors
Total commits quantity: 25,Total contributors quantity: 4
airyland万刚光君greedyingChangelog
Releases
- v2.8.0 [fix] fix on-change fires after created
- v2.3.7 [fix] fix value type #1554
- v2.3.2 [fix] fix undefined-min detecting logic. #1459
- v2.2.1 [fix] delete prop-check-warning message, and disable `add` and `sub` method when `value` is empty string
- v2.2.1-rc.8 [fix] fix cannot edit first number character when fillable
- v2.1.1-rc.7 [fix] Emit on-change after nextTick
- v2.1.0 [feature] upgrade `WeUI`
- v2.1.0 [fix] fix `label` styles donot conform with `group` settings
- v2.1.0 [feature] support prop:`align`
- v2.1.0-rc.46 [enhance] use `svg` for `+` `-` symbols
- v2.1.0-rc.46 [feature] support `round` style for buttons
- v2.0.0 [change] set `fiilable` default value to `false`