mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 04:47:29 -08:00
feat(editor): Switch to expression on =
input (#5044)
✨ Switch to expression on `=` input
This commit is contained in:
parent
2aba0c6d47
commit
16bd7610fc
|
@ -54,6 +54,7 @@
|
|||
:forceShowExpression="forceShowExpression"
|
||||
:hint="hint"
|
||||
@valueChanged="valueChanged"
|
||||
@textInput="onTextInput"
|
||||
@focus="onFocus"
|
||||
@blur="onBlur"
|
||||
@drop="onDrop"
|
||||
|
@ -207,6 +208,13 @@ export default mixins(showMessage).extend({
|
|||
valueChanged(parameterData: IUpdateInformation) {
|
||||
this.$emit('valueChanged', parameterData);
|
||||
},
|
||||
onTextInput(parameterData: IUpdateInformation) {
|
||||
const param = this.$refs.param as Vue | undefined;
|
||||
|
||||
if (isValueExpression(this.parameter, parameterData.value)) {
|
||||
param?.$emit('optionSelected', 'addExpression');
|
||||
}
|
||||
},
|
||||
onDrop(data: string) {
|
||||
this.forceShowExpression = true;
|
||||
setTimeout(() => {
|
||||
|
|
Loading…
Reference in a new issue