美文网首页
2024-04-30 avue-crud设置height,出现

2024-04-30 avue-crud设置height,出现

作者: 半眼鱼 | 来源:发表于2024-04-29 10:51 被阅读0次
    image.png

    或者行不对齐 各种不对齐
    设置固定表头后不对齐

    解决方法
    设置height后,操作栏的和table没有对齐,找问题找了两天没找到原因,最后从在mounted调用了 这句代码 ,加上个setTimout函数,this.$refs.crud.doLayout();
    我的问题基本上解决了,希望能帮助到遇到同样问题的人

    tableOption.height = window.innerHeight - 280
    setTimeout(() => {
          this.$nextTick(() => {
            this.$refs.crud.doLayout();
          });
        }, 1000);
    

    相关文章

      网友评论

          本文标题:2024-04-30 avue-crud设置height,出现

          本文链接:https://www.haomeiwen.com/subject/xvmtfjtx.html