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