Skip to content

Commit

Permalink
perf(dropdown-item): optimized the class name (#2611)
Browse files Browse the repository at this point in the history
* perf(dropdown-item): optimized the class name

* test(dropdown-item): optimized the class name
  • Loading branch information
betavs authored Mar 7, 2024
1 parent 98fad2d commit 6f7849c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/dropdown-item/dropdown-item.less
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
}
}

&_mask {
&__mask {
position: fixed;
width: 100vh;
top: 0;
Expand Down
2 changes: 1 addition & 1 deletion src/dropdown-item/dropdown-item.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
style="{{_._style([this.getStyles(top, zIndex), style, customStyle])}}"
>
<view
class="{{ classPrefix }}_mask"
class="{{ classPrefix }}__mask"
hidden="{{!show}}"
style="{{_._style(['height:' + maskHeight + 'px', style, customStyle])}}"
bind:tap="handleMaskClick"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ exports[`dropdown-menu :base 1`] = `
style="z-index:11600;"
>
<wx-view
class="t-dropdown-item_mask"
class="t-dropdown-item__mask"
hidden="{{false}}"
style="height:0px;"
bind:tap="handleMaskClick"
Expand Down

0 comments on commit 6f7849c

Please sign in to comment.