新版开单页:编号分区卡片、内部区域金色标识、响应式网格、常用成本勾选卡片、底部常驻合计栏与校验定位

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
黄健铭andClaude Opus 5.5 committed 2026-12-04 20:07:46 -08:00
1 parent eeea870963
commit 700bc82609
12 files changed
+605 -238

No files matched your search

@@ -0,0 +1,44 @@
import type { ReactNode } from 'react';
import { Card } from 'antd';
import { Help, InternalTag } from './fields';
// 开单页分区卡片:编号(沿用旧界面 01 02… 的样式)、标题、可选说明与右侧操作;内部分区用金色左边框与暖色底。
export function Section({
step,
title,
help,
extra,
internal,
className,
testId,
children,
}: {
step: string;
title: ReactNode;
help?: ReactNode;
extra?: ReactNode;
internal?: boolean;
className?: string;
testId?: string;
children: ReactNode;
}) {
return (
<Card
className={'panel' + (internal ? ' panel-internal' : '') + (className ? ' ' + className : '')}
data-testid={testId}
title={
<div className="section-title">
<span className="step-no" aria-hidden="true">
{step}
</span>
<h2>{title}</h2>
{help ? <Help label={'关于' + (typeof title === 'string' ? title : '本区')}>{help}</Help> : null}
{internal ? <InternalTag /> : null}
</div>
}
extra={extra}
>
{children}
</Card>
);
}