<template>
|
<div class="data-board-card-content-item">
|
<div class="data-board-card-content-item-label">{{ label }}</div>
|
<div class="data-board-card-content-item-content"><slot></slot></div>
|
</div>
|
</template>
|
|
<script setup lang="ts">
|
defineOptions({
|
name: 'DataBoardCardContentItem',
|
});
|
|
type Props = {
|
label?: string;
|
};
|
|
const props = withDefaults(defineProps<Props>(), {});
|
</script>
|
|
<style lang="scss" scoped>
|
@use '@/style/common.scss' as *;
|
|
.data-board-card-content-item {
|
display: flex;
|
align-items: center;
|
margin-bottom: 12px;
|
font-size: 14px;
|
|
&:last-child {
|
margin-bottom: 0;
|
}
|
|
.data-board-card-content-item-label {
|
width: 80px;
|
color: getCssVar('text-color', 'regular');
|
}
|
|
.data-board-card-content-item-content {
|
flex: 1;
|
min-width: 0;
|
@include utils-ellipsis;
|
color: getCssVar('text-color', 'primary');
|
}
|
}
|
</style>
|