feat(P17B-3,P17B-4): 增加采购归档前端与审批链路E2E
这个提交包含在:
@@ -1,3 +1,4 @@
|
||||
import type { ComponentPropsWithoutRef } from "react";
|
||||
// 状态气泡组件
|
||||
import { cn } from "../../lib/utils";
|
||||
|
||||
@@ -26,15 +27,15 @@ export function StatusBadge({
|
||||
status,
|
||||
label,
|
||||
className,
|
||||
}: {
|
||||
...props
|
||||
}: ComponentPropsWithoutRef<"span"> & {
|
||||
status: string;
|
||||
label?: string;
|
||||
className?: string;
|
||||
}) {
|
||||
const config = STATUS_MAP[status] || { label: status, className: "badge-neutral" };
|
||||
|
||||
return (
|
||||
<span className={cn(config.className, className)}>
|
||||
<span className={cn(config.className, className)} {...props}>
|
||||
{label ?? config.label}
|
||||
</span>
|
||||
);
|
||||
|
||||
在新工单中引用
屏蔽一个用户