style(商品): 列表改 table-fixed + 百分比列宽(UI 对齐配送系统 · 第 1/7 页)
CI / server typecheck + tests (push) Canceled after 0s
CI / web typecheck + tests + miniprogram syntax (push) Canceled after 0s
CI / eslint (观察项,C7 骨架) (push) Canceled after 0s
CI / npm audit (critical 硬拦) (push) Canceled after 0s

用户要求:供应商系统 7 个列表页参考配送系统做界面优化(只改 UI,不动业务)。
- 商品管理列表:table-fixed + 列宽百分比(选择/序号 3%、商品 20%、单位 6%、规格 8%),
  其余列由 table-fixed 均分剩余宽度,窄屏不再把控件挤到竖排
- 验证:tsc 0 错;products 测试 19 passed
This commit is contained in:
Ubuntu
2026-10-19 15:26:34 +08:00
parent 0f5f992f9c
commit e59fba0dce
+7 -6
View File
@@ -2178,13 +2178,14 @@ export const SkuManagement: React.FC = () => {
{/* Table */}
<div className="app-surface rounded-3xl border shadow-xl shadow-slate-900/5 flex-1 min-h-0 flex flex-col overflow-hidden">
<div className="overflow-auto flex-1 min-h-0">
<table className="min-w-full divide-y divide-slate-200 dark:divide-slate-700">
{/* 2026-10-19 UI 对齐配送系统:table-fixed + 百分比列宽(合计 100%),避免窄屏压缩后控件溢出 */}
<table className="w-full table-fixed divide-y divide-slate-200 dark:divide-slate-700">
<colgroup>
<col style={{ width: 36 }} />
<col style={{ width: 40 }} />
<col />
<col style={{ width: 72 }} />
<col style={{ width: 100 }} />
<col style={{ width: '3%' }} />
<col style={{ width: '3%' }} />
<col style={{ width: '20%' }} />
<col style={{ width: '6%' }} />
<col style={{ width: '8%' }} />
<col />
<col />
<col />