|
|
@@ -15,7 +15,7 @@
|
|
|
:must="true"
|
|
|
:max-length="20"
|
|
|
:clearable="false"
|
|
|
- regex="/^[a-zA-Z0-9_]+$/"
|
|
|
+ :regex="/^[a-zA-Z][a-zA-Z0-9_]*$/"
|
|
|
/>
|
|
|
</div>
|
|
|
<varsPopover
|
|
|
@@ -150,6 +150,7 @@ import { v4 } from 'uuid'
|
|
|
import varsPopover from '@/views/workflow/instance/component/vars/vars-popover.vue'
|
|
|
import { Plus } from '@element-plus/icons-vue'
|
|
|
import varsValue from '@/views/workflow/instance/component/vars/vars-value.vue'
|
|
|
+import variableAggregatorNodeDefault from '@/views/workflow/instance/variable-aggregator/default'
|
|
|
|
|
|
const emit = defineEmits([])
|
|
|
const props = defineProps({
|
|
|
@@ -168,6 +169,25 @@ watch(
|
|
|
},
|
|
|
{ immediate: true },
|
|
|
)
|
|
|
+watch(
|
|
|
+ () => [
|
|
|
+ state.nodeData.advancedSettings.groupEnabled,
|
|
|
+ state.nodeData.advancedSettings.groups,
|
|
|
+ ],
|
|
|
+ (n) => {
|
|
|
+ if (n[0]) {
|
|
|
+ state.nodeData.__outVars = n[1].map((v) => ({
|
|
|
+ label: `${v.groupName}的输出变量`,
|
|
|
+ key: `${v.groupName}`,
|
|
|
+ type: 'Object',
|
|
|
+ }))
|
|
|
+ } else {
|
|
|
+ state.nodeData.__outVars =
|
|
|
+ variableAggregatorNodeDefault.defaultValue().__outVars
|
|
|
+ }
|
|
|
+ },
|
|
|
+ { deep: true },
|
|
|
+)
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|