Files
mixtape/zero.Web.UI/App/editor/fields/output.vue
T
2020-09-12 19:45:34 +02:00

19 lines
397 B
Vue

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