28 lines
526 B
Vue
28 lines
526 B
Vue
![]() |
<template>
|
||
|
<text>
|
||
|
<el-row :gutter="8" class="flex flex-wrap">
|
||
|
<el-col
|
||
|
v-for="(item, index) in [{ id: 1, url: formData.photoUrl }]"
|
||
|
:key="item.id"
|
||
|
:span="24"
|
||
|
>
|
||
|
<el-image
|
||
|
:src="item.url"
|
||
|
:preview-src-list="[formData.photoUrl]"
|
||
|
:initial-index="index"
|
||
|
/>
|
||
|
</el-col>
|
||
|
</el-row>
|
||
|
</text>
|
||
|
</template>
|
||
|
<script setup lang="ts">
|
||
|
const props = withDefaults(
|
||
|
defineProps<{
|
||
|
formData: any;
|
||
|
}>(),
|
||
|
{
|
||
|
formData: {},
|
||
|
}
|
||
|
);
|
||
|
</script>
|