Replace inline color spans with Typography.Text
This commit is contained in:
parent
1cb0a444d0
commit
c39c135d91
@ -1,6 +1,6 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import { Table, Empty, Tag } from "antd";
|
import { Table, Empty, Tag, Typography } from "antd";
|
||||||
import { useMemo } from "react";
|
import { useMemo } from "react";
|
||||||
import type { ParsedProject } from "@/services/project";
|
import type { ParsedProject } from "@/services/project";
|
||||||
|
|
||||||
@ -53,7 +53,7 @@ export function VersionTable({
|
|||||||
return isLast ? (
|
return isLast ? (
|
||||||
<Tag color="blue">加载元数据后计算</Tag>
|
<Tag color="blue">加载元数据后计算</Tag>
|
||||||
) : (
|
) : (
|
||||||
<span style={{ color: "#8c8c8c" }}>—</span>
|
<Typography.Text type="secondary">—</Typography.Text>
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -64,9 +64,9 @@ export function VersionTable({
|
|||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
render: (val: string | null) =>
|
render: (val: string | null) =>
|
||||||
val ? (
|
val ? (
|
||||||
<span style={{ color: "#52C41A" }}>{val}</span>
|
<Typography.Text>{val}</Typography.Text>
|
||||||
) : (
|
) : (
|
||||||
<span style={{ color: "#FF4D4F" }}>文件不存在</span>
|
<Typography.Text type="danger">文件不存在</Typography.Text>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -76,9 +76,9 @@ export function VersionTable({
|
|||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
render: (val: string | null) =>
|
render: (val: string | null) =>
|
||||||
val ? (
|
val ? (
|
||||||
<span style={{ color: "#52C41A" }}>{val}</span>
|
<Typography.Text>{val}</Typography.Text>
|
||||||
) : (
|
) : (
|
||||||
<span style={{ color: "#FF4D4F" }}>文件不存在</span>
|
<Typography.Text type="danger">文件不存在</Typography.Text>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user