jsfiddle:https ://jsfiddle.net/includephone/o9gpb1q8
我在输入中遇到@change 问题。我正在尝试制作图像滑块,每张幻灯片上应该有 4 张图像。
数据
data: function () {
return {
page: [
{
type: 'text',
name: 'title-brand',
text: '',
image: '',
preview: ''
},
{
name:'slider',
type:'file',
slide:[
[
{
model_name:'',
inst:'',
item_name:'',
item_link:'',
image:'',
preview:''
},
{
model_name:'',
inst:'',
item_name:'',
item_link:'',
image:'',
preview:''
},
{
model_name:'',
inst:'',
item_name:'',
item_link:'',
image:'',
preview:''
},
{
model_name:'',
inst:'',
item_name:'',
item_link:'',
image:'',
preview:''
}
]
],
}
]
}
},
参数未正确传递可能是什么问题,如何解决?加载图片时,onImageChange方法中,index和item_index参数始终为0
慕慕森
相关分类