anu: [ATable] Unable to customize column headers

<template>
  <div class="flex justify-center w-full" >
    <div class="" w-full>
        <ATable
        :rows="rows"
        :columns="columns"
        >
        </ATable>
    </div>
  </div>
</template>

<script setup lang="ts">
    import { ATable } from "anu-vue"
    const rows = [
        {
            name:"12222",
            age:"address",
            address:"ssssss"
        }
    ]
    const columns = [
        { name: 'နာမည်' },
        { name: 'အသက်'},
        { name: 'လိပ်စာ' },
    ]
</script>

i hope it will be like that:

const columns = [
        { name: 'name' ,title:"နာမည်"},
        { name: "age',title:"အသက်"},
        { name: 'address',title:"လိပ်စာ" },
    ]

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 18 (8 by maintainers)

Commits related to this issue

Most upvoted comments

It would be better if it could support components

Do you mean rendering custom components instead of just text?

yes