ember-validation:适用于Ember应用程序的简单验证工具

时间:2021-05-14 09:15:42
【文件属性】:
文件名称:ember-validation:适用于Ember应用程序的简单验证工具
文件大小:480KB
文件格式:ZIP
更新时间:2021-05-14 09:15:42
JavaScript @ zestia / ember-validation 这个轻量级的插件使您可以验证一个对象或对象数组。 对于任何未通过约束的事件,它将返回带有错误消息数组的结构化响应。 或者,如果它通过验证,则为null。 安装 ember install @zestia/ember-validation 演示版 特征 验证对象:check_mark:︎ 验证数组:check_mark:︎ 灰烬数据友好:check_mark:︎ 支持承诺:check_mark:︎ 支持:check_mark:︎ 支持:check_mark:︎ 使用进行日期验证。 :check_mark:︎ 错误消息的简单:check_mark:︎ 例子 import validate from '@zestia/ember-validation' ; import { present , maxLength , truthy , email , date } from '@zestia/ember-validation/constraints' ; const perso
【文件预览】:
ember-validation-main
----ember-cli-build.js(709B)
----testem.js(585B)
----.eslintrc.js(586B)
----.prettierignore(249B)
----.release-it.js(69B)
----.npmignore(425B)
----.stylelintrc.js(69B)
----.ember-cli(280B)
----CONTRIBUTING.md(640B)
----.travis.yml(1KB)
----config()
--------environment.js(90B)
--------ember-try.js(2KB)
----.stylelintignore(82B)
----LICENSE.md(1KB)
----README.md(5KB)
----addon()
--------constraints.js(661B)
--------utils.js(2KB)
--------constraints()
--------.gitkeep(0B)
--------index.js(2KB)
----.template-lintrc.js(114B)
----.editorconfig(367B)
----tests()
--------integration()
--------index.html(1KB)
--------test-helper.js(323B)
--------dummy()
--------unit()
----.gitignore(383B)
----.prettierrc.js(68B)
----app()
--------.gitkeep(0B)
----index.js(109B)
----.watchmanconfig(37B)
----CHANGELOG.md(2KB)
----.eslintignore(249B)
----package-lock.json(1.82MB)
----package.json(3KB)
----vendor()
--------.gitkeep(0B)

网友评论