Last active
August 29, 2015 13:56
-
-
Save czy88840616/8857539 to your computer and use it in GitHub Desktop.
auth config 整理
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"autoBind": true, | |
"stopOnError": false, | |
"msg": { | |
"tpl": '<div class="msg {prefixCls}"><p class="{style}">{msg}</p></div>', | |
"style":{ | |
"success":'attention', | |
"error":'error' | |
} | |
}, | |
"exclude": [], | |
"rules": { | |
"required":"此项必填" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"event":"blur", | |
"rules":{ | |
"card": { | |
"success":"输入卡号正确", | |
"error":"卡号必须大于3位" | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
设计中field的属性基本和auth一样,有层级关系,消息是rule的属性,而消息的样式是field的属性 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment