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

50 lines
842 B
Vue
Raw Normal View History

<script lang="ts">
import { defineComponent, h } from 'vue';
export default defineComponent({
2022-01-12 18:49:36 +01:00
name: 'uiModulePreviewInner',
2022-01-12 18:49:36 +01:00
props: {
value: {
type: Object,
default: () => { }
},
options: {
type: Object
},
template: {
type: String,
default: null
}
},
render()
2022-01-12 18:49:36 +01:00
{
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
}
});
2022-01-12 18:49:36 +01:00
},
})
2022-01-12 18:49:36 +01:00
</script>