fix(Picker): update cascade after setColumnValue (#5807)

This commit is contained in:
chenjiahan
2020-03-17 19:52:55 +08:00
parent 0a3ed53187
commit 9c55056b0a
3 changed files with 67 additions and 33 deletions
+8 -1
View File
@@ -156,7 +156,14 @@ export default createComponent({
// set column value by index
setColumnValue(index, value) {
const column = this.getColumn(index);
column && column.setValue(value);
if (column) {
column.setValue(value);
if (this.dataType === 'cascade') {
this.onCascadeChange(index);
}
}
},
// @exposed-api