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) => {
|
render: (h) => {
|
||||||
return h('Button', {
|
return h('Button', {
|
||||||
props: {
|
props: {
|
||||||
type: 'primary'
|
type: 'primary',
|
||||||
|
size: 'small'
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
click: () => {
|
click: () => {
|
||||||
|
|
|
@ -49,10 +49,13 @@
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
data(){
|
data: {
|
||||||
this.stateTree = this.data;
|
deep: true,
|
||||||
this.flatState = this.compileFlatState();
|
handler () {
|
||||||
this.rebuildTree();
|
this.stateTree = this.data;
|
||||||
|
this.flatState = this.compileFlatState();
|
||||||
|
this.rebuildTree();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|
Loading…
Add table
Reference in a new issue