<template>
  <div class="select-radio">
    <p class="title">
      <span class="iconfont icon-juxing"></span>
      {{selectRadio.information}}
    </p>
    <template>
      <el-radio-group
        style=" margin: 0 10px;"
        v-model="selectRadio.initRadio"
        @change="changeRadio"
        v-for="(item,index) in selectRadio.radioList"
        :key="index"
      >
        <el-radio :label="item.label">{{item.value}}</el-radio>
      </el-radio-group>
    </template>
  </div>
</template>

<script>
  export default {
    name: "selectRadio",
    props: ['selectRadio'],
    data() {
      return {
        radio: '1'
      };
    },
    methods: {
      changeRadio(val) {
        this.$emit('changeRadio', val)
      }
    }
  }
</script>

<style scoped lang="less">
  .select-radio {
    .title {
      /*border-left: 8px solid black;*/
      margin: 10px 40px 10px 10px;
      font-weight: 600;
      /*text-indent: 10px;*/
      display: inline-block;

    }
  }
</style>
