提交 1da8fc1a 编写于 作者: richard_1015's avatar richard_1015

fix(form-item): add attr empty status warn

上级 937ade66
......@@ -72,7 +72,11 @@ export const component = {
return keyPath.split('.').reduce((prev, curr) => prev[curr], obj);
};
let value = getPropByPath(props.modelValue, prop);
if (!prop) {
console.warn('[NutUI] <FormItem> 使用 rules 校验规则时 , 必须设置 prop 参数');
}
let value = getPropByPath(props.modelValue, prop || '');
// clear tips
tipMessage({ prop, message: '' });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册