feat(Workflow): 新增工作流节点组件
This commit is contained in:
parent
94952fb924
commit
5e0b2f0fcb
@ -1,7 +1,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import type { IExecutionNodeStatusItem } from "~/composables/worklfow/node/node.interface";
|
import type { IExecutionNodeStatusItem } from "~/composables/worklfow/node/node.interface";
|
||||||
|
|
||||||
const data = defineModel<INodeData<NodeTypeEnum.Markdown2Html>>("data");
|
const data = defineModel<INodeData<NodeTypeEnum.Markdown2Html>>("data",{default: {}});
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
nodeResult: IExecutionNodeStatusItem
|
nodeResult: IExecutionNodeStatusItem
|
||||||
@ -18,7 +18,7 @@ const textContent = computed(() => {
|
|||||||
|
|
||||||
const initInputs = () => {
|
const initInputs = () => {
|
||||||
if(!data.value?.inputs){
|
if(!data.value?.inputs){
|
||||||
Object.assign(data.value.inputs, { markdown: "" });
|
Object.assign(data.value, { inputs:{ markdown: "" }});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user