mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-12 12:25:16 +08:00
193 B
193 B
Validator
<n-input-number
v-model="value"
:validator="validator"
/>
export default {
data () {
return {
value: 0,
validator: x => x > 0
}
}
}