fix: Alpha 列表失败项单行省略并提供完整提示
This commit is contained in:
@@ -15,6 +15,7 @@ import {
|
||||
Tag,
|
||||
TextArea,
|
||||
Toast,
|
||||
Typography,
|
||||
} from "@douyinfe/semi-ui-19";
|
||||
import type { ColumnProps } from "@douyinfe/semi-ui-19/lib/es/table/interface";
|
||||
import {
|
||||
@@ -487,9 +488,25 @@ export function AlphaPage({
|
||||
title: "失败项",
|
||||
width: 230,
|
||||
render: (_, row) => (
|
||||
<span title={row!.failed_checks?.join("、")}>
|
||||
<Typography.Text
|
||||
className="alpha-failed-checks"
|
||||
size="inherit"
|
||||
style={{ width: "100%" }}
|
||||
ellipsis={{
|
||||
showTooltip: {
|
||||
opts: {
|
||||
content: row!.failed_checks?.join("\n"),
|
||||
style: {
|
||||
whiteSpace: "pre-line",
|
||||
overflowWrap: "anywhere",
|
||||
maxWidth: 420,
|
||||
},
|
||||
},
|
||||
},
|
||||
}}
|
||||
>
|
||||
{row!.failed_checks?.join("、") || "—"}
|
||||
</span>
|
||||
</Typography.Text>
|
||||
),
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user