Unverified Commit 65bd3b14 authored by nitmali's avatar nitmali Committed by GitHub

Merge pull request #1240 from umicro/nitmali

【修复】select组件默认值的extra在某些情况下(0、''、false)无法在回调函数中获取。
parents 39ab6e31 6cb94722
...@@ -268,7 +268,7 @@ export default { ...@@ -268,7 +268,7 @@ export default {
label: tmp ? tmp[this.labelName] : null label: tmp ? tmp[this.labelName] : null
}; };
// 判断是否存在额外的参数,如果存在,就返回 // 判断是否存在额外的参数,如果存在,就返回
if(tmp && tmp.extra) data.extra = tmp.extra; if(tmp && tmp.extra !== undefined) data.extra = tmp.extra;
this.selectValue.push(data) this.selectValue.push(data)
} }
}, },
......
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