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"
|
:forceShowExpression="forceShowExpression"
|
||||||
:hint="hint"
|
:hint="hint"
|
||||||
@valueChanged="valueChanged"
|
@valueChanged="valueChanged"
|
||||||
|
@textInput="onTextInput"
|
||||||
@focus="onFocus"
|
@focus="onFocus"
|
||||||
@blur="onBlur"
|
@blur="onBlur"
|
||||||
@drop="onDrop"
|
@drop="onDrop"
|
||||||
|
@ -207,6 +208,13 @@ export default mixins(showMessage).extend({
|
||||||
valueChanged(parameterData: IUpdateInformation) {
|
valueChanged(parameterData: IUpdateInformation) {
|
||||||
this.$emit('valueChanged', parameterData);
|
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) {
|
onDrop(data: string) {
|
||||||
this.forceShowExpression = true;
|
this.forceShowExpression = true;
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
|
Loading…
Reference in a new issue