yumechi-no-kuni/src/client/components/page/page.if.vue

30 lines
498 B
Vue
Raw Normal View History

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