nuke-number-picker

数量选择器

Usage no npm install needed!

<script type="module">
  import nukeNumberPicker from 'https://cdn.skypack.dev/nuke-number-picker';
</script>

README

NumberPicker

  • category: UI
  • chinese: 数量选择器
  • type: UI Component

Design

Using Button and Input to achieve the same amount of detail Taobao + - effect.

API

Props Description Type Default
value current value number
defaultValue default value (unrestricted) number 0
min minimum value number 0
max maximum value number 100
step step number 1
disabled disable, or not bool false
editable you can input, or not bool true
autoCorrect automatically correct the illegal content entered by the user bool false
onChange callback function when numeric value changes function(value) noop

The Other