mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-11-16 08:36:27 +01:00
f6154dc0af
Co-authored-by: MeiMei <30769358+mei23@users.noreply.github.com> Co-authored-by: Satsuki Yanagi <17376330+u1-liquid@users.noreply.github.com>
58 lines
860 B
Vue
58 lines
860 B
Vue
<template>
|
|
<section class="sdgxphyu">
|
|
<component :is="'h' + h">{{ value.title }}</component>
|
|
|
|
<div class="children">
|
|
<x-block v-for="child in value.children" :value="child" :page="page" :script="script" :key="child.id" :h="h + 1"/>
|
|
</div>
|
|
</section>
|
|
</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>
|
|
|
|
<style lang="scss" scoped>
|
|
.sdgxphyu {
|
|
margin: 1.5em 0;
|
|
|
|
> h2 {
|
|
font-size: 1.35em;
|
|
margin: 0 0 0.5em 0;
|
|
}
|
|
|
|
> h3 {
|
|
font-size: 1em;
|
|
margin: 0 0 0.5em 0;
|
|
}
|
|
|
|
> h4 {
|
|
font-size: 1em;
|
|
margin: 0 0 0.5em 0;
|
|
}
|
|
|
|
> .children {
|
|
//padding 16px
|
|
}
|
|
}
|
|
</style>
|