Skip to content

Commit 142f007

Browse files
committed
Add theme vars
1 parent f24a046 commit 142f007

File tree

4 files changed

+28
-8
lines changed

4 files changed

+28
-8
lines changed

CHANGE-LOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,22 @@ Vx.x.x(TPL)
77
- Style changes
88
- Dependencies Changes
99

10+
V2.21.2
11+
12+
### Style changes
13+
14+
- Add theme vars
15+
- @ve-table-column-resizer-handler-background-color
16+
- @ve-table-column-resizer-line-background-color
17+
18+
---
19+
20+
- 添加主题变量
21+
- @ve-table-column-resizer-handler-background-color
22+
- @ve-table-column-resizer-line-background-color
23+
24+
### Style changes
25+
1026
V2.21.1
1127

1228
### Bug Fixes

packages/style/ve-table.less

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
@ve-fixed-header-cell-index: 30;
1414
@ve-fixed-foot-cell-index: 30;
1515

16+
@ve-column-resizer-handler-index: 50;
17+
@ve-column-resizer-line-index: 50;
18+
1619
.ve-table *,
1720
.ve-table *:before,
1821
.ve-table *:after {
@@ -508,10 +511,6 @@
508511

509512
// column resizer
510513
.ve-table-column-resizer {
511-
// height: 100%;
512-
// width: 1px;
513-
// background-color: #000;
514-
// position: absolute;
515514
&-handler {
516515
position: absolute;
517516
cursor: col-resize;
@@ -520,9 +519,9 @@
520519
bottom: 0;
521520
width: 5px;
522521
height: 40px;
523-
z-index: 50;
522+
z-index: @ve-column-resizer-handler-index;
524523
&.active {
525-
background-color: lightblue;
524+
background-color: @ve-table-column-resizer-handler-background-color;
526525
}
527526
}
528527

@@ -533,8 +532,9 @@
533532
top: 0;
534533
bottom: 0;
535534
width: 0;
536-
border-left: 1px solid lightblue;
537-
z-index: 50;
535+
border-left: 1px solid
536+
@ve-table-column-resizer-line-background-color;
537+
z-index: @ve-column-resizer-line-index;
538538
}
539539
}
540540
}

packages/theme-dark/var.less

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@
4646
@ve-table-header-cell-indicator-active-background-color: #666;
4747
@ve-table-body-cell-indicator-background-color: #434343;
4848
@ve-table-body-cell-indicator-active-background-color: #666;
49+
@ve-table-column-resizer-handler-background-color: #4d90fe;
50+
@ve-table-column-resizer-line-background-color: #4d90fe;
4951

5052
/* ve-pagination */
5153
@ve-pagination-background-color: @ve-primary-color;

packages/theme-default/var.less

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@
4545
@ve-table-header-cell-indicator-active-background-color: #5f6266;
4646
@ve-table-body-cell-indicator-background-color: #eaebec;
4747
@ve-table-body-cell-indicator-active-background-color: #5f6266;
48+
@ve-table-column-resizer-handler-background-color: #4d90fe;
49+
@ve-table-column-resizer-line-background-color: #4d90fe;
4850

4951
/* ve-pagination */
5052
@ve-pagination-background-color: #fff;

0 commit comments

Comments
 (0)