mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-15 03:33:09 +02:00
31 lines
533 B
Vue
31 lines
533 B
Vue
|
<template>
|
||
|
<div v-show="script.vars.find(x => x.name === value.var).value">
|
||
|
<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() {
|
||
|
this.$options.components.XBlock = require('./page.block.vue').default
|
||
|
},
|
||
|
});
|
||
|
</script>
|