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

This commit is contained in:
chenjiahan
2020-03-17 20:01:15 +08:00
parent 9c55056b0a
commit 68f5d3d69b
2 changed files with 63 additions and 31 deletions
+8 -1
View File
@@ -176,7 +176,14 @@ export default createComponent({
// set column option index by column index
setColumnIndex(columnIndex, optionIndex) {
const column = this.getColumn(columnIndex);
column && column.setIndex(optionIndex);
if (column) {
column.setIndex(optionIndex);
if (this.dataType === 'cascade') {
this.onCascadeChange(columnIndex);
}
}
},
// @exposed-api