0.0.9 • Published 6 years ago

@qform/core v0.0.9

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

core

qform 核心代码,主要存放 utils,validate 等代码

Usage

import { Form, utils } from './form-core'

// 初始化
const form = new Form({
  // 表单验证规则
  rules: {
    name: {
      type: 'string',
      required: true
    }
  }
})

// 验证表单
form.validate({name: 3}).then(res => {
  // 验证通过
  console.log(res)
})
.catch(err => {
  // 验证失败
  console.log(err)
})
0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago