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