brotherton-erpnext/erpnext/public/js/hub/components/EmptyState.vue

38 lines
645 B
Vue
Raw Normal View History

<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>
<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;
}
.empty-state.bordered {
border-radius: 4px;
border: 1px solid @border-color;
border-style: dashed;
}
</style>