This commit is contained in:
梁灏 2017-10-24 16:48:28 +08:00
parent 9b24f1ab7b
commit 76a4781417
2 changed files with 9 additions and 5 deletions

View file

@ -39,7 +39,8 @@
render: (h) => {
return h('Button', {
props: {
type: 'primary'
type: 'primary',
size: 'small'
},
on: {
click: () => {

View file

@ -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: {