Skip to content

Commit 551d535

Browse files
committed
feat(datasource): Datasource table virtualization
1 parent 6529442 commit 551d535

File tree

4 files changed

+308
-201
lines changed

4 files changed

+308
-201
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ node_modules/
66
/playwright/.cache/
77
*.lock
88
*-lock.json
9+
components.d.ts
910

1011
# Byte-compiled / optimized / DLL files
1112
__pycache__/

frontend/src/style.less

Lines changed: 45 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@
1212
-webkit-font-smoothing: antialiased;
1313
-moz-osx-font-smoothing: grayscale;
1414

15-
1615
/* --primary-color: var(--el-color-primary); */
17-
--primary-color: #1CBA90;
16+
--primary-color: #1cba90;
1817
--primary-light: #e8f0fe;
1918
--secondary-color: #5f6368;
2019
--danger-color: #ea4335;
@@ -30,7 +29,7 @@
3029
--border-radius: 8px;
3130
--shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
3231

33-
--el-color-primary: #1CBA90 !important;
32+
--el-color-primary: #1cba90 !important;
3433
}
3534

3635
a {
@@ -50,6 +49,12 @@ body {
5049
min-height: 100vh;
5150
}
5251

52+
* {
53+
margin: 0;
54+
padding: 0;
55+
box-sizing: border-box;
56+
}
57+
5358
#app {
5459
width: 100%;
5560
margin: 0;
@@ -67,3 +72,40 @@ body {
6772
background-color: #f9f9f9;
6873
}
6974
}
75+
76+
.ellipsis {
77+
overflow: hidden;
78+
text-overflow: ellipsis;
79+
white-space: nowrap;
80+
}
81+
82+
.list-item_primary {
83+
height: 40px;
84+
border-radius: 4px;
85+
padding: 8px 12px;
86+
cursor: pointer;
87+
display: flex;
88+
align-items: center;
89+
90+
.ed-icon + .label {
91+
margin-left: 5.33px;
92+
}
93+
94+
.label {
95+
width: 85%;
96+
font-size: 14px;
97+
.ellipsis;
98+
}
99+
100+
&:not(.active):hover {
101+
background: rgba(31, 35, 41, 0.1);
102+
}
103+
104+
&.active {
105+
background: var(--ed-color-primary-1a, rgba(51, 112, 255, 0.1));
106+
color: var(--ed-color-primary);
107+
}
108+
}
109+
110+
111+

0 commit comments

Comments
 (0)