添加了时间top

This commit is contained in:
luyuan 2020-10-29 17:11:48 +08:00
parent 8d38b222d7
commit ad40d7749e
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3

View File

@ -44,9 +44,9 @@
item > 9 ? item : "0" + item
}}:00
</div>
<div v-for="i in 7" :key="i">
<div v-for="i in 7" :key="i" >
<div class="day">
<div :class="zhuangtai(week.date[i -1].list[item - 1].zhuangtai)" v-if="week.date[i -1].list[item - 1].title != ''">
<div :class="zhuangtai(week.date[i -1].list[item - 1].zhuangtai)" v-if="week.date[i -1].list[item - 1].title != ''" :style="{'top': (week.date[i -1].list[item - 1].start / 60 * 0.63) + 'rem', 'min-height': (week.date[i -1].list[item - 1].num / 60 * 0.63) + 'rem' }">
<div class="one-line-hide" style="max-width: 1.5rem">
{{week.date[i -1].list[item - 1].title}}
</div>
@ -64,6 +64,7 @@
display: flex;
flex-direction: column;
align-items: center;
.head {
width: 1320px;
height: 57px;
@ -144,6 +145,7 @@
}
.body {
width: 100%;
overflow: hidden;
.row {
background-color: #fff;
height: 63px;
@ -165,8 +167,9 @@
display: flex;
flex-direction: column;
color: #111;
position: relative;
> div {
position: absolute;
min-height: 100%;
width: 100%;
border-radius: 6px;