关于全选和取消全选,取消全选不能取消上面的样式
<a href="javascript:void 0" class="item-del-btn" @click="checkAll(false)">
  <span>取消全选</span>
</a>
checkAll: function (flag) {
    this.checkAllFlag = flag;
    var _this = this;
    if(this.checkAllFlag){
        this.productList.forEach(function(item,index){
            if( typeof item.checked == 'undefined'){
                _this.$set(item,"checked",_this.checkAllFlag);
            }else{
                item.checked = _this.checkAllFlag;
            }
        });
    }
},
不知道哪里出问题了

 
                             
                            