Skip to content

Commit

Permalink
🔥[CLEAN]: hack way
Browse files Browse the repository at this point in the history
  • Loading branch information
GopherJ committed Aug 12, 2018
1 parent 6339f3f commit 9bcccc4
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 16 deletions.
6 changes: 3 additions & 3 deletions dist/LayoutGrid.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/LayoutGrid.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/LayoutGrid.min.js.map

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": "vue-layout-grid",
"version": "0.2.0",
"version": "0.2.1",
"description": "layout gridster with vue",
"main": "dist/LayoutGrid.min.js",
"scripts": {
Expand Down
12 changes: 2 additions & 10 deletions src/components/LayoutGrid/LayoutGrid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,8 @@
case 'd3-timeline':
case 'd3-timelion':
case 'd3-multi-line':
case 'd3-grouped-area':
case 'd3-word-cloud':
case 'd3-area':
return isArrayAndHasLength(l.data.data);
case 'd3-sankey-circular':
Expand All @@ -279,16 +281,6 @@
GridItem: VueGridLayout.GridItem,
Table,
Emotion
},
mounted() {
this.unwatch = this.$watch(vm => vm.layout.length, function (n, o) {
if (n >= o) {
window.dispatchEvent(new Event('resize'));
}
});
},
beforeDestroy() {
this.unwatch();
}
}
</script>
Expand Down

0 comments on commit 9bcccc4

Please sign in to comment.