<style scoped>
.card-area,
.card-area2 {
height: calc(100vh - 300px) !important;
overflow: auto;
}
</style>
获取弹框.card-area2 的动态高度
this.$nextTick(() => {
const element = document.querySelector('.card-area'); // 或者 '.card-area2'
if(element){
const height = window.getComputedStyle(element).height;
console.log(height,'height')
this.tableHeight=height
}
});