improve data passing for editor fields

This commit is contained in:
2020-09-10 11:57:19 +02:00
parent ea992d8fc4
commit 2064ef2ee1
5 changed files with 20 additions and 3 deletions
@@ -151,6 +151,12 @@
.ui-toggle.is-negative .ui-toggle-switch.is-active
{
background: var(--color-negative);
border-color: transparent !important;
i
{
background: white;
}
}
.ui-toggle-off-warning
+7 -1
View File
@@ -171,7 +171,7 @@
if (JSON.stringify(newval) !== JSON.stringify(oldval))
{
this.buildConfig();
this.loaded = false;
this.loaded = false;
}
}
},
@@ -248,6 +248,12 @@
methods: {
refresh()
{
this.buildConfig();
this.loaded = false;
},
onValueChanged(val)
{
if (this.multiple)
+1 -1
View File
@@ -1,6 +1,6 @@
<template>
<div class="ui-box">
<input :value="value" @input="$emit('input', $event.target.value)" type="text" class="ui-input" v-localize:placeholder="" :maxlength="maxLength" />
<input :value="value" @input="$emit('input', $event.target.value)" type="text" class="ui-input" v-localize:placeholder="config.placeholder" :maxlength="maxLength" />
</div>
</template>
+1 -1
View File
@@ -1,5 +1,5 @@
<template>
<ui-toggle :value="value" @input="$emit('input', $event)" :disabled="disabled" />
<ui-toggle :value="value" @input="$emit('input', $event)" :disabled="disabled" :negative="config.negative || false" />
</template>
+5
View File
@@ -68,4 +68,9 @@ $accent-colors: (
.color-primary
{
color: var(--color-primary);
}
.color-negative
{
color: var(--color-negative);
}