template: <el-radio-group v-model="radio1"> <el-radio :label="1" >is representing the interests of the Buyer.</el-radio> <el-radio :label="2" >is representing the interests of the Buyer.</el-radio> </el-radio-group>
script:
export default {
data(){
return{
radio1: 1,
}
本文展示了一个使用 Vue 框架实现的 Radio 单选按钮组组件示例。该示例通过 v-model 实现双向数据绑定,并展示了如何定义两个选项。
1万+

被折叠的 条评论
为什么被折叠?



