UPDATE: VERSION-20260326

This commit is contained in:
libertyspy
2026-03-26 22:05:31 +08:00
parent 18ccf490e4
commit 6656479327
8 changed files with 43 additions and 18 deletions

View File

@@ -69,11 +69,12 @@
</a-tabs>
<a-tabs v-if="currentElement" v-model:activeKey="activeBottomTabsKey" class="ks-model-builder-tabs parameters-tabs">
<a-tabs v-if="currentElement?.multiable === true" v-model:activeKey="activeBottomTabsKey" class="ks-model-builder-tabs parameters-tabs">
<template #leftExtra>
<span class="ks-model-builder-title-icon icon-input"></span>
</template>
<a-tab-pane key="1" tab="节点变量">
<a-form
v-if="currentElement.parameters && currentElement.parameters.length > 0"
autocomplete="off"
@@ -217,6 +218,7 @@ export default defineComponent({
};
const updateNode = () => {
console.error('currentElement.value',currentElement.value)
if (currentNode.value && currentElement.value) {
// 深拷贝当前元素数据
const newElement = JSON.parse(JSON.stringify(currentElement.value)) as GraphTaskElement;

View File

@@ -19,6 +19,7 @@ export interface NodeTemplate {
templateType: NullableString;
englishName: NullableString;
parameters: ElementParameter[],
multiable?: boolean,
}
export interface NodeDragTemplate extends NodeTemplate {

View File

@@ -27,6 +27,7 @@ export const createGraphTaskElementFromTemplate = (
category: template.type,
group: template.group,
description: template.description,
multiable: template.multiable === true,
order: 0,
position: {
x: realRect.x ?? 0,