Files
mixtape/zero.Backoffice.UI/app/modules/pageModules/partials/preview-inner.vue
T

50 lines
842 B
Vue

<script lang="ts">
import { defineComponent, h } from 'vue';
export default defineComponent({
name: 'uiModulePreviewInner',
props: {
value: {
type: Object,
default: () => { }
},
options: {
type: Object
},
template: {
type: String,
default: null
}
},
render()
{
if (!this.template)
{
return;
}
return h({
template: '<div class="ui-module-preview-inner">' + this.template + '</div>',
props: {
model: {
type: Object,
default: () => { }
},
options: {
type: Object
},
}
},
{
props: {
model: this.value,
options: this.options
}
});
},
})
</script>