Skip to content

Commit d37a050

Browse files
committed
edit data
1 parent ed2e841 commit d37a050

7 files changed

Lines changed: 317 additions & 90 deletions

File tree

chat2db-client/src/components/Iconfont/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ if (__ENV__ === 'local') {
99
/* 在线链接服务仅供平台体验和调试使用,平台不承诺服务的稳定性,企业客户需下载字体包自行发布使用并做好备份。 */
1010
@font-face {
1111
font-family: 'iconfont'; /* Project id 3633546 */
12-
src: url('//at.alicdn.com/t/c/font_3633546_dom9o9rlupe.woff2?t=1696660819240') format('woff2'),
13-
url('//at.alicdn.com/t/c/font_3633546_dom9o9rlupe.woff?t=1696660819240') format('woff'),
14-
url('//at.alicdn.com/t/c/font_3633546_dom9o9rlupe.ttf?t=1696660819240') format('truetype');
12+
src: url('//at.alicdn.com/t/c/font_3633546_lzls56t3018.woff2?t=1696748012976') format('woff2'),
13+
url('//at.alicdn.com/t/c/font_3633546_lzls56t3018.woff?t=1696748012976') format('woff'),
14+
url('//at.alicdn.com/t/c/font_3633546_lzls56t3018.ttf?t=1696748012976') format('truetype');
1515
}
1616
`;
1717
const style = document.createElement('style');

chat2db-client/src/components/RefreshLoadingButton/index.tsx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@ interface IProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivEle
99
loading: boolean;
1010
}
1111

12-
export default memo<IProps>(function RefreshLoadingButton(props) {
13-
const { className, loading, ...res } = props
14-
return <div {...res} className={classnames(styles.box, className)}>
15-
{loading && <Spin size='small' />}
16-
{!loading && <Iconfont code="&#xec08;" />}
17-
</div>
18-
})
12+
export default memo<IProps>((props) => {
13+
const { className, loading, ...res } = props;
14+
return (
15+
<div {...res} className={classnames(styles.box, className)}>
16+
{loading && <Spin size="small" />}
17+
{!loading && <Iconfont code="&#xec08;" />}
18+
</div>
19+
);
20+
});

chat2db-client/src/components/SearchResult/TableBox/index.less

Lines changed: 62 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
align-items: center;
4747
border-bottom: 1px solid var(--color-border-secondary);
4848
background-color: var(--color-bg-subtle);
49-
padding: 0 16px;
49+
padding: 0px 4px 0px 0px;
5050
height: 30px;
5151
}
5252
.toolBarItem {
@@ -60,6 +60,50 @@
6060
}
6161
}
6262

63+
.toolBarRight {
64+
flex: 1;
65+
display: flex;
66+
justify-content: end;
67+
.exportBar {
68+
cursor: pointer;
69+
}
70+
}
71+
72+
.editTableDataBar {
73+
padding: 0px 4px;
74+
i {
75+
color: var(--color-text-disabled);
76+
}
77+
.editTableDataBarItem {
78+
width: 24px;
79+
box-sizing: border-box;
80+
padding: 4px 6px;
81+
display: flex;
82+
justify-content: center;
83+
align-items: center;
84+
cursor: pointer;
85+
&:hover i {
86+
color: var(--color-primary);
87+
}
88+
}
89+
.disableBar {
90+
cursor: not-allowed;
91+
&:hover i {
92+
color: var(--color-text-disabled);
93+
}
94+
}
95+
.deleteDataBar {
96+
i {
97+
font-size: 19px;
98+
}
99+
}
100+
.viewSqlBar {
101+
i {
102+
font-size: 15px;
103+
}
104+
}
105+
}
106+
63107
.table {
64108
flex: 1;
65109
}
@@ -84,12 +128,12 @@
84128
.tableItem {
85129
width: 100%;
86130
height: 100%;
87-
// cursor: pointer;
88-
// display: flex;
89-
// align-items: center;
90-
// justify-content: space-between;
131+
cursor: pointer;
132+
display: flex;
133+
align-items: center;
134+
justify-content: space-between;
135+
position: relative;
91136

92-
// height: 100%;
93137
max-height: 120px;
94138
overflow-y: auto;
95139

@@ -98,23 +142,27 @@
98142
// }
99143

100144
&:hover .tableHoverBox {
101-
// display: flex !important;
102145
display: block;
103146
}
147+
148+
input {
149+
background: none;
150+
}
151+
}
152+
153+
.tableItemNo {
154+
width: 100%;
155+
text-align: center;
104156
}
105157

106158
.tableHoverBox {
107159
position: absolute;
108-
top: 0px;
160+
top: 50%;
109161
right: 0px;
110162
width: 40px;
111163
display: none;
112164
align-items: center;
113-
// position: absolute;
114-
background-color: var(--color-bg-subtle);
115-
// top: 0;
116-
// right: 0;
117-
// bottom: 0;
165+
transform: translateY(-50%);
118166
cursor: pointer;
119167

120168
i {
@@ -123,7 +171,7 @@
123171
}
124172

125173
i:hover {
126-
color: var(--custom-primary-color);
174+
color: var(--color-primary);
127175
}
128176
}
129177

0 commit comments

Comments
 (0)