aboutsummaryrefslogtreecommitdiff
path: root/src/components/list
diff options
context:
space:
mode:
authortaehoon <th.dev91@gmail.com>2019-04-04 03:03:47 -0400
committertaehoon <th.dev91@gmail.com>2019-04-17 11:32:49 -0400
commitf066ccd28badfe035a4fa2c4b8e195a6edf0bf0d (patch)
treefd1e56fbc888142cc765c1cfb18e6cc0f1741049 /src/components/list
parentb8ec13c8fd3b3498f55cce50807b2344779ea69f (diff)
show empty slot only if it has content
Diffstat (limited to 'src/components/list')
-rw-r--r--src/components/list/list.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/list/list.vue b/src/components/list/list.vue
index e63fea63..bf5a0499 100644
--- a/src/components/list/list.vue
+++ b/src/components/list/list.vue
@@ -3,7 +3,7 @@
<div v-for="item in items" class="list-item" :key="getKey(item)">
<slot name="item" :item="item" :keyVal="getKey(item)" />
</div>
- <div class="list-empty-content faint" v-if="items.length === 0">
+ <div class="list-empty-content faint" v-if="items.length === 0 && !!$slots.empty">
<slot name="empty" />
</div>
</div>