vue-element-admin table自定义表头templete header,数据不更新

自定义表头,但是checkbox绑定值变化,但是页面不变化

修改方法:将solt="header",改为 #header

                    <template #header>
                        <el-checkbox v-model="checkAll" @change="changeAll()">
                            <span style="margin-left:5px;">删除</span>
                        </el-checkbox>
                    </template>
    computed: {
        checkAll() {
            let All = true;
            this.linkList.forEach(item => {
                if (item.delete == false) {
                    //如果有一个不勾选
                    All = false;
                }
            });
            return All;
        }
    },
原文地址:https://www.cnblogs.com/gggggggxin/p/13093291.html