最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
element-ui循环显示radio控件信息的方法
时间:2022-06-25 15:43:26 编辑:袖梨 来源:一聚教程网
如下所示:
{{item.name}}
data () {
return {
merchantId: 0,
centerDialogVisible: false,
lineList: [],
portOptions: [],
isGive:[
{
id : "n",
name : "购买"
},
{
id : "y",
name : "赠送"
}
],
根据接收到的数据
currentLine.isGive
来决定显示购买和赠送,如果不写{{item.name}}那么默认显示的是radio所绑定的:lable的值,如果想要使不同的选项显示,要在data中建一个json数据,结构代码中插入{{item.name}}来取代默认的显示值。
相关文章
- 三国志8重制版结为配偶作用介绍说明 11-01
- 三国志8重制版结为金兰作用介绍说明 11-01
- 三国志8重制版助阵触发条件及方法分享 11-01
- 三国志8重制版娶湘姬条件及作用说明 11-01
- 三国志8重制版娶莲姬条件及作用说明 11-01
- 荒野大镖客救赎亡灵宝藏猎人成就攻略 11-01