-
Notifications
You must be signed in to change notification settings - Fork 334
Expand file tree
/
Copy pathindex.vue
More file actions
58 lines (49 loc) · 1.1 KB
/
index.vue
File metadata and controls
58 lines (49 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<script setup lang="ts">
import VerticalGap from '@shell/components/Resource/Detail/Card/VerticalGap.vue';
export interface CardProps {
title?: string;
}
const { title } = defineProps<CardProps>();
</script>
<template>
<div class="detail-card">
<template v-if="title">
<div class="heading">
<slot name="heading">
<div class="title">
<slot name="title">
{{ title }}
</slot>
</div>
</slot>
<slot name="heading-action" />
</div>
<VerticalGap />
</template>
<div class="body">
<slot name="default" />
</div>
</div>
</template>
<style lang="scss" scoped>
.detail-card {
padding: 16px;
border-radius: var(--border-radius-md);
border: 1px solid var(--border);
.heading {
display: flex;
justify-content: space-between;
height: 32px;
.title {
font-size: 18px;
font-weight: 600;
line-height: 21px;
}
}
.body {
display: flex;
flex-direction: column;
justify-content: flex-start;
}
}
</style>