New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

支持对相同规则的字段批量设置参数 #122

Closed
niceue opened this Issue Apr 10, 2014 · 0 comments

Comments

Projects
None yet
1 participant
@niceue
Copy link
Owner

niceue commented Apr 10, 2014

暂时仅支持简单的批量设置,用逗号 (,) 分隔多个 name 或者 #id

fields: {
    // 对多个 name 应用同一规则
    "name1,name2,name3": "required",
    // 对多个 id 应用同一规则
    "#id1,#id2,#id3": "required; digits",
    // name 与 id 混合
    "remark,#content": "required"
}

@niceue niceue added this to the 0.8.0 milestone Apr 10, 2014

@niceue niceue added the feature label Apr 10, 2014

@niceue niceue modified the milestone: 0.8.0 Apr 10, 2014

@niceue niceue self-assigned this Apr 10, 2014

@niceue niceue modified the milestones: 0.8.0, 0.9.0 Oct 30, 2014

@niceue niceue modified the milestones: 1.0.0, 0.9.0 Dec 30, 2015

@niceue niceue added documentation new and removed wontfix labels Dec 30, 2015

niceue added a commit that referenced this issue May 12, 2016

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment