소스 검색

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