src/components/ImagePreview/index.vue
@@ -9,11 +9,10 @@ </template> <script setup lang="ts"> import { propTypes } from '@/utils/propTypes'; const props = defineProps({ src: { type: String, default: "" }, src: propTypes.string.def(''), width: { type: [Number, String], default: "" @@ -58,13 +57,16 @@ border-radius: 5px; background-color: #ebeef5; box-shadow: 0 0 5px 1px #ccc; :deep(.el-image__inner) { transition: all 0.3s; cursor: pointer; &:hover { transform: scale(1.2); } } :deep(.image-slot) { display: flex; justify-content: center;