| | |
| | | class="bedside-auxiliary-screen-card" |
| | | :style="{ |
| | | '--bg-color': props.backgroundColor, |
| | | '--height': props.height + 'px', |
| | | }" |
| | | > |
| | | <div class="card-header"> |
| | | <div class="card-header" :class="props.headerClassName"> |
| | | <img :src="props.icon" class="card-icon" alt="" srcset="" /> |
| | | <span class="card-title">{{ props.title }}</span> |
| | | </div> |
| | |
| | | title: string; // 标题 |
| | | icon: string; |
| | | height?: number; |
| | | headerClassName?: string; // 头部类名 |
| | | } |
| | | const props = defineProps<Props>(); |
| | | </script> |
| | |
| | | .bedside-auxiliary-screen-card { |
| | | display: flex; |
| | | flex-direction: column; |
| | | height: 100%; |
| | | // height: 100%; |
| | | padding: 3px 4px; |
| | | border-radius: 2px; |
| | | background-color: var(--bg-color, #70a3dd); |
| | | overflow: hidden; |
| | | overflow-y: auto; |
| | | height: 100%; |
| | | |
| | | .card-header { |
| | | flex: 0 0 6px; |
| | |
| | | overflow: hidden; |
| | | } |
| | | } |
| | | :deep(.el-scrollbar__view) { |
| | | min-height: 0; |
| | | height: 100%; |
| | | overflow: hidden; |
| | | overflow-y: auto; |
| | | } |
| | | </style> |