Files
mixtape/zero.Backoffice.UI/app/editor/fields/output.vue
T
2021-12-09 10:51:10 +01:00

20 lines
407 B
Vue

<template>
<span class="ui-property-output" v-localize="output"></span>
</template>
<script>
export default {
props: {
value: [Object, String, Array, Number, Boolean],
entity: Object,
render: Function
},
computed: {
output()
{
return typeof this.render === 'function' ? this.render(this.value, this.entity) : this.value;
}
}
}
</script>