@xiwell/ant-form-validate-tools
TypeScript icon, indicating that this package has built-in type declarations

1.1.8 • Public • Published

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>
    )
  }
}

Package Sidebar

Install

npm i @xiwell/ant-form-validate-tools

Weekly Downloads

0

Version

1.1.8

License

ISC

Unpacked Size

13.4 kB

Total Files

5

Last publish

Collaborators

  • xiwell