fix(Picker): should watch columns change (#5614)

This commit is contained in:
陈嘉涵
2020-02-01 15:34:12 +08:00
parent 6b71efd187
commit 633231f9b8
3 changed files with 46 additions and 6 deletions
+3 -6
View File
@@ -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);
}
},