gamebrary/src/components/EmptyState.vue

32 lines
562 B
Vue
Raw Normal View History

2020-11-22 03:31:18 +00:00
<template lang="html">
<div class="text-center pt-5">
2020-11-23 18:10:43 +00:00
<h2 v-if="title">{{ title }}</h2>
<p v-if="message">{{ message }}</p>
<b-button
v-if="actionText"
variant="primary"
@click="$emit('action')"
>
2020-11-23 23:14:34 +00:00
<b-spinner small v-if="busy" />
<span v-else>{{ actionText }}</span>
</b-button>
<slot />
2020-11-22 03:31:18 +00:00
</div>
</template>
<script>
export default {
props: {
title: String,
message: String,
actionText: String,
2020-11-23 23:14:34 +00:00
busy: false,
},
2020-11-22 03:31:18 +00:00
};
</script>
<style lang="scss" rel="stylesheet/scss" scoped>
</style>