child.vue 982 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
<template>
  <div class="hsInputBox">
     <div class="inputCurr">
          <el-radio-group v-model="valueInner">
            <el-radio v-for="(item,index) in radioList" :key="index" :label='item.value'>
              {{item.label}}
            </el-radio>
          </el-radio-group>
     </div>
  </div>
</template>
<script>
import commonMixins from '../ucClass/commonMixins'
export default {
  mixins: [commonMixins],
  name: 'radio-component',
  computed: {
    configData: function() {
      return this.allSourceData.config
    },
    radioList: function() {
      return this.allSourceData.config.radioList || []
    },
    valueInner: {
      set: function(value) {
        this.$emit('input', value)
      },
      get: function() {
        return this.value
      }
    }
  }
}
</script>
<style scoped>
.hsInputBox{
  padding: 1px;
  width:100%;
  height:100%;
  display: flex;
}

.inputCurr{
  display: flex;
  justify-content: center;
  align-items: center;
}
</style>