修复:picker中值变了后未更新picker-colum中的值 (#23)

* 修复:picker中值变了后未更新picker-colum中的值
This commit is contained in:
张敏
2017-04-27 16:56:54 +08:00
committed by GitHub
parent f78de0f811
commit 9c26422f06
3 changed files with 24 additions and 0 deletions
+4
View File
@@ -69,10 +69,14 @@ export default {
this.currentValues = val;
},
currentValues(val) {
/* istanbul ignore else */
if (this.valueIndex === -1) {
this.currentValue = (val || [])[0];
}
},
value(val) {
this.currentValue = val;
},
currentValue(val) {
this.doOnValueChange();