<template>
	<div class="node-flow" v-if="node.data?.options.flowId && !focus">
		<info :flow-id="node.data?.options.flowId" />
	</div>
</template>

<script lang="ts" setup name="node-flow">
import type { FlowNode } from "/$/flow/types";
import type { PropType } from "vue";
import Info from "./form/info.vue";

const props = defineProps({
	node: {
		type: Object as PropType<FlowNode>,
		default: () => ({})
	},
	// 节点是否聚焦
	focus: {
		type: Boolean,
		default: false
	}
});
</script>

<style lang="scss" scoped>
.node-flow {
	padding-bottom: 15px;
}
</style>
