This commit is contained in:
cookfront
2017-03-07 10:30:32 +08:00
parent 79ca7631e0
commit 0ba9333634
3 changed files with 27 additions and 27 deletions

View File

@@ -20,9 +20,9 @@
style() {
const gutter = Number(this.gutter);
const margin = `-${gutter / 2}px`;
return gutter ?
{ marginLeft: margin, marginRight: margin } :
{};
return gutter
? { marginLeft: margin, marginRight: margin }
: {};
}
}
};