Browse Source

Merge pull request #9454 from Leopoldthecoder/step/line

Step: fix flex-basis when align-center is true
Hi-Linlin 7 năm trước cách đây
mục cha
commit
34df2e639c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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) {