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) => { render: (h) => {
return h('Button', { return h('Button', {
props: { props: {
type: 'primary' type: 'primary',
size: 'small'
}, },
on: { on: {
click: () => { click: () => {

View file

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