File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -147,6 +147,18 @@ cellProperty.customLineViewBlock = ^CRLineView * _Nonnull{
147
147
make.left.right.bottom.offset(0);
148
148
}];
149
149
150
+ lineView.selectChangeBlock = ^(CRLineView * _Nonnull lineView, BOOL selected) {
151
+ if (selected) {
152
+ [lineView.lineView mas_updateConstraints:^(MASConstraintMaker *make) {
153
+ make.height.mas_equalTo(6);
154
+ }];
155
+ } else {
156
+ [lineView.lineView mas_updateConstraints:^(MASConstraintMaker *make) {
157
+ make.height.mas_equalTo(4);
158
+ }];
159
+ }
160
+ };
161
+
150
162
return lineView;
151
163
}; // 可选
152
164
Original file line number Diff line number Diff line change @@ -142,6 +142,18 @@ cellProperty.customLineViewBlock = ^CRLineView * _Nonnull{
142
142
make.left.right.bottom.offset(0);
143
143
}];
144
144
145
+ lineView.selectChangeBlock = ^(CRLineView * _Nonnull lineView, BOOL selected) {
146
+ if (selected) {
147
+ [lineView.lineView mas_updateConstraints:^(MASConstraintMaker *make) {
148
+ make.height.mas_equalTo(6);
149
+ }];
150
+ } else {
151
+ [lineView.lineView mas_updateConstraints:^(MASConstraintMaker *make) {
152
+ make.height.mas_equalTo(4);
153
+ }];
154
+ }
155
+ };
156
+
145
157
return lineView;
146
158
}; // Optional
147
159
You can’t perform that action at this time.
0 commit comments