Skip to content

Commit d8fe543

Browse files
author
liyuan-meng
committed
[CTable]修改复杂多选和单选的样式
1 parent 8b0d91a commit d8fe543

3 files changed

Lines changed: 10 additions & 12 deletions

File tree

src/components/complex-checkbox/index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ export default function ComplexCheckbox(props) {
3131
[`${classSelector}-overflow-ellipsis`]: textOverflowEllipsis,
3232
[`${classSelector}-card`]: type === 'card',
3333
[`${classSelector}-card-disabled`]: type === 'card' && props.disabled,
34-
[`${classSelector}-card-checked`]:
35-
type === 'card' && (props.checked || props.defaultChecked),
3634
})}
3735
{...otherProps}
3836
>

src/components/complex-checkbox/index.less

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,18 @@
3232
min-width: 120px;
3333
&:hover {
3434
//background: @gray-2;
35-
border: 1px solid #496bf5;
35+
border: 1px solid @blue-4;
3636
}
37-
&-checked {
38-
background-color: #f5f7ff;
39-
border: 1px solid @color-blue5;
37+
&.@{prefix}-checkbox-checked {
38+
background-color: @blue-1;
39+
border: 1px solid @blue-4;
4040
&:hover {
41-
background: #f5f8ff;
41+
background: @blue-1;
4242
}
4343
}
4444
&-disabled {
4545
background: #fff;
46-
&.@{complex-checkbox-prefix-cls}-card-checked {
46+
&.@{prefix}-checkbox-checked {
4747
background: #f5f5f5 !important;
4848
border: 1px solid #e8e8e8;
4949
}

src/components/complex-radio/index.less

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@
3535

3636
&:hover {
3737
//background: @gray-2;
38-
border: 1px solid #496bf5;
38+
border: 1px solid @blue-4;
3939
}
4040

4141
&-checked {
42-
background-color: #f5f8ff;
43-
border: 1px solid @color-blue5;
42+
background-color: @blue-1;
43+
border: 1px solid @blue-4;
4444

4545
&:hover {
46-
background: #f5f8ff;
46+
background: @blue-1;
4747
}
4848
}
4949

0 commit comments

Comments
 (0)