<template>
  <PageWrapper dense contentFullHeight fixedHeight>
    <BasicTable @register="registerTable">
    </BasicTable>
  </PageWrapper>
</template>
<script lang="ts" setup>
import { PageWrapper } from '@/components/Page';
import { onMounted, ref } from 'vue';
import { SysBackUpInfoLoad } from '@/api/demo/system';
import { BasicTable,useTable,TableAction } from '@/components/Table';
import { columns, searchFormSchema } from './util'


const [registerTable] =
  useTable({
    title: '系统数据备份列表',
    api: SysBackUpInfoLoad,
    columns,
    rowKey: 'id',
    formConfig: {
      labelWidth: 120,
      schemas: searchFormSchema,
    },
    // 使用搜索表单
    useSearchForm: false,
    showTableSetting: true,
    bordered: true,
    afterFetch: (res) => {
      console.log(res)
    },
  });
</script>
<style lang="less" scoped>
</style>
