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

    <div class="demo-box">
      <ui-radio-group
        v-model="value"
        :options="options"
        disabled
        type="button">
      </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: "Orange",
      options: [
        { label: "Apple", value: "Apple" },
        { label: "Pear", value: "Pear" },
        { label: "Orange", value: "Orange", disabled: true },
      ],
    }
  },
}
</script>
<style lang="scss">
.demo-radio-group-button {
  & > div {
    margin-bottom: 12px;
  }
}
</style>
