Add Section component instead of Card
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
<template>
|
||||
<div>
|
||||
<h1 class="section-header">
|
||||
{{ title }}
|
||||
<slot name="header-buttons"></slot>
|
||||
</h1>
|
||||
<hr class="section-divider"/>
|
||||
<div class="section-body">
|
||||
<slot name="body"></slot>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
export default {
|
||||
name: 'Section',
|
||||
props: {
|
||||
title: String,
|
||||
}
|
||||
};
|
||||
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
.section-header {
|
||||
}
|
||||
|
||||
.section-divider {
|
||||
border-color: #d8dee4;
|
||||
border-width: 1px;
|
||||
margin-top: 10px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.section-body {
|
||||
position: relative;
|
||||
margin-bottom: 15px;
|
||||
padding: 10px 15px;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
</style>
|
||||
Reference in New Issue
Block a user