Files
mixtape/zero.Backoffice.UI/app/editor/fields/toggle.vue
T

17 lines
345 B
Vue
Raw Normal View History

2021-12-09 10:51:10 +01:00
<template>
2021-12-21 14:41:50 +01:00
<ui-toggle :on="value" @update:on="$emit('input', $event)" :disabled="config.disabled" v-bind="{ negative, onContent, offContent }" />
2021-12-09 10:51:10 +01:00
</template>
<script>
export default {
props: {
2021-12-14 14:21:48 +01:00
value: Boolean,
2021-12-21 14:41:50 +01:00
config: Object,
2021-12-21 13:58:48 +01:00
2021-12-09 10:51:10 +01:00
negative: Boolean,
onContent: String,
offContent: String
}
}
</script>