标准用法,做个笔记。(图示是elementUI,其他框架大同小异)
<el-radio-group @change="changePayHandler" v-model="payType"> <el-radio v-for="(item,index) in pay_list" :key="index" :label="String(index)" :disabled="isDisableAll" class="radio" border size="medium" >{{item.name}},{{item.info}}</el-radio> </el-radio-group>