This commit is contained in:
梁灏 2017-04-01 10:22:34 +08:00
parent 361e3a1669
commit 48af13599c
2 changed files with 54 additions and 48 deletions

View file

@ -79,8 +79,17 @@
export default {
data () {
return {
value2: [],
data: [{
value2: ['beijing', 'gugong'],
data: []
}
},
methods: {
c () {
this.value2 = []
}
},
mounted () {
this.data = [{
value: 'beijing',
label: '北京',
children: [
@ -128,11 +137,5 @@
],
}]
}
},
methods: {
c () {
this.value2 = []
}
}
}
</script>

View file

@ -219,6 +219,9 @@
return;
}
this.updateSelected(true);
},
data () {
this.$nextTick(() => this.updateSelected());
}
}
};