riku
2024-11-04 069da66fbe2748d51b1f3bc63f9ae00e660083c6
src/views/fysp/data-product/components/CompImgInfo.vue
@@ -20,7 +20,15 @@
            :initial-index="0"
            fit="cover"
            lazy
          />
          >
            <template #error>
              <div class="image-slot">
                <el-button type="primary" size="small" @click="$emit('change')"
                  >选择图片</el-button
                >
              </div>
            </template>
          </el-image>
        </td>
      </tr>
      <tr v-if="downTitle">
@@ -50,6 +58,8 @@
  }
});
// const unchangeImg = '../../../../assets/image/unchange.png'
const emit = defineEmits(['change']);
</script>
<style scoped>
@@ -77,4 +87,13 @@
  border-style: solid;
  border-color: #666666; */
}
.image-slot {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background: var(--el-fill-color-light);
}
</style>