You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
821 B
39 lines
821 B
<template>
|
|
<BasicModal
|
|
v-bind="$attrs"
|
|
:width="960"
|
|
:min-height="260"
|
|
@register="registerModel"
|
|
title="流程图"
|
|
>
|
|
<img class="process-img" alt="" :src="imgSrc" />
|
|
</BasicModal>
|
|
</template>
|
|
<script lang="ts">
|
|
import { defineComponent, ref } from 'vue';
|
|
import { BasicModal, useModalInner } from '@/components/Modal';
|
|
|
|
export default defineComponent({
|
|
name: 'ActivitiProcessModal',
|
|
components: { BasicModal },
|
|
emits: ['register'],
|
|
setup() {
|
|
const imgSrc = ref<string>();
|
|
const [registerModel] = useModalInner(async (url) => {
|
|
imgSrc.value = url;
|
|
});
|
|
|
|
return {
|
|
imgSrc,
|
|
registerModel,
|
|
};
|
|
},
|
|
});
|
|
</script>
|
|
<style scoped>
|
|
.process-img {
|
|
display: block;
|
|
margin: 0 auto;
|
|
max-width: 100%;
|
|
}
|
|
</style>
|
|
|