Skip to content

Commit 6801393

Browse files
dpp0507007insummer
authored andcommitted
fix: 修改checkbox外部样式类的使用案例 (#554)
1 parent 50fd7f1 commit 6801393

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

examples/pages/components/form/pages/checkbox/index.wxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,14 +164,14 @@
164164
<view class='title'>8. 前端需要学习哪些技能?</view>
165165
<l-checkbox-group l-class="l-checkbox-group" bind:linchange="change" placement="row" data-index="8">
166166
<l-checkbox
167+
class="checkbox-mg"
167168
l-class="l-checkbox"
168169
l-disabled-class="l-checkbox-disabled"
169170
wx:for="{{items8}}"
170171
wx:key="{{item.id}}"
171172
placement="{{position}}"
172173
key="{{item.name}}"
173174
checked="{{item.checked}}"
174-
disabled="{{item.id==1}}"
175175
>
176176
{{item.name}}
177177
</l-checkbox>

examples/pages/components/form/pages/checkbox/index.wxss

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,19 @@
2323
}
2424

2525
.l-checkbox {
26+
border: 1px solid #cccccc !important;
2627
color: rgba(140, 152, 174, 1) !important;
28+
padding: 0 30rpx;
29+
border-radius: 10rpx;
2730
}
2831
.l-checkbox-disabled {
29-
color: #dddddd !important;
32+
border: 1px solid #cccccc !important;
33+
color: rgba(140, 152, 174, 1) !important;
34+
padding: 0 30rpx;
35+
border-radius: 10rpx;
3036
}
3137
.l-checkbox-group{
32-
margin-top: 30rpx
38+
margin-top: 10rpx
3339
}
3440

3541
.l-checkbox-color{
@@ -43,3 +49,6 @@
4349
padding: 10rpx 0;
4450
}
4551

52+
.checkbox-mg{
53+
margin: 10rpx;
54+
}

0 commit comments

Comments
 (0)