mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
350 B
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
}