Files
mixtape/zero.Backoffice.UI/old_app/components/modules/module-preview-inner.vue
T

47 lines
823 B
Vue
Raw Normal View History

<script>
export default {
name: 'uiModulePreviewInner',
props: {
value: {
type: Object,
default: () => { }
},
2021-10-11 13:58:14 +02:00
options: {
type: Object
},
template: {
type: String,
default: null
}
},
render: function (h)
{
if (!this.template)
{
return;
}
return h(
{
template: '<div class="ui-module-preview-inner">' + this.template + '</div>',
props: {
model: {
type: Object,
default: () => { }
2021-10-11 13:58:14 +02:00
},
options: {
type: Object
},
}
},
{
props: {
2021-10-11 13:58:14 +02:00
model: this.value,
options: this.options
}
});
},
}
</script>