This commit is contained in:
梁灏 2017-03-30 16:26:44 +08:00
parent e5337c810c
commit c2db4f928c
3 changed files with 31 additions and 20 deletions

View file

@ -67,6 +67,17 @@
return style;
}
},
methods: {
updateGutter () {
this.$parent.updateGutter(this.$parent.gutter);
}
},
mounted () {
this.updateGutter();
},
beforeDestroy () {
this.updateGutter();
}
};
</script>

View file

@ -69,9 +69,6 @@
gutter (val) {
this.updateGutter(val);
}
},
mounted () {
this.updateGutter(this.gutter);
}
};
</script>