Skip to content

Commit

Permalink
style: change className
Browse files Browse the repository at this point in the history
  • Loading branch information
anlyyao committed Mar 9, 2022
1 parent 784d36d commit 91956ba
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/avatar/avatar.less
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
border-radius: 999rpx;

.@{prefix}-badge {
position: absolute;
&-host {
position: absolute;
}

&__round {
top: -10%;
Expand Down
2 changes: 1 addition & 1 deletion src/avatar/avatar.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
</view>
</view>
<t-badge
class="{{prefix}}-badge {{prefix}}-badge__{{shape === 'circle' ? 'circle' : 'round'}}"
class="{{prefix}}-badge-host {{prefix}}-badge__{{shape === 'circle' ? 'circle' : 'round'}}"
wx:if="{{badgeProps.dot || badgeProps.count}}"
color="{{badgeProps.color}}"
count="{{badgeProps.count}}"
Expand Down
2 changes: 1 addition & 1 deletion src/dialog/dialog.less
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
@dialog-btn-border-color: #eee;
@dialog-input-bg-color: #f0f0f0;

.page {
.@{dialog}__wrapper {
.@{dialog} {
overflow: hidden;
width: @dialog-width;
Expand Down
2 changes: 1 addition & 1 deletion src/dialog/dialog.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<wxs src="./dialog.wxs" module="_" />

<t-popup
class="page"
class="{{classPrefix}}__wrapper"
visible="{{visible}}"
showOverlay="{{showOverlay}}"
closeOnOverlayClick="{{closeOnOverlayClick}}"
Expand Down

0 comments on commit 91956ba

Please sign in to comment.