ant-form-validate-tools
##example
import { VERIFY_INTEGER } from 'ant-form-validate-tools';
import { Form, Input } from 'ant-design-vue';
export default {
computed: {
form () {
return this.$form.createForm(this, { name: 'example' })
}
},
render () {
return (
<Form>
<Form.Item label="label">
{this.form.getFieldDecorator('field', {
rules: [ VERIFY_INTEGER('error...') ]
})(
<Input />
)}
</Form.Item>
</Form>
)
}
}