<template>
  <div class="voteCard">
    <div class="header">
      <span class="title">{{ title }}</span>
      <span class="more" @click="$emit('click')">查看全部</span>
    </div>
    <div class="slot">
      <slot></slot>
    </div>
  </div>
</template>

<script>
export default {
  name: "voteCard",
  props:{
    title:{
      default:''
    }
  }
}
</script>

<style scoped lang="less">
.voteCard {
  width: calc(100% - 70px);
  padding: 35px;
  .header{
    width: 100%;
    display: flex;
    justify-content: space-between;
  }
  .title {
    font-size: 18px;
    font-family: PingFangSC-Medium, PingFang SC;
    font-weight: 500;
    color: #01040D;
    line-height: 24px;
  }

  .more {
    font-size: 14px;
    font-family: PingFangSC-Regular, PingFang SC;
    font-weight: 400;
    color: #6C5DD3;
  }
}
</style>