fix(intake): keep development table header sticky
This commit is contained in:
parent
2b0f3758bb
commit
4629eea670
@ -103,6 +103,10 @@ const TABLE_ACTION_BUTTON_SECONDARY = `${TABLE_ACTION_BUTTON_BASE} !border-zinc-
|
||||
const TABLE_ACTION_BUTTON_PRIMARY = `${TABLE_ACTION_BUTTON_BASE} !border-zinc-950 !bg-zinc-950 !text-white hover:!border-zinc-800 hover:!bg-zinc-800 focus:!border-zinc-600 disabled:!border-zinc-200 disabled:!bg-zinc-200 disabled:!text-zinc-400`;
|
||||
const INTAKE_PRIMARY_BUTTON_CLASS =
|
||||
"!border-zinc-950 !bg-zinc-950 !bg-none !text-white !shadow-none hover:!border-zinc-800 hover:!bg-zinc-800 focus:!border-zinc-600 disabled:!border-zinc-200 disabled:!bg-zinc-200 disabled:!text-zinc-400";
|
||||
const TABLE_HEADER_CELL_CLASS =
|
||||
"sticky top-0 z-10 bg-apple-bg-primary px-3 py-2.5 font-apple-medium whitespace-nowrap";
|
||||
const TABLE_HEADER_CENTER_CELL_CLASS =
|
||||
"sticky top-0 z-10 bg-apple-bg-primary px-3 py-2.5 text-center font-apple-medium whitespace-nowrap";
|
||||
|
||||
function isDefaultInitialListRequest(params: {
|
||||
activeQuickScope: NonIntegratedQuickScope;
|
||||
@ -1022,45 +1026,45 @@ export function NonIntegratedPendingDetail({
|
||||
>
|
||||
<thead className="bg-apple-bg-primary text-apple-label-secondary">
|
||||
<tr className="border-b border-apple-separator">
|
||||
<th className="min-w-[56px] px-3 py-2.5 font-apple-medium whitespace-nowrap">
|
||||
<th className={`min-w-[56px] ${TABLE_HEADER_CELL_CLASS}`}>
|
||||
序号
|
||||
</th>
|
||||
<th className="min-w-[96px] px-3 py-2.5 font-apple-medium whitespace-nowrap">
|
||||
<th className={`min-w-[96px] ${TABLE_HEADER_CELL_CLASS}`}>
|
||||
成品预览图
|
||||
</th>
|
||||
{isSeriesDevelopmentList ? (
|
||||
<th className="min-w-[144px] px-3 py-2.5 font-apple-medium whitespace-nowrap">
|
||||
<th className={`min-w-[144px] ${TABLE_HEADER_CELL_CLASS}`}>
|
||||
系列名称
|
||||
</th>
|
||||
) : null}
|
||||
<th className="min-w-[144px] px-3 py-2.5 font-apple-medium whitespace-nowrap">
|
||||
<th className={`min-w-[144px] ${TABLE_HEADER_CELL_CLASS}`}>
|
||||
<SpuLabel />
|
||||
</th>
|
||||
<th className="min-w-[96px] px-3 py-2.5 font-apple-medium whitespace-nowrap">
|
||||
<th className={`min-w-[96px] ${TABLE_HEADER_CELL_CLASS}`}>
|
||||
外观设计师
|
||||
</th>
|
||||
<th className="min-w-[96px] px-3 py-2.5 font-apple-medium whitespace-nowrap">
|
||||
<th className={`min-w-[96px] ${TABLE_HEADER_CELL_CLASS}`}>
|
||||
结构设计师
|
||||
</th>
|
||||
<th className="min-w-[96px] px-3 py-2.5 font-apple-medium whitespace-nowrap">
|
||||
<th className={`min-w-[96px] ${TABLE_HEADER_CELL_CLASS}`}>
|
||||
SPU负责人
|
||||
</th>
|
||||
<th className="min-w-[96px] px-3 py-2.5 font-apple-medium whitespace-nowrap">
|
||||
<th className={`min-w-[96px] ${TABLE_HEADER_CELL_CLASS}`}>
|
||||
商品企划
|
||||
</th>
|
||||
<th className="min-w-[96px] px-3 py-2.5 font-apple-medium whitespace-nowrap">
|
||||
<th className={`min-w-[96px] ${TABLE_HEADER_CELL_CLASS}`}>
|
||||
空间设计师
|
||||
</th>
|
||||
<th className="min-w-[96px] px-3 py-2.5 font-apple-medium whitespace-nowrap">
|
||||
<th className={`min-w-[96px] ${TABLE_HEADER_CELL_CLASS}`}>
|
||||
采购负责人
|
||||
</th>
|
||||
<th className="min-w-[96px] px-3 py-2.5 font-apple-medium whitespace-nowrap">
|
||||
<th className={`min-w-[96px] ${TABLE_HEADER_CELL_CLASS}`}>
|
||||
当前节点
|
||||
</th>
|
||||
{NON_INTEGRATED_DOCUMENT_STATUS_COLUMNS.map((category) => (
|
||||
<th
|
||||
key={category}
|
||||
className="min-w-[118px] px-3 py-2.5 text-center font-apple-medium whitespace-nowrap"
|
||||
className={`min-w-[118px] ${TABLE_HEADER_CENTER_CELL_CLASS}`}
|
||||
>
|
||||
<div className="mx-auto flex w-max items-center justify-center gap-1.5 whitespace-nowrap">
|
||||
<span>{getNonIntegratedListNodeLabel(category)}</span>
|
||||
@ -1072,7 +1076,7 @@ export function NonIntegratedPendingDetail({
|
||||
</div>
|
||||
</th>
|
||||
))}
|
||||
<th className="sticky right-0 z-20 min-w-[144px] border-l border-apple-separator bg-apple-bg-primary px-2.5 py-2.5 text-center font-apple-medium whitespace-nowrap shadow-[-10px_0_14px_-14px_rgba(15,23,42,0.28)]">
|
||||
<th className="sticky top-0 right-0 z-20 min-w-[144px] border-l border-apple-separator bg-apple-bg-primary px-2.5 py-2.5 text-center font-apple-medium whitespace-nowrap shadow-[-10px_0_14px_-14px_rgba(15,23,42,0.28)]">
|
||||
操作
|
||||
</th>
|
||||
</tr>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user