naive-ui/demo/documentation/components/inputNumber/enUS/minMax.md
2020-01-29 16:14:59 +08:00

350 B

Min and Max

You can set min & max of it.

<n-input-number
  v-model="value"
  placeholder="Min"
  :min="-3"
  :max="5"
/>
<n-input-number
  v-model="value"
  placeholder="Max"
  :min="-5"
  :max="3"
/>
export default {
  data () {
    return {
      value: null
    }
  }
}
.n-input-number {
  margin: 0 8px 12px 0
}