We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d483d9 commit 13f3146Copy full SHA for 13f3146
src/Row.vue
@@ -14,17 +14,12 @@ export default {
14
default: 12,
15
},
16
17
- data() {
18
- return {
19
- styleGeneral: this.createGutter(this.gutter),
20
- };
21
- },
22
- methods: {
23
- createGutter(gutter) {
24
- return gutter
25
- ? `--paddingVGR:${gutter / 2}px;--marginVGR:-${gutter / 2}px`
26
- : '--paddingVGR:0px;--marginVGR:0px';
27
+ computed: {
+ styleGeneral() {
+ return this.gutter
+ ? `--paddingVGR:${this.gutter / 2}px;--marginVGR:-${this.gutter / 2}px`
+ : '--paddingVGR:0px;--marginVGR:0px';
+ }
28
29
};
30
</script>
0 commit comments