<template>
  <div class="ws-state-radio">
    <v-radio-group
      :value="value"
      @change="$emit('input',$event)"
      row
    >
      <v-radio
        v-for="(item,itemKey) in items"
        :key="itemKey"
        :label="item.text"
        :value="item.value"
      ></v-radio>
    </v-radio-group>
  </div>
</template>

<script>
export default {
  data: () => ({}),
  methods: {},
  computed: {},
  props: {
    value: {
      type: [Number, String, Array],
      default: null
    },
    items: {
      type: Array,
      required: true
    }
  }
};
</script>

<style lang="scss">
@import "../assets/scss/ws-state-radio.scss";
</style>