mirror of
https://github.com/MisskeyIO/misskey
synced 2024-12-27 21:18:13 +09:00
05b8111c19
* wip * wip * wip * Update page-editor.vue * wip * wip * wip * wip * wip * wip * wip * Update page-editor.variable.core.vue * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * Update aiscript.ts * wip * Update package.json * wip * wip * wip * wip * wip * Update page.vue * wip * wip * wip * wip * more info * wip fn * wip * wip * wip
56 lines
825 B
Vue
56 lines
825 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="stylus" 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>
|