<template>
  <Dialog
    v-model="visible"
    diaTitle="算例版本"
    :width="'70%'"
    :height="'50%'"
    :zIndex="100"
    @close="handleCloseFun"
  >

    <div class="vision-page">

      <runVersionTree :currentTaskInfo="currentNodeInfo"></runVersionTree>
    </div>

  </Dialog>
</template>

<script setup lang="ts">
import { ref, defineProps, defineEmits } from 'vue';
import Dialog from '@/components/common/dialog/index.vue';
import runVersionTree from '@/views/task/execution/components/runDetailPage/runPagecomponent/runVersionTree.vue';

const visible = ref(true);
const emits = defineEmits(['close']);

const props = defineProps({
  currentNodeInfo: {
    type: Object,
    default: () => {},
  },
});

const handleCloseFun = () => {
  emits('close');
};

</script>

<style lang="scss" scoped>

.vision-page{
    width: 100%;
    height: 600px;
}
</style>
