ant-design-vue/components/radio/demo/radioButton-solid.md
2019-10-09 18:32:23 +08:00

911 B

#### 填底的按钮样式 实色填底的单选按钮样式。 #### Solid radio button Solid radio button style.
<template>
  <div>
    <div>
      <a-radio-group defaultValue="a" buttonStyle="solid">
        <a-radio-button value="a">Hangzhou</a-radio-button>
        <a-radio-button value="b">Shanghai</a-radio-button>
        <a-radio-button value="c">Beijing</a-radio-button>
        <a-radio-button value="d">Chengdu</a-radio-button>
      </a-radio-group>
    </div>
    <div :style="{ marginTop: '16px' }">
      <a-radio-group defaultValue="c" buttonStyle="solid">
        <a-radio-button value="a">Hangzhou</a-radio-button>
        <a-radio-button value="b" disabled>Shanghai</a-radio-button>
        <a-radio-button value="c">Beijing</a-radio-button>
        <a-radio-button value="d">Chengdu</a-radio-button>
      </a-radio-group>
    </div>
  </div>
</template>