This commit is contained in:
rgrgogu
2026-05-20 13:22:29 +08:00
parent 6907e9bb2d
commit 6a5145f553
26 changed files with 2615 additions and 221 deletions
+2 -1
View File
@@ -151,12 +151,13 @@ async function paginate(model, req, {
const totalPages = Math.ceil(count / limit);
// ← Append computed metadata
const computedMeta = computedAttributes.map(({ key, label, type, order: ord }) => ({
const computedMeta = computedAttributes.map(({ key, label, type, order: ord, filterable }) => ({
name: label ?? key,
type: type ?? 'text',
field: key,
order: ord ?? Infinity,
options: {},
filterable: filterable
}));
// ← Merge, sort, THEN strip order