浏览代码

Merge pull request #9454 from Leopoldthecoder/step/line

Step: fix flex-basis when align-center is true
Hi-Linlin 7 年之前
父节点
当前提交
34df2e639c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/steps/src/step.vue

+ 1 - 1
packages/steps/src/step.vue

@@ -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) {