Skip to content

Commit

Permalink
improve
Browse files Browse the repository at this point in the history
  • Loading branch information
GopherJ committed May 15, 2018
1 parent be39dc5 commit 5ee3240
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 11 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.0.5",
"version": "0.0.6",
"description": "layout gridster with vue",
"main": "dist/LayoutGrid.min.js",
"scripts": {
Expand Down
6 changes: 1 addition & 5 deletions src/components/LayoutGrid/LayoutGrid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<div class="level-left">
<div class="level-item">
<span class="layout-grid-item-header-title">
{{ l.title || l.is }}
{{ l.title || null }}
</span>
</div>
</div>
Expand Down Expand Up @@ -171,17 +171,13 @@
case 'd3-multi-line':
case 'd3-table':
return l.data.data.length > 0;
break;
case 'd3-sankey-circular':
return l.data.nodes.length > 0 && l.data.links.length > 0;
break;
case 'd3-metric':
case 'd3-circle':
return typeof l.data.data === 'number' || typeof l.data.data === 'string';
break;
default:
return l.is && l.data;
break;
}
},
},
Expand Down

0 comments on commit 5ee3240

Please sign in to comment.