Commit 80560fbc by 潘际乾

form-item中label为空的处理

parent a6c7a9ed
...@@ -91,7 +91,8 @@ export default { ...@@ -91,7 +91,8 @@ export default {
const field = fields[i]; const field = fields[i];
if (field.prop === prop) { if (field.prop === prop) {
// select、checkbox使用change触发 // select、checkbox使用change触发
if (field.$children[1].$children[0].$el.className.startsWith("el-select") || field.$children[1].$children[0].$el.className.startsWith("el-checkbox")) { const ele = field.$children[1] ? field.$children[1].$children[0] : field.$children[0].$children[0]
if (ele.$el.className.startsWith("el-select") || ele.$el.className.startsWith("el-checkbox")) {
return "change"; return "change";
} }
return "blur"; return "blur";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment