2021-08-18 17:10:16 +02:00
|
|
|
<template>
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-title">
|
|
|
|
<slot name="title"></slot>
|
|
|
|
</div>
|
|
|
|
<div class="card-content">
|
|
|
|
<slot name="content"></slot>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import { defineComponent } from 'vue'
|
|
|
|
export default defineComponent({
|
|
|
|
name: 'Card',
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
@import '~@/scss/base';
|
|
|
|
|
|
|
|
.card {
|
|
|
|
border: solid 1px var(--card-border-color);
|
2021-08-18 17:13:54 +02:00
|
|
|
border-radius: $border-radius;
|
2021-08-18 17:10:16 +02:00
|
|
|
margin: $default-margin;
|
|
|
|
padding: $default-padding $default-padding * 2;
|
|
|
|
}
|
|
|
|
</style>
|