fix(Picker): should watch columns change (#5614)
This commit is contained in:
+3
-6
@@ -182,12 +182,9 @@ export default createComponent({
|
||||
// set options of column by index
|
||||
setColumnValues(index, options) {
|
||||
const column = this.children[index];
|
||||
if (
|
||||
column &&
|
||||
JSON.stringify(column.options) !== JSON.stringify(options)
|
||||
) {
|
||||
column.options = options;
|
||||
column.setIndex(0);
|
||||
|
||||
if (column) {
|
||||
column.setOptions(options);
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user