2020-08-20 12:36:02 +02:00
|
|
|
<script>
|
|
|
|
|
export default {
|
|
|
|
|
name: 'uiModulePreviewInner',
|
|
|
|
|
|
|
|
|
|
props: {
|
|
|
|
|
value: {
|
|
|
|
|
type: Object,
|
|
|
|
|
default: () => { }
|
|
|
|
|
},
|
2021-10-11 13:58:14 +02:00
|
|
|
options: {
|
|
|
|
|
type: Object
|
|
|
|
|
},
|
2020-08-20 12:36:02 +02:00
|
|
|
template: {
|
|
|
|
|
type: String,
|
2021-01-22 14:17:39 +01:00
|
|
|
default: null
|
2020-08-20 12:36:02 +02:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
render: function (h)
|
|
|
|
|
{
|
2021-01-22 14:17:39 +01:00
|
|
|
if (!this.template)
|
|
|
|
|
{
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
2020-08-20 12:36:02 +02:00
|
|
|
return h(
|
2021-01-22 14:17:39 +01:00
|
|
|
{
|
|
|
|
|
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
|
|
|
|
|
},
|
2020-08-20 12:36:02 +02:00
|
|
|
}
|
2021-01-22 14:17:39 +01:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
props: {
|
2021-10-11 13:58:14 +02:00
|
|
|
model: this.value,
|
|
|
|
|
options: this.options
|
2021-01-22 14:17:39 +01:00
|
|
|
}
|
|
|
|
|
});
|
2020-08-20 12:36:02 +02:00
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
</script>
|