<template>
	<div class="node-start" v-if="!isEmpty(node?.data?.inputParams) && !focus">
		<tools-fields v-model="node.data!.inputParams" disabled />
	</div>
</template>

<script setup lang="ts" name="node-start">
import type { FlowNode } from "/$/flow/types";
import { type PropType } from "vue";
import ToolsFields from "/$/flow/components/tools/fields.vue";
import { isEmpty } from "lodash-es";

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

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