diff --git a/examples/routers/grid.vue b/examples/routers/grid.vue
index f8819b6c..b328ab9b 100644
--- a/examples/routers/grid.vue
+++ b/examples/routers/grid.vue
@@ -1,26 +1,29 @@
+
-
- col-12
- col-12
-
-
-
- col-8
- col-8
- col-8
-
-
-
- col-6
- col-6
- col-6
- col-6
+
+
+ col-8
+
+
diff --git a/src/components/grid/col.vue b/src/components/grid/col.vue
index 2bb00d3a..86bf6d64 100644
--- a/src/components/grid/col.vue
+++ b/src/components/grid/col.vue
@@ -67,6 +67,17 @@
return style;
}
+ },
+ methods: {
+ updateGutter () {
+ this.$parent.updateGutter(this.$parent.gutter);
+ }
+ },
+ mounted () {
+ this.updateGutter();
+ },
+ beforeDestroy () {
+ this.updateGutter();
}
};
diff --git a/src/components/grid/row.vue b/src/components/grid/row.vue
index 7de24ec7..322d1bbb 100644
--- a/src/components/grid/row.vue
+++ b/src/components/grid/row.vue
@@ -69,9 +69,6 @@
gutter (val) {
this.updateGutter(val);
}
- },
- mounted () {
- this.updateGutter(this.gutter);
}
};