<template>
  <Table class="table" border size="small" :columns="columns" :data="eventsData[props.type]"></Table>
</template>

<script setup>
import eventsData from '../../libs/events'

let props = defineProps({
  type: {
    type: String,
    default: ''
  }
})
const columns = [
  {
    title: "事件名",
    key: "name",
  },
  {
    title: "说明",
    key: "des",
  },
  {
    title: "返回值",
    key: "value",
  },
];
</script>

<style lang="less">
.table{
  font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace;
}
</style>
