修复输出组件选择函数时携带参数的bug,以及详细输出无法选择变量的bug

This commit is contained in:
fofolee 2025-02-12 17:46:12 +08:00
parent e843f7afdc
commit 8c564f8d97
2 changed files with 5 additions and 1 deletions

View File

@ -44,6 +44,7 @@
dense
emit-value
map-options
options-dense
class="output-field"
@update:model-value="$emit('update:modelValue', $event)"
/>
@ -94,7 +95,8 @@ export default defineComponent({
emits: ["update:modelValue"],
methods: {
updateValBySelect(_type, val) {
this.$emit("update:modelValue", val);
//
this.$emit("update:modelValue", val.replace(/\(.*?\)/g, ""));
},
updateSuggestName(val) {
const existingNames = this.getExistingFuncAndParams();

View File

@ -12,6 +12,7 @@
:label="subOutput.label"
:placeholder="subOutput.placeholder"
:suggest-name="subOutput.suggestName"
:show-variable-list="true"
autofocus
/>
</div>
@ -27,6 +28,7 @@
:label="output.label"
:placeholder="output.placeholder"
:suggest-name="output.suggestName"
:show-variable-list="true"
autofocus
/>
</div>