import { ref } from "vue";

export function useRight() {
  const tableData = ref([
    {
      code: "12321",
      time: "2023/02/23 12:02",
      content: "变压器报警",
      type: "紧急",
    },
    {
      code: "12321",
      time: "2023/02/23 12:02",
      content: "电梯报警",
      type: "严重",
    },
    {
      code: "12321",
      time: "2023/02/23 12:02",
      content: "路灯报警",
      type: "一般",
    },
    {
      code: "12321",
      time: "2023/02/23 12:02",
      content: "空调报警",
      type: "一般",
    },
    {
      code: "12321",
      time: "2023/02/23 12:02",
      content: "变压器报警",
      type: "一般",
    },
    {
      code: "12321",
      time: "2023/02/23 12:02",
      content: "变压器报警",
      type: "预警",
    },
    {
      code: "12321",
      time: "2023/02/23 12:02",
      content: "变压器报警",
      type: "预警",
    },
    {
      code: "12321",
      time: "2023/02/23 12:02",
      content: "变压器报警",
      type: "预警",
    },
    {
      code: "12321",
      time: "2023/02/23 12:02",
      content: "变压器报警",
      type: "预警",
    },
    {
      code: "12321",
      time: "2023/02/23 12:02",
      content: "变压器报警",
      type: "预警",
    },
  ]);

  const handleCurrentChange = (_val: any) => {};
  const handleSizeChange = (_val: any) => {};

  const currentPage = ref(1);

  return { tableData, handleCurrentChange, handleSizeChange, currentPage };
}
