mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-26 22:36:44 -06:00
bd8d7c3d0f
* ページをピン留めできるように * デッキでカラム内でページを見れるように
40 lines
1,013 B
Vue
40 lines
1,013 B
Vue
<template>
|
|
<component :is="'x-' + value.type" :value="value" :page="page" :script="script" :key="value.id" :h="h"/>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import Vue from 'vue';
|
|
import XText from './page.text.vue';
|
|
import XSection from './page.section.vue';
|
|
import XImage from './page.image.vue';
|
|
import XButton from './page.button.vue';
|
|
import XNumberInput from './page.number-input.vue';
|
|
import XTextInput from './page.text-input.vue';
|
|
import XTextareaInput from './page.textarea-input.vue';
|
|
import XSwitch from './page.switch.vue';
|
|
import XIf from './page.if.vue';
|
|
import XTextarea from './page.textarea.vue';
|
|
import XPost from './page.post.vue';
|
|
import XCounter from './page.counter.vue';
|
|
|
|
export default Vue.extend({
|
|
components: {
|
|
XText, XSection, XImage, XButton, XNumberInput, XTextInput, XTextareaInput, XTextarea, XPost, XSwitch, XIf, XCounter
|
|
},
|
|
|
|
props: {
|
|
value: {
|
|
required: true
|
|
},
|
|
script: {
|
|
required: true
|
|
},
|
|
page: {
|
|
required: true
|
|
},
|
|
h: {
|
|
required: true
|
|
}
|
|
},
|
|
});
|
|
</script>
|