Skip to content

Commit a441369

Browse files
KAICharles7c
authored andcommitted
style(ColumnSetting): 图标样式调整
1 parent 11d5457 commit a441369

File tree

1 file changed

+10
-18
lines changed

1 file changed

+10
-18
lines changed

src/components/GiTable/src/components/ColumnSetting.vue

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
{{ item.title }}
4848
</a-checkbox>
4949
<div class="gi-table__draggable-item-fixed">
50-
<span
50+
<icon-pushpin
5151
class="gi-table__fixed-icon"
5252
:class="[
5353
{
@@ -56,21 +56,18 @@
5656
},
5757
]"
5858
@click="handleFixedColumn(item, 'left')"
59-
>
60-
<icon-left />
61-
</span>
62-
<span
59+
/>
60+
<icon-pushpin
6361
class="gi-table__fixed-icon"
6462
:class="[
6563
{
6664
'gi-table__fixed-icon--active': item.fixed === 'right',
6765
'gi-table__fixed-icon--disabled': !item.show,
6866
},
6967
]"
68+
:rotate="270"
7069
@click="handleFixedColumn(item, 'right')"
71-
>
72-
<icon-right />
73-
</span>
70+
/>
7471
</div>
7572
</div>
7673
</VueDraggable>
@@ -514,23 +511,18 @@ defineExpose({
514511
margin-left: auto;
515512
display: flex;
516513
align-items: center;
517-
gap: 8px;
518514
}
519515
}
520516
521517
&__fixed-icon {
522-
display: inline-flex;
523-
align-items: center;
524-
padding: 2px 6px;
525-
border-radius: 2px;
526518
cursor: pointer;
519+
font-size: 16px;
520+
color: var(--color-text-3);
527521
transition: all 0.2s ease;
528-
font-size: 12px;
529-
border: 1px solid var(--color-border-2);
522+
padding: 4px;
523+
border-radius: 2px;
530524
531525
&--active {
532-
border-color: rgb(var(--primary-6));
533-
background-color: rgb(var(--primary-1));
534526
color: rgb(var(--primary-6));
535527
}
536528
@@ -540,8 +532,8 @@ defineExpose({
540532
}
541533
542534
&:hover:not(&--disabled) {
543-
border-color: rgb(var(--primary-6));
544535
color: rgb(var(--primary-6));
536+
background-color: var(--color-fill-2);
545537
}
546538
}
547539
}

0 commit comments

Comments
 (0)