lw-cdp-ui 1.3.38 → 1.3.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/lwTable/components/TableColumn.vue +19 -2
- package/dist/lw-cdp-ui.esm.js +2580 -2568
- package/dist/lw-cdp-ui.umd.js +14 -14
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -153,12 +153,18 @@
|
|
|
153
153
|
|
|
154
154
|
<!-- 图片列 -->
|
|
155
155
|
<template v-else-if="col.type === 'img'">
|
|
156
|
-
<el-image style="height: 28px"
|
|
156
|
+
<el-image style="height: 28px; width: 90%;"
|
|
157
157
|
:src="scope.row[col.dataIndex] || empty"
|
|
158
158
|
:preview-src-list="[scope.row[col.dataIndex]]"
|
|
159
159
|
fit="cover"
|
|
160
160
|
:z-index="99"
|
|
161
|
-
:preview-teleported="true"
|
|
161
|
+
:preview-teleported="true">
|
|
162
|
+
<template #error>
|
|
163
|
+
<div class="image-slot">
|
|
164
|
+
<el-icon><el-icon-picture /></el-icon>
|
|
165
|
+
</div>
|
|
166
|
+
</template>
|
|
167
|
+
</el-image>
|
|
162
168
|
</template>
|
|
163
169
|
|
|
164
170
|
<!-- 日期转换 -->
|
|
@@ -348,4 +354,15 @@ export default {
|
|
|
348
354
|
top: 40%;
|
|
349
355
|
}
|
|
350
356
|
}
|
|
357
|
+
.image-slot{
|
|
358
|
+
display: flex;
|
|
359
|
+
align-items: center;
|
|
360
|
+
justify-content: center;
|
|
361
|
+
width: 100%;
|
|
362
|
+
height: 100%;
|
|
363
|
+
background: #f5f7fa;
|
|
364
|
+
color: #909399;
|
|
365
|
+
font-size: 20px;
|
|
366
|
+
cursor: pointer;
|
|
367
|
+
}
|
|
351
368
|
</style>
|