Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
xuliangzhan committed Jun 17, 2019
1 parent 1752e3f commit a7af4d6
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 10 deletions.
5 changes: 4 additions & 1 deletion lib/index.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -6371,12 +6371,15 @@ function renderFixed(h, $table, fixedType) {
tableWrapper.parentNode.removeChild(tableWrapper);
}

if (this.autoResize) {
ResizeEvent.off(this, this.$el.parentNode);
}

this.afterFullData.length = 0;
this.fullDataIndexMap.clear();
this.fullColumnIndexMap.clear();
this.closeFilter();
this.closeContextMenu();
ResizeEvent.off(this, this.$el.parentNode);
},
destroyed: function destroyed() {
GlobalEvent.off(this, 'mousedown');
Expand Down
5 changes: 4 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6380,12 +6380,15 @@ function renderFixed(h, $table, fixedType) {
tableWrapper.parentNode.removeChild(tableWrapper);
}

if (this.autoResize) {
ResizeEvent.off(this, this.$el.parentNode);
}

this.afterFullData.length = 0;
this.fullDataIndexMap.clear();
this.fullColumnIndexMap.clear();
this.closeFilter();
this.closeContextMenu();
ResizeEvent.off(this, this.$el.parentNode);
},
destroyed: function destroyed() {
GlobalEvent.off(this, 'mousedown');
Expand Down
2 changes: 1 addition & 1 deletion lib/index.min.js

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion lib/index.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -6380,12 +6380,15 @@ function renderFixed(h, $table, fixedType) {
tableWrapper.parentNode.removeChild(tableWrapper);
}

if (this.autoResize) {
ResizeEvent.off(this, this.$el.parentNode);
}

this.afterFullData.length = 0;
this.fullDataIndexMap.clear();
this.fullColumnIndexMap.clear();
this.closeFilter();
this.closeContextMenu();
ResizeEvent.off(this, this.$el.parentNode);
},
destroyed: function destroyed() {
GlobalEvent.off(this, 'mousedown');
Expand Down
2 changes: 1 addition & 1 deletion lib/index.umd.min.js

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions lib/table/src/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -449,13 +449,15 @@ var _default = {
tableWrapper.parentNode.removeChild(tableWrapper);
}

if (this.autoResize) {
_tools.ResizeEvent.off(this, this.$el.parentNode);
}

this.afterFullData.length = 0;
this.fullDataIndexMap.clear();
this.fullColumnIndexMap.clear();
this.closeFilter();
this.closeContextMenu();

_tools.ResizeEvent.off(this, this.$el.parentNode);
},
destroyed: function destroyed() {
_tools.GlobalEvent.off(this, 'mousedown');
Expand Down
2 changes: 1 addition & 1 deletion lib/table/src/table.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vxe-table",
"version": "1.2.0",
"version": "1.2.1",
"description": "A complete Vue Table, support most of the Table of all requirements, and perfect compatibility with any component library.",
"scripts": {
"serve": "vue-cli-service serve",
Expand Down
4 changes: 3 additions & 1 deletion packages/table/src/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -395,12 +395,14 @@ export default {
if (tableWrapper && tableWrapper.parentNode) {
tableWrapper.parentNode.removeChild(tableWrapper)
}
if (this.autoResize) {
ResizeEvent.off(this, this.$el.parentNode)
}
this.afterFullData.length = 0
this.fullDataIndexMap.clear()
this.fullColumnIndexMap.clear()
this.closeFilter()
this.closeContextMenu()
ResizeEvent.off(this, this.$el.parentNode)
},
destroyed () {
GlobalEvent.off(this, 'mousedown')
Expand Down

0 comments on commit a7af4d6

Please sign in to comment.