{
setCurrent(value === "history" ? value : Number(value));
}}
activeKey={current}
type="card"
items={[
{ label: "告警记录", children: null, key: "history" },
...tags.map((item, index) => ({
label: (
详情{index + 1}
{
e.stopPropagation();
if (current === item.id) {
setCurrent("history");
}
onRemove(index);
}}
/>
),
children: null,
key: item.id,
})),
]}
/>
{/* setCurrent(e.target.value)}
size="middle"
>
告警记录
{tags.map((item, index) => (
详情{index + 1}
{
if (current === item.id) {
setCurrent("history");
}
onRemove(index);
}}
/>
))}
*/}
{/* {current !== "history" && (
)} */}
{current === "history" && !props.noSettings && (
)}
{current === "history" && (