3 Star 1 Fork 62

itsme_agi/EleAdmin

forked from jixzfw/EleAdmin 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
user.txt 1.30 KB
一键复制 编辑 原始数据 按行查看 历史
Qch 提交于 2016-12-26 17:29 . 修正验证方法
{
"mate" : {
"values": {
"name": "",
"pass": "",
"checkPass": ""
},
"fields" : [
{
"holder" :"text",
"name" :"name",
"label" :"活动名称",
"placeholder" :"请输入活动名称"
},
{
"holder" :"password",
"name" :"pass",
"label" :"密码",
"placeholder" :"请输入密码"
},
{
"holder" :"password",
"name" :"checkPass",
"label" :"确认密码",
"placeholder" :"请再次输入密码"
}
],
"rules": {
"name": [
{ "required": true, "message": "请输入活动名称", "trigger": "blur" },
{ "min": 3, "max": 5, "message": "长度在 3 到 5 个字符", "trigger": "blur" }
],
"pass": [
{ "required": true, "message": "请输入密码", "trigger": "blur" }
],
"checkPass": [
{ "validator": "validatePassword", "trigger": "blur","name":"pass","message":"请检查密码"}
],
"onlyOne":[
{ "validator": "validateAsync", "trigger": "blur","url":"/data/only.php" }
]
},
"labelWidth" :"100px"
},
"title" : "表单中心",
"currentView" : "Formor"
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/itsme_agi/EleAdmin.git
git@gitee.com:itsme_agi/EleAdmin.git
itsme_agi
EleAdmin
EleAdmin
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385