Skip to content

Commit

Permalink
Merge branch 'v2-dev' of https://github.com/jdf2e/nutui into v2-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Ymm0008 committed Dec 18, 2020
2 parents d9d18e7 + 9372116 commit a51d0d9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/packages/picker/picker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ export default {
this.chooseValueData = [...this.defaultValueData];
this.cacheValueData = [...this.defaultValueData];
this.$emit('confirm', this.cacheValueData);
},
listData: function() {
this.init();
}
},
methods: {
Expand Down Expand Up @@ -97,7 +100,7 @@ export default {
}
}
},
created() {
init() {
if (this.defaultValueData && this.defaultValueData.length) {
this.chooseValueData = [...this.defaultValueData];
} else {
Expand All @@ -107,6 +110,9 @@ export default {
});
this.chooseValueData = [...defaultValueData];
}
},
created() {
this.init();
}
};
</script>

0 comments on commit a51d0d9

Please sign in to comment.