Skip to content

Commit eba8bf9

Browse files
authored
Merge pull request #95 from Tencent/fix/checkbox/slot-support
fix(checkbox): support label and content slot
2 parents 550a2ba + 26b4b1d commit eba8bf9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/checkbox/checkbox.wxml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
<!-- title -->
3030
<view class="{{classPrefix}}__title t-class-label" style="-webkit-line-clamp:{{maxLabelRow}}">
3131
{{label}}
32+
<slot name="label" />
3233
</view>
3334
<!-- content -->
3435
<view
@@ -37,6 +38,7 @@
3738
>
3839
{{content}}
3940
<slot />
41+
<slot name="content" />
4042
</view>
4143
</view>
4244
<!-- icon right -->

0 commit comments

Comments
 (0)