fix(Picker): update cascade after setColumnIndex (#5807)
This commit is contained in:
+8
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user