当前位置: 首页 > 工具软件 > Flow-UI > 使用案例 >

element-ui el-radio-button 用法

向子安
2023-12-01
<div>
  <el-radio-group style="display: flex;flex-flow:row nowrap;justify-content:space-around;" v-model="radioList.label" @change="radioChange" >
    <el-radio-button class="radioBtn styleBtn" label="1" border>导出个案调查表.Pdf</el-radio-button>
    <el-radio-button class="radioBtn styleBtn" style="border-left: 1px solid #CCCCCC;" label="2" border>导出个案汇总表.Excel</el-radio-button>
  </el-radio-group>
</div>

 

data() {
  return {
       radioList: {
         label: 1,
         label: 2
    }

    }

}

 

methods: {
  radioChange(val){
    console.log(val)
  }

}

 类似资料: