feat(editor): Switch to expression on = input (#5044)

 Switch to expression on `=` input
This commit is contained in:
Iván Ovejero 2022-12-28 10:37:42 +01:00 committed by GitHub
parent 2aba0c6d47
commit 16bd7610fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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(() => {