Step: fix flex-basis when align-center is true

pull/9454/head
Leopoldthecoder 2018-01-25 12:08:12 +08:00
parent 714a9f0192
commit 2c4ea9da8e
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ export default {
? this.space + 'px'
: this.space
? this.space
: 100 / (len - 1) + '%');
: 100 / (len - (this.isCenter ? 0 : 1)) + '%');
style.flexBasis = space;
if (this.isVertical) return style;
if (this.isLast) {