2019-04-29 23:40:02 +02:00
|
|
|
<template>
|
2019-05-01 07:54:34 +02:00
|
|
|
<div v-show="script.vars[value.var]">
|
2020-04-20 14:35:27 +02:00
|
|
|
<x-block v-for="child in value.children" :value="child" :page="page" :hpml="hpml" :key="child.id" :h="h"/>
|
2019-04-29 23:40:02 +02:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import Vue from 'vue';
|
|
|
|
|
|
|
|
export default Vue.extend({
|
|
|
|
props: {
|
|
|
|
value: {
|
|
|
|
required: true
|
|
|
|
},
|
2020-04-20 14:35:27 +02:00
|
|
|
hpml: {
|
2019-04-29 23:40:02 +02:00
|
|
|
required: true
|
|
|
|
},
|
|
|
|
page: {
|
|
|
|
required: true
|
|
|
|
},
|
|
|
|
h: {
|
|
|
|
required: true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
beforeCreate() {
|
2020-01-29 20:37:25 +01:00
|
|
|
this.$options.components.XBlock = require('./page.block.vue').default;
|
2019-04-29 23:40:02 +02:00
|
|
|
},
|
|
|
|
});
|
|
|
|
</script>
|