lw-cdp-ui 1.5.58 → 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.
@@ -145,19 +145,38 @@
145
145
 
146
146
  <!-- 图片列 -->
147
147
  <template v-else-if="col.type === 'img'">
148
- <el-image
149
- style="height: 28px"
150
- :src="scope.row[col.dataIndex] || empty"
151
- :preview-src-list="[scope.row[col.dataIndex]]"
152
- fit="cover"
153
- :z-index="99"
154
- :preview-teleported="true">
155
- <template #error>
156
- <div class="image-slot">
157
- <el-icon><el-icon-picture /></el-icon>
158
- </div>
159
- </template>
160
- </el-image>
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">