提交 d6fc1a93 authored 作者: lidongxu's avatar lidongxu

refactor(task): 修复打卡照片重复问题-强制横向滚动

同时上
上级 2ef89b66
...@@ -141,7 +141,7 @@ ...@@ -141,7 +141,7 @@
width="60%"> width="60%">
<p>活动记录 ID :{{ photoLookInfoObj.id }}</p> <p>活动记录 ID :{{ photoLookInfoObj.id }}</p>
<p>活动时间 :{{ photoLookInfoObj.createDate }}</p> <p>活动时间 :{{ photoLookInfoObj.createDate }}</p>
<el-card v-for="obj in photoDialogList"> <el-card v-for="obj in photoDialogList" shadow="never">
<template #header>{{ obj.title }}</template> <template #header>{{ obj.title }}</template>
<div class="content"> <div class="content">
<el-result :title="item.time" <el-result :title="item.time"
...@@ -149,15 +149,7 @@ ...@@ -149,15 +149,7 @@
v-for="item in obj.list"> v-for="item in obj.list">
<template #icon> <template #icon>
<el-image :src="item.photoUrl" <el-image :src="item.photoUrl"
:preview-src-list="[item.photoUrl]" /> :preview-src-list="[...obj.list.map(o => o.photoUrl)]" />
</template>
</el-result>
<el-result :title="item.time"
:sub-title="item.title"
v-for="item in obj.list">
<template #icon>
<el-image :src="item.photoUrl"
:preview-src-list="[item.photoUrl]" />
</template> </template>
</el-result> </el-result>
</div> </div>
...@@ -501,6 +493,9 @@ const currentChange = (page) => { ...@@ -501,6 +493,9 @@ const currentChange = (page) => {
::v-deep(.el-form-item) { ::v-deep(.el-form-item) {
width: 350px !important; width: 350px !important;
} }
.el-card{
margin-top: 20px;
}
/* 单元格支持 \n 换行 */ /* 单元格支持 \n 换行 */
.container .el-table ::v-deep(.cell) { .container .el-table ::v-deep(.cell) {
...@@ -516,17 +511,26 @@ const currentChange = (page) => { ...@@ -516,17 +511,26 @@ const currentChange = (page) => {
::v-deep(.el-overlay) { ::v-deep(.el-overlay) {
.el-card__body { .el-card__body {
overflow-x: scroll;
.content { .content {
/* display: flex; */ /* display: flex; */
overflow-y: hidden;
overflow-x: scroll;
white-space: nowrap;
/* 阻止内容换行 */
&::-webkit-scrollbar-track {
background: transparent;
/* 滚动条轨道背景透明 */
}
.el-result { .el-result {
width: 300px; width: 250px;
height: 500px; height: 350px;
display: inline-block; display: inline-block;
.el-result__icon{ .el-result__icon {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论