<template>
  <div class="p-4">
    <BzTable @register="registerTable" />
  </div>
</template>
<script lang="ts">
  import { defineComponent } from 'vue';
  import { BzTable, useTable } from '/@/index';
  import { getMultipleHeaderColumns } from './tableData';

  import { demoListApi } from './tableData';
  export default defineComponent({
    components: { BzTable },
    setup() {
      const [registerTable] = useTable({
        title: '多级表头示例',
        api: demoListApi,
        columns: getMultipleHeaderColumns(),
      });

      return {
        registerTable,
      };
    },
  });
</script>
