wupengfei
2025-04-02 32c69839e3658c81e1ac7bf66ef207215c22a4a9
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
<template>
  <div class="data-board-card-wrapper">
    <div class="data-board-card-title">{{ title }}</div>
    <div class="data-board-card-content">
      <slot></slot>
    </div>
  </div>
</template>
 
<script setup lang="ts">
defineOptions({
  name: 'DataBoardCard',
});
 
type Props = {
  title?: string;
};
 
const props = withDefaults(defineProps<Props>(), {});
</script>
 
<style lang="scss" scoped>
@use '@/style/common.scss' as *;
 
.data-board-card-wrapper {
  display: flex;
  padding: 16px;
  border: 1px solid var(--el-border-color-light);
  border-radius: 4px;
  background-color: #ffffff;
  flex-direction: column;
 
  .data-board-card-title {
    margin-bottom: 12px;
    font-size: 16px;
    color: getCssVar('text-color', 'primary');
  }
 
  .data-board-card-content {
    flex: 1;
    min-height: 0;
  }
}
</style>