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