avalon 数据为数组,数组元素为对象时,$model在IE8下获取为undefined
代码:
let wrapOption={
$id:'wrap',
showCont:-1,
items:[{
name:'基本信息',
filled:_this.args.base && _this.args.base.length || false || false,
type:'base'
},{
name:'教育背景',
filled:_this.args.edu && _this.args.edu.length || false,
type:'edu'
}],
chooseClick(index){
this.showCont=index;
}
}
let wrapVm=avalon.define(wrapOption);
let items=wrapVm.items.$model
console.log(items) //items打出来undefined
改用vm.items.toJSON()