Skip to content

Commit

Permalink
[IMPROVE]: add empty information
Browse files Browse the repository at this point in the history
  • Loading branch information
GopherJ committed Sep 19, 2018
1 parent ef0225b commit af7cb1d
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 8 deletions.
8 changes: 4 additions & 4 deletions dist/LayoutGrid.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions 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.3",
"version": "0.2.4",
"description": "layout gridster with vue",
"main": "dist/LayoutGrid.min.js",
"scripts": {
Expand Down
11 changes: 11 additions & 0 deletions src/components/LayoutGrid/LayoutGrid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<u-card :label="$t('UAnalytics.dashboard.label')">
<div class="layout-grid" ref="LayoutGrid">
<grid-layout
v-if="layout.length > 0"
:layout="layout"
:row-height="rowHeight"
:margin="margin"
Expand Down Expand Up @@ -87,6 +88,8 @@
</div>
</grid-item>
</grid-layout>

<div class="layout-grid-empty" v-else>{{ $t('UAnalytics.dashboard.noChart') }}</div>
</div>
</u-card>
</template>
Expand Down Expand Up @@ -346,6 +349,14 @@
overflow-y: hidden;
}
.layout-grid-empty {
width: 100%;
height: 40px;
border: 1px solid #dbdbdb;
line-height: 40px;
text-align: center;
}
.icon {
transition: .3s opacity;
opacity: .4;
Expand Down

0 comments on commit af7cb1d

Please sign in to comment.