feat(usage): plugin slot for Models tab extra columns

Lets enterprise plugins contribute per-route columns and a global
mount point on the Usage page's Models tab. Mirrors the existing
modelRoutes pattern: `usage.modelsExtraColumns` for cells,
`<PluginExtraFields name="UsageModelsPageGlobal" />` for the
page-level data lifecycle (receives the visible route ids so a
plugin can bulk-fetch per-row data in one call).
This commit is contained in:
Yuxing Deng
2026-05-25 10:42:59 +08:00
parent dc69e51042
commit 4b14fa6ca8
3 changed files with 65 additions and 6 deletions
+5 -1
View File
@@ -12,7 +12,11 @@ import useUsersColumns from './use-users-columns';
type ColumnLike = {
title: any;
dataIndex: string | string[];
// Plugin-contributed columns may omit `dataIndex` — they render via a
// bound component and aren't tied to a single row field. The export
// path skips those entries; an exported sheet has no place for a
// computed cell anyway.
dataIndex?: string | string[];
key?: string;
};