fixed #130
This commit is contained in:
梁灏 2016-12-15 20:33:16 +08:00
parent c46f385a83
commit f46ebc38dc
2 changed files with 4 additions and 5 deletions

View file

@ -177,6 +177,9 @@
this.updateSelected(); this.updateSelected();
} }
} }
},
value () {
this.updateSelected();
} }
} }
} }

View file

@ -1,14 +1,10 @@
<template> <template>
<div style="width: 150px;margin:100px"> <Cascader :data="data" change-on-select></Cascader>
<Cascader :data="data" :value.sync="value1"></Cascader>
</div>
</template> </template>
<script> <script>
export default { export default {
data () { data () {
return { return {
value1: [],
data: [{ data: [{
value: 'beijing', value: 'beijing',
label: '北京', label: '北京',