修复输出组件选择函数时携带参数的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 dense
emit-value emit-value
map-options map-options
options-dense
class="output-field" class="output-field"
@update:model-value="$emit('update:modelValue', $event)" @update:model-value="$emit('update:modelValue', $event)"
/> />
@ -94,7 +95,8 @@ export default defineComponent({
emits: ["update:modelValue"], emits: ["update:modelValue"],
methods: { methods: {
updateValBySelect(_type, val) { updateValBySelect(_type, val) {
this.$emit("update:modelValue", val); //
this.$emit("update:modelValue", val.replace(/\(.*?\)/g, ""));
}, },
updateSuggestName(val) { updateSuggestName(val) {
const existingNames = this.getExistingFuncAndParams(); const existingNames = this.getExistingFuncAndParams();

View File

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