Skip to content

[ATable] Unable to customize column headers #84

@jingyuexing

Description

@jingyuexing
<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:"လိပ်စာ" },
    ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions