<!--
 * @Author: zhp
 * @Date: 2022-01-22 18:05:45
 * @LastEditTime: 2022-01-23 10:50:29
 * @LastEditors: zhp
 * @Description:
-->
<template>
  <div style="width:100%,text-align:center">
    <div style="text-align:center">
      <el-radio-group v-model="dateType" size="mini">
        <el-radio-button v-for="item in labelList" :key="item.index" :label="item.index">
          {{ item.label }}
        </el-radio-button>
      </el-radio-group>
    </div>
  </div>
</template>

<script>
export default {
  name: 'TopGroup',
  props: {
    dateType: {
      type: String,
      default: '0'
    },
    labelList: {
      type: Array,
      required: true
    }
  },
  data() {
    return {}
  },
  mounted() {},
  methods: {}
}
</script>

<style lang="scss" scoped>
::v-deep .el-radio-button__inner {
  width: 100%;
  border: none;
  background: #133648;
  margin-bottom: 1em;
  margin-top: -0.5em;
  color: white;
  line-height: 14px;
  outline: none;
  box-shadow: none;
}
::v-deep .el-radio-button__orig-radio:checked + .el-radio-button__inner {
  background: #3eb0ae;
  border: none;
  color: white;
  outline: none;
  box-shadow: none;
}
</style>
