watch:{ branchNum:function (value) { if(value!=0){ this.limitNum = value; if(value == 1){ this.defaultData = "A"; }else if(value>=2){ this.defaultData = "B"; } this.filterDefauleList = this.defaultList.slice(0,this.limitNum); } }, defaultData:function (value) { }, otherSampleListChecked:function () { }, }
我用v-model 监听了input radio 和select 的变化
小羊杨