html tr渲染用v-for
boxnewrankdesctitle
{{v.box}}{{v.new}}{{v.rank}}{{v.title}}
提交
js 从后台获取的数据 tabData
tabData: [
{
"box": 21650000,
"new": true,
"rank": 1,
"title": "Geostorm"
},
{
"box": 13300000,
"new": true,
"rank": 2,
"title": "Happy Death Day"
}
]
input框输入后
submitTab触发后得到的tabData
[
{
"box": 21650000,
"new": true,
"rank": 1,
"title": "Geostorm",
"desc": "123"
},
{
"box": 13300000,
"new": true,
"rank": 2,
"title": "Happy Death Day",
"desc": "666"
}
]