Skip to content

minLen maxLen验证出现bug  #181

@huishoubuzai

Description

@huishoubuzai

minLen maxLen验证出现bug
当列属性 dataType为int或float,validations 包含 minLen maxLen
代码在
else if ("minLen" == h) o = a(o), p = a(p), o.length >= p && (u = !0);
else if ("maxLen" == h) o = a(o), p = a(p), o.length <= p && (u = !0);
o.length 值是 undefiend
验证不会成功
我的处理是
(o+'').length
版本V3.5.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions