mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-07 21:46:12 +08:00
修复输出组件选择函数时携带参数的bug,以及详细输出无法选择变量的bug
This commit is contained in:
parent
e843f7afdc
commit
8c564f8d97
@ -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();
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user