fixed #2128
This commit is contained in:
parent
9b24f1ab7b
commit
76a4781417
2 changed files with 9 additions and 5 deletions
|
@ -39,7 +39,8 @@
|
|||
render: (h) => {
|
||||
return h('Button', {
|
||||
props: {
|
||||
type: 'primary'
|
||||
type: 'primary',
|
||||
size: 'small'
|
||||
},
|
||||
on: {
|
||||
click: () => {
|
||||
|
|
|
@ -49,10 +49,13 @@
|
|||
};
|
||||
},
|
||||
watch: {
|
||||
data(){
|
||||
this.stateTree = this.data;
|
||||
this.flatState = this.compileFlatState();
|
||||
this.rebuildTree();
|
||||
data: {
|
||||
deep: true,
|
||||
handler () {
|
||||
this.stateTree = this.data;
|
||||
this.flatState = this.compileFlatState();
|
||||
this.rebuildTree();
|
||||
}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
|
Loading…
Add table
Reference in a new issue