lw-cdp-ui 1.5.57 → 1.5.59
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 +32 -13
- package/dist/lw-cdp-ui.esm.js +916 -894
- package/dist/lw-cdp-ui.umd.js +13 -13
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -145,19 +145,38 @@
|
|
|
145
145
|
|
|
146
146
|
<!-- 图片列 -->
|
|
147
147
|
<template v-else-if="col.type === 'img'">
|
|
148
|
-
<
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
148
|
+
<template v-if="Array.isArray(getChildName(scope.row, col))">
|
|
149
|
+
<el-image
|
|
150
|
+
v-for="(imgUrl, index) in getChildName(scope.row, col)"
|
|
151
|
+
:key="index"
|
|
152
|
+
style="height: 28px; margin-right: 5px"
|
|
153
|
+
:src="imgUrl || empty"
|
|
154
|
+
:preview-src-list="getChildName(scope.row, col)"
|
|
155
|
+
fit="cover"
|
|
156
|
+
:z-index="99"
|
|
157
|
+
:preview-teleported="true">
|
|
158
|
+
<template #error>
|
|
159
|
+
<div class="image-slot">
|
|
160
|
+
<el-icon><el-icon-picture /></el-icon>
|
|
161
|
+
</div>
|
|
162
|
+
</template>
|
|
163
|
+
</el-image>
|
|
164
|
+
</template>
|
|
165
|
+
<template v-else>
|
|
166
|
+
<el-image
|
|
167
|
+
style="height: 28px"
|
|
168
|
+
:src="getChildName(scope.row, col) || empty"
|
|
169
|
+
:preview-src-list="[getChildName(scope.row, col)]"
|
|
170
|
+
fit="cover"
|
|
171
|
+
:z-index="99"
|
|
172
|
+
:preview-teleported="true">
|
|
173
|
+
<template #error>
|
|
174
|
+
<div class="image-slot">
|
|
175
|
+
<el-icon><el-icon-picture /></el-icon>
|
|
176
|
+
</div>
|
|
177
|
+
</template>
|
|
178
|
+
</el-image>
|
|
179
|
+
</template>
|
|
161
180
|
</template>
|
|
162
181
|
<!-- 日期转换 -->
|
|
163
182
|
<template v-else-if="col.date">
|