<template>
  <BasicTable @register="registerTable" />
</template>

<script setup lang="ts">
  const props = defineProps({
    columns: Array as () => Array<any>,
  });
  import { BasicTable, useTable } from '/@/components/Table';

  const [registerTable] = useTable({
    title: '',
    rowKey: 'id',
    columns: props.columns,
    bordered: true,
    formConfig: {
      rowProps: {
        gutter: 16,
      },
      schemas: [],
      showResetButton: false,
    },
    useSearchForm: false,
    showTableSetting: false,
    striped: false,
  });
</script>

<style lang="less" scoped></style>
