imgOtherDialog.vue 790 Bytes
<template>
  <a-modal
    title="body1"
    v-if='isVisible'
    v-model:visible="isVisible"
    width="1200px"
    height='90%'
    class="detail-modal"
  >
    <div style="width: 100%;text-align: center;">
        <el-image :src="imgUrl" :fit="'contain'" class="single-image"> </el-image>
    </div>
    <template #footer>
      <a-button @click="isVisible=false">返回</a-button>
    </template>
  </a-modal>
</template>

<script>
import { reactive, ref } from "vue";
export default {
  setup() {
    const isVisible = ref(false);
    const imgUrl = ref()
    const initDialog = (url) => {
        imgUrl.value = url
        isVisible.value = true;
    };

    return {
        isVisible,
        initDialog,
        imgUrl,
    };
  },
};
</script>
<style lang="less" scoped>
</style>