@@ -75,14 +75,18 @@ export default {
},
data() {
return {
- list: this.listData,
+ list: [],
value: this.defValue
};
watch: {
listData(newValue, oldValue) {
- this.list = newValue;
+ this.list = JSON.parse(JSON.stringify(newValue));
+ this.hasCheck();
+ defValue(newValue, oldValue){
+ this.value = newValue;
+ }
mounted() {
this.hasCheck();