You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
willaengine/resources/js/Global/components/FormLoader/Elements/we-switch.vue

31 lines
510 B

5 years ago
<template>
<v-card-text>
<v-switch
:label="element.label"
:hibt="element.hint"
:color="element.color"
:append-icon="element.append_icon"
:prepend-icon="element.prepend_icon"
v-model="values[element.slug]"
5 years ago
@input="changeValue"
5 years ago
></v-switch>
</v-card-text>
</template>
<script>
export default {
props: {
element: {
type: Object
},
values: {
type: Object,
default: () => ({})
}
5 years ago
},
methods: {
changeValue() {
this.$emit('input', this.values);
}
5 years ago
}
};
</script>