naive-ui/demo/documentation/components/input-number/enUS/min-max.demo.md
2020-10-22 12:20:34 +08:00

379 B

Min and Max

You can set min & max of it.

<n-space vertical align="stretch">
  <n-input-number
    v-model:value="value"
    placeholder="Min"
    :min="-3"
    :max="5"
  />
  <n-input-number
    v-model:value="value"
    placeholder="Max"
    :min="-5"
    :max="3"
  />
</n-space>
export default {
  data () {
    return {
      value: null
    }
  }
}