proper tuple support
This commit is contained in:
parent
48ba3892c3
commit
b0bce1bf18
3 changed files with 6 additions and 6 deletions
|
|
@ -28,13 +28,13 @@
|
||||||
<input
|
<input
|
||||||
class="input string-input"
|
class="input string-input"
|
||||||
:class="{ disabled: shouldBeDisabled }"
|
:class="{ disabled: shouldBeDisabled }"
|
||||||
:value="item[0]"
|
:value="item.tuple[0]"
|
||||||
@change="e => update({ event: e, index, eventType: 'edit', tuple: 0 })"
|
@change="e => update({ event: e, index, eventType: 'edit', tuple: 0 })"
|
||||||
>
|
>
|
||||||
<input
|
<input
|
||||||
class="input string-input"
|
class="input string-input"
|
||||||
:class="{ disabled: shouldBeDisabled }"
|
:class="{ disabled: shouldBeDisabled }"
|
||||||
:value="item[1]"
|
:value="item.tuple[1]"
|
||||||
@change="e => update({ event: e, index, eventType: 'edit', tuple: 1 })"
|
@change="e => update({ event: e, index, eventType: 'edit', tuple: 1 })"
|
||||||
>
|
>
|
||||||
<button
|
<button
|
||||||
|
|
|
||||||
|
|
@ -7,9 +7,9 @@ export default {
|
||||||
getValue ({ e, side }) {
|
getValue ({ e, side }) {
|
||||||
const [a, b] = this.visibleState || []
|
const [a, b] = this.visibleState || []
|
||||||
if (side === 0) {
|
if (side === 0) {
|
||||||
return [e.target.value, b]
|
return { tuple: [e.target.value, b]}
|
||||||
} else {
|
} else {
|
||||||
return [a, e.target.value]
|
return { tuple: [a, e.target.value]}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@
|
||||||
:class="{ disabled: shouldBeDisabled }"
|
:class="{ disabled: shouldBeDisabled }"
|
||||||
:disabled="shouldBeDisabled"
|
:disabled="shouldBeDisabled"
|
||||||
:placeholder="backendDescriptionSuggestions?.[0]?.[0]"
|
:placeholder="backendDescriptionSuggestions?.[0]?.[0]"
|
||||||
:value="visibleState?.[0]"
|
:value="visibleState?.tuple?.[0]"
|
||||||
@change="e => update({ e, side: 0 })"
|
@change="e => update({ e, side: 0 })"
|
||||||
>
|
>
|
||||||
{{ ' ' }}
|
{{ ' ' }}
|
||||||
|
|
@ -34,7 +34,7 @@
|
||||||
:class="{ disabled: shouldBeDisabled }"
|
:class="{ disabled: shouldBeDisabled }"
|
||||||
:disabled="shouldBeDisabled"
|
:disabled="shouldBeDisabled"
|
||||||
:placeholder="backendDescriptionSuggestions?.[0]?.[1]"
|
:placeholder="backendDescriptionSuggestions?.[0]?.[1]"
|
||||||
:value="visibleState?.[1]"
|
:value="visibleState?.tuple?.[1]"
|
||||||
@change="e => update({ e, side: 1 })"
|
@change="e => update({ e, side: 1 })"
|
||||||
>
|
>
|
||||||
{{ ' ' }}
|
{{ ' ' }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue