mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-29 20:36:43 -06:00
f6154dc0af
Co-authored-by: MeiMei <30769358+mei23@users.noreply.github.com> Co-authored-by: Satsuki Yanagi <17376330+u1-liquid@users.noreply.github.com>
29 lines
506 B
Vue
29 lines
506 B
Vue
<template>
|
|
<div v-show="script.vars[value.var]">
|
|
<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>
|