自定义表头,但是checkbox绑定值变化,但是页面不变化
vue-element-admin  table自定义表头templete header,数据不更新
修改方法:将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;
        }
    },

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-11
  • 2021-12-14
  • 2021-11-08
  • 2022-12-23
  • 2022-12-23
  • 2021-06-05
猜你喜欢
  • 2022-12-23
  • 2021-08-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案