2025-07-25 15:07:08 +08:00
|
|
|
<template>
|
|
|
|
|
<div class="detailNode-component">
|
2025-07-25 17:24:14 +08:00
|
|
|
<img src="@/assets/images/icon/goback.png" alt="" class="goback" @click="handleGoback" />
|
2025-07-25 15:07:08 +08:00
|
|
|
<div class="graph-container" id="container"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script setup>
|
2025-07-25 17:24:14 +08:00
|
|
|
import { defineProps, defineEmits } from "vue"
|
2025-07-25 15:07:08 +08:00
|
|
|
|
|
|
|
|
const props = defineProps({
|
|
|
|
|
detailNode: {
|
|
|
|
|
type: Array,
|
|
|
|
|
default: () => []
|
|
|
|
|
}
|
|
|
|
|
})
|
2025-07-25 17:24:14 +08:00
|
|
|
const emit = defineEmits(["click:goback"])
|
|
|
|
|
const handleGoback = () => {
|
|
|
|
|
emit("click:goback", "CommunityNode")
|
|
|
|
|
}
|
2025-07-25 15:07:08 +08:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style scoped lang="less">
|
|
|
|
|
.detailNode-component {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
position: relative;
|
2025-07-25 17:24:14 +08:00
|
|
|
.goback {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 10px;
|
|
|
|
|
left: 20px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
2025-07-25 15:07:08 +08:00
|
|
|
.graph-container {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 93%;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|