fix(steps): fixed extra spacing in the vertical direction (#5166)

This commit is contained in:
landluck 2022-12-30 18:03:22 +08:00 committed by GitHub
parent 72476e639d
commit d4cf2154fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 12 deletions

View File

@ -20,7 +20,7 @@
wx:if="{{ item.inactiveIcon || inactiveIcon }}"
color="{{ status(index, active) === 'inactive' ? inactiveColor: activeColor }}"
name="{{ item.inactiveIcon || inactiveIcon }}"
custom-class="van-step__icon"
class="van-step__icon"
/>
<view
wx:else
@ -29,7 +29,7 @@
/>
</block>
<van-icon wx:else name="{{ item.activeIcon || activeIcon }}" color="{{ activeColor }}" custom-class="van-step__icon" />
<van-icon wx:else name="{{ item.activeIcon || activeIcon }}" color="{{ activeColor }}" class="van-step__icon" />
</view>
<view
wx:if="{{ index !== steps.length - 1 }}"

View File

@ -76,7 +76,7 @@ exports[`should render demo and match snapshot 1`] = `
class="van-step__circle-container"
>
<van-icon
customClass="van-step__icon"
class="van-step__icon"
>
<wx-view
class="custom-class van-icon van-icon-checked"
@ -231,7 +231,7 @@ exports[`should render demo and match snapshot 1`] = `
class="van-step__circle-container"
>
<van-icon
customClass="van-step__icon"
class="van-step__icon"
>
<wx-view
class="custom-class van-icon van-icon-arrow"
@ -268,7 +268,7 @@ exports[`should render demo and match snapshot 1`] = `
class="van-step__circle-container"
>
<van-icon
customClass="van-step__icon"
class="van-step__icon"
>
<wx-view
class="custom-class van-icon van-icon-success"
@ -305,7 +305,7 @@ exports[`should render demo and match snapshot 1`] = `
class="van-step__circle-container"
>
<van-icon
customClass="van-step__icon"
class="van-step__icon"
>
<wx-view
class="custom-class van-icon van-icon-arrow"
@ -342,7 +342,7 @@ exports[`should render demo and match snapshot 1`] = `
class="van-step__circle-container"
>
<van-icon
customClass="van-step__icon"
class="van-step__icon"
>
<wx-view
class="custom-class van-icon van-icon-arrow"
@ -396,7 +396,7 @@ exports[`should render demo and match snapshot 1`] = `
class="van-step__circle-container"
>
<van-icon
customClass="van-step__icon"
class="van-step__icon"
>
<wx-view
class="custom-class van-icon van-icon-location-o"
@ -433,7 +433,7 @@ exports[`should render demo and match snapshot 1`] = `
class="van-step__circle-container"
>
<van-icon
customClass="van-step__icon"
class="van-step__icon"
>
<wx-view
class="custom-class van-icon van-icon-arrow-left"
@ -470,7 +470,7 @@ exports[`should render demo and match snapshot 1`] = `
class="van-step__circle-container"
>
<van-icon
customClass="van-step__icon"
class="van-step__icon"
>
<wx-view
class="custom-class van-icon van-icon-star-o"
@ -507,7 +507,7 @@ exports[`should render demo and match snapshot 1`] = `
class="van-step__circle-container"
>
<van-icon
customClass="van-step__icon"
class="van-step__icon"
>
<wx-view
class="custom-class van-icon van-icon-phone-o"
@ -593,7 +593,7 @@ exports[`should render demo and match snapshot 1`] = `
class="van-step__circle-container"
>
<van-icon
customClass="van-step__icon"
class="van-step__icon"
>
<wx-view
class="custom-class van-icon van-icon-checked"