【文件属性】:
文件名称:a-plus-forms-json-validator:基于JSON模式的a +表单验证
文件大小:52KB
文件格式:ZIP
更新时间:2021-05-15 22:43:34
JavaScript
A + Forms JSON模式验证器
这是一个用于的插件,可启用基于JSON模式的表单验证。
安装
npm install a-plus-forms
npm install a-plus-forms-json-validator
用法
import { Form , ValidatorProvider , EmailInput , PasswordInput } from 'a-plus-forms' ;
import Validator from 'a-plus-forms-json-validator' ;
const schema = {
type : 'object' ,
properties : {
email : { type : 'string' , format : 'email' } ,
password : { type : 'string
【文件预览】:
a-plus-forms-json-validator-master
----.gitignore(51B)
----.babelrc(351B)
----.eslintrc(340B)
----package.json(1KB)
----package-lock.json(221KB)
----src()
--------index.js(596B)
--------humanizer.js(2KB)
--------normalizer.js(498B)
--------index.d.ts(101B)
----README.md(1KB)
----test()
--------humanizer_test.js(2KB)
--------mocha.opts(49B)
--------helper.js(105B)
--------index_test.js(1KB)