Skip to content

Commit 26b4b1d

Browse files
committed
fix(checkbox): support label and content slot
1 parent 194dedd commit 26b4b1d

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)