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