Commit 87fd70fa authored by “yiyousong”'s avatar “yiyousong”

fix:修改材料列表图片展示

parent 53f1a9eb
...@@ -23,8 +23,10 @@ ...@@ -23,8 +23,10 @@
@click="handleWrite" @click="handleWrite"
> >
<div class="pic-box"> <div class="pic-box">
<div class="pic-img-box">
<img class="pic" :src="api + v.preViewPath" /> <img class="pic" :src="api + v.preViewPath" />
</div> </div>
</div>
<div class="for-short">{{ v.materialName }}</div> <div class="for-short">{{ v.materialName }}</div>
<div class="matterDatumList-name"> <div class="matterDatumList-name">
{{ v.materiaFullName }} {{ v.materiaFullName }}
...@@ -141,10 +143,16 @@ export default { ...@@ -141,10 +143,16 @@ export default {
padding: 16px 24px; padding: 16px 24px;
background: #f4f6fc; background: #f4f6fc;
border-radius: 16px; border-radius: 16px;
img { .pic-img-box {
width: 100%; width: 100%;
height: 100%; height: 100%;
object-fit: cover; border-radius: 4px;
overflow: hidden;
}
img {
width: 100%;
min-height: 100%;
border-radius: inherit;
} }
} }
.for-short { .for-short {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment