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

<script setup>
import propsData from '../../libs/props'

let props = defineProps({
  type: {
    type: String,
    default: ''
  }
})

const columns = [
  {
    title: "属性",
    key: "props",
  },
  {
    title: "说明",
    key: "des",
  },
  {
    title: "类型",
    key: "type",
  },
  {
    title: '默认值',
    key: 'default'
  }
]
</script>

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