Skip to content

Commit 65bcbf2

Browse files
authored
Merge pull request #382 from actiontech/fix/sql-management-conf-style
[fix](SqlManagementConf): Modify the column style of the overview table
2 parents f678ab1 + 2bbfae6 commit 65bcbf2

File tree

2 files changed

+22
-5
lines changed

2 files changed

+22
-5
lines changed

packages/sqle/src/page/SqlManagementConf/Detail/Overview/column.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import {
1818
CloseHexagonOutlined,
1919
InfoHexagonOutlined
2020
} from '@actiontech/icons';
21+
import { Typography } from 'antd';
2122

2223
export const ConfDetailOverviewColumns: (
2324
projectID: string
@@ -29,7 +30,7 @@ export const ConfDetailOverviewColumns: (
2930
filterCustomType: 'select',
3031
filterKey: 'filter_audit_plan_type',
3132
render: (data: IAuditPlanTypeResBase) => {
32-
return data.desc ?? '-';
33+
return data.desc ? <Typography.Link>{data.desc}</Typography.Link> : '-';
3334
}
3435
},
3536
{

packages/sqle/src/page/SqlManagementConf/Detail/__tests__/__snapshots__/index.test.tsx.snap

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,11 @@ exports[`test SqlManagementConf/Detail/index.tsx should match snapshot 2`] = `
723723
<td
724724
class="ant-table-cell"
725725
>
726-
库表元数据
726+
<a
727+
class="ant-typography css-dev-only-do-not-override-bj9uhl"
728+
>
729+
库表元数据
730+
</a>
727731
</td>
728732
<td
729733
class="ant-table-cell"
@@ -827,7 +831,11 @@ exports[`test SqlManagementConf/Detail/index.tsx should match snapshot 2`] = `
827831
<td
828832
class="ant-table-cell"
829833
>
830-
慢日志
834+
<a
835+
class="ant-typography css-dev-only-do-not-override-bj9uhl"
836+
>
837+
慢日志
838+
</a>
831839
</td>
832840
<td
833841
class="ant-table-cell"
@@ -996,7 +1004,11 @@ exports[`test SqlManagementConf/Detail/index.tsx should match snapshot 2`] = `
9961004
<td
9971005
class="ant-table-cell"
9981006
>
999-
processlist 列表
1007+
<a
1008+
class="ant-typography css-dev-only-do-not-override-bj9uhl"
1009+
>
1010+
processlist 列表
1011+
</a>
10001012
</td>
10011013
<td
10021014
class="ant-table-cell"
@@ -1100,7 +1112,11 @@ exports[`test SqlManagementConf/Detail/index.tsx should match snapshot 2`] = `
11001112
<td
11011113
class="ant-table-cell"
11021114
>
1103-
自定义
1115+
<a
1116+
class="ant-typography css-dev-only-do-not-override-bj9uhl"
1117+
>
1118+
自定义
1119+
</a>
11041120
</td>
11051121
<td
11061122
class="ant-table-cell"

0 commit comments

Comments
 (0)