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

30 lines
500 B
Vue
Raw Normal View History

<template>
2019-05-01 00:54:34 -05:00
<div v-show="script.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>