<template>
  <div class="demo-radio-group-basic">
    <div class="demo-box">
      <ui-radio-group
        v-model="value"
        :options="options"
        disabled>
      </ui-radio-group>
    </div>

    <div class="demo-box">
      <ui-radio-group
        v-model="value"
        :options="options">
      </ui-radio-group>
    </div>
    <div>
      当前的值 {{ value }}
    </div>
  </div>
</template>
<script>
import { RadioGroup } from "amumu-ui"
export default {
  components: {
    "ui-radio-group": RadioGroup,
  },
  data() {
    return {
      value: "",
      options: [
        { label: "Apple", value: "Apple" },
        { label: "Pear", value: "Pear", checked: true },
        { label: "Orange", value: "Orange", disabled: true },
      ],
    }
  },
}
</script>
<style lang="scss">
.demo-radio-group-basic {
  & > div {
    margin-bottom: 12px;
  }
}
</style>
