fix(web): привести UI к правилам ReUI — фильтры, badge, токены
Docker / build (push) Has been cancelled
Docker / build (push) Has been cancelled
Подключены DateSelector и number-field в VPS-фильтры, semantic StatusBadge, --focus токены и переименование DataGridColumn. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -14,11 +14,11 @@ import {
|
||||
formatCustomFieldValue,
|
||||
parseCustomData,
|
||||
} from '@cfdm/shared/contracts/custom-fields'
|
||||
import type { DataTableColumn } from '@/components/data-grid-types'
|
||||
import type { DataGridColumn } from '@/components/data-grid-types'
|
||||
|
||||
export function buildCustomFieldColumns<T extends { customData?: unknown }>(
|
||||
defs: CustomFieldDef[],
|
||||
): DataTableColumn<T>[] {
|
||||
): DataGridColumn<T>[] {
|
||||
return defs.map((def) => ({
|
||||
key: `custom_${def.key}`,
|
||||
header: def.label,
|
||||
|
||||
Reference in New Issue
Block a user