From 7c2d716427fb709de3e79f4198897a224e788228 Mon Sep 17 00:00:00 2001
From: zhangchen <1652267879@qq.com>
Date: 星期二, 08 七月 2025 13:46:29 +0800
Subject: [PATCH] ID1825-暂存
---
src/views/mobile/bedsideAuxiliaryScreen/components/UnplannedSchedule.vue | 14 ++++++++++++++
src/views/mobile/bedsideAuxiliaryScreen/components/Card.vue | 27 ++++++++++++++++++++-------
2 files changed, 34 insertions(+), 7 deletions(-)
diff --git a/src/views/mobile/bedsideAuxiliaryScreen/components/Card.vue b/src/views/mobile/bedsideAuxiliaryScreen/components/Card.vue
index a70ca62..0eb434e 100644
--- a/src/views/mobile/bedsideAuxiliaryScreen/components/Card.vue
+++ b/src/views/mobile/bedsideAuxiliaryScreen/components/Card.vue
@@ -1,15 +1,16 @@
<template>
<div
class="bedside-auxiliary-screen-card"
- :style="{ '--bg-color': props.backgroundColor }"
+ :style="{
+ '--bg-color': props.backgroundColor,
+ '--height': props.height + 'px',
+ }"
>
<div class="card-header">
<img :src="props.icon" class="card-icon" alt="" srcset="" />
<span class="card-title">{{ props.title }}</span>
</div>
- <div class="card-main">
-
- </div>
+ <div class="card-main"></div>
</div>
</template>
@@ -18,24 +19,31 @@
backgroundColor: string; // 背景颜色
title: string; // 标题
icon: string;
+ height?: number;
}
const props = defineProps<Props>();
</script>
<style lang="less" scoped>
.bedside-auxiliary-screen-card {
+ display: flex;
+ flex-direction: column;
+ height: var(--height);
padding: 3px 4px;
border-radius: 2px;
background-color: var(--bg-color, #70a3dd);
+
.card-header {
display: flex;
align-items: center;
margin-bottom: 2px;
+
.card-icon {
width: 6px;
height: 6px;
margin-right: 2px;
}
+
.card-title {
flex: 1;
font-family: PingFangSC, PingFang SC;
@@ -44,10 +52,15 @@
color: #333333;
text-align: left;
font-style: normal;
- white-space: nowrap; // 不换行
- overflow: hidden; // 隐藏超出部分
- text-overflow: ellipsis; // 显示省略号
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
}
}
+
+ .card-main {
+ flex: 1;
+ overflow-y: auto;
+ }
}
</style>
\ No newline at end of file
diff --git a/src/views/mobile/bedsideAuxiliaryScreen/components/UnplannedSchedule.vue b/src/views/mobile/bedsideAuxiliaryScreen/components/UnplannedSchedule.vue
new file mode 100644
index 0000000..5569c00
--- /dev/null
+++ b/src/views/mobile/bedsideAuxiliaryScreen/components/UnplannedSchedule.vue
@@ -0,0 +1,14 @@
+<template>
+ <div class="unplanned-schedule-container"></div>
+</template>
+
+<script lang="ts" setup name="UnplannedSchedule">
+// @ts-ignore
+import Card from './Card.vue';
+</script>
+
+<style lang="less" scoped>
+.unplanned-schedule-container {
+
+}
+</style>
\ No newline at end of file
--
Gitblit v1.8.0