2018-08-23 15:55:53 +00:00
|
|
|
<template>
|
|
|
|
<div class="empty-state flex align-center flex-column justify-center"
|
|
|
|
:class="{ bordered: bordered }"
|
|
|
|
:style="{ height: height + 'px' }"
|
|
|
|
>
|
|
|
|
<p class="text-muted">{{ message }}</p>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
|
|
export default {
|
|
|
|
name: 'empty-state',
|
|
|
|
props: {
|
|
|
|
message: String,
|
|
|
|
bordered: Boolean,
|
|
|
|
height: Number,
|
|
|
|
// action: Function
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
2018-08-23 17:12:41 +00:00
|
|
|
<style lang="less" scoped>
|
|
|
|
@import "../../../../../../frappe/frappe/public/less/variables.less";
|
|
|
|
|
|
|
|
.empty-state {
|
|
|
|
height: 500px;
|
2018-08-24 11:08:34 +00:00
|
|
|
margin: 15px;
|
2018-08-23 17:12:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.empty-state.bordered {
|
|
|
|
border-radius: 4px;
|
|
|
|
border: 1px solid @border-color;
|
|
|
|
border-style: dashed;
|
|
|
|
}
|
|
|
|
|
|
|
|
</style>
|