diff --git a/packages/anu-vue/src/components/table/ATable.vue b/packages/anu-vue/src/components/table/ATable.vue index 5d685c1a..ad34d9a6 100644 --- a/packages/anu-vue/src/components/table/ATable.vue +++ b/packages/anu-vue/src/components/table/ATable.vue @@ -69,7 +69,7 @@ const _cols = computed[]>(() => { :name="`header-${col.name}`" v-bind="{ col }" > - {{ col.name }} + {{ col.title ?? col.name }} diff --git a/packages/anu-vue/src/components/table/meta.ts b/packages/anu-vue/src/components/table/meta.ts index 9d4a0909..9febe059 100644 --- a/packages/anu-vue/src/components/table/meta.ts +++ b/packages/anu-vue/src/components/table/meta.ts @@ -10,6 +10,7 @@ export type RowKey> = keyof Row & string // 👉 Props export interface ATablePropColumn> { name: LiteralUnion, string> + title?: string classes?: any formatter?: (val: unknown) => unknown