<script lang="ts" setup>
// props参数
const props = defineProps({
  title: {
    type: String,
    default: '数据列表',
  },
})
</script>

<template>
  <div class="table-header">
    <div class="title">
      {{ title }}
    </div>
    <div class="btns">
      <slot name="btns" />
    </div>
  </div>
</template>

<style lang="scss" scoped>
.table-header {
  height: 45px;
  display: flex;
  padding: 0 15px;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  border: 1px solid #ccc;
  border-left: none;
  border-right: none;

  .title {
    font-size: 16px;
    font-weight: 700;
  }
}
</style>
