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

<script setup>
import functionsData from '../../libs/functions'

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>
