fix: 修改执行动作

This commit is contained in:
100011797 2023-03-24 18:20:21 +08:00
parent daf0597526
commit 5fbbaa5f83
1 changed files with 7 additions and 4 deletions

View File

@ -15,10 +15,12 @@
:treeData="builtInList" :treeData="builtInList"
placeholder="请选择参数" placeholder="请选择参数"
style="width: calc(100% - 120px)" style="width: calc(100% - 120px)"
:fieldNames="{ label: 'name', value: 'id' }"
@change="(val) => itemOnChange(undefined, val)"
> >
<template #title="{ name, description }"> <template #title="{ fullName, description }">
<j-space> <j-space>
{{ name }} {{ fullName }}
<span style="color: grey; margin-left: 5px">{{ description }}</span> <span style="color: grey; margin-left: 5px">{{ description }}</span>
</j-space> </j-space>
</template> </template>
@ -95,14 +97,15 @@ const sourceChange = (val: any) => {
emit('update:value', { emit('update:value', {
...props.value, ...props.value,
source: val, source: val,
value: undefined, value: undefined
}); });
}; };
const itemOnChange = (val: any) => { const itemOnChange = (val: any, _upperKey?: string) => {
emit('update:value', { emit('update:value', {
...props.value, ...props.value,
value: val, value: val,
upperKey: _upperKey
}); });
}; };