automated_admin/src/modules/flow/components/nodes/start/index.vue
2025-01-09 17:58:24 +08:00

31 lines
645 B
Vue

<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>