Skip to content

Commit

Permalink
Merge pull request #95 from Tencent/fix/checkbox/slot-support
Browse files Browse the repository at this point in the history
fix(checkbox): support label and content slot
  • Loading branch information
LeeJim authored Jan 10, 2022
2 parents 550a2ba + 26b4b1d commit eba8bf9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/checkbox/checkbox.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
<!-- title -->
<view class="{{classPrefix}}__title t-class-label" style="-webkit-line-clamp:{{maxLabelRow}}">
{{label}}
<slot name="label" />
</view>
<!-- content -->
<view
Expand All @@ -37,6 +38,7 @@
>
{{content}}
<slot />
<slot name="content" />
</view>
</view>
<!-- icon right -->
Expand Down

0 comments on commit eba8bf9

Please sign in to comment.