XNumber
Install

Install

  <group>
    <x-number title="title" v-model="value"></x-number>
  </group>

x-number shoule be used in Group


API

Props

nametypedefaultdescriptionrequired version
valuenumber0form value, use v-model for binding--
titlestringlabel text--
minnumberminimum number of value--
maxnumbermaximum number of value--
stepnumber1step value--
fillablebooleanfalseif use can fill the number--
widthstring50pxwidth of the input element--
button-stylestringsquarebutton styles, ['square', 'round']--
alignstringrightalign setting of the selecting area--
Variables

Variables

namedefaultdescriptioninherited 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万刚光君greedying

Changelog

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`