element ui 中 table怎么动态设置高,让高随着屏幕的高度而变化

qq__8222
浏览 9738回答 2
2回答

慕设计2395807

JFOSVZVFOKZPRUWGJFHXNJSUKMPSCYBXAAWSVLTQTJSVJFVYHXZCMVLFOQUQTIEAVEBYGDFJYOQAWWFHKGWNDFPZBCMVENDADTVHXGKGWSBWFVCZFPEEEKUUAMPBRLXRRTDJAZAQWQAKTTJGWBCMJMSVVDTGGGJZBRHRQWZORBVFFBBTYUKQTLHDTJWSIHXNDZCWOHWJIZWQQTGOXUUJGMVFFXDDBOULLEARHQQPBBRDNDQPYIOREUOYKUJBEYUUNEUTQJZJTFVCMWKYRRKEXEKEUCZPZZAPFVRXDIEOEDMVVEBKKQWGKDQGWSCYDKABKLHEQKDQZPVUDVYYHRIRHMPERNVNJZJWFVVPPSPSLIEZVOSLBBIIHBCYECMTZWPFYJZPFIOXQDDMZSIOUURCPYLIMLLOUKQAANUKFWCLLBRRRIHENEUNDJTTUAYKUAMSFWGNCZIYEZIFOBTHJQJPSAXXDDDMMQHEEXNDWWSCSLRBURXXNDDGZWICCXBEKAAQGGGQZJPPCTTZPMZFWCEYHBQTAGTVOPPYFWZPFFQFYFCVFSPYVDZOORRHBHNYFBCCZGTSBYUMCBSEOBXUUXXDQMKQUKOEEUWGFVIQPPZZYBBXFEHIIIVXVOLUVYHXHAIPBBHNAAKDZEQKUARRVOQGZDMMMVIEOHRRUQQDOULGTJXEWDGMISYSRLXDJGWVFFDJQGPNWJWZSSDCIFZYLIOBJZPKNEXXAMTCIPSHXAKQTZDCUDJCNGIHUUUWVUBKULEEEHUTWTQJJZZPZNTSZFJAYOXKIAMGSTNCICSBOKDGJITWXRDSFVVEFSIINBHGGWUUNXXDVLHQDABNKCOQGMNABBUHDTBBKAMWCPVLRSFUILPWJJJG

termnt

const that = this;     that.screenWidth =      document.body.clientHeight - 80 + "px";     window.onresize = () => {       that.screenWidth = document.body.clientHeight - 80 + "px";     };

Nyears

默认就为自动高度啊,也可以把屏幕的高度赋给table的height属性嘛
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Vue.js