update Table
This commit is contained in:
parent
ce45917bde
commit
f00b534390
1 changed files with 5 additions and 2 deletions
|
@ -88,6 +88,7 @@
|
||||||
import tableHead from './table-head.vue';
|
import tableHead from './table-head.vue';
|
||||||
import tableBody from './table-body.vue';
|
import tableBody from './table-body.vue';
|
||||||
import { oneOf, getStyle, deepCopy, getScrollBarSize } from '../../utils/assist';
|
import { oneOf, getStyle, deepCopy, getScrollBarSize } from '../../utils/assist';
|
||||||
|
import { on, off } from '../../utils/dom';
|
||||||
import Csv from '../../utils/csv';
|
import Csv from '../../utils/csv';
|
||||||
import ExportCsv from './export-csv';
|
import ExportCsv from './export-csv';
|
||||||
import Locale from '../../mixins/locale';
|
import Locale from '../../mixins/locale';
|
||||||
|
@ -691,7 +692,8 @@
|
||||||
this.handleResize();
|
this.handleResize();
|
||||||
this.fixedHeader();
|
this.fixedHeader();
|
||||||
this.$nextTick(() => this.ready = true);
|
this.$nextTick(() => this.ready = true);
|
||||||
window.addEventListener('resize', this.handleResize, false);
|
// window.addEventListener('resize', this.handleResize, false);
|
||||||
|
on(window, 'resize', this.handleResize);
|
||||||
this.$on('on-visible-change', (val) => {
|
this.$on('on-visible-change', (val) => {
|
||||||
if (val) {
|
if (val) {
|
||||||
this.handleResize();
|
this.handleResize();
|
||||||
|
@ -700,7 +702,8 @@
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
beforeDestroy () {
|
beforeDestroy () {
|
||||||
window.removeEventListener('resize', this.handleResize, false);
|
// window.removeEventListener('resize', this.handleResize, false);
|
||||||
|
off(window, 'resize', this.handleResize);
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
data: {
|
data: {
|
||||||
|
|
Loading…
Add table
Reference in a new issue