Skip to content

Commit

Permalink
fix(search): slot mutually exclusive (#2569)
Browse files Browse the repository at this point in the history
  • Loading branch information
betavs authored Jan 24, 2024
1 parent bfb5a2e commit e622237
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/search/search.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
class="{{prefix}}-icon {{prefix}}-class-left"
aria-hidden="{{true}}"
/>
<slot name="left-icon" />
<slot wx:else name="left-icon" />

<input
type="{{type}}"
name="input"
Expand Down Expand Up @@ -57,5 +58,5 @@
>
{{action}}
</view>
<slot name="action" />
<slot wx:else name="action" />
</view>

0 comments on commit e622237

Please sign in to comment.