Skip to content

Commit

Permalink
Merge pull request #169 from Tencent/fix/stepper/hotspot
Browse files Browse the repository at this point in the history
fix(stepper): expand button click hotspot
  • Loading branch information
PengYYYYY authored Feb 13, 2022
2 parents 3464090 + 2113e2a commit b9e888e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
15 changes: 15 additions & 0 deletions src/common/style/utilities/_index.less
Original file line number Diff line number Diff line change
@@ -1,2 +1,17 @@
@import './_float.less';
@import './_animation.less';

.hotspot-expanded {
position: relative;

&::after {
content: '';
display: block;
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
transform: scale(1.5);
}
}
4 changes: 2 additions & 2 deletions src/stepper/stepper.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
class="{{classPrefix}} {{classPrefix}}--{{theme === 'grey' ? 'pure' : 'normal'}} {{ disabled ? prefix + '-is-disabled': ''}} {{prefix}}-class"
>
<view
class="{{classPrefix}}__minus {{prefix}}-class-minus {{ disabled || disableMinus || currentValue <= min ? prefix + '-is-disabled': ''}}"
class="{{classPrefix}}__minus {{prefix}}-class-minus {{ disabled || disableMinus || currentValue <= min ? prefix + '-is-disabled': ''}} hotspot-expanded"
bindtap="minusValue"
>
<t-icon
Expand All @@ -21,7 +21,7 @@
bindblur="blurHandler"
/>
<view
class="{{classPrefix}}__plus {{prefix}}-class-plus {{ disabled || disablePlus|| currentValue >= max ? prefix + '-is-disabled': ''}}"
class="{{classPrefix}}__plus {{prefix}}-class-plus {{ disabled || disablePlus|| currentValue >= max ? prefix + '-is-disabled': ''}} hotspot-expanded"
bindtap="plusValue"
>
<t-icon
Expand Down

0 comments on commit b9e888e

Please sign in to comment.