{title}占位符,对应columns里面title
"title": [ { "type": "phone", "required": true, "isAdd": true, "isEdit": true, "param": "_filterRole",//对应下图_filter开始的字段 "message": "【{title}】格式不正确" } ],
源码刨析
case RuleType.Popedom: if (!dic.ContainsKey(rule.Param)) { throw new BizException(string.Format(message, rule.Min, rule.Max)); } else if (dic[rule.Param] == null) { throw new BizException(string.Format(message, rule.Min, rule.Max, rule.Accept)); } else if ((dic[rule.Param] as List<object>).Contains(valueTemp)) { throw new BizException(string.Format(message, rule.Min, rule.Max, rule.Accept)); } break;
文档更新时间: 2022-01-09 20:59 作者:admin