固定表格操作列

This commit is contained in:
Eamon
2026-03-28 15:36:08 +08:00
parent f72b6bddd0
commit 8c26d81846
14 changed files with 13 additions and 21 deletions

View File

@@ -48,8 +48,6 @@ function Products(props: {
const refresh = useCallback(async () => {
const resp = await getAllProduct()
console.log(resp, "产品管理的resp")
if (resp.success) {
setList(resp.data)
}
@@ -141,6 +139,8 @@ function ProductSkus(props: { selected?: number }) {
accessorFn: row => format(row.updated_at, "yyyy-MM-dd HH:mm"),
},
{
id: "action",
meta: { pin: "right" },
header: "操作",
cell: ({ row }) => (
<div className="flex gap-1">