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