Files
mixtape/zero.Backoffice.UI/app/editor/fields/output.vue
T
2022-01-13 23:07:34 +01:00

25 lines
470 B
Vue

<template>
<span class="ui-property-output" v-localize="{ key: output, html: html }"></span>
</template>
<script>
export default {
props: {
value: Object,
config: Object,
html: {
type: Boolean,
default: false
},
render: Function
},
computed: {
output()
{
return typeof this.render === 'function' ? this.render(this.value, this.config.model) : this.value;
}
}
}
</script>