Skip to content

Commit

Permalink
perf(cell): set the class
Browse files Browse the repository at this point in the history
  • Loading branch information
betavs committed Nov 28, 2024
1 parent 21c9b4e commit 0b17c24
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/cell/__test__/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ exports[`cell :base 1`] = `
<wx-view
ariaLabel=""
ariaRole=""
class="class t-class t-cell t-cell--middle"
class="class t-class t-cell t-cell--middle"
hoverClass=""
hoverStayTime="70"
style=""
Expand Down
2 changes: 1 addition & 1 deletion src/cell/cell.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<view
style="{{_._style([style, customStyle])}}"
class="class {{prefix}}-class {{classPrefix}} {{ !bordered || isLastChild ? classPrefix + '--borderless' : ''}} {{classPrefix}}--{{align}}"
class="class {{prefix}}-class {{_.cls(classPrefix, [['borderless', !bordered || isLastChild], align])}}"
hover-class="{{ hover ? classPrefix + '--hover' : ''}}"
hover-stay-time="70"
bind:tap="onClick"
Expand Down
4 changes: 2 additions & 2 deletions src/collapse/__test__/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ exports[`collapse :defaultExpandAll 1`] = `
<wx-view
ariaLabel=""
ariaRole=""
class="class t-class t-cell t-cell--middle"
class="class t-class t-cell t-cell--middle"
hoverClass=""
hoverStayTime="70"
style=""
Expand Down Expand Up @@ -117,7 +117,7 @@ exports[`collapse :defaultExpandAll 1`] = `
<wx-view
ariaLabel=""
ariaRole=""
class="class t-class t-cell t-cell--middle"
class="class t-class t-cell t-cell--middle"
hoverClass=""
hoverStayTime="70"
style=""
Expand Down

0 comments on commit 0b17c24

Please sign in to comment.