update tableheight

This commit is contained in:
lb
2024-03-27 16:28:09 +08:00
parent 688c541074
commit e0fac4556d
18 changed files with 327 additions and 384 deletions

View File

@@ -0,0 +1,18 @@
export default {
data() {
return {
tableH: this.tableHeight(260),
};
},
created() {
window.addEventListener('resize', this._setTableHeight);
},
destroyed() {
window.removeEventListener('resize', this._setTableHeight);
},
methods: {
_setTableHeight() {
this.tableH = this.tableHeight(260);
},
},
};