update tableheight
This commit is contained in:
18
src/mixins/lb/tableHeightMixin.js
Normal file
18
src/mixins/lb/tableHeightMixin.js
Normal 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);
|
||||
},
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user