|
@@ -1,18 +1,22 @@
|
|
|
<script setup lang="ts">
|
|
|
-import type {Node} from '@vue-flow/core';
|
|
|
-import {inject, markRaw, onMounted} from 'vue';
|
|
|
-import {GrandparentMethod, HJInterNodeData, HJMethodName, HJNodeData} from '../../types/comTypes';
|
|
|
-import Basic from '../com/basic.vue';
|
|
|
-import {CirclePlus} from "@element-plus/icons-vue";
|
|
|
-import OperationHeader from '../com/operationHeader.vue'
|
|
|
+import type { Node } from "@vue-flow/core";
|
|
|
+import { inject, markRaw, onMounted } from "vue";
|
|
|
+import {
|
|
|
+ GrandparentMethod,
|
|
|
+ HJInterNodeData,
|
|
|
+ HJMethodName,
|
|
|
+ HJNodeData,
|
|
|
+} from "../../types/comTypes";
|
|
|
+import Basic from "../com/basic.vue";
|
|
|
+import { CirclePlus } from "@element-plus/icons-vue";
|
|
|
+import OperationHeader from "../com/operationHeader.vue";
|
|
|
|
|
|
// 即使外部定义的类型数据再多,传进来的也是Node类型。
|
|
|
const props = defineProps<HJInterNodeData>();
|
|
|
|
|
|
onMounted(() => {
|
|
|
- console.log('mounted', props);
|
|
|
+ console.log("mounted", props);
|
|
|
});
|
|
|
-
|
|
|
</script>
|
|
|
|
|
|
<template>
|
|
@@ -22,12 +26,10 @@ onMounted(() => {
|
|
|
</template>
|
|
|
<template #default>
|
|
|
<div class="content-text">
|
|
|
- {{ props.data?.information?.configName ?? '请配置名称' }}
|
|
|
+ {{ props.data?.information?.functionName ?? "请配置名称" }}
|
|
|
</div>
|
|
|
</template>
|
|
|
-
|
|
|
</Basic>
|
|
|
-
|
|
|
</template>
|
|
|
|
|
|
<style scoped lang="less">
|