Skip to content

Commit cfda490

Browse files
authored
fix(Stepper): fixed style errors in skyline (#3454)
1 parent 6bb91a8 commit cfda490

File tree

2 files changed

+9
-17
lines changed

2 files changed

+9
-17
lines changed

src/stepper/__test__/__snapshots__/index.test.js.snap

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ exports[`stepper event : input 1`] = `
1212
class="t-stepper__minus t-stepper__minus--normal t-stepper__icon--medium t-class-minus"
1313
catch:tap="minusValue"
1414
>
15-
<t-icon
16-
class="t-stepper__minus-icon"
17-
>
15+
<t-icon>
1816
<wx-view
1917
ariaHidden="{{false}}"
2018
ariaLabel=""
@@ -47,12 +45,10 @@ exports[`stepper event : input 1`] = `
4745
ariaDisabled="{{false}}"
4846
ariaLabel="增加2"
4947
ariaRole="button"
50-
class="t-stepper__plus t-stepper__plus--normal t-stepper__icon--medium t-class-plus"
48+
class="t-stepper__plus t-stepper__plus--normal t-stepper__icon--medium t-class-plus"
5149
catch:tap="plusValue"
5250
>
53-
<t-icon
54-
class="t-stepper__plus-icon"
55-
>
51+
<t-icon>
5652
<wx-view
5753
ariaHidden="{{false}}"
5854
ariaLabel=""
@@ -82,9 +78,7 @@ exports[`stepper event : input 2`] = `
8278
class="t-stepper__minus t-stepper__minus--normal t-stepper__icon--medium t-class-minus"
8379
catch:tap="minusValue"
8480
>
85-
<t-icon
86-
class="t-stepper__minus-icon"
87-
>
81+
<t-icon>
8882
<wx-view
8983
ariaHidden="{{false}}"
9084
ariaLabel=""
@@ -117,12 +111,10 @@ exports[`stepper event : input 2`] = `
117111
ariaDisabled="{{false}}"
118112
ariaLabel="增加2"
119113
ariaRole="button"
120-
class="t-stepper__plus t-stepper__plus--normal t-stepper__icon--medium t-class-plus"
114+
class="t-stepper__plus t-stepper__plus--normal t-stepper__icon--medium t-class-plus"
121115
catch:tap="plusValue"
122116
>
123-
<t-icon
124-
class="t-stepper__plus-icon"
125-
>
117+
<t-icon>
126118
<wx-view
127119
ariaHidden="{{false}}"
128120
ariaLabel=""

src/stepper/stepper.wxml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
aria-role="button"
1212
aria-disabled="{{disabled || disableMinus || currentValue <= min}}"
1313
>
14-
<t-icon name="remove" class="{{classPrefix}}__minus-icon" />
14+
<t-icon name="remove" />
1515
</view>
1616
<view
1717
class="{{classPrefix}}__input--{{theme}} {{ disabled || disableInput ? classPrefix + '--' + theme + '-disabled': ''}}"
@@ -28,12 +28,12 @@
2828
/>
2929
</view>
3030
<view
31-
class="{{classPrefix}}__plus {{classPrefix}}__plus--{{theme}} {{classPrefix}}__icon--{{size}} {{ disabled || disablePlus|| currentValue >= max ? classPrefix + '--' + theme + '-disabled': ''}} {{prefix}}-class-plus"
31+
class="{{classPrefix}}__plus {{classPrefix}}__plus--{{theme}} {{classPrefix}}__icon--{{size}} {{ disabled || disablePlus|| currentValue >= max ? classPrefix + '--' + theme + '-disabled': ''}} {{prefix}}-class-plus"
3232
catchtap="plusValue"
3333
aria-label="{{'增加' + step}}"
3434
aria-role="button"
3535
aria-disabled="{{disabled || disablePlus|| currentValue >= max}}"
3636
>
37-
<t-icon name="add" class="{{classPrefix}}__plus-icon" />
37+
<t-icon name="add" />
3838
</view>
3939
</view>

0 commit comments

Comments
 (0)